Merge branch 'ZackerySpytz-OCaml-overloaded-bools-typecheck'
* ZackerySpytz-OCaml-overloaded-bools-typecheck: [OCaml] Remove the last remnants of libswigocaml [OCaml] Fix the handling of bools in overloaded functions
This commit is contained in:
commit
8587fd7b0d
5 changed files with 16 additions and 23 deletions
15
Examples/test-suite/ocaml/overload_bool_runme.ml
Normal file
15
Examples/test-suite/ocaml/overload_bool_runme.ml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
open Swig
|
||||
open Overload_bool
|
||||
|
||||
let _ =
|
||||
assert (_overloaded '(true) as string = "bool");
|
||||
assert (_overloaded '(false) as string = "bool");
|
||||
assert (_overloaded '(0) as string = "int");
|
||||
assert (_overloaded '(1) as string = "int");
|
||||
assert (_overloaded '(2) as string = "int");
|
||||
assert (_overloaded '("1234") as string = "string");
|
||||
assert (_boolfunction '(true) as string = "true");
|
||||
assert (_boolfunction '(false) as string = "false");
|
||||
assert (_intfunction '(true) as string = "int");
|
||||
assert (_intfunction '(false) as string = "int");
|
||||
;;
|
||||
Loading…
Add table
Add a link
Reference in a new issue