Skip to content

Commit 62c9f5e

Browse files
committed
Included const keyword range in static constant expr
1 parent aa4eeb6 commit 62c9f5e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/fsharp/pars.fsy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5044,7 +5044,7 @@ atomType:
50445044

50455045
| CONST atomicExpr
50465046
{ let e, _ = $2
5047-
SynType.StaticConstantExpr(e, e.Range) }
5047+
SynType.StaticConstantExpr(e, lhs parseState) }
50485048

50495049
| FALSE
50505050
{ SynType.StaticConstant(SynConst.Bool false, lhs parseState) }

tests/fsharp/typeProviders/negTests/neg1.bsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1358,7 +1358,7 @@ neg1.fsx(341,110,341,114): typecheck error FS0001: This expression was expected
13581358
but here has type
13591359
'bool'
13601360

1361-
neg1.fsx(342,110,342,114): typecheck error FS3045: Invalid static argument to provided type. Expected an argument of kind 'string'.
1361+
neg1.fsx(342,104,342,114): typecheck error FS3045: Invalid static argument to provided type. Expected an argument of kind 'string'.
13621362

13631363
neg1.fsx(345,104,345,106): typecheck error FS3045: Invalid static argument to provided type. Expected an argument of kind 'float'.
13641364

0 commit comments

Comments
 (0)