disallow ref to variable in comprehension in extends #823