Skip to content

Commit

Permalink
Rename DotlessFloat32 to DotlessFloat32Literal.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdziadkiewicz committed Nov 22, 2019
1 parent 4e8c234 commit 1ec8bf3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/fsharp/LanguageFeatures.fs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type LanguageFeature =
| NameOf = 6
| ImplicitYield = 7
| OpenStaticClasses = 8
| DotlessFloat32 = 9
| DotlessFloat32Literal = 9


/// LanguageVersion management
Expand Down Expand Up @@ -56,7 +56,7 @@ type LanguageVersion (specifiedVersion) =
LanguageFeature.NameOf, previewVersion
LanguageFeature.ImplicitYield, languageVersion47
LanguageFeature.OpenStaticClasses, previewVersion
LanguageFeature.DotlessFloat32, previewVersion
LanguageFeature.DotlessFloat32Literal, previewVersion
|]

let specified =
Expand Down
2 changes: 1 addition & 1 deletion src/fsharp/LanguageFeatures.fsi
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type LanguageFeature =
| NameOf = 6
| ImplicitYield = 7
| OpenStaticClasses = 8
| DotlessFloat32 = 9
| DotlessFloat32Literal = 9


/// LanguageVersion management
Expand Down
2 changes: 1 addition & 1 deletion src/fsharp/lex.fsl
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ rule token args skip = parse

| ieee32
{ let s = lexemeTrimRight lexbuf 1
if lexbuf.SupportsFeature LanguageFeature.DotlessFloat32 || s.Contains "." then
if lexbuf.SupportsFeature LanguageFeature.DotlessFloat32Literal || s.Contains "." then
try
IEEE32 (float32 (removeUnderscores s))
with _ -> fail args lexbuf (FSComp.SR.lexInvalidFloat()) (IEEE32 0.0f)
Expand Down

0 comments on commit 1ec8bf3

Please sign in to comment.