Same bug as https://github.com/scala/scala/pull/5944 on the JVM side, for exactly the same reason.