Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import groovy.transform.Field
- @Field String test = "abc";
- println "Script: ${test}";
- fun()
- def fun() {
- println "Function: ${test}";
- def run = new Runnable() {
- void run() {
- println "Runnable0: ${test}";
- new Runnable() {
- void run() {
- println "Runnable1: ${test}";
- }
- }.run();
- }
- }.run();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement