Test that lazy resolve is able to do propagation in Kotlin-Java-Kotlin hierarchy
Patch by Evgeny Gerashchenko
This commit is contained in:
@@ -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");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with 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() {
|
public void testSameTypeName() {
|
||||||
doDirectoryTest(new OverrideMethodsHandler());
|
doDirectoryTest(new OverrideMethodsHandler());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testPropagationKJK() {
|
||||||
|
doDirectoryTest(new OverrideMethodsHandler());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user