[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:
+6
-2
@@ -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
|
||||
+6
-2
@@ -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
-1
@@ -1,4 +1,4 @@
|
||||
// !LANGUAGE: +ContextReceivers
|
||||
// LANGUAGE: +ContextReceivers
|
||||
class Ctx1
|
||||
class Ctx2
|
||||
class Ctx3
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// !LANGUAGE: +ContextReceivers
|
||||
// LANGUAGE: +ContextReceivers
|
||||
class Ctx1
|
||||
class Ctx2
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// !LANGUAGE: +ContextReceivers
|
||||
// LANGUAGE: +ContextReceivers
|
||||
class Ctx1
|
||||
class Ctx2
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// !LANGUAGE: +ContextReceivers
|
||||
// LANGUAGE: +ContextReceivers
|
||||
class Ctx1
|
||||
class Ctx2
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// !LANGUAGE: +ContextReceivers
|
||||
// LANGUAGE: +ContextReceivers
|
||||
class Ctx1
|
||||
|
||||
context(Ctx1)
|
||||
|
||||
Reference in New Issue
Block a user