Files
kotlin-fork/compiler/testData/diagnostics/tests/kt34440.fir.kt
T
Dmitriy Novozhilov 329066a4f3 [Parser] Fix parsing of unfinished dot access in string template
Problem appeared in cases like this: "{someVar.}"

#KT-34440 Fixed
2020-12-16 17:57:56 +03:00

10 lines
233 B
Kotlin
Vendored

// ISSUE: KT-34440
class BufferUtil {
fun isDirect(cond: Boolean): Boolean =
when (cond) {
else -> throw Exception("${buf.<!SYNTAX!><!>}")
}
private class BufferInfo(private val type: Class<*>)
}