cleaning up examples
This commit is contained in:
parent
333534a8d1
commit
9db2cb800d
10 changed files with 45 additions and 80 deletions
19
example/self.msph
Normal file
19
example/self.msph
Normal file
|
@ -0,0 +1,19 @@
|
|||
type Accumulator[Self] = (Self <: Accumulator[Self]) & {
|
||||
member add : Int -> Self
|
||||
}
|
||||
|
||||
type MyAccum = {
|
||||
member add : Int -> MyAccum
|
||||
}
|
||||
|
||||
assert MyAccum <: Accumulator[MyAccum]
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
type Acchmmmmulator[Self] = (Self <: Acchmmmmulator[Self]) => {
|
||||
member add : Int -> Self
|
||||
}
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue