Skip to content

Commit b832056

Browse files
committed
check for X::Constructor::Positional .name attribute.
1 parent 9a11e22 commit b832056

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

S32-exceptions/misc.t

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@ throws_like 'DateTime.new(year => 2012, month => 5, day => 22, hour => 18, minut
188188
throws_like 'use fatal; "foo"[2]', X::OutOfRange, what => rx:i/index/, range => 0..0, got => 2;
189189

190190
throws_like 'sub f() { }; &f.unwrap("foo")', X::Routine::Unwrap;
191-
throws_like 'Mu.new(1)', X::Constructor::Positional;
191+
throws_like 'Mu.new(1)', X::Constructor::Positional, name => "Mu";
192+
throws_like 'class Foo { }; Foo.new(1, 2, 3);', X::Constructor::Positional, name => "Foo";
192193
throws_like 'my %h = 1', X::Hash::Store::OddNumber;
193194

194195
# TOOD: might be X::Syntax::Malformed too...

0 commit comments

Comments
 (0)