mirror of
https://github.com/irmen/prog8.git
synced 2024-11-26 11:49:22 +00:00
fix compiler crash when attempting to call a non-function
This commit is contained in:
parent
35998142fe
commit
02010170ce
@ -1 +1 @@
|
||||
7.5
|
||||
7.6-dev
|
||||
|
@ -154,7 +154,7 @@ internal class AstIdentifiersChecker(private val errors: IErrorReporter,
|
||||
}
|
||||
}
|
||||
null -> {}
|
||||
else -> throw FatalAstException("weird call target")
|
||||
else -> errors.err("cannot call this as a subroutine or function", call.target.position)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -4,8 +4,8 @@
|
||||
main {
|
||||
sub start() {
|
||||
|
||||
ubyte @shared xx = @(cx16.r5)
|
||||
xx++
|
||||
uword foobar
|
||||
|
||||
foobar()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user