Anonymous class is not allowed. For reference see #8934 and bc43763247e25