【发布时间】:2011-07-29 07:24:53
【问题描述】:
是否可以将上下文边界语法快捷方式用于更高种类的类型?
trait One { def test[W : ClassManifest]: Unit } // first-order ok
trait Two { def test[W[_]: ClassManifest]: Unit } // not possible??
trait Six { def test[W[_]](implicit m: ClassManifest[W[_]]): Unit } // hmm...
【问题讨论】:
标签: scala higher-kinded-types context-bound