Cleanup (warnings; formatting)

This commit is contained in:
Roman Shevchenko
2018-05-18 16:36:00 +03:00
parent 4a1f82f282
commit 57fb172991
2 changed files with 13 additions and 14 deletions
@@ -1,16 +1,16 @@
// Qualified new of static class
class A {
b b;
A() {
<error descr="Qualified new of static class">b.new c()</error>;
b.new inner();
}
class inner {}
b b;
A() {
<error descr="Qualified new of static class">b.new c()</error>;
b.new inner();
}
class inner {}
void f() {
char[] c = <error descr="Invalid qualified new">b.new char[0]</error>;
}
void f() {
char[] c = <error descr="Invalid qualified new">b.new char[0]</error>;
}
}
class b extends A {
@@ -19,8 +19,7 @@ class b extends A {
class WithAnonym {
interface I {
}
interface I {}
class Inner{}
}