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

Ambiguous duplicate signature conflict on Complex.round #4825

Closed
p6rt opened this issue Dec 5, 2015 · 6 comments
Closed

Ambiguous duplicate signature conflict on Complex.round #4825

p6rt opened this issue Dec 5, 2015 · 6 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Dec 5, 2015

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

Searchable as RT126825$

@p6rt
Copy link
Author

p6rt commented Dec 5, 2015

From @thundergnat

The Complex.round method gets an ambiguous signature error when a scale
is specified.

  $ perl6 -e' say (5.123456789+5.987654321i).round '
  5+6i
  $ perl6 -e' say (5.123456789+5.987654321i).round(.01) '
  Ambiguous call to 'round'; these signatures all match​:
  :(Complex​:D $​: Real $scale, *%_)
  :(Complex​:D $​: Real $scale, *%_)
  in block <unit> at -e​:1

@p6rt
Copy link
Author

p6rt commented Dec 5, 2015

From @lizmat

Fixed with fdec6278bf3dbcfa850a688, tests are still needed

On 05 Dec 2015, at 22​:21, Steve Schulze (via RT) <perl6-bugs-followup@​perl.org> wrote​:

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

The Complex.round method gets an ambiguous signature error when a scale
is specified.

$ perl6 \-e' say \(5\.123456789\+5\.987654321i\)\.round '
5\+6i
$ perl6 \-e' say \(5\.123456789\+5\.987654321i\)\.round\(\.01\) '
Ambiguous call to 'round'; these signatures all match&#8203;:
:\(Complex&#8203;:D $&#8203;: Real $scale, \*%\_\)
:\(Complex&#8203;:D $&#8203;: Real $scale, \*%\_\)
  in block \<unit> at \-e&#8203;:1

@p6rt
Copy link
Author

p6rt commented Dec 5, 2015

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

@p6rt
Copy link
Author

p6rt commented Dec 5, 2015

From @thundergnat

Tests added Raku/roast@c02bf4bc79

On Sat Dec 05 15​:00​:52 2015, elizabeth wrote​:

Fixed with fdec6278bf3dbcfa850a688, tests are still needed

On 05 Dec 2015, at 22​:21, Steve Schulze (via RT) <perl6-bugs-
followup@​perl.org> wrote​:

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

The Complex.round method gets an ambiguous signature error when a
scale
is specified.

$ perl6 -e' say (5.123456789+5.987654321i).round '
5+6i
$ perl6 -e' say (5.123456789+5.987654321i).round(.01) '
Ambiguous call to 'round'; these signatures all match​:
:(Complex​:D $​: Real $scale, *%_)
:(Complex​:D $​: Real $scale, *%_)
in block <unit> at -e​:1

@p6rt
Copy link
Author

p6rt commented Jul 21, 2017

From @dogbert17

On Sat, 05 Dec 2015 15​:35​:20 -0800, thundergnat wrote​:

Tests added Raku/roast@c02bf4bc79

On Sat Dec 05 15​:00​:52 2015, elizabeth wrote​:

Fixed with fdec6278bf3dbcfa850a688, tests are still needed

On 05 Dec 2015, at 22​:21, Steve Schulze (via RT) <perl6-bugs-
followup@​perl.org> wrote​:

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

The Complex.round method gets an ambiguous signature error when a
scale
is specified.

$ perl6 -e' say (5.123456789+5.987654321i).round '
5+6i
$ perl6 -e' say (5.123456789+5.987654321i).round(.01) '
Ambiguous call to 'round'; these signatures all match​:
:(Complex​:D $​: Real $scale, *%_)
:(Complex​:D $​: Real $scale, *%_)
in block <unit> at -e​:1

Looks as if someone just forgot to close this considering that the bug was fixed and tests were added.
Closing.

@p6rt
Copy link
Author

p6rt commented Jul 21, 2017

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

@p6rt p6rt closed this as completed Jul 21, 2017
@p6rt p6rt added the Bug 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