]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gdc.test/fail_compilation/fail252.d
d: Synchronize testsuite with upstream dmd
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail252.d
CommitLineData
7da827c9
IB
1/*
2TEST_OUTPUT:
3---
4fail_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
7class 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}