WurstScript icon indicating copy to clipboard operation
WurstScript copied to clipboard

Class variables that access a later initialized variable don't cause compilation error

Open Frotty opened this issue 7 years ago • 0 comments

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.

Frotty avatar Nov 30 '18 20:11 Frotty