WurstScript
WurstScript copied to clipboard
Class variables that access a later initialized variable don't cause compilation error
class B
var i = 0
function get() returns int
return i
class A
private var foo = b.get() // <- should error
private var b = new B()
It will always result in a runtime error, and thus should be a compilation error.