You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constant IntD := Int:D; say IntD.ACCEPTS(Int); say (sub (IntD $a) { $a })(Int)
False
(Int)
Observe that the Int:D type constraint in this form allows the undefined
Int object through to the sub. I think this is a bug. Its .ACCEPTS
method works fine in this form, and the constraint works in both places
if referred to as "Int:D" rather than "IntD".
Migrated from rt.perl.org#129005 (status was 'new')
Searchable as RT129005$
The text was updated successfully, but these errors were encountered: