Skip to content

Fixes t00xx #61

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 12, 2014
Merged

Fixes t00xx #61

merged 3 commits into from
Mar 12, 2014

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Mar 12, 2014

Second version, taking reviewer comments into account.

odersky added 3 commits March 10, 2014 15:09
Need to compile the self type of a class not in the context of the class members but one context further out.
Reason: self type should not be able to see the members.
This test case exercised several problems:

1.)2.) Two ways to run into a cyclic references. Fixed by
 - assuming an early info when completing a typedef, similarly to what is done for a classdef
 - doing wellformed bounds checking in a later phase.

Failure to check whether arguments correspond to F-bounds.
 - a substitution was missing.
Constructors need to be completed in the context which immediately encloses
a class. Otherwise type references in the constructor see the wrong types,
as is demonstrated in t0054. The difficulty here is that the inner class B
nested in A also extends from A. Then it makes a difference whether the constructor
parameter types of B are resolved in the context of B or in the context of A.
Added explanation for context handling of constructors.
@odersky
Copy link
Contributor Author

odersky commented Mar 12, 2014

Review by @DarkDimius @sjrd

odersky added a commit that referenced this pull request Mar 12, 2014
@odersky odersky merged commit db950e5 into scala:master Mar 12, 2014
@sjrd
Copy link
Member

sjrd commented Mar 12, 2014

LGTM

@xeno-by
Copy link

xeno-by commented Mar 12, 2014

Who's tooxx? :)

@odersky odersky deleted the fixes-t00xx branch March 13, 2014 14:46
WojciechMazur pushed a commit to WojciechMazur/dotty that referenced this pull request Mar 19, 2025
Backport "Fix ctx implicits under case unapplySeq" to 3.3 LTS
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.

3 participants