5afab1ac2b
parameters with bounds/supertypes.
14 lines
146 B
Kotlin
Vendored
14 lines
146 B
Kotlin
Vendored
// !LANGUAGE: +NewInference
|
|
// WITH_RUNTIME
|
|
|
|
interface A<T> {
|
|
var x: T
|
|
}
|
|
|
|
fun test(a: A<*>) {
|
|
a.x
|
|
}
|
|
|
|
fun box(): String {
|
|
return "OK"
|
|
} |