gcc/testsuite/gdc.test/compilable/test19746.d
raw| 1 | // REQUIRED_ARGS: -Icompilable/imports |
| 2 | // EXTRA_FILES: imports/test19746a.d imports/test19746b.d imports/test19746c.d imports/test19746d.d |
| 3 | import test19746c; |
| 4 | import test19746b: Frop; |
| 5 | |
| 6 | template Base(T) |
| 7 | { |
| 8 | static if (is(T == super)) alias Base = Object; |
| 9 | } |
| 10 | |
| 11 | class Foo |
| 12 | { |
| 13 | class Nested: Base!Foo { } |
| 14 | void func(Frop) { } |
| 15 | void thunk() { } |
| 16 | } |