Browse Source

improve isNull() in test

Rudy Ges 5 days ago
parent
commit
69168f283b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/unit/src/unit/issues/misc/Issue12415Abstract.hx

+ 1 - 1
tests/unit/src/unit/issues/misc/Issue12415Abstract.hx

@@ -5,7 +5,7 @@ import haxe.Int64;
 @:fromNull
 abstract Issue12415Abstract(Int64) from Int64 to Int64 {
 	public inline function isNull() {
-		#if !static if (this == null) return true; #end
+		if (abstract == null) return true;
 		return haxe.Int64.isZero(this);
 	}
 }