mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-09-22 21:30:18 +02:00
Add #154 testcase.
This commit is contained in:
@@ -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