syntax/parse: nullability analysis improvement
An S-pattern used as an H-pattern is not nullable.
This commit is contained in:
parent
2e96b60120
commit
9bf30e0977
|
@ -490,6 +490,7 @@ A RepConstraint is one of
|
|||
[(hpat:commit hp) (hpat-nullable hp)]
|
||||
[(hpat:ord hp _ _) (hpat-nullable hp)]
|
||||
[(hpat:post hp) (hpat-nullable hp)]
|
||||
[(? pattern? hp) 'no]
|
||||
[_ 'unknown]))
|
||||
|
||||
;; ehpat-nullable : EllipsisHeadPattern -> AbsNullable
|
||||
|
|
Loading…
Reference in New Issue
Block a user