[AA FIR] add tests on implicit type in delegated scope

^KT-58727
This commit is contained in:
Dmitrii Gridin
2023-05-16 17:18:12 +02:00
committed by Space Team
parent 6a8981372b
commit 4472e1ae4e
26 changed files with 987 additions and 0 deletions
@@ -0,0 +1,18 @@
// 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>()