Browse Source

better test for #8764

Aleksandr Kuzmenko 6 năm trước cách đây
mục cha
commit
3fe878cf9b
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  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;
 
 class Issue8764 extends unit.Test {
-#if (static && !jvm)
+#if static
 	function test() {
 		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
 }