-
Notifications
You must be signed in to change notification settings - Fork 831
Open
Labels
BugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.(Internal MS Team use only) Describes an issue with limited impact on existing code.help wanted
Milestone
Description
byref parameters whose identifier starting with some non-ASCII (like Chinese characters) cannot be set.
Repro steps
Enter this code in fsi:
let f (x: int byref) = x <- x + 1
let f3 (a叉: int byref) = a叉 <- a叉 + 1
let f2 (叉: int byref) = 叉 <- 叉 + 1 // fails to compile
let f4 (叉a: int byref) = 叉a <- 叉a + 1 // fails to compileExpected behavior
The code can be compiled successfully
Actual behavior
A FS0027 was thrown.
Known workarounds
Don't use non-ASCII identifiers.
Related information
Provide any related information (optional):
- Windows 11 23H2
- .NET 9 with F#9
- Editing Tools: fsi or ionide-vscode
vzarytovskii
Metadata
Metadata
Assignees
Labels
BugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.(Internal MS Team use only) Describes an issue with limited impact on existing code.help wanted
Type
Projects
Status
New
