The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use lib 't', 'lib';
use strict;
use warnings;

package XXX;
use Spiffy -base;
const foo => 42;

package main;
use Test::More tests => 3;

my $xxx = XXX->new;
is($xxx->foo, 42);
is($xxx->foo(69), 42);
is($xxx->foo, 42);