Using DMD 2.063.
Not sure if this is related to bug 275 or some other.
----------
template DECLARE_HANDLE() {
struct HINTERNET { int h; }
}
const INTERNET_INVALID_STATUS_CALLBACK = cast(INTERNET_STATUS_CALLBACK) -1;
mixin DECLARE_HANDLE;
alias void function(HINTERNET) INTERNET_STATUS_CALLBACK;
----------
C:\Users\Stewart\Documents\Programming\D\win32>dmd -c wininet.d
wininet.d(9): Error: undefined identifier HINTERNET
----------
Comment #1 by dlang-bot — 2019-05-24T10:11:30Z
@RazvanN7 updated dlang/dmd pull request #9873 "Fix Issue 1170 - Cannot forward reference a type defined in a MixinStatement" fixing this issue:
- Fix Issue 1170 and 10739 - Cannot forward reference a type defined in a MixinStatement
https://github.com/dlang/dmd/pull/9873
Comment #2 by dlang-bot — 2019-05-25T06:06:09Z
dlang/dmd pull request #9873 "Fix Issue 1170 - Cannot forward reference a type defined in a MixinStatement" was merged into master:
- 462fdccb04d93b37aebb02643253e281eb7e00e2 by RazvanN7:
Fix Issue 1170 and 10739 - Cannot forward reference a type defined in a MixinStatement
https://github.com/dlang/dmd/pull/9873