mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-21 15:23:13 +01:00
Add #154 testcase.
This commit is contained in:
9
tests/mini/compile_bug-ldc-154.d
Normal file
9
tests/mini/compile_bug-ldc-154.d
Normal file
@@ -0,0 +1,9 @@
|
||||
template toInt(char[4] arg)
|
||||
{
|
||||
const uint toInt = (cast(uint[]) arg)[0];
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
auto i = toInt!("abcd");
|
||||
}
|
||||
Reference in New Issue
Block a user