Änderungen

Summary

  1. Remove type dependency from cast translation (#1064) (commit: 18ca8ab) (details)
Commit 18ca8ab9bda8e1ceb5112c75866e26bbfd5d08d4 by noreply
Remove type dependency from cast translation (#1064)

* Remove type dependency from cast translation

When casting to int, there is a special case when an int is casted (no cast necessary). This was no longer detected correctly with eliminated local types. Now this unnecessary cast is removed in advance, before local types are lost.

* Unit tests for local type elimination
(commit: 18ca8ab)
The file was modifiedde.peeeq.wurstscript/src/main/java/de/peeeq/wurstscript/translation/imtranslation/EliminateLocalTypes.java (diff)
The file was modifiedde.peeeq.wurstscript/src/main/java/de/peeeq/wurstscript/translation/lua/translation/ExprTranslation.java (diff)
The file was modifiedde.peeeq.wurstscript/src/test/java/tests/wurstscript/tests/LuaTranslationTests.java (diff)