Skip to content

Commit 2018e14

Browse files
committed
X::Constructor::Positional's attribute is the type object
1 parent 5a4c6b7 commit 2018e14

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

S32-exceptions/misc.t

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,14 @@ 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, name => "Mu";
192-
throws_like 'class Foo { }; Foo.new(1, 2, 3);', X::Constructor::Positional, name => "Foo";
191+
192+
# X::Constructor::Positional
193+
{
194+
class Foo { };
195+
throws_like 'Mu.new(1)', X::Constructor::Positional, type => Mu;
196+
throws_like 'Foo.new(1, 2, 3);', X::Constructor::Positional, type => Foo;
197+
}
198+
193199
throws_like 'my %h = 1', X::Hash::Store::OddNumber;
194200

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

0 commit comments

Comments
 (0)