Simon Krajewski 8 년 전
부모
커밋
a4d65d4f0e
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  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());
 	}
 }