aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/eolian/data/function_as_argument.eo
blob: 5a14e8679ecee3b1f3f7b848f8011fb80acfa211 (plain) (blame)
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: mstring @owned;
    }
  }
}