Merge branch 'ZackerySpytz-OCaml-overload_numeric-warnings'
* ZackerySpytz-OCaml-overload_numeric-warnings: [OCaml] Some %typecheck precedence tweaks
This commit is contained in:
commit
a873d3810e
2 changed files with 27 additions and 8 deletions
14
Examples/test-suite/ocaml/overload_numeric_runme.ml
Normal file
14
Examples/test-suite/ocaml/overload_numeric_runme.ml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
open Swig
|
||||
open Overload_numeric
|
||||
|
||||
let _ =
|
||||
let n = new_Nums '() in
|
||||
let arg = C_char 'c' in
|
||||
assert (n -> over (arg) as string = "signed char");
|
||||
let arg = C_short 2 in
|
||||
assert (n -> over (arg) as string = "short");
|
||||
assert (n -> over (2) as string = "int");
|
||||
let arg = C_float 2. in
|
||||
assert (n -> over (arg) as string = "float");
|
||||
assert (n -> over (2.) as string = "double")
|
||||
;;
|
||||
Loading…
Add table
Add a link
Reference in a new issue