[FIR] Only inherit class type parameters if inner class

Nested classes which are not inner class should not be able to access
type parameters of the outer class. Make sure access is not available
when resolving super types.

#KT-54748 Fixed
This commit is contained in:
Brian Norman
2023-05-26 09:19:09 -05:00
committed by Space Team
parent dfae730d0f
commit e10a9263d0
15 changed files with 79 additions and 47 deletions
@@ -1,6 +1,6 @@
open class SomeClass<T>
class TestSome<P> {
companion object : SomeClass<P>() {
companion object : SomeClass<<!UNRESOLVED_REFERENCE!>P<!>>() {
}
}