Skip to content

Issue 2452#9

Open
PRITI1999 wants to merge 491 commits intomasterfrom
fix-issue-2452
Open

Issue 2452#9
PRITI1999 wants to merge 491 commits intomasterfrom
fix-issue-2452

Conversation

@PRITI1999
Copy link
Copy Markdown
Owner

No description provided.

@PRITI1999
Copy link
Copy Markdown
Owner Author

@Maxi17 The latest commit fixes the issue. I tried to add a better testcase to ensure length and getLength() behave similarly. Please provide your feedback.

@Maxi17
Copy link
Copy Markdown

Maxi17 commented Aug 17, 2020

@PRITI1999 It looks good. Please fix the misc tests by adding documentation to the methods you added in ValueMethodIdentifier and ValueTransfer, and then open the PR to the main repository.

mernst and others added 28 commits October 16, 2020 10:29
Defaulting rules for the primary annotation of an intersection type:
1. One or more of the bounds have an explicit annotation: the default annotation is the first explicit annotation.  (I tried making the default the glb of the (explicit or defaulted) annotations on the bounds, but I found this confusing in the case of casts.  We can discuss this further.)
2. Zero bounds have an explicit annotation: the default annotation of the location is applied.  (So, either explicit upper bound defaults, or for casts, the annotation of the cast expression.)

Warning:
If any explicit annotation on a bound is not the same as the primary annotation, then a warning is issued.  (I was going to put this in a separate pull request, but it needs to be in this one so that the test cases are easier to understand.)  

Changes to AnnotatedIntersectionType:
1. Adding a primary annotation to an intersection type causes that annotation to be copied to its bounds.  This is similar to what happens when an annotation is added to a type variable.
2. New method `getBounds` returns a list of the bounds of the intersection type.  (This used to be done via `directSuperTypes` method.
3.  The bounds can be any AnnotatedTypeMirror if the intersection arises from capture conversion.

 Fixes typetools#868; Fixes typetools#3349; Fixes typetools#3362; Fixes typetools#3659.
mernst and others added 30 commits December 14, 2020 08:55
Co-authored-by: Michael Ernst <mernst@cs.washington.edu>
This removal reduces latency by giving less chance for later jobs to get their first jobs into the queue before this one's last jobs get in the queue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.