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 constraint ignored on native type #4576
Comments
From zefram@fysh.org$ ./perl6 -e 'sub aa(int:U $i) { say $i; }; aa(3); aa(int)' The definedness constraint qualifiers :D and :U are ignored for the int -zefram |
From @jnthnOn Mon Sep 21 11:22:24 2015, zefram@fysh.org wrote:
A native type cannot hold an undefined value, so writing :U should be a compile time error (it could never match, so probably indicates confusion). May as well do similar for :D. /jnthn |
The RT System itself - Status changed from 'new' to 'open' |
From zefram@fysh.orgjnthn@jnthn.net via RT wrote:
I would expect the type object (int) to match the notional int:U $ ./perl6 -e 'say int ~~ int; say int.defined' This side of native types runs into [perl #126116], regarding inconsistent -zefram |
Migrated from rt.perl.org#126135 (status was 'open')
Searchable as RT126135$
The text was updated successfully, but these errors were encountered: