File tree 2 files changed +27
-0
lines changed
2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -101,3 +101,19 @@ Cannot find module error
101
101
^^^^^^^^ ^
102
102
Error: [% import ]: cannot find the module type M in Stuff. S
103
103
[1 ]
104
+
105
+ Multiple signature items
106
+ $ cat > test. ml << EOF
107
+ > [%% import:
108
+ > type b = int
109
+ > type a = string]
110
+ > EOF
111
+
112
+ OCaml 4.08 reports different numbers.
113
+ It's been fixed for later versions in https: // github. com/ ocaml/ ocaml/ pull/ 8541
114
+ $ dune build 2 > &1 | sed -r ' s/(line|character)s? [0-9]+(-[0-9]+)?/\1s %NUMBER%/g'
115
+ File " test.ml" , lines % NUMBER % , characters % NUMBER %:
116
+ 1 | [%% import:
117
+ 2 | type b = int
118
+ 3 | type a = string]
119
+ Error: [] expected
Original file line number Diff line number Diff line change @@ -87,3 +87,14 @@ Cannot find module error
87
87
File " test.ml" , line 1 , characters 34 -43:
88
88
Error: [% import ]: cannot find the module type M in Stuff. S
89
89
[1 ]
90
+
91
+ Multiple signature items
92
+ $ cat > test. ml << EOF
93
+ > [%% import:
94
+ > type b = int
95
+ > type a = string]
96
+ > EOF
97
+ $ dune build
98
+ File " test.ml" , line 1 , characters 0 -40:
99
+ Error: [] expected
100
+ [1 ]
You can’t perform that action at this time.
0 commit comments