We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9d8b9a commit 1152761Copy full SHA for 1152761
S12-attributes/smiley.t
@@ -24,11 +24,9 @@ class Foo5 { has Int:U $.bar = IntStr }
24
ok Foo5.new.bar ~~ Int, 'Int:U on attribute with initializer';
25
26
{
27
- use attributes :D;
28
- #?rakudo todo 'attributes pragma NYI'
29
- throws-like 'class Foo6 { has Int $.bar }',
+ throws-like 'use attributes :D; class Foo6 { has Int $.bar }',
30
X::Syntax::Variable::MissingInitializer,
31
- type => 'Int:D',
+ type => 'Int (with implicit :D)',
32
'Int:D on attribute wíthout initializer throws';
33
}
34
0 commit comments