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

Rakudo insufficiently decisive in rejecting strange combinations of typings in variable declarations #1538

Closed
p6rt opened this issue Feb 26, 2010 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Feb 26, 2010

Migrated from rt.perl.org#73102 (status was 'resolved')

Searchable as RT73102$

@p6rt
Copy link
Author

p6rt commented Feb 26, 2010

From @masak

<diakopter> rakudo​: my Int (Str $x); say $x.WHAT # unspecced behavior?
<p6eval> rakudo a215ee​: OUTPUT«Int()␤»
<masak> diakopter​: whoa.
<masak> never seen that one.
* masak submits the Int (Str $x) one

@p6rt
Copy link
Author

p6rt commented Aug 18, 2010

@coke - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Sep 13, 2011

From @bbkr

NOM​: no change in behavior

bbkr​:nom bbkr$ ./perl6 -e 'my Int (Str $x); say $x.WHAT'
Int()

@p6rt
Copy link
Author

p6rt commented Apr 12, 2015

From @jnthn

On Tue Sep 13 14​:46​:52 2011, bbkr wrote​:

NOM​: no change in behavior

bbkr​:nom bbkr$ ./perl6 -e 'my Int (Str $x); say $x.WHAT'
Int()

Fixed; gave it a typed exception and added a test in S32-exceptions/misc.t. It does this now​:

$ perl6-m -e "my Int (Str $x); say $x.WHAT"
===SORRY!=== Error while compiling -e
Str not allowed here; variable list already declared with type Int
at -e​:1
------> my Int (Str $x)<HERE>; say $x.WHAT

@p6rt p6rt closed this as completed Apr 12, 2015
@p6rt
Copy link
Author

p6rt commented Apr 12, 2015

@jnthn - Status changed from 'open' to 'resolved'

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant