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: 6678 Reporter: MarkJosephs Status: closed (set by @xavierleroy on 2016-12-07T10:37:00Z) Resolution: not a bug Priority: normal Severity: minor Category: runtime system and C interface Monitored by:@gasche
Bug description
- (1. +. 2.);;
Error: This expression has type float but an expression was expected of type
int
- (1.);;
: float = -1.
The latter should also be reported as an error for the same reason as the former.
The text was updated successfully, but these errors were encountered:
In the latter case, the parser recognizes that the argument of "-" is a float constant and thus handles the input as a float literal (just as using "-."). Do we really need to change something here?
" - (1.) " falls into the same code that handles " - 1.0 ". Nobody wants to have to write " -. 1.0 " for a negative floating-point literal. Hence, the (harmless) tolerance for " - (1.) " is here to stay.
Original bug ID: 6678
Reporter: MarkJosephs
Status: closed (set by @xavierleroy on 2016-12-07T10:37:00Z)
Resolution: not a bug
Priority: normal
Severity: minor
Category: runtime system and C interface
Monitored by: @gasche
Bug description
The latter should also be reported as an error for the same reason as the former.
The text was updated successfully, but these errors were encountered: