mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-27 10:03:13 +01:00
[svn r128] function local typedefs were not working
This commit is contained in:
@@ -104,6 +104,12 @@ DValue* DeclarationExp::toElem(IRState* p)
|
||||
Logger::println("ClassDeclaration");
|
||||
DtoForceConstInitDsymbol(e);
|
||||
}
|
||||
// typedef
|
||||
else if (TypedefDeclaration* tdef = declaration->isTypedefDeclaration())
|
||||
{
|
||||
Logger::println("TypedefDeclaration");
|
||||
tdef->type->getTypeInfo(NULL);
|
||||
}
|
||||
// unsupported declaration
|
||||
else
|
||||
{
|
||||
|
||||
8
test/bug78.d
Normal file
8
test/bug78.d
Normal file
@@ -0,0 +1,8 @@
|
||||
module bug78;
|
||||
|
||||
void main()
|
||||
{
|
||||
typedef int int_t = 42;
|
||||
int_t i;
|
||||
assert(i == int_t.init);
|
||||
}
|
||||
Reference in New Issue
Block a user