import edu.rice.cs.mint.runtime.*;

public final class Limitations3a {
    public static class CodeContainer {
        public Code<Integer> c;
    }
    
    public static CodeContainer cc = new CodeContainer();
    
    public static int foo() { return 1; }
    
    public void run() {
        final CodeContainer lcc = new CodeContainer();
        Code<Void> cv = <| {
            final int i = foo();
            lcc.c = <| i |>;
        } |>;
        cv.run();
        System.out.println(cc.c.run());
    }
    
    public static void main (String [] args) {
        new Limitations3a().run();
    }
}
