Files
kotlin-fork/compiler/testData/diagnostics/tests/unitConversion/kt49394.kt
T
Nikolay Lunyak b8e2a17de1 [Test] Fix diagnostics arguments rendering when quotes are present
Non-capturing `(?:)` was now needed to avoid
getting an additional group that only
contains the last symbol before the closing `"`.

^KT-62711 Fixed
2023-11-03 08:14:28 +00:00

16 lines
339 B
Kotlin
Vendored

fun interface Run {
fun run()
}
fun handle(run: Run) {
//...
}
val x = {
"STRING"
}
fun test() {
handle(<!UNSUPPORTED_FEATURE("The feature \"unit conversions on arbitrary expressions\" is experimental and should be enabled explicitly. You can also change the original type of this expression to (...) -> Unit")!>x<!>)
}