Skip to content

Instantly share code, notes, and snippets.

@clkao
Created March 7, 2010 08:32
Show Gist options
  • Save clkao/324245 to your computer and use it in GitHub Desktop.
Save clkao/324245 to your computer and use it in GitHub Desktop.
use strict;
use Test::More;
{
package Olive;
use Any::Moose;
extends 'OHAI';
has bar => (is => 'rw', default => sub { {} });
}
{
package OHAI;
use Moose;
has foo => (is => 'rw', default => sub { 1 });
}
my $olive = Olive->new();
isa_ok($olive->bar, 'HASH');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment