aboutsummaryrefslogtreecommitdiffstats
path: root/tests/new/InterfaceConstructor.java
blob: 49a6ded3ca9188786ab602117afd56ab4e8efc04 (plain)
1
2
3
4
5
6
7
8
9
interface i {
    i() {}          // ERR: interfaces can't have constructors
}

class c {
    c(); //ERR: constructors must have bodies 

    abstract c(int i) { } //ERR: constructors can't be abstract
}