소스 검색

[test] Added test. Closes #4388

Cauê Waneck 10 년 전
부모
커밋
f277d0f95d
1개의 변경된 파일22개의 추가작업 그리고 0개의 파일을 삭제
  1. 22 0
      tests/unit/src/unit/issues/Issue4388.hx

+ 22 - 0
tests/unit/src/unit/issues/Issue4388.hx

@@ -0,0 +1,22 @@
+package unit.issues;
+import haxe.Int64;
+
+class Issue4388 extends Test
+{
+	public function test()
+	{
+		var test = new PTest();
+		test.x |= 2;
+		t(test.x == 3);
+	}
+}
+
+private class PTest
+{
+	public var x(default, set) : Int64;
+	inline function set_x(i:Int64) : Int64 {
+		return this.x = i;
+	}
+
+	public function new() { this.x = 1; }
+}