Unreachable Code Warning?

Monkey Forums/Monkey Programming/Unreachable Code Warning?

muddy_shoes(Posted 2011) [#1]
Is there any chance we can get a warning out of Monkey for unreachable code?

Function Main()
	Local count:Int = 0
	While(True)
		If count > 5
			Print "foo"
			Exit
		Else
			Print "bar"
			Continue
		End
		'unreachable
		count += 1
	End
End


If you manage to do something like that, not only does Monkey not say anything, but it also conscientiously strips out the unreachable code so that the native compiler doesn't say anything either.