# HG changeset patch # User lindquist # Date 1196217277 -3600 # Node ID a939ec89fc722afb2be7326da000523dc2d3f3bb # Parent 7f9a0a58394b6ddfa6ef1c1d0991cd12f8930d45 [svn r128] function local typedefs were not working diff -r 7f9a0a58394b -r a939ec89fc72 gen/toir.cpp --- a/gen/toir.cpp Wed Nov 28 03:01:51 2007 +0100 +++ b/gen/toir.cpp Wed Nov 28 03:34:37 2007 +0100 @@ -104,6 +104,12 @@ Logger::println("ClassDeclaration"); DtoForceConstInitDsymbol(e); } + // typedef + else if (TypedefDeclaration* tdef = declaration->isTypedefDeclaration()) + { + Logger::println("TypedefDeclaration"); + tdef->type->getTypeInfo(NULL); + } // unsupported declaration else { diff -r 7f9a0a58394b -r a939ec89fc72 test/bug78.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/bug78.d Wed Nov 28 03:34:37 2007 +0100 @@ -0,0 +1,8 @@ +module bug78; + +void main() +{ + typedef int int_t = 42; + int_t i; + assert(i == int_t.init); +} \ No newline at end of file