Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow "let module", "let exception" and "let open" in class #7477

Closed
vicuna opened this issue Feb 9, 2017 · 0 comments
Closed

Allow "let module", "let exception" and "let open" in class #7477

vicuna opened this issue Feb 9, 2017 · 0 comments

Comments

@vicuna
Copy link

vicuna commented Feb 9, 2017

Original bug ID: 7477
Reporter: @Chris00
Assigned to: @yallop
Status: closed (set by @yallop on 2017-02-09T11:07:15Z)
Resolution: duplicate
Priority: normal
Severity: minor
Platform: x86_64
OS: GNU/Linux
OS Version: Debian testing
Category: ~DO NOT USE (was: OCaml general)
Duplicate of: #6271
Monitored by: @gasche @Chris00

Bug description

Given that

class foo =
let z = 1 in
object
method x = 1
end

works, it would be natural to also be able to write

class foo =
let module Z = ... in
object
method x = 1
end

class foo =
let exception X in
object
method x = 1
end

and

class foo =
let open Z in
object
method x = 1
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant