Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created January 4, 2023 21:31
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/d7fa6767631de7f9734ce93983d87bfc to your computer and use it in GitHub Desktop.
Save Whateverable/d7fa6767631de7f9734ce93983d87bfc 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: 263 revisions left to test after this (roughly 8 steps)
[ce63be30e718c6f7aa0f2ca8c5a226de25d38dd4] Use nqp::getcurhllsym correctly
»»»»» Testing ce63be30e718c6f7aa0f2ca8c5a226de25d38dd4
»»»»» Script output:
Ambiguous call to 'foo(Int)'; these signatures all match:
:(Int:D $n)
:(Any:D $s)
in block <unit> at /tmp/4XXNQ3KUZ1 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)
:(Any:D $s)
in block <unit> at /tmp/4XXNQ3KUZ1 line 1
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing c7245c4c188ef8e96d8df3a1215195e3a6e69983
»»»»» Script output:
Ambiguous call to 'foo(Int)'; these signatures all match:
:(Int:D $n)
:(Any:D $s)
in block <unit> at /tmp/4XXNQ3KUZ1 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)
:(Any:D $s)
in block <unit> at /tmp/4XXNQ3KUZ1 line 1
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 2393e5386ea15a68db17dfd4af465554d95a1c87
»»»»» Script output:
Ambiguous call to 'foo(Int)'; these signatures all match:
:(Int:D $n)
:(Any:D $s)
in block <unit> at /tmp/4XXNQ3KUZ1 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)
:(Any:D $s)
in block <unit> at /tmp/4XXNQ3KUZ1 line 1
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 65d4fd7144ac6455bcbe5adab65873d286788438
»»»»» Script output:
Ambiguous call to 'foo(Int)'; these signatures all match:
:(Int:D $n)
:(Str(Any:D) $s)
in block <unit> at /tmp/4XXNQ3KUZ1 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)
:(Any:D $s)
in block <unit> at /tmp/4XXNQ3KUZ1 line 1
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 1ac944fc7d7a7088af770b6771373d444c1874e1
»»»»» Cannot test this commit. Reason: Commit exists, but an executable could not be built for it
»»»»» Therefore, skipping this revision
»»»»» -------------------------------------------------------------------------
»»»»» Testing 4307996ae7ab683ee01a1bf4a0419d6ab32545ac
»»»»» Script output:
Ambiguous call to 'foo(Int)'; these signatures all match:
:(Int:D $n)
:(Any:D $s)
in block <unit> at /tmp/4XXNQ3KUZ1 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)
:(Any:D $s)
in block <unit> at /tmp/4XXNQ3KUZ1 line 1
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 5c457d9653eca37e7583f57024048c9caa1f06c3
»»»»» Script output:
Ambiguous call to 'foo(Int)'; these signatures all match:
:(Int:D $n)
:(Any:D $s)
in block <unit> at /tmp/4XXNQ3KUZ1 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)
:(Any:D $s)
in block <unit> at /tmp/4XXNQ3KUZ1 line 1
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 0243275defec300098202e25bea7412f041ccacb
»»»»» Script output:
Ambiguous call to 'foo(Int)'; these signatures all match:
:(Int:D $n)
:(Str(Any:D) $s)
in block <unit> at /tmp/4XXNQ3KUZ1 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)
:(Any:D $s)
in block <unit> at /tmp/4XXNQ3KUZ1 line 1
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 4c3d96c4f702431c8c5e284c8bd8b60f8f9a1234
»»»»» Script output:
Ambiguous call to 'foo(Int)'; these signatures all match:
:(Int:D $n)
:(Any:D $s)
in block <unit> at /tmp/4XXNQ3KUZ1 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)
:(Any:D $s)
in block <unit> at /tmp/4XXNQ3KUZ1 line 1
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 64b3dbd799fea32fce68c54150f46e457b2ba575
»»»»» Script output:
Ambiguous call to 'foo(Int)'; these signatures all match:
:(Int:D $n)
:(Any:D $s)
in block <unit> at /tmp/4XXNQ3KUZ1 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)
:(Any:D $s)
in block <unit> at /tmp/4XXNQ3KUZ1 line 1
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
0243275defec300098202e25bea7412f041ccacb is the first new commit
commit 0243275defec300098202e25bea7412f041ccacb
Author: Elizabeth Mattijsen <liz@wenzperl.nl>
Date: Tue Oct 23 17:51:44 2018 +0200
Add Parameter.coerce_type
So we can introspect the type we should coerce to. Also adapt
Parameter.perl to take the coerce_type into account.
Fixes R#2416
src/core/Parameter.pm6 | 3 +++
1 file changed, 3 insertions(+)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment