[Issue 1913] Template error message reports correct line # but wrong file
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Mar 25 15:25:22 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1913
------- Comment #1 from simen.kjaras at gmail.com 2008-03-25 17:25 -------
Simpler code to showcase the error. Bug is in message #1
BEGIN MODULE "a.d"
module a;
import b;
void main()
{
int bar;
foo!(bar) baz;
}
BEGIN MODULE "b.d"
module b;
struct foo(alias T)
{
mixin T;
}
END CODE
COMPILER OUTPUT
a.d(5): mixin T isn't a template
a.d(7): template instance a.main.foo!(bar) error instantiating
--
More information about the Digitalmars-d-bugs
mailing list