mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
JetType.isNullable() is not accurate when the type denotes a type parameter: a parameter can be not null (isNullable=false), but its upper bound can be nullable (<T: Any?>), so null may appear in the value of such type. Therefore it's preferred to use a special check (isNullableType()) in codegen from now on Do not generate assertion for parameters of not-null types which have a nullable upper bound + the same with Java method calls Also fix Intrinsics class internal name in tests #KT-3313 Fixed
4 lines
51 B
Kotlin
4 lines
51 B
Kotlin
fun foo<T>(a: List<T>) {
|
|
val t: T = a.get(0)
|
|
}
|