Skip to content
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

type smiley not set on constraint in declaration of variable lists #5887

Open
p6rt opened this issue Dec 15, 2016 · 3 comments
Open

type smiley not set on constraint in declaration of variable lists #5887

p6rt opened this issue Dec 15, 2016 · 3 comments

Comments

@p6rt
Copy link

p6rt commented Dec 15, 2016

Migrated from rt.perl.org#130356 (status was 'open')

Searchable as RT130356$

@p6rt
Copy link
Author

p6rt commented Dec 15, 2016

From @gfldex

my (Any​:D $a) = Any;
# OUTPUT​: ( no output )
expected​:
OUTPUT«Type check failed in assignment to $a; expected Any​:D but got Any (Any)␤ in block <unit> at <tmp> line 1␤␤»

# `use variable :D` does work as expected and `$a.of` does not include
# the type smiley for the first example.

@p6rt
Copy link
Author

p6rt commented Dec 16, 2016

From @zoffixznet

On Thu, 15 Dec 2016 13​:01​:07 -0800, gfldex wrote​:

my (Any​:D $a) = Any;
# OUTPUT​: ( no output )
expected​:
OUTPUT«Type check failed in assignment to $a; expected Any​:D but got
Any (Any)␤ in block <unit> at <tmp> line 1␤␤»

# `use variable :D` does work as expected and `$a.of` does not include
# the type smiley for the first example.

This one https://rt-archive.perl.org/perl6/Ticket/Display.html?id=128935#ticket-history is about the `where` clause not being applied in listy my's. I suspect the cause is exactly the same.

@p6rt
Copy link
Author

p6rt commented Dec 16, 2016

The RT System itself - Status changed from 'new' to 'open'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant