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

Using infix:<xx> to set default sometimes ends up as Seq in where clause #6309

Open
p6rt opened this issue Jun 3, 2017 · 1 comment
Open

Comments

@p6rt
Copy link

p6rt commented Jun 3, 2017

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

Searchable as RT131491$

@p6rt
Copy link
Author

p6rt commented Jun 3, 2017

From @zoffixznet

The issue I encountered is a case where when I assign a default created using infix​:<xx> op,
inside the `where` clause, it's not yet failed over, so I got exhausted Seq errors​:

  <Zoffix__> m​: -> +@​commands, :@​in where {dd $_; 1} = Nil xx 1 { @​in.elems }([])
  <camelia> rakudo-moar 61ecfd​: OUTPUT​: «(Nil,).Seq␤»

Looking at it further, however, it appears most of the time it Does The Right Thing;
and in fact, seems to be affected by unrelated things, such as whether there's
another parameter before it and whether it got a `+` slurpy on it​:

  <Zoffix__> m​: -> @​commands, :@​in where {dd $_; 1} = Nil xx 1 { @​in.elems }([])
  <camelia> rakudo-moar 61ecfd​: OUTPUT​: «(Nil,)␤»
  <Zoffix__> m​: -> :@​in where {dd $_; 1} = Nil xx 1 { @​in.elems }()
  <camelia> rakudo-moar 61ecfd​: OUTPUT​: «(Nil,)␤»

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