6ee987fa2e
These only apply when the receiver can be resolved to a constant and the margin prefix, if specified, is also a constant.
21 lines
357 B
Kotlin
Vendored
21 lines
357 B
Kotlin
Vendored
fun notConstant(arg: String): String {
|
|
return arg.trimIndent()
|
|
}
|
|
|
|
fun interpolated(arg: Int):String {
|
|
return """
|
|
Hello,
|
|
$arg
|
|
""".trimIndent()
|
|
}
|
|
|
|
fun notInvoked():String {
|
|
return """
|
|
Hello,
|
|
World
|
|
"""
|
|
}
|
|
|
|
// 1 LDC "\\n Hello,\\n World\\n "
|
|
// 2 INVOKESTATIC kotlin/text/StringsKt.trimIndent
|