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

expected 'Array[Bool]' but got 'Array[Bool]' #3270

Closed
p6rt opened this issue Nov 11, 2013 · 9 comments
Closed

expected 'Array[Bool]' but got 'Array[Bool]' #3270

p6rt opened this issue Nov 11, 2013 · 9 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Nov 11, 2013

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

Searchable as RT120506$

@p6rt
Copy link
Author

p6rt commented Nov 11, 2013

From langdonzh@gmail.com

$ perl6

Array[Array[Bool]].new($(Array[Bool].new))
Type check failed in .new; expected 'Array[Bool]' but got 'Array[Bool]'
  in block at src/gen/CORE.setting​:8188
  in method reify at src/gen/CORE.setting​:7135
  in method reify at src/gen/CORE.setting​:7030
  in method gimme at src/gen/CORE.setting​:7458
  in method eager at src/gen/CORE.setting​:7430
  in block at src/gen/CORE.setting​:8183

$ perl6 -v
This is perl6 version 2013.10 built on parrot 5.9.0 revision 0

Either it should let me do that, or at least say something sensical.

@p6rt
Copy link
Author

p6rt commented Mar 10, 2015

From @Mouq

On Sun Nov 10 16​:07​:42 2013, langdonzh@​gmail.com wrote​:

$ perl6

Array[Array[Bool]].new($(Array[Bool].new))
Type check failed in .new; expected 'Array[Bool]' but got 'Array[Bool]'
in block at src/gen/CORE.setting​:8188
in method reify at src/gen/CORE.setting​:7135
in method reify at src/gen/CORE.setting​:7030
in method gimme at src/gen/CORE.setting​:7458
in method eager at src/gen/CORE.setting​:7430
in block at src/gen/CORE.setting​:8183

$ perl6 -v
This is perl6 version 2013.10 built on parrot 5.9.0 revision 0

Either it should let me do that, or at least say something sensical.

The latest Rakudo now correctly "lets you do that" :) Tests for this were added in Roast commit 5f5f5fbb26 ( Raku/roast@5f5f5fbb26 )

Marking this ticket as resolved :)

@p6rt
Copy link
Author

p6rt commented Mar 10, 2015

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Mar 10, 2015

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

@p6rt
Copy link
Author

p6rt commented May 2, 2015

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

@p6rt
Copy link
Author

p6rt commented May 2, 2015

From xwang62@gmail.com

In 2015 nypm hackathon, we found, thank you​:
# Failed test 'Can feed Arrays of Type to .new of Array[Array[Type]] (assignment)'
# at t/spec/S09-typed-arrays/arrays.rakudo.moar line 200
# expected​: $((Bool​::True, Bool​::False, Bool​::True), (Bool​::True,))
# got​: $(Array[Bool].new(Bool​::True, Bool​::False, Bool​::True), Array[Bool].new(Bool​::True))

On Mon Mar 09 21​:13​:57 2015, Mouq wrote​:

On Sun Nov 10 16​:07​:42 2013, langdonzh@​gmail.com wrote​:

$ perl6

Array[Array[Bool]].new($(Array[Bool].new))
Type check failed in .new; expected 'Array[Bool]' but got
'Array[Bool]'
in block at src/gen/CORE.setting​:8188
in method reify at src/gen/CORE.setting​:7135
in method reify at src/gen/CORE.setting​:7030
in method gimme at src/gen/CORE.setting​:7458
in method eager at src/gen/CORE.setting​:7430
in block at src/gen/CORE.setting​:8183

$ perl6 -v
This is perl6 version 2013.10 built on parrot 5.9.0 revision 0

Either it should let me do that, or at least say something sensical.

The latest Rakudo now correctly "lets you do that" :) Tests for this
were added in Roast commit 5f5f5fbb26 (
Raku/roast@5f5f5fbb26 )

Marking this ticket as resolved :)

@p6rt
Copy link
Author

p6rt commented May 2, 2015

From [Unknown Contact. See original ticket]

In 2015 nypm hackathon, we found, thank you​:
# Failed test 'Can feed Arrays of Type to .new of Array[Array[Type]] (assignment)'
# at t/spec/S09-typed-arrays/arrays.rakudo.moar line 200
# expected​: $((Bool​::True, Bool​::False, Bool​::True), (Bool​::True,))
# got​: $(Array[Bool].new(Bool​::True, Bool​::False, Bool​::True), Array[Bool].new(Bool​::True))

On Mon Mar 09 21​:13​:57 2015, Mouq wrote​:

On Sun Nov 10 16​:07​:42 2013, langdonzh@​gmail.com wrote​:

$ perl6

Array[Array[Bool]].new($(Array[Bool].new))
Type check failed in .new; expected 'Array[Bool]' but got
'Array[Bool]'
in block at src/gen/CORE.setting​:8188
in method reify at src/gen/CORE.setting​:7135
in method reify at src/gen/CORE.setting​:7030
in method gimme at src/gen/CORE.setting​:7458
in method eager at src/gen/CORE.setting​:7430
in block at src/gen/CORE.setting​:8183

$ perl6 -v
This is perl6 version 2013.10 built on parrot 5.9.0 revision 0

Either it should let me do that, or at least say something sensical.

The latest Rakudo now correctly "lets you do that" :) Tests for this
were added in Roast commit 5f5f5fbb26 (
Raku/roast@5f5f5fbb26 )

Marking this ticket as resolved :)

@p6rt
Copy link
Author

p6rt commented Sep 14, 2015

From @niner

I cannot reproduce this regression on rakudo version 2015.07.1-922-g7e265b6 built on MoarVM version 2015.08-34-g113c3b5

@p6rt p6rt closed this as completed Sep 14, 2015
@p6rt
Copy link
Author

p6rt commented Sep 14, 2015

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

@p6rt p6rt added the glr 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