check that new expression reference resolves to class (IDEA-36082; IDEA-72934)

This commit is contained in:
anna
2013-05-07 10:33:57 +02:00
parent 46f5e570a0
commit 02e4c3acdc
3 changed files with 13 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
class Test {
void foo(Object obj) {
new <error descr="Cannot find symbol obj">obj</error>();
new <error descr="Cannot find symbol java">java</error>();
new java.lang.Object();
new Object();
}
}