[Issue 540] Nested template member function error - "function expected before ()"
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Apr 24 01:18:22 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=540
kamm at incasoftware.de changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kamm at incasoftware.de
------- Comment #1 from kamm at incasoftware.de 2007-04-24 03:18 -------
You can also easily trigger this IFTI problem with named template mixins:
template A()
{
static void foo(T)(T t) {}
}
struct Bar
{
mixin A!() a;
}
void main()
{
A!().foo(1); // works
Bar.a.foo!(int)(1); // works
Bar.a.foo(1); // error
}
Error: function expected before (), not 'Bar dotexp template foo(T)'
--
More information about the Digitalmars-d-bugs
mailing list