2017-07-04 6 views
0

私は、アッカのソースコードを経由して、誰かがここで何が起こっているかを私に説明できます私は、次のスカラ - ネストされたタイプのキーワード

type Repr[+O] <: FlowOps[O, Mat] { 
    type Repr[+OO] = FlowOps.this.Repr[OO] 
    type Closed = FlowOps.this.Closed 
} 
type Closed 

に出くわしました?

答えて

2
FlowOps[O, Mat] { 
    type Repr[+OO] = FlowOps.this.Repr[OO] 
    type Closed = FlowOps.this.Closed 
} 

は、compound type with a refinementです。すなわち、FlowOps[O, Mat]はそれ自体が任意のReprおよびClosedタイプのメンバーを有することができ、ここでは特定のものが必要です。この型は、型メンバーtype Repr[+O]の上限として使用されます。

関連する問題