mirror of
https://github.com/irmen/prog8.git
synced 2024-12-28 12:32:34 +00:00
fix compiler crash when calling a non-subroutine
This commit is contained in:
parent
b27cbfac5e
commit
89f46222d9
@ -144,8 +144,7 @@ class TypecastsAdder(val program: Program, val errors: ErrorReporter) : AstWalke
|
||||
}
|
||||
}
|
||||
}
|
||||
null -> { }
|
||||
else -> throw FatalAstException("call to something weird $sub ${call.target}")
|
||||
else -> { }
|
||||
}
|
||||
|
||||
return modifications
|
||||
|
Loading…
Reference in New Issue
Block a user