mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
8 lines
212 B
Kotlin
8 lines
212 B
Kotlin
// "Add 'Any' as upper bound for T to make it non-nullable" "true"
|
|
// WARNING: Type mismatch: inferred type is T but T & Any was expected
|
|
// LANGUAGE_VERSION: 1.8
|
|
|
|
fun <T : Any> bar(x: T) {
|
|
Foo<T>().foo(x)
|
|
}
|