Passing an extends block to a mixin

This pull request adds a failing test for the issue described in #1192.

I'm happy to do the work to make this test pass as part of the pull request but would prefer some input on the implications of this first.

Also, I wasn't sure if these files follow the existing conventions correctly, so can rename if necessary.