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: 3709 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Hi, Could the manual could be more explicit about what constites "the remaining
part of the type" in the Aliased and recursive types section of chapter 6.4. I
was surprised by the following behavior:
class foo =
object
val x: ([X] as 'a) = X
val y: ([Y] as 'a) = Y
end
which fails indicating that the scope of 'a is the whole class and not the field
spec as I had originally guess. Cheers -- ethan.aubin@pobox.com
The text was updated successfully, but these errors were encountered:
I've added a comment stating that aliases have generally the same scope as named
type variables. Note however that there are exceptions to this rule; the whole
definition should be rethought, rather than explaining in detail the current
unsatisfactory situation...
Original bug ID: 3709
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Ethan Aubin
Version: 3.07+2
OS: Solaris
Submission from: c-24-60-21-144.hsd1.ma.comcast.net (24.60.21.144)
Hi, Could the manual could be more explicit about what constites "the remaining
part of the type" in the Aliased and recursive types section of chapter 6.4. I
was surprised by the following behavior:
class foo =
object
val x: ([
X] as 'a) =
Xval y: ([
Y] as 'a) =
Yend
which fails indicating that the scope of 'a is the whole class and not the field
spec as I had originally guess. Cheers -- ethan.aubin@pobox.com
The text was updated successfully, but these errors were encountered: