Skip to content

Commit

Permalink
Add failing example of the #use directive
Browse files Browse the repository at this point in the history
  • Loading branch information
craigfe committed Aug 27, 2020
1 parent e3183c4 commit 26cfd0e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/imported.cinaps
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(* -*- mode: tuareg -*- *)

let to_print = [ "from"; "included.cinaps" ]
5 changes: 5 additions & 0 deletions test/test_staged.ml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ let foo_string = foo_string
(*$*)


(*$ #use "imported.cinaps";;
let () = List.iter to_print ~f:printf
*)
(*$*)

(*$ let blah () = printf "42"
let foo () = printf "1"
let bar () = printf "2" $*)
Expand Down

0 comments on commit 26cfd0e

Please sign in to comment.