Typechecker forbids variable declarations in inline actions

  • user/init.app:24/37: error: This element is not allowed to be nested in other template elements:
    var groups : Set := {administratorsGroup} ;

    par{ label(“Email” ){ input(email) } }
    action(“Create”, action{
    var groups : Set := {administratorsGroup};
    var user := createUser(username, fullname, email, password1, groups);
    user.password := password1.digest();
    log(“created administrator”);
    administratorsGroup.members.add(user);
    return root();
    })

Submitted by Eelco Visser on 11 March 2010 at 15:48

On 12 March 2010 at 10:17 Danny Groenewegen commented:

fixed in revision 3724

Log in to post comments