New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spurious warning when smartmatching Slip ~~ Empty #1833

Closed
lucasbuchala opened this Issue May 16, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@lucasbuchala
Contributor

lucasbuchala commented May 16, 2018

> say Slip ~~ Empty
Use of uninitialized value of type Slip in numeric context
  in block <unit> at - line 1
True
> sub f(Empty) { 'ok' }; say f(Slip)
Use of uninitialized value of type Slip in numeric context
  in sub f at - line 1
ok
$ perl6 -v
This is Rakudo version 2018.04.1 built on MoarVM version 2018.04.1
implementing Perl 6.c.
@lizmat

This comment has been minimized.

Show comment
Hide comment
@lizmat

lizmat May 16, 2018

Contributor
Contributor

lizmat commented May 16, 2018

lizmat added a commit that referenced this issue May 16, 2018

Fix for R #1833
- create a separate multi for handling Iterable:U
- factor out handling of non-Iterables to separate candidate without -return-

@lizmat lizmat added the testneeded label May 16, 2018

jstuder-gh added a commit to jstuder-gh/rakudo that referenced this issue May 19, 2018

Fix for R #1833
- create a separate multi for handling Iterable:U
- factor out handling of non-Iterables to separate candidate without -return-
@lizmat

This comment has been minimized.

Show comment
Hide comment
@lizmat

lizmat Jul 26, 2018

Contributor

Tests added with perl6/roast@0139961 . Closing

Contributor

lizmat commented Jul 26, 2018

Tests added with perl6/roast@0139961 . Closing

@lizmat lizmat closed this Jul 26, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment