blob: cf9d2317b983e8dcf078331e5577031496e89135 (
plain)
1
2
3
4
5
6
7
|
// "Add 'Any' as upper bound for T to make it non-nullable" "true"
// ERROR: Type mismatch: inferred type is T but T & Any was expected
// LANGUAGE_VERSION: 1.7
fun <T> bar(x: T) {
Foo<T>().foo(<caret>x)
}
|