disallow ref to variable parameter in anon function in extends #823