Fix logic for searching inner classes in LazyResolveBasedCache.findInPackageFragments()

#KT-14058 Fixed
This commit is contained in:
Dmitry Jemerov
2017-03-08 18:46:37 +01:00
parent 9f2ce3c521
commit cbccb68948
5 changed files with 49 additions and 11 deletions
+14
View File
@@ -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
}