adding a failing test for #41
Thanks for the test! I tried looking into the problem, but unfortunately I have no idea why scalac fails in this case