Skip to content

Commit

Permalink
Merge pull request #1705 from wilzbach/fix-8107
Browse files Browse the repository at this point in the history
Fix Issue 8107 - Float literals are not specified as they are implemented
  • Loading branch information
andralex committed Jun 16, 2017
2 parents 02a7c29 + cc78807 commit 69b9033
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/lex.dd
Expand Up @@ -923,6 +923,16 @@ $(GNAME LeadingDecimal):
It is not an error if the literal is rounded to fit into
the significant digits of the type.
)
$(P If a floating literal has a $(B .) and a type suffix, at least one
digit must be in-between:)

---------
1f; // OK
1.f; // forbidden
1d; // OK
1.d; // forbidden
1.; // OK, int
---------

$(P Complex literals are not tokens, but are assembled from
real and imaginary expressions during semantic analysis:
Expand Down

0 comments on commit 69b9033

Please sign in to comment.