Files
kotlin-fork/compiler/testData/diagnostics/tests/inference/kt50232a.kt
T

12 lines
306 B
Kotlin
Vendored

fun test() {
acceptMyRecursive(inferType<<!UPPER_BOUND_VIOLATED, UPPER_BOUND_VIOLATED, UPPER_BOUND_VIOLATED!>MyRecursive?<!>>())
}
fun acceptMyRecursive(value: MyRecursive?) {}
fun <R : Recursive<R>?> inferType(): R = TODO()
abstract class Recursive<R>
class MyRecursive : Recursive<MyRecursive>()