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

vicuna opened this issue Jun 21, 2010 · 1 comment


None yet
2 participants
Copy link

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:
method s: string
end = struct
class generic_component () =
method s = "AAA"

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).


This comment has been minimized.

Copy link

commented Jun 21, 2010

Comment author: @garrigue

this was a stupid bug in error reporting...

fixed in version/3.12 revision 10600.

@vicuna vicuna closed this Jun 21, 2010

@vicuna vicuna added the bug label Mar 20, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.