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

Cannot assign an array of shape 2 2 to an array of shape 2 2 (my @c[2;2] .= new(:shape(2, 2), <a b>, <c d>)) #5983

Closed
p6rt opened this issue Jan 5, 2017 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Jan 5, 2017

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

Searchable as RT130510$

@p6rt
Copy link
Author

p6rt commented Jan 5, 2017

From @AlexDaniel

Code​:
my @​c[2;2] .= new(​:shape(2, 2), <a b>, <c d>)'

Result (2015.12,2016.10)​:
[[1 a] [2 b]]
(1 a 2 b)

Result (2016.11,HEAD)​:
Cannot assign an array of shape 2 2 to an array of shape 2 2
  in block <unit> at /tmp/9MD__1ftfd line 1
«exit code = 1»

Bisectable points to two related commits​:
rakudo/rakudo@1293188
rakudo/rakudo@c5d33a2

Error appeared after the first one, but looked like this​:

Assignment to array with shape 2 2 must provide structured data
  in block <unit> at /tmp/jA3o34pAeI line 1

Actual nonsense in the error message was introduced after the second commit​:

Cannot assign an array of shape 2 2 to an array of shape 2 2
in block <unit> at /tmp/jA3o34pAeI line 1

@p6rt
Copy link
Author

p6rt commented Jan 5, 2017

From @AlexDaniel

Obviously, it is a wrong snippet. Here is the right one​:

my @​c[2;3] .= new(​:shape(2, 2), [1, "a"], [2, "b"])

On 2017-01-04 19​:52​:58, alex.jakimenko@​gmail.com wrote​:

Code​:
my @​c[2;2] .= new(​:shape(2, 2), <a b>, <c d>)'

Result (2015.12,2016.10)​:
[[1 a] [2 b]]
(1 a 2 b)

Result (2016.11,HEAD)​:
Cannot assign an array of shape 2 2 to an array of shape 2 2
in block <unit> at /tmp/9MD__1ftfd line 1
«exit code = 1»

Bisectable points to two related commits​:
rakudo/rakudo@1293188
rakudo/rakudo@c5d33a2

Error appeared after the first one, but looked like this​:

Assignment to array with shape 2 2 must provide structured data
in block <unit> at /tmp/jA3o34pAeI line 1

Actual nonsense in the error message was introduced after the second
commit​:

Cannot assign an array of shape 2 2 to an array of shape 2 2
in block <unit> at /tmp/jA3o34pAeI line 1

@p6rt
Copy link
Author

p6rt commented Jan 5, 2017

From @lizmat

Fixed with d77f9b8 , tests needed

On 5 Jan 2017, at 04​:52, Aleks-Daniel Jakimenko-Aleksejev (via RT) <perl6-bugs-followup@​perl.org> wrote​:

# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev
# Please include the string​: [perl #​130510]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=130510 >

Code​:
my @​c[2;2] .= new(​:shape(2, 2), <a b>, <c d>)'

Result (2015.12,2016.10)​:
[[1 a] [2 b]]
(1 a 2 b)

Result (2016.11,HEAD)​:
Cannot assign an array of shape 2 2 to an array of shape 2 2
in block <unit> at /tmp/9MD__1ftfd line 1
«exit code = 1»

Bisectable points to two related commits​:
rakudo/rakudo@1293188
rakudo/rakudo@c5d33a2

Error appeared after the first one, but looked like this​:

Assignment to array with shape 2 2 must provide structured data
in block <unit> at /tmp/jA3o34pAeI line 1

Actual nonsense in the error message was introduced after the second commit​:

Cannot assign an array of shape 2 2 to an array of shape 2 2
in block <unit> at /tmp/jA3o34pAeI line 1

@p6rt
Copy link
Author

p6rt commented Jan 5, 2017

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

@p6rt
Copy link
Author

p6rt commented Jan 19, 2017

From @zoffixznet

Tests in Raku/roast@1f05be281e

@p6rt p6rt closed this as completed Jan 19, 2017
@p6rt
Copy link
Author

p6rt commented Jan 19, 2017

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

@p6rt p6rt added the testneeded label Jan 5, 2020
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