Files
kotlin-fork/compiler/testData/diagnostics/tests/generics/innerClasses/implicitArguments/fromSuperClassesLocal.txt
T
Denis Zharkov 7ca84649d7 Fix implicit type arguments resolution for inner classes
When resolving arguments on inner classifier, one can omit the arguments
for outer class 'Outer' if they are present implicitly in the scope:
- One of the supertypes of current class is Outer
- One of the outer classes or one of their supertypes is Outer

Relevant arguments are obtained from the first type found by
the algorithm above

Note that before this commit implicit arguments were only been searched
in containing classes

 #KT-11123 Fixed
2016-09-15 10:33:19 +03:00

13 lines
566 B
Plaintext
Vendored

package
private fun </*0*/ E> foobar(): () -> foobar.<anonymous>.Derived<E>
private fun noParameters(): () -> noParameters.<anonymous>.Derived2
public fun test(): kotlin.Unit
public final class A</*0*/ R1, /*1*/ R2, /*2*/ R3, /*3*/ R4> {
public constructor A</*0*/ R1, /*1*/ R2, /*2*/ R3, /*3*/ R4>()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}