KT-11404: additional test to cover indirect inheritance
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
// "Let 'B' implement interface 'A'" "false"
|
||||
// ACTION: Add 'a =' to argument
|
||||
// ACTION: Convert to expression body
|
||||
package let.implement
|
||||
|
||||
fun bar() {
|
||||
foo(B()<caret>)
|
||||
}
|
||||
|
||||
|
||||
fun foo(a: A) {
|
||||
}
|
||||
|
||||
interface A
|
||||
interface InBetween : A
|
||||
class B : InBetween
|
||||
@@ -7354,6 +7354,12 @@ public class QuickFixTestGenerated extends AbstractQuickFixTest {
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("letClassImplementIndirectlyInheritedInterface.kt")
|
||||
public void testLetClassImplementIndirectlyInheritedInterface() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/typeMismatch/letClassImplementIndirectlyInheritedInterface.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("letClassImplementInterface.kt")
|
||||
public void testLetClassImplementInterface() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/typeMismatch/letClassImplementInterface.kt");
|
||||
|
||||
Reference in New Issue
Block a user