Commit 295146c
* Add regression test for #9382: SRTP stress test with matrix inverse
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Add regression test for #13114: SynPat.Record and QuoteExpr traversal
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Fix regression tests for #13114: remove unrelated test, add IsInst and FromParseError
- Remove the SRTP matrix inverse test from MemberConstraints.fs: it references
issue #9382 and is unrelated to this PR (#13114).
- Add SynPat.IsInst test: verifies defaultTraverse descends into the SynType
inside :? type-test patterns.
- Add SynPat.FromParseError test: verifies defaultTraverse descends into the
nested pattern wrapped by FromParseError.
Per reviewer feedback from @abonie.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Remove extra trailing newline in TreeVisitorTests (retrigger CI)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Remove SynPat.IsInst test: defaultTraverse does not handle IsInst (bug still present)
SynPat.IsInst is not in the traversePat defaultTraverse in ServiceParseTreeWalk.fs,
so the test asserting it works was failing on all platforms.
Keeping Record, QuoteExpr, and Paren (FromParseError-labelled) tests which pass.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Fix #13114: Handle SynPat.IsInst and SynPat.FromParseError in defaultTraverse
Add SynPat.IsInst and SynPat.FromParseError cases to the defaultTraverse
function in traversePat (ServiceParseTreeWalk.fs):
- SynPat.IsInst: traverses into the SynType via traverseSynType
- SynPat.FromParseError: traverses into the wrapped SynPat
Add regression test for SynPat.IsInst traversal using :? type test pattern.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Rename 'pat' to 'ty' in SynPat.IsInst case (it's a type, not a pattern)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 0b91207 commit 295146c
2 files changed
Lines changed: 110 additions & 0 deletions
File tree
- src/Compiler/Service
- tests/FSharp.Compiler.Service.Tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
801 | 801 | | |
802 | 802 | | |
803 | 803 | | |
| 804 | + | |
| 805 | + | |
804 | 806 | | |
805 | 807 | | |
806 | 808 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
0 commit comments