gcc/testsuite/gdc.test/fail_compilation/diag10089.d
raw| 1 | /* |
| 2 | EXTRA_FILES: imports/diag10089a.d imports/diag10089b.d |
| 3 | TEST_OUTPUT: |
| 4 | --- |
| 5 | fail_compilation/diag10089.d(16): Error: undefined identifier `chunks` in package `imports` |
| 6 | fail_compilation/diag10089.d(18): Error: template `Foo()` does not have property `chunks` |
| 7 | --- |
| 8 | */ |
| 9 | |
| 10 | import imports.diag10089a, imports.diag10089b; |
| 11 | |
| 12 | template Foo() {} |
| 13 | |
| 14 | void main() |
| 15 | { |
| 16 | imports.chunks("abcdef", 2); |
| 17 | |
| 18 | Foo.chunks("abcdef", 2); |
| 19 | } |