You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 246 Reporter: administrator Status: closed Resolution: not a bug Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Original bug ID: 246
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Sylvain Boulme
Version: 3.00
OS: Linux RedHat 6.2
Submission from: cerdon.lip6.fr (132.227.83.56)
Le parser (et le typeur ?) dans le toplevel reagit de facon anormale en
presence
de variables de rangee faibles dans les signatures.
Par exemple, sous l'hypothese du code suivant :
class foo =
object
method printA = "A"
end;;
module Titi =
struct
let f y (x:#foo) = x
let blah = f 0
end;;
Le module "Titi" a la signature :
sig
val f : 'a -> (#foo as 'b) -> 'b
val blah : (_#foo as 'a) -> 'a
end
Si on essaye de definir :
module type Toto =
sig
val f : 'a -> (#foo as 'b) -> 'b
val blah : (_#foo as 'a) -> 'a
end
La reponse est
The type constructor foo expects 0 argument(s),
but is here applied to 1 argument(s)
De meme, si on essaye de definir :
module type Toto =
sig
val blah : < printA: string; _..>
end;;
La reponse est
Syntax error: 'end' expected, the highlighted 'sig' might be unmatched
Cordialement,
Sylvain.
The text was updated successfully, but these errors were encountered: