mirror of
https://github.com/irmen/prog8.git
synced 2025-02-28 09:29:26 +00:00
no compiler optimizer crash on certain missing symbol
This commit is contained in:
parent
cdfef30c22
commit
a090fe3834
@ -367,7 +367,7 @@ class StatementOptimizer(private val program: Program,
|
||||
|
||||
val targetIDt = assignment.target.inferType(program)
|
||||
if(!targetIDt.isKnown)
|
||||
throw FatalAstException("can't infer type of assignment target")
|
||||
return noModifications
|
||||
|
||||
// optimize binary expressions a bit
|
||||
val bexpr=assignment.value as? BinaryExpression
|
||||
|
Loading…
x
Reference in New Issue
Block a user