mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-09-23 22:00:20 +02:00
[svn r26] * Fixed templates defining a constant value
* Fixed problem with slice-slice copy assignment if a side was a temporary slice
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
module globals2;
|
||||
|
||||
template Bool(bool b)
|
||||
{
|
||||
const bool Bool = b;
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
assert(Bool!(true));
|
||||
assert(!Bool!(false));
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
module stdiotest;
|
||||
|
||||
import std.stdio;
|
||||
|
||||
void main()
|
||||
{
|
||||
writefln("hello world",42,'x');
|
||||
}
|
||||
Reference in New Issue
Block a user