summaryrefslogtreecommitdiff
path: root/tiger-compiler/tests/object/good/forward-reference-to-class.tig
blob: 218c3795179d18382ec0ca937f99d47a9da0b1c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
let
  /* A block of types.  */
  class A
  {
    /* Valid forward reference to B, defined in the same block
         as the class enclosing this member.  */
    var b := new B
  }
  type t = int
  class B
  {
  }
in
end