I have a one-line js_of_ocaml program:
Dom_html.window##scroll 100 100 ;
Which fails with the error:
File "tests/test_scrolling.ml", line 2, characters 0-23:
Error: This expression has type int -> int -> unit Js.meth
but an expression was expected of type < get : 'a; .. > Js.gen_prop
Command exited with code 2.
How do I call this method?
According to the documentation the method invocation has the following syntax:
That means, to me, that methods should be called in uncurryied form, i.e.,