File: 164_functor.sml

package info (click to toggle)
smlsharp 4.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 123,732 kB
  • sloc: ansic: 16,725; sh: 4,347; makefile: 2,191; java: 742; haskell: 493; ruby: 305; cpp: 284; pascal: 256; ml: 255; lisp: 141; asm: 97; sql: 74
file content (44 lines) | stat: -rw-r--r-- 773 bytes parent folder | download | duplicates (2)
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
structure S =
struct
  datatype t = T
end

functor F(
  A : sig
    structure S1 : sig
      type t
    end
    structure S2 : sig
      datatype t = T
    end
    sharing type S1.t = S2.t
  end
) =
struct
end

structure X = F(
structure S1 = S
structure S2 = S
)

(*
2011-11-29 katsu

This causes BUG.

[BUG] NameEval: TSTR_DTY vs TSTR
    raised at: ../nameevaluation/main/NameEval.sml:1841.45-1841.67
   handled at: ../nameevaluation/main/NameEval.sml:2248.8
                ../nameevaluation/main/NameEval.sml:2460.31
                ../nameevaluation/main/NameEval.sml:2493.27-2493.30
                ../toplevel2/main/Top.sml:753.66-753.69
                ../toplevel2/main/Top.sml:836.37
                main/SimpleMain.sml:368.53

*)

(*
2011-11-29 ohori
Fixed.
*)