Commit f498636
Add regression tests for #10043: backtick, @, and ! in type annotations
Tests that invalid characters in type annotation positions produce clear
error messages instead of confusing 'Unexpected reserved keyword':
- backtick: FS3563 'This is not a valid identifier'
- @: FS0615 'Unexpected infix operator in type expression'
Also removes deleted flaterrors.fs reference from fsproj.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent d04f46f commit f498636
3 files changed
Lines changed: 43 additions & 74 deletions
File tree
- tests/FSharp.Compiler.ComponentTests
- CompilerOptions/fsc
- ErrorMessages
Lines changed: 0 additions & 73 deletions
This file was deleted.
Lines changed: 42 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
| 303 | + | |
303 | 304 | | |
304 | 305 | | |
305 | 306 | | |
| |||
395 | 396 | | |
396 | 397 | | |
397 | 398 | | |
398 | | - | |
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
| |||
0 commit comments