test for KT-2219
This commit is contained in:
@@ -83,10 +83,15 @@ public final class PropertyAccessTest extends SingleFileTranslationTest {
|
|||||||
public void testInitInstanceProperties() throws Exception {
|
public void testInitInstanceProperties() throws Exception {
|
||||||
fooBoxTest(EnumSet.of(EcmaVersion.v5));
|
fooBoxTest(EnumSet.of(EcmaVersion.v5));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testEnumerable() throws Exception {
|
public void testEnumerable() throws Exception {
|
||||||
fooBoxTest(JsTestUtils.successOnEcmaV5());
|
fooBoxTest(JsTestUtils.successOnEcmaV5());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testOverloadedOverriddenFunctionPropertyName() throws Exception {
|
||||||
|
//fooBoxTest(JsTestUtils.successOnEcmaV5());
|
||||||
|
//fooBoxTest();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@NotNull
|
@NotNull
|
||||||
|
|||||||
+14
@@ -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"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user