summaryrefslogtreecommitdiff
path: root/testsuite/tests/parsetree/source.ml
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/parsetree/source.ml')
-rw-r--r--testsuite/tests/parsetree/source.ml15
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/tests/parsetree/source.ml b/testsuite/tests/parsetree/source.ml
index 99ecea98af..ef67a9746a 100644
--- a/testsuite/tests/parsetree/source.ml
+++ b/testsuite/tests/parsetree/source.ml
@@ -7298,3 +7298,18 @@ fun contents -> {contents=contents[@foo]};;
(* https://github.com/LexiFi/gen_js_api/issues/61 *)
let () = foo##.bar := ();;
+
+(* "let open" in classes and class types *)
+
+class c =
+ let open M in
+ object
+ method f : t = x
+ end
+;;
+class type ct =
+ let open M in
+ object
+ method f : t
+ end
+;;