Commit a5ac31e
Guard backtick-escaped names in overload error range narrowing
Skip narrowing for method names that need backtick escaping, since
the logical name length differs from the source text width. Also adds
tests for backtick-escaped methods and multiline method access.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 21562e7 commit a5ac31e
2 files changed
Lines changed: 49 additions & 1 deletion
File tree
- src/Compiler/Checking/Expressions
- tests/FSharp.Compiler.ComponentTests/ErrorMessages
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10427 | 10427 | | |
10428 | 10428 | | |
10429 | 10429 | | |
10430 | | - | |
| 10430 | + | |
| 10431 | + | |
| 10432 | + | |
| 10433 | + | |
| 10434 | + | |
10431 | 10435 | | |
10432 | 10436 | | |
10433 | 10437 | | |
| |||
Lines changed: 44 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
0 commit comments