Skip to content

Instantly share code, notes, and snippets.

@hoelzro
Created July 23, 2013 11:53
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 hoelzro/6061791 to your computer and use it in GitHub Desktop.
Save hoelzro/6061791 to your computer and use it in GitHub Desktop.
class MyClass {
method a {
my regex foo { . }
}
method b {
my regex foo { . }
}
}
# causes the following error message to occur:
#`(
===SORRY!===
Package 'MyClass' already has a method 'foo' (did you mean to declare a multi-method?)
at test.p6:7
------>
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment