In Kotlin a pair of single quotes denotes a character, but there is no handling for the case of a double quote inside the single quotes, leading to this:
Here is the code.
fun test() {
val char = myChar()
if (char == '"') {
println("Got double quote.")
}
}