Files
kotlin-fork/compiler/testData/codegen/boxInline/signature/sameFormalParameterName.2.kt
T
Michael Bogdanov fee6d4f282 Type parameters mapping
#KT-10429 Fixed
2016-01-12 15:51:56 +03:00

19 lines
305 B
Kotlin
Vendored

package test
class B<T>
interface A {
fun <T> aTest(p: T): B<T>
}
open class Test {
inline fun <T> test(crossinline z: () -> Int) = object : A {
override fun <T> aTest(p: T): B<T> {
z()
return B<T>()
}
}
fun callInline() = test<String> { 1 }
}