Files
cpp-thirdparty/winx64/bin/swigwin-4.0.0/Examples/test-suite/ocaml/overload_method_runme.ml
2019-08-04 21:38:19 -05:00

12 lines
303 B
OCaml

open Swig
open Overload_method
let _ =
let b = new_Base '() in
assert (b -> "method" () as int = 42);
assert (b -> "overloaded_method" () as int = 42);
assert (b -> "overloaded_method" (5) = C_void);
assert (b -> "overloaded_method" () as int = 5);
assert (b -> "method" () as int = 5);
;;