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

Comments

Projects
None yet
2 participants
@vicuna
Copy link
Collaborator

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

This comment has been minimized.

Copy link
Collaborator Author

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