<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.2.2">
</HEAD>
<BODY>
Simple template:<BR>
<BR>
T test(T)() { return T.init; }<BR>
<BR>
This code give error:<BR>
<BR>
int myVar;<BR>
myVar = test();<BR>
<BR>
Why? Can't compiler guess T == int?<BR>
<BR>
</BODY>
</HTML>