You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Consider:
$ 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
int
# ();;
Error: Some fatal warnings were triggered (1 occurrences)
The text was updated successfully, but these errors were encountered:
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
Consider:
The text was updated successfully, but these errors were encountered: