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

definedness constraints ignored where not supported #4571

Closed
p6rt opened this issue Sep 20, 2015 · 2 comments
Closed

definedness constraints ignored where not supported #4571

p6rt opened this issue Sep 20, 2015 · 2 comments
Labels
LTA Less Than Awesome; typically an error message that could be better

Comments

@p6rt
Copy link

p6rt commented Sep 20, 2015

Migrated from rt.perl.org#126126 (status was 'new')

Searchable as RT126126$

@p6rt
Copy link
Author

p6rt commented Sep 20, 2015

From zefram@fysh.org

$ ./perl6 -e 'say 3.isa(Mu​:U)'
True

That's not the right answer for what I want Mu​:U to do. Actually the
attempt at a definedness constraint is being totally ignored here, as
it also is in "my Mu​:U $a" and other places where it's not currently
implemented. Silent ignorance is less than awesome. This should signal
an error, until it's implemented.

-zefram

@p6rt p6rt added the LTA Less Than Awesome; typically an error message that could be better label Jan 5, 2020
@usev6
Copy link

usev6 commented Oct 10, 2023

Current behavior looks good:

$ ./rakudo-m -e 'say 3.isa(Mu:U)'
False
$ ./rakudo-m -e 'my Mu:U $a; say "alive"; $a = 4'
alive
Type check failed in assignment to $a; expected Mu:U but got Int (4)
  in block <unit> at -e line 1

According to bisectable6 (https://colabti.org/irclogger/irclogger_log/raku-dev?date=2023-10-10#l81) the problem was fixed shortly after this report came in with rakudo/rakudo@80a3d07235.

There is a bunch of tests in S04-declarations/smiley.t. (Many of them have been added in October 2015.) I believe this bug report is covered by those tests, so I'm closing it as "resolved" without adding more tests.

@usev6 usev6 closed this as completed Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTA Less Than Awesome; typically an error message that could be better
Projects
None yet
Development

No branches or pull requests

2 participants