Test that lazy resolve is able to do propagation in Kotlin-Java-Kotlin hierarchy

Patch by Evgeny Gerashchenko
This commit is contained in:
Nikolay Krasko
2014-02-03 21:32:19 +04:00
parent f14ff9405d
commit 7e4bb1d467
5 changed files with 30 additions and 1 deletions
@@ -0,0 +1,7 @@
package foo;
public class Bar implements Foo {
public Object f() {
throw new UnsupportedOperationException();
}
}
@@ -0,0 +1,5 @@
package foo
public trait Foo {
fun f(): Any
}
@@ -0,0 +1,5 @@
package foo
class Impl : Bar() {
<caret>
}
@@ -0,0 +1,8 @@
package foo
class Impl : Bar() {
override fun f(): Any {
return super<Bar>.f()
}
}
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2013 JetBrains s.r.o.
* Copyright 2010-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -149,4 +149,8 @@ public final class OverrideImplementTest extends AbstractOverrideImplementTest {
public void testSameTypeName() {
doDirectoryTest(new OverrideMethodsHandler());
}
public void testPropagationKJK() {
doDirectoryTest(new OverrideMethodsHandler());
}
}