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());
 	}
 }