Skip to content

Fix #1802: Make sure errors are not swept under the carpet #1817

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 2 commits into from
Dec 18, 2016

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Dec 17, 2016

Typer#ensureReported's comment outlines an example where errors
could go unreported, resulting in error trees after typer without
any reported error messages. This commit makes sure that at least
one error is reported if a tree node has an error type.

Fixes #1802.

Review by @felixmulder ?

Typer#ensureReported's comment outlines an example where errors
could go unreported, resulting in error trees after typer without
any reported error messages. This commit makes sure that at least
one error is reported if a tree node has an error type.

Fixes scala#1802.
@@ -3251,12 +3252,16 @@ object Types {
override def computeHash = hashSeed
}

abstract class ErrorType extends UncachedGroundType with ValueType
abstract class FlexType extends UncachedGroundType with ValueType
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add some documentation on the meaning of FlexType?

@odersky
Copy link
Contributor Author

odersky commented Dec 17, 2016 via email

Copy link
Contributor

@felixmulder felixmulder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@odersky odersky merged commit 18b8daa into scala:master Dec 18, 2016
@allanrenucci allanrenucci deleted the fix-#1802 branch December 14, 2017 16:59
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