Test for KT-3331 RuntimeException in frontend-java at TypeVariableResolverFromTypeDescriptors.getTypeVariable()

#KT-3331 obsolete
This commit is contained in:
Evgeny Gerashchenko
2013-05-21 13:14:28 +04:00
committed by Natalia.Ukhorskaya
parent 6c12b694af
commit f6a6b55ffa
3 changed files with 27 additions and 0 deletions
@@ -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");