Browse Source

unit test for #6502 (closes #6502)

Alexander Kuzmenko 8 years ago
parent
commit
1238783d00
1 changed files with 24 additions and 0 deletions
  1. 24 0
      tests/unit/src/unit/issues/Issue6502.hx

+ 24 - 0
tests/unit/src/unit/issues/Issue6502.hx

@@ -0,0 +1,24 @@
+package unit.issues;
+
+class Issue6502 extends unit.Test {
+	function test() {
+		var obj:IChild = new Dummy();
+		eq(1, obj.field);
+	}
+}
+
+private class Dummy implements IChild {
+    public var field(get,never):Int;
+
+    function get_field() return 1; //this getter is not generated
+
+    public function new() {}
+}
+
+private interface IParent1 {
+    var field(get,never):Int;
+}
+
+private interface IParent2 {}
+
+private interface IChild extends IParent1 extends IParent2 {}