changeset 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 ff61fb0e06ae
files dmd/expression/Util.d
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;