Fix logic for searching inner classes in LazyResolveBasedCache.findInPackageFragments()
#KT-14058 Fixed
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package dependencies;
|
||||
|
||||
import sealedClass.Foo;
|
||||
|
||||
public class A {
|
||||
public static class B<T> {
|
||||
}
|
||||
|
||||
public static B<Foo.Bar> myList = null;
|
||||
|
||||
public static <T> T bar(B<T> tb) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package sealedClass
|
||||
|
||||
sealed class Foo {
|
||||
class Bar : Foo()
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package dependencies
|
||||
|
||||
fun test() {
|
||||
val <warning>bar</warning> = A.bar(A.myList) // MISSING_DEPENDENCY_CLASS foo.Foo.Bar
|
||||
}
|
||||
Reference in New Issue
Block a user