mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-28 17:43:14 +01:00
[svn r123] Fixed some typeinfo module name mismatches.
Fixed D-style varargs returning through pointer. Fixed converting nested function to delegate. Added std.string and std.format to Phobos.
This commit is contained in:
12
test/bug74.d
Normal file
12
test/bug74.d
Normal file
@@ -0,0 +1,12 @@
|
||||
module bug74;
|
||||
|
||||
char[] sformat(char[] s, ...)
|
||||
{
|
||||
TypeInfo[] ti = _arguments;
|
||||
void* args = _argptr;
|
||||
return "";
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
}
|
||||
13
test/bug75.d
Normal file
13
test/bug75.d
Normal file
@@ -0,0 +1,13 @@
|
||||
module bug75;
|
||||
|
||||
void func(void delegate() dg)
|
||||
{
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
void nested() {
|
||||
}
|
||||
//func(&nested);
|
||||
void delegate() dg = &nested;
|
||||
}
|
||||
Reference in New Issue
Block a user