Skip to content

Instantly share code, notes, and snippets.

@joseoliv
Created June 24, 2019 07:20
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 joseoliv/841f22df7abce2ce6fccefa47ced2634 to your computer and use it in GitHub Desktop.
Save joseoliv/841f22df7abce2ce6fccefa47ced2634 to your computer and use it in GitHub Desktop.
restrictOverrideTo
package metaobjectTest
@doc{*
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.
*}
open
object RestrictOverrideTo
func run { }
@restrictOverrideTo(main.SubRestrictOverrideTo, main.SubOtherRestrictOverrideTo)
func myprint { }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment