瀏覽代碼

better test for #8764

Aleksandr Kuzmenko 6 年之前
父節點
當前提交
3fe878cf9b
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      tests/unit/src/unit/issues/Issue8764.hx

+ 3 - 3
tests/unit/src/unit/issues/Issue8764.hx

@@ -1,13 +1,13 @@
 package unit.issues;
 package unit.issues;
 
 
 class Issue8764 extends unit.Test {
 class Issue8764 extends unit.Test {
-#if (static && !jvm)
+#if static
 	function test() {
 	function test() {
 		eq(0.0, foo());
 		eq(0.0, foo());
 	}
 	}
 
 
-	static function foo(?e:Float):Null<Single> {
-		return (e:Float);
+	static function foo(?e:Int):Null<Float> {
+		return (e:Int);
 	}
 	}
 #end
 #end
 }
 }