فهرست منبع

[flash] dodge as3 issue (see #8549)

Dan Korostelev 6 سال پیش
والد
کامیت
3ea81dbe06
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 2
      tests/unit/src/unit/issues/Issue8549.hx

+ 1 - 2
tests/unit/src/unit/issues/Issue8549.hx

@@ -5,8 +5,7 @@ class Issue8549 extends unit.Test {
 	function test() {
 	function test() {
 		// can be used as a Vector type param, for type checking :-/
 		// can be used as a Vector type param, for type checking :-/
 		var v = new flash.Vector<String>();
 		var v = new flash.Vector<String>();
-		var anyVector:Class<flash.Vector<flash.AnyType>> = flash.Vector.typeReference();
-		t(Std.is(v, anyVector));
+		t(Std.is(v, (flash.Vector.typeReference() : Class<flash.Vector<flash.AnyType>>)));
 
 
 		// also assignable from/to stuff, similar to Any, just in case...
 		// also assignable from/to stuff, similar to Any, just in case...
 		var v:flash.AnyType = 10;
 		var v:flash.AnyType = 10;