Tests: move some tests to diagnostics
This commit is contained in:
committed by
Space Team
parent
b3b9ffaea9
commit
bad7fa597b
Vendored
+28
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user