Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
package metaobjectTest
Annotation 'restrictOverrideTo' should be attached to
a method. Its parameter list is composed of prototype names,
with the package. The annotated method can only be
overridden in those prototypes.
object RestrictOverrideTo
func run { }
@restrictOverrideTo(main.SubRestrictOverrideTo, main.SubOtherRestrictOverrideTo)
func myprint { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.