【发布时间】:2011-02-03 12:22:44
【问题描述】:
我正在尝试延续,我遇到了一个似乎表明@cpsParam 阻止隐式转换的案例。
我有
def v: T @cpsParam[Unit, Unit]
// ...and then later
v must_== 42
// where must_== is from specs/mockito
我得到编译器错误:
must_== is not a member of Int @cpsParam[Unit,Unit]
gist 上提供了更完整的代码示例。
我犯了一个简单的错误吗?
谢谢, 托弗。
【问题讨论】:
标签: scala continuations implicit-conversion