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
Copy file name to clipboardExpand all lines: tests/fsharp/Compiler/Language/StringInterpolation.fs
+32-3
Original file line number
Diff line number
Diff line change
@@ -803,17 +803,46 @@ let TripleInterpolatedInVerbatimInterpolated = $\"123{456}789{$\"\"\"012\"\"\"}3
803
803
"Incomplete structured construct at or before this point in binding. Expected interpolated string (final part), interpolated string (part) or other token.");
804
804
(FSharpDiagnosticSeverity.Error,3379,(1,38,1,39),
805
805
"Incomplete interpolated string begun at or before here")|]
"Incomplete structured construct at or before this point in binding. Expected interpolated string (final part), interpolated string (part) or other token.");
814
814
(FSharpDiagnosticSeverity.Error,3378,(1,18,1,19),
815
815
"Incomplete interpolated string expression fill begun at or before here")|]
"Invalid interpolated string. Single quote or verbatim string literals may not be used in interpolated expressions in single quote or verbatim strings. \
824
+
Consider using an explicit 'let' binding for the interpolation expression or use a triple quote string as the outer string literal.");
825
+
(FSharpDiagnosticSeverity.Error,10,(1,1,1,39),
826
+
"Incomplete structured construct at or before this point in binding. Expected interpolated string (final part), interpolated string (part) or other token.");
827
+
(FSharpDiagnosticSeverity.Error,514,(1,38,1,39),
828
+
"End of file in string begun at or before here")|]
829
+
830
+
[<Test>]
831
+
let``String interpolation negative incomplete fill with another valid string`` ()=
"Invalid interpolated string. Single quote or verbatim string literals may not be used in interpolated expressions in single quote or verbatim strings. \
840
+
Consider using an explicit 'let' binding for the interpolation expression or use a triple quote string as the outer string literal.");
841
+
(FSharpDiagnosticSeverity.Error,10,(4,1,4,1),
842
+
"Incomplete structured construct at or before this point in binding. Expected interpolated string (final part), interpolated string (part) or other token.");
843
+
(FSharpDiagnosticSeverity.Error,514,(3,25,3,26),
844
+
"End of file in string begun at or before here")|]
0 commit comments