Files
kotlin-fork/compiler/testData/diagnostics/tests/generics/tpAsReified/Conventions.kt
T

14 lines
307 B
Kotlin
Vendored

// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
inline operator fun <reified T> T.plus(p: T): T = this
inline operator fun <reified T> T.invoke(): T = this
fun <A> main(tp: A, any: Any) {
tp <!TYPE_PARAMETER_AS_REIFIED!>+<!> tp
any + any
<!TYPE_PARAMETER_AS_REIFIED!>tp<!>()
any()
}