Simon Krajewski 8 ani în urmă
părinte
comite
a4d65d4f0e
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  1. 3 1
      tests/unit/src/unit/issues/Issue6446.hx

+ 3 - 1
tests/unit/src/unit/issues/Issue6446.hx

@@ -6,16 +6,18 @@ private class CustomStringBuf extends StringBuf {
 		super();
 		super();
 	}
 	}
 
 
+	#if eval
 	override function add<T>(x:T) {
 	override function add<T>(x:T) {
 		super.add("add");
 		super.add("add");
 		super.add(x);
 		super.add(x);
 	}
 	}
+	#end
 }
 }
 
 
 class Issue6446 extends unit.Test {
 class Issue6446 extends unit.Test {
 	function test() {
 	function test() {
 		var buf = new CustomStringBuf();
 		var buf = new CustomStringBuf();
 		buf.add(" custom");
 		buf.add(" custom");
-		eq("add custom", buf.toString());
+		eq(#if eval "add" #else "" #end + " custom", buf.toString());
 	}
 	}
 }
 }