[Issue 7447] New: Alias template within struct/class not visible when struct/class is accessed through an alias
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Feb 5 17:15:18 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7447
Summary: Alias template within struct/class not visible when
struct/class is accessed through an alias
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: smjg at iname.com
--- Comment #0 from Stewart Gordon <smjg at iname.com> 2012-02-05 17:15:17 PST ---
struct Qwert {
template yuiop(int asdfg) {
alias Qwert yuiop;
}
}
void main() {
alias Qwert Hjkl;
alias Hjkl.yuiop!(1) Zxcvb;
}
----------
alias_template.d(8): Error: alias alias_template.main.Hjkl template identifier
y
uiop is not a member of alias Hjkl
alias_template.d(8): Error: alias alias_template.main.Hjkl template identifier
y
uiop is not a member of alias Hjkl
alias_template.d(9): Error: no property 'yuiop!(1)' for type 'Qwert'
alias_template.d(9): Error: alias Zxcvb cannot alias an expression __error
----------
DMD 2.057 Win32.
No error in 1.071.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list