aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/tiger/classes.tig
blob: 542a40ebe23849defef5274c3af10f2de2e24197 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class A {
  var a := 12

  method method() : int = 1
}

type B = class extends A {
  var b := 27

  method another_method() = (
    print("called");
    self.b + self.method()
  )
}