mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
Remove Concat and StringPlus intrinsics in favor of IrStringConcatenation.
This commit is contained in:
committed by
max-kammerer
parent
26c9d69252
commit
f2392a6a28
17
compiler/testData/codegen/bytecodeText/stringOperations/stringPlus.kt
vendored
Normal file
17
compiler/testData/codegen/bytecodeText/stringOperations/stringPlus.kt
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
// IGNORE_BACKEND: JVM
|
||||
|
||||
fun f(s: String?, t: String): String {
|
||||
return s.plus(t)
|
||||
}
|
||||
|
||||
fun g(s: String, t: Any?): String {
|
||||
return "$s$t"
|
||||
}
|
||||
|
||||
fun h(s: String, t: Any?): String {
|
||||
return s + t
|
||||
}
|
||||
|
||||
// 0 valueOf
|
||||
// 0 NEW java/lang/StringBuilder
|
||||
// 3 INVOKESTATIC kotlin/jvm/internal/Intrinsics.stringPlus
|
||||
Reference in New Issue
Block a user