test.scala

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

SCALA
28
字号
package test;abstract class Base {  type A <: Ax;    abstract class Ax {    def a = null;    def string = "A";  }}trait ExtB extends Base {  type A <: Ax;  trait Ax extends super.Ax {    def c = null;    override def string = super.string + "C";  }}trait ExtC extends /*ExtA with*/ ExtB {  type A <: Ax;  trait Ax extends super.Ax {    a    c    def d = null;    override def string = super.string + "D";  }}

⌨️ 快捷键说明

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