Add test for KT-6240: create custom renderer for generic class

#KT-6240 Open
This commit is contained in:
Natalia Ukhorskaya
2014-11-12 15:17:21 +03:00
parent 12b4fc7ad9
commit c9e5099307
3 changed files with 11 additions and 0 deletions
@@ -0,0 +1,4 @@
// KT-6240
class <caret>A<T> {
fun foo(t: T)
}
@@ -0,0 +1 @@
this.foo(<error descr="[TYPE_MISMATCH] Type mismatch: inferred type is kotlin.String but T was expected">"a"</error>)
@@ -63,6 +63,12 @@ public class CodeFragmentHighlightingTestGenerated extends AbstractCodeFragmentH
doTest(fileName);
}
@TestMetadata("classHeaderWithTypeArguments.kt")
public void testClassHeaderWithTypeArguments() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/checker/codeFragments/classHeaderWithTypeArguments.kt");
doTest(fileName);
}
@TestMetadata("contextElementAsStatement.kt")
public void testContextElementAsStatement() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/checker/codeFragments/contextElementAsStatement.kt");