Skip to content

Conversation

@N5N3
Copy link
Member

@N5N3 N5N3 commented Feb 6, 2023

This PR moves the old offset field in varblinding into stenv.
I think this is better as it makes offset propagation easier, and we can keep this info in more cases.

Following that, a new offset field has been added back to records the difference between var's lb::TypeVar if it's lb == ub.
This seems necessary if we want distinguish diagonal Vararg length with different offset.
This change may not be so urgent, as the concrete path is not affected.

close #39099, close #22123

@N5N3 N5N3 added the types and dispatch Types, subtyping and method dispatch label Feb 6, 2023
@N5N3 N5N3 marked this pull request as draft February 6, 2023 14:51
@N5N3 N5N3 force-pushed the offset-var-2nd-trail branch 7 times, most recently from 9103ffa to c8d8214 Compare February 11, 2023 16:20
@N5N3
Copy link
Member Author

N5N3 commented Feb 11, 2023

@nanosoldier runtests()

@nanosoldier
Copy link
Collaborator

Your package evaluation job has completed - possible new issues were detected.
A full report can be found here.

@N5N3 N5N3 marked this pull request as ready for review February 13, 2023 01:33
@N5N3 N5N3 changed the title WIP: add basic offset analysis for vararg length. Subtype: enhance the offset analysis of diagonal vararg length. Feb 13, 2023
@N5N3 N5N3 marked this pull request as draft March 16, 2023 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

types and dispatch Types, subtyping and method dispatch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Subtyping non-transitivity involving varargs Crash in subtype_unionall()

2 participants