Skip to content

Commit 7fa6a8c

Browse files
committed
Test.
1 parent 338552a commit 7fa6a8c

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

testsuite/tests/warnings/w03.ml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
[@@@ocaml.warning "+3"]
2+
3+
module X: sig
4+
type t [@@ocaml.deprecated]
5+
val x: int [@@ocaml.deprecated]
6+
end = struct
7+
type t
8+
let x = 0
9+
end
10+
11+
type t1 = X.t
12+
let x1 = X.x
13+
14+
type t2 = X.t * X.t [@@ocaml.warning "-3"]
15+
type t3 = (X.t * X.t) [@ocaml.warning "-3"]
16+
type t4 = (X.t [@ocaml.warning "-3"]) * X.t
17+
18+
type t5 = X.t [@@ocaml.warning "-3"]
19+
and t6 = X.t
20+
21+
type t7 = A of t7
22+
[@@ocaml.deprecated]
23+
24+
type t8 = A of (t8 [@ocaml.warning "-3"])
25+
[@@ocaml.deprecated]
26+
27+
type t9 = A of t9
28+
[@@ocaml.deprecated]
29+
[@@ocaml.warning "-3"]
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
File "w03.ml", line 11, characters 10-13:
2+
Warning 3: deprecated: X.t
3+
File "w03.ml", line 12, characters 9-12:
4+
Warning 3: deprecated: X.x
5+
File "w03.ml", line 16, characters 40-43:
6+
Warning 3: deprecated: X.t
7+
File "w03.ml", line 19, characters 9-12:
8+
Warning 3: deprecated: X.t
9+
File "w03.ml", line 21, characters 15-17:
10+
Warning 3: deprecated: t7

0 commit comments

Comments
 (0)