Yes, this is a bug. It's deep in the bowels of the compiler, so I haven't fixed it yet as it has an easy and obvious workaround. But I have the intention to get rid of this someday.