Skip to content

When we strip tvars we should also recursively strip their instantiation... #1758

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 1 commit into from
Dec 13, 2012

Conversation

hubertp
Copy link
Contributor

@hubertp hubertp commented Dec 12, 2012

...s

as they can be tvars as well.
Otherwise our list of lub base types can be empty.
After this fix value x3 in the test case compiles.

review by @adriaanm

@ghost ghost assigned adriaanm Dec 12, 2012
@scala-jenkins
Copy link

Started jenkins job pr-scala-testsuite-linux-opt at https://scala-webapps.epfl.ch/jenkins/job/pr-scala-testsuite-linux-opt/1863/

@scala-jenkins
Copy link

jenkins job pr-scala-testsuite-linux-opt: Success - https://scala-webapps.epfl.ch/jenkins/job/pr-scala-testsuite-linux-opt/1863/

@scala-jenkins
Copy link

Started jenkins job pr-rangepos at https://scala-webapps.epfl.ch/jenkins/job/pr-rangepos/1148/

@scala-jenkins
Copy link

jenkins job pr-rangepos: Success - https://scala-webapps.epfl.ch/jenkins/job/pr-rangepos/1148/

@adriaanm
Copy link
Contributor

awesome -- fix LGTM

for future commit messages, please consider using a title in this style:
"recurse into instantiations when stripping type vars"

the commit title should read as an action that the commit performs on our codebase

shorter titles == easier scanning through commit logs and tidier release notes

@hubertp
Copy link
Contributor Author

hubertp commented Dec 12, 2012

Sure, sorry about that. I will change the name and push again.

@adriaanm
Copy link
Contributor

thanks!

This led to the inference of weird types as list
of lub base types was empty.
This change fixes case x3 in the test case.
@hubertp
Copy link
Contributor Author

hubertp commented Dec 12, 2012

Title updated, merge at will.

adriaanm added a commit that referenced this pull request Dec 13, 2012
When we strip tvars we should also recursively strip their instantiation...
@adriaanm adriaanm merged commit df78f76 into scala:2.10.x Dec 13, 2012
smarter added a commit to smarter/dotty that referenced this pull request Apr 6, 2015
Each test needs to have its own package because pos_all will try to
compile the whole valueclasses directory at once.

The remaining tests with "extends AnyVal" in tests/pending/pos are
related to separate compilation, except for:
- t6482.scala and t7022.scala which were fixed by
  scala/scala#1468 in scalac and seem to
  trigger a similar bug in FullParameterization
- strip-tvars-for-lubbasetypes.scala which was fixed by
  scala/scala#1758 in scalac
smarter added a commit to smarter/dotty that referenced this pull request Apr 17, 2015
Each test needs to have its own package because pos_all will try to
compile the whole valueclasses directory at once.

The remaining tests with "extends AnyVal" in tests/pending/pos are
related to separate compilation, except for:
- t6482.scala and t7022.scala which were fixed by
  scala/scala#1468 in scalac and seem to
  trigger a similar bug in FullParameterization
- strip-tvars-for-lubbasetypes.scala which was fixed by
  scala/scala#1758 in scalac
smarter added a commit to smarter/dotty that referenced this pull request Apr 17, 2015
Each test needs to have its own package because pos_all will try to
compile the whole valueclasses directory at once.

The remaining tests with "extends AnyVal" in tests/pending/pos are
related to separate compilation, except for:
- t6482.scala and t7022.scala which were fixed by
  scala/scala#1468 in scalac and seem to
  trigger a similar bug in FullParameterization
- strip-tvars-for-lubbasetypes.scala which was fixed by
  scala/scala#1758 in scalac
smarter added a commit to smarter/dotty that referenced this pull request Apr 20, 2015
Each test needs to have its own package because pos_all will try to
compile the whole valueclasses directory at once.

The remaining tests with "extends AnyVal" in tests/pending/pos are
related to separate compilation, except for:
- t6482.scala and t7022.scala which were fixed by
  scala/scala#1468 in scalac and seem to
  trigger a similar bug in FullParameterization
- strip-tvars-for-lubbasetypes.scala which was fixed by
  scala/scala#1758 in scalac
smarter added a commit to smarter/dotty that referenced this pull request Apr 23, 2015
Each test needs to have its own package because pos_all will try to
compile the whole valueclasses directory at once.

The remaining tests with "extends AnyVal" in tests/pending/pos are
related to separate compilation, except for:
- t6482.scala and t7022.scala which were fixed by
  scala/scala#1468 in scalac and seem to
  trigger a similar bug in FullParameterization
- strip-tvars-for-lubbasetypes.scala which was fixed by
  scala/scala#1758 in scalac
smarter added a commit to smarter/dotty that referenced this pull request Apr 25, 2015
Each test needs to have its own package because pos_all will try to
compile the whole valueclasses directory at once.

The remaining tests with "extends AnyVal" in tests/pending/pos are
related to separate compilation, except for:
- t6482.scala and t7022.scala which were fixed by
  scala/scala#1468 in scalac and seem to
  trigger a similar bug in FullParameterization
- strip-tvars-for-lubbasetypes.scala which was fixed by
  scala/scala#1758 in scalac
smarter added a commit to smarter/dotty that referenced this pull request Apr 26, 2015
Each test needs to have its own package because pos_all will try to
compile the whole valueclasses directory at once.

The remaining tests with "extends AnyVal" in tests/pending/pos are
related to separate compilation, except for:
- t6482.scala and t7022.scala which were fixed by
  scala/scala#1468 in scalac and seem to
  trigger a similar bug in FullParameterization
- strip-tvars-for-lubbasetypes.scala which was fixed by
  scala/scala#1758 in scalac
smarter added a commit to smarter/dotty that referenced this pull request Apr 28, 2015
Each test needs to have its own package because pos_all will try to
compile the whole valueclasses directory at once.

The remaining tests with "extends AnyVal" in tests/pending/pos are
related to separate compilation, except for:
- t6482.scala and t7022.scala which were fixed by
  scala/scala#1468 in scalac and seem to
  trigger a similar bug in FullParameterization
- strip-tvars-for-lubbasetypes.scala which was fixed by
  scala/scala#1758 in scalac
smarter added a commit to smarter/dotty that referenced this pull request May 1, 2015
Each test needs to have its own package because pos_all will try to
compile the whole valueclasses directory at once.

The remaining tests with "extends AnyVal" in tests/pending/pos are
related to separate compilation, except for:
- t6482.scala and t7022.scala which were fixed by
  scala/scala#1468 in scalac and seem to
  trigger a similar bug in FullParameterization
- strip-tvars-for-lubbasetypes.scala which was fixed by
  scala/scala#1758 in scalac
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