No, currently bar is not marked as pure*. And *currently* all of local functions (both static and nested) don't inherit pure attribute from enclosing function.

I think this is a bug in `Expression::checkPurity(Scope *sc, FuncDeclaration *f)`. Even the static local function `bar` has no closest pure parent, but `main` is incorrectly detected for that.