Do allow static lambdas in nested function