https://github.com/scala/scala/pull/2691/files#r4953024