summaryrefslogtreecommitdiff
path: root/tiger-compiler/tests/object/good/simple-class.tig
blob: ce530a23aa419589103d4e78f07fa4df27149547 (plain)
1
2
3
4
5
6
7
8
9
10
let
  class B
  {
    var a := 42
    method m() : int = self.a
  }
  var b := new B
in
  b.a := 51
end