Skip to content

Explicit types for implicits in tests/untried #84

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 20, 2014

Conversation

samuelgruetter
Copy link
Contributor

Fixes #77 and #82.

This PR applies the migration tool to tests/untried to get the following changes:

For tests/untried/pos:

  • no procedure syntax for secondary constructors
  • explicit types for implicit vals and implicit defs

For tests/untried/neg:

  • no procedure syntax for secondary constructors
  • all files which contain implicits moved to tests/untried/neg-with-implicits

(Note that procedure syntax for functions returning Unit was already removed in a previous PR.)

As you can see, explicit types for implicit vals and implicit defs is still missing for tests/untried/neg, because this is (almost) impossible: In order to add explicit types, the typechecker must have succeeded, but for the tests in neg, it has to fail. That's why I just moved the neg tests involving implicits to a separate folder.

odersky added a commit that referenced this pull request Mar 20, 2014
Explicit types for implicits in tests/untried
@odersky odersky merged commit e23b5a2 into scala:master Mar 20, 2014
@odersky
Copy link
Contributor

odersky commented Mar 20, 2014

LGTM.

@DarkDimius
Copy link
Contributor

Some tests were rewritten by the migration tool in this commit so that they don't have valid syntax anymore, eg https://github.com/lampepfl/dotty/blob/master/tests/untried/neg/t6574.scala#L7

WojciechMazur pushed a commit to WojciechMazur/dotty that referenced this pull request Mar 19, 2025
Backport "doc fix, removed repeated use of the word with" 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.

Migration tool should add result types of implicit definitions
3 participants