Commit c18d785
Prevent assignment to literal ILFields (#9797)
* Prevent assignment to literal ILFields
* revert old mechanism
* add new error message, use it, and provide localizations
* add error message for literal and non-literal assignment
* first stab at tests
* flip directory separator in test project file
* fix namespace on file to allow for it to be picked up
* Update src/fsharp/TypeChecker.fs
Co-authored-by: Phillip Carter <pcarter@fastmail.com>
* Update tests/FSharp.Compiler.ComponentTests/Interop/SimpleInteropTests.fs
Co-authored-by: Phillip Carter <pcarter@fastmail.com>
* Update tests/FSharp.Compiler.ComponentTests/Interop/SimpleInteropTests.fs
Co-authored-by: Phillip Carter <pcarter@fastmail.com>
Co-authored-by: Phillip Carter <pcarter@fastmail.com>1 parent e7b1570 commit c18d785
2 files changed
+19
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1512 | 1512 | | |
1513 | 1513 | | |
1514 | 1514 | | |
| 1515 | + | |
| 1516 | + | |
1515 | 1517 | | |
1516 | 1518 | | |
1517 | 1519 | | |
1518 | | - | |
1519 | | - | |
| 1520 | + | |
| 1521 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3137 | 3137 | | |
3138 | 3138 | | |
3139 | 3139 | | |
| 3140 | + | |
| 3141 | + | |
| 3142 | + | |
| 3143 | + | |
| 3144 | + | |
| 3145 | + | |
| 3146 | + | |
| 3147 | + | |
| 3148 | + | |
| 3149 | + | |
| 3150 | + | |
| 3151 | + | |
3140 | 3152 | | |
3141 | 3153 | | |
3142 | 3154 | | |
| |||
3146 | 3158 | | |
3147 | 3159 | | |
3148 | 3160 | | |
3149 | | - | |
| 3161 | + | |
3150 | 3162 | | |
3151 | 3163 | | |
3152 | 3164 | | |
| |||
3159 | 3171 | | |
3160 | 3172 | | |
3161 | 3173 | | |
3162 | | - | |
| 3174 | + | |
3163 | 3175 | | |
3164 | | - | |
| 3176 | + | |
3165 | 3177 | | |
3166 | 3178 | | |
3167 | 3179 | | |
| |||
0 commit comments