Why are concrete function implementations in traits compiled to bridge methods in Scala 2.9.x but not in 2.8.x?

前端 未结 1 2004
慢半拍i
慢半拍i 2021-01-17 13:32

In Scala versions prior to 2.9.0, concrete function implementations in traits were compiled as normal methods. From 2.9.x onward, they are compiled as bridge methods. I\'m t

相关标签:
1条回答
  • 2021-01-17 13:46

    OK it sounds like there is no explanation as to why because it wasn't an intentional change. See this thread: http://groups.google.com/group/scala-language/browse_thread/thread/67f8884081d46912

    And the solution is to use the newest snapshot, or, if the future has arrived as you read this, Scala 2.10

    0 讨论(0)
提交回复
热议问题