Commit 388e2fd
committed
Fix racket#1352: Add validation in has-struct-property->sc
When looking up a struct property type, consolidated error handling into
a single match expression that properly handles missing types and non-
struct-property types instead of causing internal errors.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Closes racket#13521 parent df7caae commit 388e2fd
File tree
2 files changed
+23
-1
lines changed- typed-racket-lib/typed-racket/private
- typed-racket-test/fail
2 files changed
+23
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1389 | 1389 | | |
1390 | 1390 | | |
1391 | 1391 | | |
1392 | | - | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
1393 | 1405 | | |
1394 | 1406 | | |
1395 | 1407 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments