]>
Commit | Line | Data |
---|---|---|
7da827c9 IB |
1 | /* |
2 | TEST_OUTPUT: | |
3 | --- | |
4 | fail_compilation/fail252.d(13): Error: cannot implicitly override base class method `fail252.Timer.Task.run` with `fail252.Timer.__anonclass1.run`; add `override` attribute | |
5 | --- | |
6 | */ | |
b4c522fa IB |
7 | class Timer { |
8 | abstract class Task { | |
9 | public abstract void run(); | |
10 | } | |
11 | private Task IDLE = new class() Task { | |
12 | int d; | |
13 | public void run(){ | |
14 | } | |
15 | }; | |
16 | } |