Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 0327bf261a
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (26 sloc) 0.447 kB
type Done = {
isDone -> Boolean
}
type InnerList = {
data -> Number
next -> OuterList | Done
}
type OuterList = {
data -> Number
next -> InnerList | Done
}
def done : Done = object {
def isDone : Boolean = true
}
var l1 := object {
var data := 3
var next := done
}
var l2 : OuterList := object {
def data : Number = 5
def next : InnerList | Done = done
}
print(l1.data)
l1 := l2
l2 := l1
print(l1.data)
Jump to Line
Something went wrong with that request. Please try again.