mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-11-03 15:47:26 +01:00
[svn r120] ModuleInfo implementation is now almost complete.
Fixed some nasty static array-initializer bugs. Fixed bug in DtoArrayLen and DtoArrayPtr for full slices of static arrays.
This commit is contained in:
+5
-2
@@ -1,7 +1,10 @@
|
||||
module bug51;
|
||||
const ubyte[3] arr1 = 0;
|
||||
const ubyte[3] arr2 = [0];
|
||||
const ubyte[3] arr1 = 1;
|
||||
const ubyte[3] arr2 = [1];
|
||||
const ubyte[3] arr3 = [1:1];
|
||||
void main()
|
||||
{
|
||||
assert(arr1 == [cast(ubyte)1,1,1][]);
|
||||
assert(arr2 == [cast(ubyte)1,0,0][]);
|
||||
assert(arr3 == [cast(ubyte)0,1,0][]);
|
||||
}
|
||||
|
||||
+27
-2
@@ -1,11 +1,36 @@
|
||||
module moduleinfo1;
|
||||
|
||||
// has static this
|
||||
import std.outofmemory;
|
||||
|
||||
static this()
|
||||
{
|
||||
}
|
||||
|
||||
static this()
|
||||
{
|
||||
}
|
||||
|
||||
static ~this()
|
||||
{
|
||||
}
|
||||
|
||||
static ~this()
|
||||
{
|
||||
}
|
||||
|
||||
unittest
|
||||
{
|
||||
}
|
||||
|
||||
class C
|
||||
{
|
||||
}
|
||||
|
||||
void main()
|
||||
class D : C
|
||||
{
|
||||
C c;
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user