The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use Test::More tests => 1;
use Test::Fatal;

use MooseX::Declare;

role ProvidesFooAttribute {
    has foo => ( is => 'ro' );
}

is( exception {
    class Consumer {
        with 'ProvidesFooAttribute';
        has '+foo' => ( isa => 'Int' );
    }
}, undef, 'Delayed role application does not play nice with has +foo');