Find usages and reference to delegation origin
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import k.*;
|
||||
|
||||
public class Test {
|
||||
public static void bar(TraitWithDelegatedNoImpl some) {
|
||||
some.<caret>foo();
|
||||
}
|
||||
}
|
||||
|
||||
// REF: (in k.TraitNoImpl).foo()
|
||||
@@ -0,0 +1,9 @@
|
||||
import k.*;
|
||||
|
||||
public class Test {
|
||||
public static void bar(TraitWithDelegatedWithImpl some) {
|
||||
some.<caret>foo();
|
||||
}
|
||||
}
|
||||
|
||||
// REF: (in k.TraitWithImpl).foo()
|
||||
@@ -39,4 +39,12 @@ object PlatformStaticFun {
|
||||
|
||||
trait TraitNoImpl {
|
||||
fun foo()
|
||||
}
|
||||
}
|
||||
|
||||
public class TraitWithDelegatedNoImpl(f: TraitNoImpl): TraitNoImpl by f
|
||||
|
||||
trait TraitWithImpl {
|
||||
fun foo() = 1
|
||||
}
|
||||
|
||||
public class TraitWithDelegatedWithImpl(f: TraitWithImpl): TraitWithImpl by f
|
||||
|
||||
Reference in New Issue
Block a user