[RAW FIR] Use range as source of desugared loop-related statements
This commit is contained in:
committed by
Space Team
parent
61259ef34b
commit
411210b520
@@ -82,12 +82,12 @@ fun test(notRange1: NotRange1, notRange2: NotRange2, notRange3: NotRange3, notRa
|
||||
for (i in <!HAS_NEXT_MISSING, NEXT_MISSING!>notRange2<!>);
|
||||
for (i in <!NEXT_MISSING!>notRange3<!>);
|
||||
for (i in <!HAS_NEXT_MISSING!>notRange4<!>);
|
||||
<!CONDITION_TYPE_MISMATCH!>for (i in notRange5)<!>;
|
||||
for (i in <!CONDITION_TYPE_MISMATCH!>notRange5<!>);
|
||||
for (i in notRange6);
|
||||
<!CONDITION_TYPE_MISMATCH!>for (i in notRange7)<!>;
|
||||
for (i in <!CONDITION_TYPE_MISMATCH!>notRange7<!>);
|
||||
for (i in <!HAS_NEXT_MISSING!>notRange8<!>);
|
||||
for (i in range0);
|
||||
for (i in range1);
|
||||
|
||||
for (i in (checkSubtype<List<Int>>(ArrayList<Int>())));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,6 +19,6 @@ class Iter2 {
|
||||
}
|
||||
|
||||
fun use() {
|
||||
<!DEPRECATION!>for (x in Iter()) {}<!>
|
||||
<!DEPRECATION, DEPRECATION!>for (x in Iter2()) {}<!>
|
||||
for (x in <!DEPRECATION!>Iter<!>()) {}
|
||||
for (x in <!DEPRECATION, DEPRECATION!>Iter2<!>()) {}
|
||||
}
|
||||
|
||||
+1
-1
@@ -120,5 +120,5 @@ fun operatorContainerUsage(s: String, a: AnotherContainer) {
|
||||
val res1 = s <!OPT_IN_USAGE_ERROR!>-<!> s
|
||||
val res2 = <!OPT_IN_USAGE_ERROR!>s<!>()
|
||||
val res3 = <!OPT_IN_USAGE_ERROR!>res1<!> <!OPT_IN_USAGE_ERROR!>><!> <!OPT_IN_USAGE_ERROR!>res2<!>
|
||||
<!OPT_IN_USAGE_ERROR, OPT_IN_USAGE_ERROR, OPT_IN_USAGE_ERROR, OPT_IN_USAGE_ERROR, OPT_IN_USAGE_ERROR!>for (c in a) {}<!>
|
||||
for (c in <!OPT_IN_USAGE_ERROR, OPT_IN_USAGE_ERROR, OPT_IN_USAGE_ERROR, OPT_IN_USAGE_ERROR, OPT_IN_USAGE_ERROR!>a<!>) {}
|
||||
}
|
||||
|
||||
+1
-1
@@ -120,5 +120,5 @@ fun operatorContainerUsage(s: String, a: AnotherContainer) {
|
||||
val res1 = s <!OPT_IN_USAGE_ERROR!>-<!> s
|
||||
val res2 = <!OPT_IN_USAGE_ERROR!>s<!>()
|
||||
val res3 = <!OPT_IN_USAGE_ERROR!>res1<!> <!OPT_IN_USAGE_ERROR!>><!> <!OPT_IN_USAGE_ERROR!>res2<!>
|
||||
<!OPT_IN_USAGE_ERROR, OPT_IN_USAGE_ERROR, OPT_IN_USAGE_ERROR, OPT_IN_USAGE_ERROR, OPT_IN_USAGE_ERROR!>for (c in a) {}<!>
|
||||
for (c in <!OPT_IN_USAGE_ERROR, OPT_IN_USAGE_ERROR, OPT_IN_USAGE_ERROR, OPT_IN_USAGE_ERROR, OPT_IN_USAGE_ERROR!>a<!>) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user