[Analysis API] Fix test data for context receivers

Currently, the test files are only analyzed as source code, and present
errors do not affect code fragment analysis. In the following commits,
however, the test files will be compiled to test code fragment
analysis against library sources.
This commit is contained in:
Yan Zhulanow
2023-08-22 15:45:32 +09:00
committed by Space Team
parent 58350b83a8
commit 705a97e9d4
7 changed files with 17 additions and 9 deletions
@@ -1,5 +1,7 @@
fun test() {
call(Foo())
with(Foo()) {
call()
}
}
context(Foo)
@@ -9,4 +11,6 @@ fun call() {
class Foo {
val foo: String = "foo"
}
}
// LANGUAGE: +ContextReceivers
@@ -1,5 +1,7 @@
fun test() {
call(Foo())
with(Foo()) {
call()
}
}
context(Foo)
@@ -9,4 +11,6 @@ fun call() {
class Foo {
val foo: String = "foo"
}
}
// LANGUAGE: +ContextReceivers
@@ -1,4 +1,4 @@
// !LANGUAGE: +ContextReceivers
// LANGUAGE: +ContextReceivers
class Ctx1
class Ctx2
class Ctx3
@@ -1,4 +1,4 @@
// !LANGUAGE: +ContextReceivers
// LANGUAGE: +ContextReceivers
class Ctx1
class Ctx2
@@ -1,4 +1,4 @@
// !LANGUAGE: +ContextReceivers
// LANGUAGE: +ContextReceivers
class Ctx1
class Ctx2
@@ -1,4 +1,4 @@
// !LANGUAGE: +ContextReceivers
// LANGUAGE: +ContextReceivers
class Ctx1
class Ctx2
@@ -1,4 +1,4 @@
// !LANGUAGE: +ContextReceivers
// LANGUAGE: +ContextReceivers
class Ctx1
context(Ctx1)