1. camlspotter
  2. mutated_ocaml

Commits

camlspotter  committed 344bfdb

added a new test for fstclassmodule

  • Participants
  • Parent commits c49e9bb
  • Branches ocamlspot

Comments (0)

Files changed (1)

File ocamlspot/tests/fstclassmodule2.ml

View file
+module type ASig = sig
+  val f : int -> int
+end
+
+module A = struct
+  let f x = x + 1
+end
+
+let x = (module A : ASig)
+
+let y =
+  let module B = (val x : ASig) in
+  B.f 1