File: pr10693_bad.compilers.reference

package info (click to toggle)
ocaml 5.4.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 44,372 kB
  • sloc: ml: 370,196; ansic: 52,820; sh: 27,396; asm: 5,462; makefile: 3,679; python: 974; awk: 278; javascript: 273; perl: 59; fortran: 21; cs: 9
file content (55 lines) | stat: -rw-r--r-- 1,748 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
File "pr10693_bad.ml", line 27, characters 26-27:
27 | module Bad (A : S') : S = A
                               ^
Error: Signature mismatch:
       Modules do not match:
         sig val x : 'a option module M : Dep -> S end
       is not included in
         S
       In module M:
       Modules do not match:
         Dep -> S
       is not included in
         (X : Dep) ->
           sig
             val x : X.t option
             module M : (Y : Dep) -> sig val x : X.t option end
           end
       In module M:
       Modules do not match:
         S
       is not included in
         sig
           val x : X.t option
           module M : (Y : Dep) -> sig val x : X.t option end
         end
       In module M.M:
       Modules do not match:
         (X : Dep) ->
           sig
             val x : X.t option
             module M : (Y : Dep) -> sig val x : X.t option end
           end
       is not included in
         (Y : Dep) -> sig val x : X.t option end
       In module M.M:
       Modules do not match:
         sig
           val x : X.t option
           module M : (Y : Dep) -> sig val x : X.t option end
         end
       is not included in
         sig val x : X.t option end
       In module M.M:
       Values do not match:
         val x : X.t option
       is not included in
         val x : X/2.t option
       The type X.t option is not compatible with the type X/2.t option
       Type X.t is not compatible with type X/2.t
       File "_none_", line 1:
         Definition of module X
       File "_none_", line 1:
         Definition of module X/2
       File "pr10693_bad.ml", line 17, characters 6-24: Expected declaration
       File "pr10693_bad.ml", line 15, characters 4-22: Actual declaration