IDEA-226284 Warn about unqualified 'yield' method usage

GitOrigin-RevId: ec260801f8968d0f70f919cf4104fd2c9a3498ed
This commit is contained in:
Tagir Valeev
2019-11-07 02:40:58 +00:00
committed by intellij-monorepo-bot
parent c785fc97ed
commit 9ab9138cdf
15 changed files with 172 additions and 9 deletions
@@ -0,0 +1,25 @@
// "Fix all 'Javac quirks' problems in file" "true"
class Yield {
class X {
void test() {
<caret>yield("x");
yield(1);
}
}
void test() {
yield("x");
yield(1);
}
void varYield() {
int yield = 5;
yield++;
yield = 7;
}
void yield(int x) {}
static void yield(String x) {
}
}