decompiled text: add test for inherited interface

This commit is contained in:
Michael Nedzelsky
2015-09-01 02:06:30 +03:00
committed by Alexander Udalov
parent add43407d3
commit be2324031d
4 changed files with 28 additions and 0 deletions
@@ -0,0 +1,10 @@
// IntelliJ API Decompiler stub source generated from a class file
// Implementation of methods is not available
package test
internal interface Inherited : dependency.Base {
public companion object {
internal final val INT_CONST: kotlin.Int /* compiled code */
}
}
@@ -0,0 +1,3 @@
package dependency
interface Base
@@ -0,0 +1,9 @@
package test
import dependency.*
interface Inherited : Base {
companion object {
val INT_CONST = 1
}
}
@@ -77,6 +77,12 @@ public class DecompiledTextTestGenerated extends AbstractDecompiledTextTest {
doTest(fileName);
}
@TestMetadata("Inherited")
public void testInherited() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/decompiler/decompiledText/Inherited/");
doTest(fileName);
}
@TestMetadata("NestedClasses")
public void testNestedClasses() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/decompiler/decompiledText/NestedClasses/");