浏览代码

[cs] No error for Issue #2304

Cauê Waneck 11 年之前
父节点
当前提交
c3e8cb9837
共有 1 个文件被更改,包括 23 次插入0 次删除
  1. 23 0
      tests/unit/issues/Issue2304.hx

+ 23 - 0
tests/unit/issues/Issue2304.hx

@@ -0,0 +1,23 @@
+package unit.issues;
+
+class Issue2304 extends unit.Test
+{
+	public function test()
+	{
+		eq(5,doTest(new TestImpl()));
+	}
+
+	static function doTest(o:ITest) return o.field;
+}
+private interface ITest
+{
+	var field(default,null):Int;
+}
+private class TestImpl implements ITest
+{
+	public var field(default,null):Int = 5;
+	public function new()
+	{
+
+	}
+}