Print in ki-shell

Hi,

I try this example in a script : it’s OK

c\:>kotlinc -script char_example.kts
a


?

C:\>

Now I try same code in ki-shell

[33] val aChar: Char = 'a'
[34] println(aChar)
a
[35] println('line 1:9 token recognition error at: '\'
\line 1:9 token recognition error at: '\'
'\n')  //prints an extra newline character

How can I insert an \ in ki-shell?

Interesting, it seems to be a bug. You can continue typing it and it woks as intended
image
but it is differently a bug. Could you report it as an issue?

Yes I will do

done

1 Like