swig/Examples/test-suite/ocaml/dynamic_cast_runme.ml
Zackery Spytz a159a252dd [OCaml] Fix the dynamic_cast test
Add out typemaps for SWIGTYPE *DYNAMIC and SWIGTYPE &DYNAMIC.

Add dynamic_cast_runme.ml.
2019-02-14 02:21:36 -07:00

9 lines
159 B
Standard ML

open Swig
open Dynamic_cast
let f = new_Foo '()
let b = new_Bar '()
let x = f -> blah ()
let y = b -> blah ()
assert (_do_test '(y) as string = "Bar::test")