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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user