Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created January 4, 2023 21:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/a4b68a5ac86383971fd7e7d40b5edaf0 to your computer and use it in GitHub Desktop.
Save Whateverable/a4b68a5ac86383971fd7e7d40b5edaf0 to your computer and use it in GitHub Desktop.
bisectable6
multi foo(Int:D $n) { say "my int is $n"; }; multi foo(Str(Any:D) $s) { say "i obtained str $s"; }; foo 5
Bisecting: 44 revisions left to test after this (roughly 6 steps)
[82d50526918006a89d6f4de2bcc19179f3b91243] Merge pull request #3900 from codesections-forks/deprecate-parse-names
»»»»» Testing 82d50526918006a89d6f4de2bcc19179f3b91243
»»»»» Script output:
Ambiguous call to 'foo(Int)'; these signatures all match:
(Int:D $n)
(Str(Any:D) $s)
in block <unit> at /tmp/Si0s9wQmIF line 1
»»»»» Script exit code: 1
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
Ambiguous call to 'foo(Int)'; these signatures all match:
:(Int:D $n)
:(Str(Any:D) $s)
in block <unit> at /tmp/Si0s9wQmIF line 1
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 0e45651ff6c6232b9e2693b40e107d0918fdc07e
»»»»» Script output:
Ambiguous call to 'foo(Int)'; these signatures all match:
(Int:D $n)
(Str(Any:D) $s)
in block <unit> at /tmp/Si0s9wQmIF line 1
»»»»» Script exit code: 1
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
Ambiguous call to 'foo(Int)'; these signatures all match:
:(Int:D $n)
:(Str(Any:D) $s)
in block <unit> at /tmp/Si0s9wQmIF line 1
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 2b327ca8c65c53c767e29ac110bffe88dc10af12
»»»»» Script output:
Ambiguous call to 'foo(Int)'; these signatures all match:
(Int:D $n)
(Str(Any:D) $s)
in block <unit> at /tmp/Si0s9wQmIF line 1
»»»»» Script exit code: 1
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
Ambiguous call to 'foo(Int)'; these signatures all match:
:(Int:D $n)
:(Str(Any:D) $s)
in block <unit> at /tmp/Si0s9wQmIF line 1
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing b005230615f2a1a87adcf85f58d32d5cefe354ea
»»»»» Script output:
Ambiguous call to 'foo(Int)'; these signatures all match:
(Int:D $n)
(Str(Any:D) $s)
in block <unit> at /tmp/Si0s9wQmIF line 1
»»»»» Script exit code: 1
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
Ambiguous call to 'foo(Int)'; these signatures all match:
:(Int:D $n)
:(Str(Any:D) $s)
in block <unit> at /tmp/Si0s9wQmIF line 1
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing b8121cecb90d648cd8a1fa327eee0319e1ac42b1
»»»»» Script output:
Ambiguous call to 'foo(Int)'; these signatures all match:
(Int:D $n)
(Str(Any:D) $s)
in block <unit> at /tmp/Si0s9wQmIF line 1
»»»»» Script exit code: 1
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
Ambiguous call to 'foo(Int)'; these signatures all match:
:(Int:D $n)
:(Str(Any:D) $s)
in block <unit> at /tmp/Si0s9wQmIF line 1
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 999680e657d3fe70abba2e33fcc7b770d88e5b81
»»»»» Script output:
Ambiguous call to 'foo(Int)'; these signatures all match:
(Int:D $n)
(Str(Any:D) $s)
in block <unit> at /tmp/Si0s9wQmIF line 1
»»»»» Script exit code: 1
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
Ambiguous call to 'foo(Int)'; these signatures all match:
:(Int:D $n)
:(Str(Any:D) $s)
in block <unit> at /tmp/Si0s9wQmIF line 1
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
999680e657d3fe70abba2e33fcc7b770d88e5b81 is the first new commit
commit 999680e657d3fe70abba2e33fcc7b770d88e5b81
Author: Elizabeth Mattijsen <liz@wenzperl.nl>
Date: Thu Aug 20 18:50:38 2020 +0200
Streamline X::Multi::Ambiguous listing
- remove ":", it does not convey any information, clear it's a signature
- add two spaces to set it off the first line
- add "is default" status of the candidate when applicable
src/core.c/Exception.pm6 | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment