Files
ldc/tests/mini/compile_bug-ldc-154.d
2008-12-18 08:09:01 +01:00

10 lines
132 B
D

template toInt(char[4] arg)
{
const uint toInt = (cast(uint[]) arg)[0];
}
void main()
{
auto i = toInt!("abcd");
}