[Test] Add ability to specify applicability of diagnostic to module or file

This commit is contained in:
Dmitriy Novozhilov
2021-01-15 14:54:05 +03:00
committed by TeamCityServer
parent 28cff22cd0
commit 6a7cd0c811
117 changed files with 266 additions and 189 deletions
@@ -1,4 +1,5 @@
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// FILE: Simple.java
public interface Simple {
@@ -12,7 +13,6 @@ public interface Simple {
}
// FILE: main.kt
// JVM_TARGET: 1.8
class TestClass : Simple {
override fun test(): String {
return super.test()
@@ -22,4 +22,4 @@ class TestClass : Simple {
fun box(): String {
return TestClass().test() + Simple.testStatic()
}
}
@@ -1,4 +1,5 @@
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// FILE: Simple.java
public interface Simple {
@@ -12,7 +13,6 @@ public interface Simple {
}
// FILE: main.kt
// JVM_TARGET: 1.8
interface KSimple : Simple {}
class TestClass : KSimple {
@@ -24,4 +24,4 @@ class TestClass : KSimple {
fun box(): String {
return TestClass().test() + Simple.testStatic()
}
}