0
이 스 니펫을 컴파일하는 동안 오류가 발생하는 이유는 무엇입니까?유추 된 형식 인수
trait ID[R <: Record[R] with KeyedRecord[Long]] {
this: R =>
val idField = new LongField(this)
}
ERROR :
나는이 문제를 해결할 수있는 방법inferred type arguments [ID[R] with R] do not conform to class LongField's
type parameter bounds [OwnerType <: net.liftweb.record.Record[OwnerType]]
?
LongField 정의 :이 유형 R
을 지정하지 않으면
class LongField[OwnerType <: Record[OwnerType]](rec: OwnerType)
extends Field[Long, OwnerType] with MandatoryTypedField[Long] with LongTypedField {