Closed
Description
[Google Issue #1785 : https://code.google.com/p/haxe/issues/detail?id=1785]
by ncanna...@gmail.com, at 07/05/2013, 09:15:20
The following example no longer compile in Flash, due to the captured variable being typed to Int instead of Null<Int> :
enum E { A( ?x : Int ); }
class Test { static function main() { var v = A(); switch( v ) { case A(x): trace(if( x == null ) "NULL" else x); } } }
Activity