在com.github.nscala_time.time.DurationBuilder中扩展Super

时间:2015-07-02 19:48:07

标签: eclipse scala nscala-time

我最近下载了com.github.nscala_time包版本2.11的源代码, 在Maven中设置依赖项后,我遇到了很多错误,我检查了一个文件 com.github.nscala_time.time.DurationBuilder,它有一行如下:

class DurationBuilder(val underlying: Period) extends Super {..

没有名为" Super"在相同的包或导入的包中。我想知道scala有一种名为" Super"? Eclipse scala 2.11编译器抱怨找不到类型" Super"

2 个答案:

答案 0 :(得分:1)

我认为你应该在com.github.nscala_time包中的对象时间找到它。尝试添加此导入:

import com.github.nscala_time.time.Super

答案 1 :(得分:-1)

我的解决方案是添加一个名为“Super”的特性包`com.github.nscala_time.time

特质超级{

}`

在我看来,图书馆的作者忘了上传课程文件

相关问题