cleaning up examples

This commit is contained in:
Ellen Arvidsson 2025-06-28 00:25:37 +02:00
parent 333534a8d1
commit 9db2cb800d
10 changed files with 45 additions and 80 deletions

19
example/self.msph Normal file
View 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
}