Tests: move some tests to diagnostics

This commit is contained in:
Alexander Udalov
2023-08-02 12:19:33 +02:00
committed by Space Team
parent b3b9ffaea9
commit bad7fa597b
15 changed files with 112 additions and 91 deletions
@@ -0,0 +1,28 @@
// FIR_IDENTICAL
// MODULE: lib
// FILE: JavaInterface.java
public interface JavaInterface {
void foo(int javaName);
}
// MODULE: main(lib)
// FILE: test.kt
// Simple inheritance. Checks that there's no PARAMETER_NAME_CHANGED_ON_OVERRIDE warning
class SimpleSubclass : JavaInterface {
override fun foo(kotlinName: Int) {}
}
// Class extends both Java and Kotlin interfaces. Checks that there's no DIFFERENT_NAMES_FOR_THE_SAME_PARAMETER_IN_SUPERTYPES warning
interface KotlinInterface {
public fun foo(someOtherName: Int) {}
}
class BothTraitsSubclass : JavaInterface, KotlinInterface {
override fun foo(someOtherName: Int) {
super.foo(someOtherName)
}
}