Test for KT-3331 RuntimeException in frontend-java at TypeVariableResolverFromTypeDescriptors.getTypeVariable()
#KT-3331 obsolete
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package test
|
||||
|
||||
public trait A<T> {
|
||||
fun bar(): T
|
||||
fun foo(): T = bar()
|
||||
}
|
||||
|
||||
public class B : A<String> {
|
||||
override fun bar() = ""
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package test
|
||||
|
||||
public trait A</*0*/ T> {
|
||||
internal abstract fun bar(): T
|
||||
internal open fun foo(): T
|
||||
}
|
||||
|
||||
public final class B : test.A<jet.String> {
|
||||
/*primary*/ public constructor B()
|
||||
internal open override /*1*/ fun bar(): jet.String
|
||||
internal open override /*1*/ /*fake_override*/ fun foo(): jet.String
|
||||
}
|
||||
@@ -128,6 +128,11 @@ public class LoadCompiledKotlinTestGenerated extends AbstractLoadCompiledKotlinT
|
||||
doTestWithAccessors("compiler/testData/loadKotlin/class/InheritClassWithParam.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritSubstitutedMethod.kt")
|
||||
public void testInheritSubstitutedMethod() throws Exception {
|
||||
doTestWithAccessors("compiler/testData/loadKotlin/class/InheritSubstitutedMethod.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InheritTraitWithParam.kt")
|
||||
public void testInheritTraitWithParam() throws Exception {
|
||||
doTestWithAccessors("compiler/testData/loadKotlin/class/InheritTraitWithParam.kt");
|
||||
|
||||
Reference in New Issue
Block a user