📄 wellkinded_wrongarity2.scala
字号:
// test well-kindedness checks// expecting types of kind *->*class Monad[m[x]]trait ms1 extends Monad[String] // wrongtrait ms2[t] extends Monad[t] // wrongtrait ms3[m[_], t] extends Monad[m[t]] // wrong -- added to check regression on bug// expecting types of kind *trait Foo[x]trait Bar1[m[_]] extends Foo[m[Int]] // check that m[Int] is properly recognized as kind-*trait Bar2[m[_]] extends Foo[m] // check that m is properly recognized as kind *->*, while * is expected
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -