aboutsummaryrefslogtreecommitdiff
path: root/tools/tree-sitter/test/corpus/self-referencing-record.txt
blob: 00a37e9acf146fbf2d6787f677a12b6ef130c9b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
==================
self-referencing-record
==================

module

type
  R = record
    field: ^R
  end

end.

---

(source_file
  (module_declaration
    (type_section
      (type_declaration
        (identifier_definition
          (identifier))
        (record_type
          (field_declaration
            (field_identifier
              (identifier))
            (pointer_type
              (identifier))))))))