Internal error when comparing const

Monkey Forums/Monkey Bug Reports/Internal error when comparing const

Skn3(Posted 2013) [#1]
Found an error when comparing a constant to true.
Const test:Bool = True

Function Main:Int()
	If test = True Then
		Print("true")
	Else
		Print("false")
	EndIf
		
	Return 0
End Function


Take out the "=true" and it works. Tested on v66b


Skn3(Posted 2013) [#2]
Any update on this?


therevills(Posted 2013) [#3]
Still happening on v70...


marksibly(Posted 2013) [#4]
Fixed in next release - the constant evaluator was completely ignoring bools.


Skn3(Posted 2013) [#5]
huzah, thanks :D