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

Checking of class type inclusion with arguments is broken #5081

Closed
vicuna opened this issue Jun 21, 2010 · 1 comment
Closed

Checking of class type inclusion with arguments is broken #5081

vicuna opened this issue Jun 21, 2010 · 1 comment
Assignees
Labels

Comments

@vicuna
Copy link

vicuna commented Jun 21, 2010

Original bug ID: 5081
Reporter: @alainfrisch
Assigned to: @garrigue
Status: closed (set by @garrigue on 2010-06-21T11:49:07Z)
Resolution: fixed
Priority: normal
Severity: crash
Fixed in version: 3.12.0+dev
Category: ~DO NOT USE (was: OCaml general)

Bug description

The following produces a segfault:

module S : sig
class generic_component:
object
method s: string
end
end = struct
class generic_component () =
object
method s = "AAA"
end
end

let () =
print_endline ((new S.generic_component) # s)

It seems that only object signatures are checked, not class parameters. I suspect this has been introduced by commit 10541 (not checked).

@vicuna
Copy link
Author

vicuna commented Jun 21, 2010

Comment author: @garrigue

this was a stupid bug in error reporting...

fixed in version/3.12 revision 10600.

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

No branches or pull requests

2 participants