Skip to content

Commit

Permalink
update error msg 3382
Browse files Browse the repository at this point in the history
  • Loading branch information
Yatao Li committed Jul 31, 2020
1 parent 408862d commit a2853e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/fsharp/FSComp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1535,4 +1535,4 @@ forFormatInvalidForInterpolated4,"Interpolated strings used as type IFormattable
3379,parsEofInInterpolatedString,"Incomplete interpolated string begun at or before here"
3380,parsEofInInterpolatedVerbatimString,"Incomplete interpolated verbatim string begun at or before here"
3381,parsEofInInterpolatedTripleQuoteString,"Incomplete interpolated triple-quote string begun at or before here"
3382,parsEmptyFillInInterpolatedString,"Empty interpolated string fill begun at or before here"
3382,parsEmptyFillInInterpolatedString,"Invalid interpolated string. This interpolated string expression fill is empty, an expression was expected."
4 changes: 2 additions & 2 deletions tests/fsharp/Compiler/Language/StringInterpolation.fs
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ let xd = $"%A{}" // empty expression
CompilerAssert.TypeCheckWithErrorsAndOptions [| "--langversion:preview" |]
code
[|(FSharpErrorSeverity.Error, 3382, (2, 15, 2, 15),
"Empty interpolated string fill begun at or before here")
"Invalid interpolated string. This interpolated string expression fill is empty, an expression was expected.")
|]

let code = """
Expand All @@ -628,7 +628,7 @@ let xd = $"%A{ }" // empty expression
CompilerAssert.TypeCheckWithErrorsAndOptions [| "--langversion:preview" |]
code
[|(FSharpErrorSeverity.Error, 3382, (2, 15, 2, 17),
"Empty interpolated string fill begun at or before here")
"Invalid interpolated string. This interpolated string expression fill is empty, an expression was expected.")
|]

[<Test>]
Expand Down

0 comments on commit a2853e6

Please sign in to comment.