Files
kotlin-fork/compiler/testData/asJava/lightClasses/lightClassByFqName/SubstitutionOverride.kt
T
2023-05-17 09:51:21 +00:00

19 lines
541 B
Kotlin
Vendored

// test.ClassWithGenericBase
package test
class Foo
abstract class Base<T> {
fun noGeneric() = 42
fun noGenericWithExplicitType(): Int = 24
fun withOuterGeneric(t: T) = "str"
fun withOuterGenericWithExplicitType(t: T): String = "rts"
fun <TT> withOwnGeneric(tt: TT) = true
fun <TT> withOwnGenericWithExplicitType(tt: TT): Boolean = false
fun <TT> withOuterAndOwnGeneric(t: T, tt: TT) = 4L
fun <TT> withOuterAndOwnGenericWithExplicitType(t: T, tt: TT): Long = 1L
}
class ClassWithGenericBase : Base<Foo>()