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

Warnings-as-errors not properly flushed in the toplevel #6396

vicuna opened this issue May 6, 2014 · 1 comment


None yet
2 participants
Copy link

commented May 6, 2014

Original bug ID: 6396
Reporter: @alainfrisch
Assigned to: @alainfrisch
Status: closed (set by @xavierleroy on 2017-02-16T14:18:37Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 4.02.0+dev
Target version: 4.03.0+dev / +beta1
Fixed in version: 4.03.0+dev / +beta1
Category: typing
Monitored by: @hcarty

Bug description


$ ocaml -w +A -warn-error +A 
        OCaml version 4.02.0+dev5-2014-04-29

# class c = object   method x = 1   end;;
class c : object method x : int end
# class e = object inherit c  method x = 3 method f = 1 + "x" end;;
Warning 7: the method x is overridden.
Error: This expression has type string but an expression was expected of type
# ();;
Error: Some fatal warnings were triggered (1 occurrences)

This comment has been minimized.

Copy link

commented Dec 3, 2015

Comment author: @alainfrisch

Fixed by commit 837bcd6.

@vicuna vicuna closed this Feb 16, 2017

@vicuna vicuna added the typing label Mar 14, 2019

@vicuna vicuna added this to the 4.03.0 milestone Mar 14, 2019

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