Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Local module forms in class declarations #5

Open
dsheets opened this issue Mar 21, 2014 · 1 comment
Open

Local module forms in class declarations #5

dsheets opened this issue Mar 21, 2014 · 1 comment

Comments

@dsheets
Copy link
Member

dsheets commented Mar 21, 2014

class my_class =
  let open My_module in
  let x = my_fun my_val in
object
  method x = x
end

is a syntax error.

class my_class =
  let module M = My_module in
  let x = M.my_fun M.my_val in
object
  method x = x
end

is also a syntax error.

@yallop
Copy link
Contributor

yallop commented Mar 21, 2014

There's some discussion of this under Mantis 6271.

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

No branches or pull requests

2 participants