Add source range test around multi-line calls

This commit is contained in:
Mikhail Glukhikh
2023-10-12 13:47:53 +02:00
committed by Space Team
parent 0fb4c9b4fe
commit 7c66a3dc65
6 changed files with 264 additions and 0 deletions
+46
View File
@@ -0,0 +1,46 @@
// WITH_STDLIB
fun foo() {
test().
test().
fail()
}
inline fun test(): String {
return "123"
}
inline fun String.test(): String {
return "123"
}
fun String.fail(): String {
throw AssertionError("fail")
}
fun bar() {
"123".
test
}
val String.test: String
get() = this
fun baz() {
E.
SINGLE
O::
foo
""::
fail
}
enum class E {
SINGLE
}
object O {
fun foo() {}
}