mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
23 lines
817 B
D
23 lines
817 B
D
/*
|
|
EXTRA_FILES: imports/dip22a.d
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/dip22a.d(18): Error: no property `bar` for `new Klass` of type `imports.dip22a.Klass`
|
|
fail_compilation/imports/dip22a.d(3): class `Klass` defined here
|
|
fail_compilation/dip22a.d(19): Error: no property `bar` for `Struct()` of type `imports.dip22a.Struct`
|
|
fail_compilation/imports/dip22a.d(8): struct `Struct` defined here
|
|
fail_compilation/dip22a.d(20): Error: undefined identifier `bar` in module `imports.dip22a`
|
|
fail_compilation/dip22a.d(21): Error: no property `bar` for `Template!int` of type `void`
|
|
fail_compilation/dip22a.d(22): Error: no property `bar` for `12` of type `int`
|
|
---
|
|
*/
|
|
import imports.dip22a;
|
|
|
|
void test()
|
|
{
|
|
new Klass().bar();
|
|
Struct().bar();
|
|
imports.dip22a.bar();
|
|
Template!int.bar();
|
|
12.bar();
|
|
}
|