really not sure about whether this should be allowed...
@@ -256,7 +256,8 @@ let rec func ctx bb tf t p =
if bb == g.g_unreachable then raise Exit;
loop2 bb el
| [] ->
- die "" __LOC__
+ (* TODO: is this correct? *)
+ bb,ctx.com.basic.evoid e.epos
in
let bb,e = loop2 bb el in
loop bb e
@@ -1,5 +1,5 @@
class Main {
static function main() {
- trace([if(false) 1]);
+ $type([if(false) 1]);
}
@@ -1 +0,0 @@
-Main.hx:3: characters 10-21 : Cannot use Void as value
@@ -0,0 +1 @@
+Main.hx:3: characters 9-22 : Warning : Array<Void>