Mercurial > projects > dang
diff ast/Decl.d @ 163:362265427838
Fixes to types for constructor and also removed DFunction's from DStruct, DClass and DInterface
author | Anders Johnsen <skabet@gmail.com> |
---|---|
date | Tue, 22 Jul 2008 16:50:47 +0200 |
parents | 6c5a3c0bb4fb |
children | 09150374ddf9 |
line wrap: on
line diff
--- a/ast/Decl.d Tue Jul 22 16:22:58 2008 +0200 +++ b/ast/Decl.d Tue Jul 22 16:50:47 2008 +0200 @@ -184,7 +184,10 @@ return myType; auto t = new DFunction(identifier); - t.returnType = env.findType(returnType.get); + if ( identifier.get == "this" ) + t.returnType = DType.Void; + else + t.returnType = env.findType(returnType.get); SmallArray!(DType) array; foreach (a; funcArgs) array ~= a.type();