@extend fails in blocks. Fixes #1272