mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Fixes IDEA-230808 Disallow usage of 'record' as type name Fixes IDEA-226604 Disallow using the 'yield' as the class name since Java 14 GitOrigin-RevId: a97753893fd8d0dac98a1a76f499b8c9474c3a7f
9 lines
441 B
Java
9 lines
441 B
Java
class Main {
|
|
class <error descr="'var' is a restricted identifier and cannot be used for type declarations">var</error> {}
|
|
|
|
<<error descr="'var' is a restricted identifier and cannot be used for type declarations">var</error> extends String> void foo() {}
|
|
|
|
class Usage {
|
|
<error descr="Illegal reference to restricted type 'var'">var</error> field = new <error descr="Illegal reference to restricted type 'var'">var</error>();
|
|
}
|
|
} |