mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
[JVM IR] Maintain KT-36625 bug compatibility between non-IR and IR
backends by removing IMPLICIT_NOTNULL casts from IrStringConcatenation
arguments.
Also fixed an issue where IrStringConcatenation can be lowered into
a null String instead of a literal "null" String if the lone argument
was a platform type String or String with enhanced nullability and the
value was null (e.g., "${FromJava.nullPlatformString()}").
This commit is contained in:
committed by
Dmitry Petrov
parent
18a3d7ee08
commit
ba606147c9
@@ -1,8 +1,6 @@
|
||||
// IGNORE_BACKEND: JVM
|
||||
|
||||
fun f(s: String) = "$s"
|
||||
|
||||
fun g(s: String?) = "$s"
|
||||
|
||||
// 1 valueOf
|
||||
// 2 valueOf
|
||||
// 0 NEW java/lang/StringBuilder
|
||||
Reference in New Issue
Block a user