mismatching_return_type.invalid.mj 219 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
class DeepThought {
    public static void main(String[] args) {
        DeepThought a = new DeepThought();

        boolean b = a.returnTheAnswer();
    }

    public int returnTheAnswer() {
        return 42;
    }
}