test for KT-2219

This commit is contained in:
develar
2012-06-21 14:14:52 +04:00
parent 4158a7bf5d
commit 622235b172
2 changed files with 22 additions and 3 deletions
@@ -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
@@ -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"
}