aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/eolian/data/var.eo
blob: 6605d30e28fe5c256a4f89091c36044c0b81fd28 (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: string @owned;
      }
   }
}