September 22, 2013 [Issue 11098] New: template instance x cannot use local y as parameter to non-global template z | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=11098 Summary: template instance x cannot use local y as parameter to non-global template z Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: simendsjo@gmail.com --- Comment #0 from simendsjo <simendsjo@gmail.com> 2013-09-22 07:04:24 PDT --- Using dmd head. template A(T...) { template B(alias T) { } } void main() { void fv() {} alias A!(fv) F; F.B!F; } t.d(8): Error: template instance B!(A!(fv)) cannot use local 'A!(fv)' as parameter to non-global template B(alias T) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation