Skip to content

Instantly share code, notes, and snippets.

@joseoliv
Last active June 24, 2019 07:04
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/39da470185dd674e66a351fa44e69594 to your computer and use it in GitHub Desktop.
Save joseoliv/39da470185dd674e66a351fa44e69594 to your computer and use it in GitHub Desktop.
restrictImplementation
package metaobjectTest
@doc{*
Annotation 'restrictImplementation' should be attached to
an interface. Its parameter list is composed of prototypes.
The interface can only be implemented by prototypes that
are in the list or its subprototypes.
*}
@restrictImplementation("metaobjectTest.ImplementRestrictImplementation")
interface RestrictImplementation
func myprint
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment