[FE 1.0] Don't throw empty intersection exception, return empty intersection type instead
This commit is contained in:
committed by
teamcity
parent
a798fe0b18
commit
5b5da025f4
+22
@@ -0,0 +1,22 @@
|
||||
// WITH_STDLIB
|
||||
|
||||
// FILE: Test.java
|
||||
public interface Test<K> implements I<String> {}
|
||||
|
||||
// FILE: Test2.java
|
||||
public interface Test2<K, M>
|
||||
|
||||
// FILE: Test3.java
|
||||
public interface Test3<K> {}
|
||||
|
||||
// FILE: I.java
|
||||
public interface I<K> {}
|
||||
|
||||
// FILE: main.kt
|
||||
fun main(z: I<String>) {
|
||||
z <!UNCHECKED_CAST!>as Test<Test2<Int, *>><!>
|
||||
z <!USELESS_CAST!>as Test<Test2<Int, <!UNRESOLVED_REFERENCE!>Foo<!>>><!>
|
||||
z <!USELESS_CAST!>as Test<<!UNRESOLVED_REFERENCE!>Foo<!>><!>
|
||||
z as <!UNRESOLVED_REFERENCE!>Any2<!>
|
||||
println(z)
|
||||
}
|
||||
Reference in New Issue
Block a user