use strict; use warnings; use lib 't/issues/gh-1216/lib'; use Test::More 'tests' => 2; use Test::Fatal qw; use Module::Runtime qw; my $app; is( exception { require_module('App'); $app = App->to_app; }, undef, 'No exception when creating new app', ); isa_ok( $app, 'CODE' );