bug1210a.scala

来自「JAVA 语言的函数式编程扩展」· SCALA 代码 · 共 15 行

SCALA
15
字号
// both styles of abstraction should behave the same// related to 1210 because that bug broke the OO version belowtrait OO {    abstract class Test { self =>    type T      val v: Test {type T = self.T} = self.v.v  }}trait FP {  abstract class Test[T] {    val v: Test[T] = v.v  }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?