mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
27 lines
570 B
D
27 lines
570 B
D
/*
|
|
EXTRA_FILES: imports/a11919.d
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/ice11919.d(18): Error: initializer must be an expression, not `foo`
|
|
fail_compilation/imports/a11919.d(4): Error: template instance `a11919.doBar!(Foo).doBar.zoo!(t)` error instantiating
|
|
fail_compilation/imports/a11919.d(11): instantiated from here: `doBar!(Foo)`
|
|
fail_compilation/ice11919.d(26): instantiated from here: `doBar!(Bar)`
|
|
---
|
|
*/
|
|
|
|
import imports.a11919;
|
|
|
|
enum foo;
|
|
|
|
class Foo
|
|
{
|
|
@foo bool _foo;
|
|
}
|
|
|
|
class Bar : Foo {}
|
|
|
|
void main()
|
|
{
|
|
auto bar = new Bar();
|
|
bar.doBar;
|
|
}
|