Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (23 sloc) 0.423 kB
use strict;
use warnings;
use Test::More;
use FindBin qw/$Bin/;
use lib "$Bin/lib";
use TryCatch;
try {
require NoType;
pass("Types dont need to be pre-declared");
}
catch ($e) {
fail("Types dont need to be pre-declared");
diag($e);
}
try {
require NoVarName;
pass("Types can be declared without a var name");
}
catch ($e) {
fail("Types can be declared without a var name");
diag($e);
}
done_testing;
Jump to Line
Something went wrong with that request. Please try again.