Error on using extension function type as an upper bound

This commit is contained in:
Michael Nedzelsky
2015-10-28 18:46:09 +03:00
parent ee46ec1126
commit c318a13e6c
10 changed files with 70 additions and 5 deletions
@@ -16563,6 +16563,18 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("extFunctionTypeAsUpperBound.kt")
public void testExtFunctionTypeAsUpperBound() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/typeParameters/extFunctionTypeAsUpperBound.kt");
doTest(fileName);
}
@TestMetadata("functionTypeAsUpperBound.kt")
public void testFunctionTypeAsUpperBound() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/typeParameters/functionTypeAsUpperBound.kt");
doTest(fileName);
}
@TestMetadata("misplacedConstraints.kt")
public void testMisplacedConstraints() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/typeParameters/misplacedConstraints.kt");