Added test for KT-334 Can't use java.lang.Comparable by the short name
#KT-334 obsolete
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
import <!PLATFORM_CLASS_MAPPED_TO_KOTLIN!>java.lang.Comparable<!> as Comparable
|
||||
|
||||
fun f(c: <!PLATFORM_CLASS_MAPPED_TO_KOTLIN!>Comparable<*><!>) {
|
||||
<!TYPE_MISMATCH!>c<!>: jet.Comparable<*>
|
||||
c: <!PLATFORM_CLASS_MAPPED_TO_KOTLIN!>java.lang.Comparable<*><!>
|
||||
}
|
||||
@@ -3623,6 +3623,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
|
||||
doTest("compiler/testData/diagnostics/tests/regressions/kt328.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt334.kt")
|
||||
public void testKt334() throws Exception {
|
||||
doTest("compiler/testData/diagnostics/tests/regressions/kt334.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt335.336.kt")
|
||||
public void testKt335_336() throws Exception {
|
||||
doTest("compiler/testData/diagnostics/tests/regressions/kt335.336.kt");
|
||||
|
||||
Reference in New Issue
Block a user