mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
LVTI: warn on references to illegal class var (IDEA-180079)
This commit is contained in:
+4
@@ -2,4 +2,8 @@ class Main {
|
||||
class <error descr="'var' is a restricted local variable type and cannot be used for type declarations">var</error> {}
|
||||
|
||||
<<error descr="'var' is a restricted local variable type 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>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user