f38c0cf348
Similarly to FIR diagnostic tests. This commit enable all available test data and check the reported error messages by FIR. This helps identify some issues in formatting of FIR diagnostics. The changes on the test file are mechanically generated. Failed tests are disabled with `// IGNORE_FIR` and are re-enabled in the second commit.
24 lines
579 B
Kotlin
Vendored
24 lines
579 B
Kotlin
Vendored
fun demo() {
|
|
val abc = 1
|
|
val a = ""
|
|
val asd = 1
|
|
val bar = 5
|
|
fun map(f : () -> Any?) : Int = 1
|
|
fun buzz(f : () -> Any?) : Int = 1
|
|
val sdf = 1
|
|
val foo = 3;
|
|
use("$abc")
|
|
use("$")
|
|
use("$.$.asdf$\t")
|
|
use("asd\$")
|
|
use("asd$a\x")
|
|
use("asd$a$asd$ $<error descr="[UNRESOLVED_REFERENCE] Unresolved reference: xxx">xxx</error>")
|
|
use("fosdfasdo${1 + bar + 100}}sdsdfgdsfsdf")
|
|
use("foo${bar + map {foo}}sdfsdf")
|
|
use("foo${bar + map { "foo" }}sdfsdf")
|
|
use("foo${bar + map {
|
|
"foo$sdf${ buzz{}}" }}sdfsdf")
|
|
}
|
|
|
|
fun use(s: String) {}
|