#2947, compile to named function in code block only.