VoidAttribute.invalid.mj 183 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
/**
 * Declare void as type for variale
 * java:6: error: '(' expected -> for method
 */
class VoidAttribute {

    public void a;

    public static void main(String[] args) {}

}