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

Hash value constraints are no longer working (Hash[Int].new(‘abc’ => 20..50)) #5942

Closed
p6rt opened this issue Dec 29, 2016 · 5 comments
Closed
Labels
regression Issue did not exist previously

Comments

@p6rt
Copy link

p6rt commented Dec 29, 2016

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

Searchable as RT130444$

@p6rt
Copy link
Author

p6rt commented Dec 29, 2016

From @AlexDaniel

Code​:
say Hash[Int].new(�abc� => 20..50)

Result (2015.12)​:
Type check failed in binding $x; expected Int but got Range
  in block <unit> at /tmp/CRJOhWZaTS line 1
«exit code = 1»

Result (HEAD)​:
{abc => 20..50}

It should complain that it got a Range instead of an Int.

Bisectable points to rakudo/rakudo@b2e57f6

@p6rt
Copy link
Author

p6rt commented May 13, 2019

From @dogbert17

On Thu, 29 Dec 2016 13​:26​:17 -0800, alex.jakimenko@​gmail.com wrote​:

Code​:
say Hash[Int].new(�abc� => 20..50)

Result (2015.12)​:
Type check failed in binding $x; expected Int but got Range
in block <unit> at /tmp/CRJOhWZaTS line 1
«exit code = 1»

Result (HEAD)​:
{abc => 20..50}

It should complain that it got a Range instead of an Int.

Bisectable points to
rakudo/rakudo@b2e57f6

Fixed with commit rakudo/rakudo@9acbf00

testneeded

@p6rt
Copy link
Author

p6rt commented May 13, 2019

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

@p6rt
Copy link
Author

p6rt commented May 13, 2019

From @dogbert17

On Mon, 13 May 2019 10​:28​:25 -0700, jan-olof.hendig@​bredband.net wrote​:

On Thu, 29 Dec 2016 13​:26​:17 -0800, alex.jakimenko@​gmail.com wrote​:

Code​:
say Hash[Int].new(�abc� => 20..50)

Result (2015.12)​:
Type check failed in binding $x; expected Int but got Range
in block <unit> at /tmp/CRJOhWZaTS line 1
«exit code = 1»

Result (HEAD)​:
{abc => 20..50}

It should complain that it got a Range instead of an Int.

Bisectable points to
rakudo/rakudo@b2e57f6

Fixed with commit
rakudo/rakudo@9acbf00

testneeded

Turns out that this issue is the same as R#​2348 which was fixed we the above commit.
Tests were added to roast with Raku/roast@28301d7c5d

closing

@p6rt
Copy link
Author

p6rt commented May 13, 2019

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

@p6rt p6rt closed this as completed May 13, 2019
@p6rt p6rt added the regression Issue did not exist previously label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression Issue did not exist previously
Projects
None yet
Development

No branches or pull requests

1 participant