mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
15 lines
244 B
D
15 lines
244 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail7234.d(14): Error: no property `empty` for type `Contract*`, perhaps `import std.range;` is needed?
|
|
---
|
|
*/
|
|
|
|
struct Contract {
|
|
void opDispatch()(){}
|
|
}
|
|
|
|
void foo()
|
|
{
|
|
Contract* r; if (r.empty) {}
|
|
}
|