mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
IDEA-57270 (highlight C-style void arrays)
This commit is contained in:
+8
-8
@@ -1,18 +1,18 @@
|
||||
class s {
|
||||
void f() {
|
||||
// illegal type
|
||||
class C {
|
||||
<error descr="Illegal type: 'void'">void</error>[] m1() { }
|
||||
<error descr="Illegal type: 'void'">void</error> m2()[] { }
|
||||
void m3(<error descr="Illegal type: 'void'">void</error> p) {}
|
||||
|
||||
{
|
||||
<error descr="Illegal type: 'void'">void</error>[] va;
|
||||
<error descr="Illegal type: 'void'">void</error> vv;
|
||||
class loc {
|
||||
void f(<error descr="Illegal type: 'void'">void</error> i) {}
|
||||
}
|
||||
Object o = new <error descr="Illegal type: 'void'">void</error>[1];
|
||||
Object oo = new <error descr="Illegal type: 'void'">void</error>[1];
|
||||
|
||||
// this is the only valid void usage
|
||||
Class voidClass = void.class;
|
||||
}
|
||||
|
||||
{
|
||||
void f() {
|
||||
<error descr="Incompatible types. Found: 'void', required: 'java.lang.Object'">Object o = f();</error>
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user