Compile with child scope