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

Errors from typed variable declaration with missing initializers #2447

Closed
p6rt opened this issue Jul 3, 2011 · 4 comments
Closed

Errors from typed variable declaration with missing initializers #2447

p6rt opened this issue Jul 3, 2011 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Jul 3, 2011

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

Searchable as RT93982$

@p6rt
Copy link
Author

p6rt commented Jul 3, 2011

From @ronaldxs

This might be a variation of
http://rt.perl.org/rt3/Ticket/Display.html?id=93980

From IRC http://irclog.perlgeek.de/perl6/2011-07-03#i_4051503

13​:48 PhatEddy
  perl6​: my Str ($a) = ()
13​:48 p6eval
  pugs, niecza v7-11-g9ba8284​: ( no output )
13​:48 ..rakudo 72d158​: OUTPUT«Type check failed for assignment␤ Container type​: Str␤ Got​: Nil␤ in '&infix​:<=>' at line 1​:src/metamodel/RoleToInstanceApplier.nqp␤ in main program body at line 1​:src/metamodel/RoleToInstanceApplier.nqp␤»

@p6rt
Copy link
Author

p6rt commented Oct 1, 2014

From @usev6

This works now (probably for quite a while already)​:

my Str ($a) = ();
(Str)

I added a test to S02-types/type.t with this commit​: Raku/roast@b93b787

1 similar comment
@p6rt
Copy link
Author

p6rt commented Oct 1, 2014

From @usev6

This works now (probably for quite a while already)​:

my Str ($a) = ();
(Str)

I added a test to S02-types/type.t with this commit​: Raku/roast@b93b787

@p6rt p6rt closed this as completed Oct 1, 2014
@p6rt
Copy link
Author

p6rt commented Oct 1, 2014

@usev6 - Status changed from 'new' to 'resolved'

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

No branches or pull requests

1 participant