Florian Weimer
2005-08-25 17:22:57 UTC
The following snippet:
signature FOO =
sig
type foo
end
signature BAR =
sig
structure Foo : FOO
type bar = Foo.foo
end
functor Baz (structure Foo : FOO
structure Bar : BAR
sharing type Foo.foo = Bar.bar)
: sig end =
struct
end
gives this error message with SML/NJ 110.52-1 (the Debian package from
the unstable distribution):
help.sml:12.9-17.7 Error: type definition spec inside of sharing at: Foo.foo
MLton compiles the program just fine. Behavior with earlier SML/NJ
versions was apparently different. Is this a bug in SML/NJ?
(I'm asking because this is one of the things which prevents the ML
Kit from compiling with more recent SML/NJ versions.)
signature FOO =
sig
type foo
end
signature BAR =
sig
structure Foo : FOO
type bar = Foo.foo
end
functor Baz (structure Foo : FOO
structure Bar : BAR
sharing type Foo.foo = Bar.bar)
: sig end =
struct
end
gives this error message with SML/NJ 110.52-1 (the Debian package from
the unstable distribution):
help.sml:12.9-17.7 Error: type definition spec inside of sharing at: Foo.foo
MLton compiles the program just fine. Behavior with earlier SML/NJ
versions was apparently different. Is this a bug in SML/NJ?
(I'm asking because this is one of the things which prevents the ML
Kit from compiling with more recent SML/NJ versions.)