Bug 19118 – Types defined in the template specification 'if' are not usable in the template

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2018-07-26T16:23:47Z
Last change time
2024-12-13T18:59:54Z
Assigned to
No Owner
Creator
Yuxuan Shui
Moved to GitHub: dmd#19467 →

Comments

Comment #0 by yshuiv7 — 2018-07-26T16:23:47Z
template Test(T) if (is(T == Nullable!S, S)) { alias tmp = S; // S is undefined } This is quite inconvenient.
Comment #1 by robert.schadek — 2024-12-13T18:59:54Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19467 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB