Tests: add FILE directives to some multimodule tests
To help them run on the old infrastructure, which light analysis tests are still using.
This commit is contained in:
committed by
Space Team
parent
29b6595cfc
commit
be4df35867
+4
@@ -2,6 +2,8 @@
|
||||
// ISSUE: KT-57876
|
||||
|
||||
// MODULE: lib
|
||||
// FILE: lib.kt
|
||||
|
||||
interface EnvironmentKeyProvider {
|
||||
interface NestedInterface : @EnvironmentKeyDescription Some
|
||||
|
||||
@@ -12,5 +14,7 @@ interface EnvironmentKeyProvider {
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: main.kt
|
||||
|
||||
fun bar(arg: EnvironmentKeyProvider.NestedInterface) {}
|
||||
fun box() = "OK"
|
||||
|
||||
+4
@@ -2,6 +2,8 @@
|
||||
// ISSUE: KT-57876
|
||||
|
||||
// MODULE: lib
|
||||
// FILE: lib.kt
|
||||
|
||||
interface EnvironmentKeyProvider {
|
||||
@Target(AnnotationTarget.TYPE)
|
||||
annotation class EnvironmentKeyDescription
|
||||
@@ -10,5 +12,7 @@ interface EnvironmentKeyProvider {
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: main.kt
|
||||
|
||||
fun foo(arg: EnvironmentKeyProvider) {}
|
||||
fun box() = "OK"
|
||||
|
||||
+5
@@ -1,6 +1,9 @@
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// ISSUE: KT-53698
|
||||
|
||||
// MODULE: lib
|
||||
// FILE: lib.kt
|
||||
|
||||
package foo
|
||||
|
||||
class Some(val s: String)
|
||||
@@ -8,6 +11,8 @@ class Some(val s: String)
|
||||
internal fun Some.foo(): String = s
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: main.kt
|
||||
|
||||
@file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
|
||||
package bar
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// ISSUE: KT-55026
|
||||
|
||||
// MODULE: lib
|
||||
// FILE: lib.kt
|
||||
|
||||
interface Base {
|
||||
val x: String
|
||||
}
|
||||
@@ -10,6 +12,8 @@ internal class Some(override val x: String) : Base
|
||||
internal class Other(override val x: String) : Base
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: main.kt
|
||||
|
||||
@file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
|
||||
|
||||
internal fun Some(): Base = Some("K")
|
||||
|
||||
Reference in New Issue
Block a user