Strings with $ and \n not properly transpiled
eggnstone opened this issue · 3 comments
eggnstone commented
@sealed class A{@nonVirtual void f(){final String s = "x";DotlinLogger$Companion.$instance.$log("1${s}
2");DotlinLogger$Companion.$instance.$log("1
${s}
2");DotlinLogger$Companion.$instance.$log("1${s}
2");}}
class A
{
fun f()
{
val s = "x"
DotlinLogger.log("1$s\n2")
DotlinLogger.log("1\n$s\n2")
DotlinLogger.log("1${s}\n2")
}
}
eggnstone commented
It seems to be the combination because the following ones are ok:
DotlinLogger.log("1\n2")
DotlinLogger.log("1$s 2")
DotlinLogger.log("1${s}2")
wilkomanger commented
Interesting, thanks 👍 Will be fixed
wilkomanger commented
Closing this because of the Dirt restructuring.