fix compiler crash when calling a non-subroutine

This commit is contained in:
Irmen de Jong 2020-08-22 17:01:47 +02:00
parent b27cbfac5e
commit 89f46222d9

View File

@ -144,8 +144,7 @@ class TypecastsAdder(val program: Program, val errors: ErrorReporter) : AstWalke
} }
} }
} }
null -> { } else -> { }
else -> throw FatalAstException("call to something weird $sub ${call.target}")
} }
return modifications return modifications