| 1 |
/* |
| 2 |
EXTRA_FILES: imports/a11919.d |
| 3 |
TEST_OUTPUT: |
| 4 |
--- |
| 5 |
fail_compilation/ice11919.d(18): Error: initializer must be an expression, not `foo` |
| 6 |
fail_compilation/imports/a11919.d(4): Error: template instance `a11919.doBar!(Foo).doBar.zoo!(t)` error instantiating |
| 7 |
fail_compilation/imports/a11919.d(11): instantiated from here: `doBar!(Foo)` |
| 8 |
fail_compilation/ice11919.d(26): instantiated from here: `doBar!(Bar)` |
| 9 |
--- |
| 10 |
*/ |
| 11 |
|
| 12 |
import imports.a11919; |
| 13 |
|
| 14 |
enum foo; |
| 15 |
|
| 16 |
class Foo |
| 17 |
{ |
| 18 |
@foo bool _foo; |
| 19 |
} |
| 20 |
|
| 21 |
class Bar : Foo {} |
| 22 |
|
| 23 |
void main() |
| 24 |
{ |
| 25 |
auto bar = new Bar(); |
| 26 |
bar.doBar; |
| 27 |
} |