mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-16 08:20:19 +07:00
IDEA-226284 Warn about unqualified 'yield' method usage
GitOrigin-RevId: ec260801f8968d0f70f919cf4104fd2c9a3498ed
This commit is contained in:
committed by
intellij-monorepo-bot
parent
c785fc97ed
commit
9ab9138cdf
+25
@@ -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) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user