Änderungen

Summary

  1. new compilation error when trying to access destroyed var (commit: 41868a9) (details)
Commit 41868a95435ade010cb4e27067fc5d4ae272d259 by peter.peq
new compilation error when trying to access destroyed var
as suggested by Frotty in #731
when a local variable or 'this' has been destroyed this is stored in the
control flow analysis and subsequent uses of the variable become an
error. Note that this is not a complete analysis, it will not detect
aliasing problems and does not do inter-procedure analysis, for example:
let a = new A() let b = a destroy b a.doSomething() // just a runtime
error
(commit: 41868a9)
The file was modifiedde.peeeq.wurstscript/src/main/java/de/peeeq/wurstscript/validation/controlflow/DataflowAnomalyAnalysis.java (diff)
The file was modifiedde.peeeq.wurstscript/src/test/java/tests/wurstscript/tests/FlowAnalysisTests.java (diff)