diff --git a/js/js.tests/test/org/jetbrains/k2js/test/semantics/PropertyAccessTest.java b/js/js.tests/test/org/jetbrains/k2js/test/semantics/PropertyAccessTest.java index 3f602c95099..5e49b03936b 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/semantics/PropertyAccessTest.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/semantics/PropertyAccessTest.java @@ -83,10 +83,15 @@ public final class PropertyAccessTest extends SingleFileTranslationTest { public void testInitInstanceProperties() throws Exception { fooBoxTest(EnumSet.of(EcmaVersion.v5)); } - + public void testEnumerable() throws Exception { - fooBoxTest(JsTestUtils.successOnEcmaV5()); - } + fooBoxTest(JsTestUtils.successOnEcmaV5()); + } + + public void testOverloadedOverriddenFunctionPropertyName() throws Exception { + //fooBoxTest(JsTestUtils.successOnEcmaV5()); + //fooBoxTest(); + } @Override @NotNull diff --git a/js/js.translator/testFiles/propertyAccess/cases/overloadedOverriddenFunctionPropertyName.kt b/js/js.translator/testFiles/propertyAccess/cases/overloadedOverriddenFunctionPropertyName.kt new file mode 100644 index 00000000000..f43556f8b5b --- /dev/null +++ b/js/js.translator/testFiles/propertyAccess/cases/overloadedOverriddenFunctionPropertyName.kt @@ -0,0 +1,14 @@ +package foo + +trait I { + fun test():String +} + +class P : I { + override fun test():String {return "a" + test("b")} + private fun test(p:String):String {return p} +} + +fun box():Boolean { + return P().test() == "ab" +} \ No newline at end of file