aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/eolian/data/var.eo
blob: a618f0331fd9d622aed4f01baa6a09d0a5dff105 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// regular constant
const Foo: int = 5;

// regular global
var Bar: float = 10.3f;

// no-value global
var Baz: long;

// extern global
var @extern Bah: double;

class Var {
   methods {
      foo {
         params {
            idx: int;
         }
         return: mstring @owned;
      }
   }
}