Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
codeAfter
package metaobjectTest
@doc{*
Annotation 'codeAfter' adds the code attached to the
annotation after a local variable declaration.
*}
object CodeAfter
func run {
@codeAfter{*
sum = 1;
*}
var Int sum = 0;
assert sum == 1;
}
end
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.