Files
Artem Vasilev 88ab670fae [kotlin] fix test data severity due to delay in KT-36770
GitOrigin-RevId: bde4a9d7a5934b22e09c6ecee4789e847c933e3f
2022-12-19 13:59:47 +00:00

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)
}