Browse Source

[cs] No error for Issue #2304

Cauê Waneck 11 years ago
parent
commit
c3e8cb9837
1 changed files with 23 additions and 0 deletions
  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()
+	{
+
+	}
+}