stop variable getting detached in lazy test
Matt S Trout [Wed, 4 Apr 2012 04:12:08 +0000 (04:12 +0000)]
xt/moose-lazy.t

index 9e17583..20a2fa2 100644 (file)
@@ -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,
    );