Files
kotlin-fork/analysis/analysis-api/testData/scopes/memberScopeByFqName/overridenFunctionWithGenericBound.kt
T
Roman Golyshev 29bb8cea8f [FIR] Add missing ensureResolved to FirClassSubstitutionScope
`createNewTypeParametersAndSubstitutor` call might need resolved types
to be able to work correctly with the generics' type bounds
2021-10-29 15:59:35 +03:00

19 lines
419 B
Kotlin
Vendored

// DO_NOT_CHECK_SYMBOL_RESTORE
package test
interface OtherInterface
interface TwoParams<T, TT>
interface MyInterface<T> {
fun <TT1 : T, TT2 : OtherInterface> funWithOuterAndOwnGenericsAndBounds(tT1: TT1?, tT2: TT2?)
val <TT1 : T, TT2 : OtherInterface> TwoParams<TT1, TT2>.propWithOuterAndOwnGenericsAndBounds: T? get() = null
}
class Foo
abstract class MyClass : MyInterface<Foo>
// class: test/MyClass