[Issue 1101] Can't not deduce template correctly
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Apr 6 02:14:44 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1101
thomas-dloop at kuehne.cn changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Comment #1 from thomas-dloop at kuehne.cn 2007-04-06 04:14 -------
# template X(uint a, uint c){
# uint X(){ return 0; }
# }
#
# X(1u,2u);
According to http://www.digitalmars.com/d/template.html this doesn't the above
code doesn't seem to be legal. The following code however is legal and
compiles:
# template X(T1, T2){
# uint X(T1 a, T2 b){ return 0; }
# }
#
# X(1u,2u);
and
# template X(T){
# uint X(T a, T b){ return 0; }
# }
#
# X(1u,2u);
--
More information about the Digitalmars-d-bugs
mailing list