Simon Krajewski %!s(int64=8) %!d(string=hai) anos
pai
achega
a4d65d4f0e
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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();
 	}
 
+	#if eval
 	override function add<T>(x:T) {
 		super.add("add");
 		super.add(x);
 	}
+	#end
 }
 
 class Issue6446 extends unit.Test {
 	function test() {
 		var buf = new CustomStringBuf();
 		buf.add(" custom");
-		eq("add custom", buf.toString());
+		eq(#if eval "add" #else "" #end + " custom", buf.toString());
 	}
 }