KT-1056 Don't allow passing type arguments to T

#KT-1056 Fixed
This commit is contained in:
Andrey Breslav
2014-11-04 10:22:13 +02:00
parent 35766dfa20
commit 8436147cec
5 changed files with 35 additions and 2 deletions
@@ -4391,6 +4391,12 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/generics"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("argumentsForT.kt")
public void testArgumentsForT() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/generics/argumentsForT.kt");
doTest(fileName);
}
@TestMetadata("ClassObjectBoundsAreNotSupported.kt")
public void testClassObjectBoundsAreNotSupported() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/generics/ClassObjectBoundsAreNotSupported.kt");