[Issue 10334] ddoc should prefer simple syntax for template instantiations with one parameter
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jun 17 18:01:03 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10334
bearophile_hugs at eml.cc changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bearophile_hugs at eml.cc
--- Comment #5 from bearophile_hugs at eml.cc 2013-06-17 18:01:01 PDT ---
This code:
template isBar(T) {
enum isBar = false;
}
template Foo(T) if (isBar!T) {
}
void main() {
alias F = Foo!int;
}
Gives (before this patch):
temp.d(7): Error: template instance Foo!(int) does not match template
declaration Foo(T) if (isBar!(T))
isn't it better to use that ddoc logic to generate a simpler error message
similar to:
temp.d(7): Error: template instance Foo!(int) does not match template
declaration Foo(T) if (isBar!T)
--
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