Bug 1825 – local instantiation and function nesting

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2008-02-09T05:08:00Z
Last change time
2015-06-09T05:15:19Z
Assigned to
bugzilla
Creator
bugzilla

Comments

Comment #0 by bugzilla — 2008-02-09T05:08:09Z
The following should compile, as fun1 can be instantiated within fun2. import std.stdio; void fun1(alias pred1, alias pred2)() { pred1(1); pred2(2); } void fun2(alias pred1)() { void local(int x) { writeln("fun2.local: ", x); } fun1!(pred1, local)(); } void main() { void local(int x) { writeln("main.local: ", x); } fun2!(local)(); }
Comment #1 by bugzilla — 2008-02-28T22:42:53Z
Fixed dmd 1.027 and 2.011