Skip to content

Instantly share code, notes, and snippets.

@diakopter
Created May 29, 2012 18:40
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 diakopter/2829948 to your computer and use it in GitHub Desktop.
Save diakopter/2829948 to your computer and use it in GitHub Desktop.
class A is Hash {
}
multi sub infix:<=>(A $a, Str $value){
#we throw the new value away, doesn't really matter for this bug
return $a;
}
sub b() {
return A.new();
}
say b = 'foo';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment