Jvm Codegen: do not throw on malformed delegation to a type parameter

Fix exception on light class building

See KT-15931
This commit is contained in:
Pavel V. Talanov
2017-06-05 14:58:50 +03:00
parent 19db4304bd
commit bdf76f23c4
4 changed files with 51 additions and 14 deletions
@@ -0,0 +1,15 @@
package c
class C<T>: <error>T</error> by <error>{
}</error>
class D<T>: <error>T</error> by<EOLError></EOLError>
class G<T> : <error>T</error> by <error>{
val c = 3
}</error>
interface I
class A<T : I>(a: T) : <error>T</error> by a
@@ -551,6 +551,12 @@ public class PsiCheckerTestGenerated extends AbstractPsiCheckerTest {
doTest(fileName);
}
@TestMetadata("IncompleteClassDelegation.kt")
public void testIncompleteClassDelegation() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/checker/regression/IncompleteClassDelegation.kt");
doTest(fileName);
}
@TestMetadata("InitializerInInterface.kt")
public void testInitializerInInterface() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/checker/regression/InitializerInInterface.kt");