summaryrefslogtreecommitdiff
path: root/src/tests/eolian/data/function_as_argument.eo
blob: 4c27253e4022bcbb4a374a843299505c667b223b (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
import function_types;

class Function_As_Argument {
  methods {
    set_cb {
      params {
        cb: SimpleFunc;
      }
    }

    set_nonull_cb {
      params {
        cb: VoidFunc @nonull;
      }
    }

    call_cb {
      params {
        a: int;
        b: double;
      }
      return: string @owned;
    }
  }
}