From: Matt S Trout Date: Wed, 4 Apr 2012 04:12:08 +0000 (+0000) Subject: stop variable getting detached in lazy test X-Git-Tag: v0.009_015~15 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=efab921092f4ef5b0939fadcd27c02e764e2b78c;p=gitmo%2FMoo.git stop variable getting detached in lazy test --- diff --git a/xt/moose-lazy.t b/xt/moose-lazy.t index 9e17583..20a2fa2 100644 --- a/xt/moose-lazy.t +++ b/xt/moose-lazy.t @@ -26,9 +26,9 @@ use Moo::HandleMoose; has frew => ( is => 'rw', default => quote_sub(q{ - $quoted_default_ran = 1; + $$quoted_default_ran = 1; 'test frew' - }, { '$quoted_default_ran' => \$quoted_default_ran }), + }, { '$quoted_default_ran' => \\$quoted_default_ran }), lazy => 1, );