[Issue 6310] Missing "template instantiation" traceback when an error happens in the template parameter of an alias.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jul 20 03:22:18 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6310
--- Comment #3 from kennytm at gmail.com 2011-07-20 03:22:10 PDT ---
One more test case.
---------------------------
void f()() {}
@safe int g(alias key)() {
typeof(key(0)) k; // line 3.
f();
return 0;
}
void main() {
g!((int x) {
auto y = &x + 1;
return 0;
})();
}
---------------------------
x.d(3): Error: safe function 'g' cannot call system delegate '__dgliteral1'
---------------------------
--
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