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.
*)
|