Mercurial > projects > ddmd
diff dmd/expression/Util.d @ 159:2e2ed2632ccc
overloadApply bug fixed (visitor is a struct and thus should be passed by reference)
author | korDen |
---|---|
date | Sun, 19 Sep 2010 07:16:57 +0400 |
parents | 80f4806ffa13 |
children | d237b38b5858 |
line wrap: on
line diff
--- a/dmd/expression/Util.d Sun Sep 19 06:54:31 2010 +0400 +++ b/dmd/expression/Util.d Sun Sep 19 07:16:57 2010 +0400 @@ -136,7 +136,7 @@ * 0 continue * 1 done */ -bool overloadApply(Visitor)(FuncDeclaration fstart, Visitor visitor) +bool overloadApply(Visitor)(FuncDeclaration fstart, ref Visitor visitor) { FuncDeclaration f; Declaration d;