summaryrefslogtreecommitdiff
path: root/src/tests/eolian/data/var.eo
blob: 93fcacc882779c05ee417c4dc788f1be8469540c (plain)
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: own(ptr(char));
      }
   }
}