[FIR] Throw UNCHECKED_CAST instead of NO_TYPE_ARGUMENTS_ON_RHS closer to FE 1.0
This commit is contained in:
committed by
TeamCityServer
parent
87eb02a9e0
commit
15c83abfd8
+2
-2
@@ -6,11 +6,11 @@ fun <E> foo(x: Any, y: Any) : Any {
|
||||
}
|
||||
|
||||
if (1 == 2) {
|
||||
x as <!NO_TYPE_ARGUMENTS_ON_RHS!>C<!>
|
||||
x <!UNCHECKED_CAST!>as C<!>
|
||||
}
|
||||
|
||||
if (2 == 3) {
|
||||
x as? <!NO_TYPE_ARGUMENTS_ON_RHS, NO_TYPE_ARGUMENTS_ON_RHS!>C<!>
|
||||
x <!UNCHECKED_CAST!>as? C<!>
|
||||
}
|
||||
|
||||
class Outer<F> {
|
||||
|
||||
Reference in New Issue
Block a user