lubs.check

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

CHECK
17
字号
lubs.scala:11: error: type mismatch; found   : test1.A[test1.A[test1.A[Any]]] required: test1.A[test1.A[test1.A[test1.A[Any]]]]  val x4: A[A[A[A[Any]]]] = f                            ^lubs.scala:24: error: type mismatch; found   : test2.A{type T >: test2.C with test2.D <: test2.A} required: test2.A{type T >: Null <: test2.A{type T >: Null <: test2.A}}  val x3: A { type T >: Null <: A { type T >: Null <: A } } = f                                                              ^lubs.scala:25: error: type mismatch; found   : test2.A{type T >: test2.C with test2.D <: test2.A} required: test2.A{type T >: Null <: test2.A{type T >: Null <: test2.A{type T >: Null <: test2.A}}}  val x4: A { type T >: Null <: A { type T >: Null <: A { type T >: Null <: A } } } = f                                                                                      ^three errors found

⌨️ 快捷键说明

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