blob: 87e451bcf09c0b1474db2158a9204b0b0aa10567 [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/fail116.d(11): Error: circular typeof definition
fail_compilation/fail116.d(16): Error: template instance square!1.2 does not match template declaration square(_error_ x)
---
*/
// Issue 405 - typeof in TemplateParameterList causes compiletime segmentfault
template square(typeof(x) x)
{
const square = x * x;
}
const b = square!(1.2);