dotlin-org/dotlin

Strings with $ and \n not properly transpiled

eggnstone opened this issue · 3 comments

@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")
    }
}

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")

Interesting, thanks 👍 Will be fixed

Closing this because of the Dirt restructuring.