Created
June 11, 2019 14:55
-
-
Save joseoliv/2f9e7be82fe9c93a3b7e005c021b8543 to your computer and use it in GitHub Desktop.
codeAfter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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