Skip to content

Fix #5010: check type parents have type arguments #5027

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

Conversation

Blaisorblade
Copy link
Contributor

We modify t3613 as it was written when AbstractListModel had no type parameter.

We could alternatively infer type arguments (see scala/bug#11111), as scalac
does, but that seems typically unhelpful. Instead, we only infer them for
constructor applications.

@Blaisorblade
Copy link
Contributor Author

Split from #5017, see also @hrhino's review there.

@Blaisorblade
Copy link
Contributor Author

Blaisorblade commented Aug 27, 2018

Build failure is spurious.

Copy link
Contributor

@odersky odersky left a comment

Choose a reason for hiding this comment

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

@Blaisorblade Can you do the rebase and merge? Thanks!

@Blaisorblade Blaisorblade added stat:needs rebase fasttrack Simple fix. Reviewer should merge or apply additional changes directly. and removed stat:needs review labels Jan 12, 2019
We modify t3613 as it was written when AbstractListModel had no type parameter.

We could alternatively infer type arguments (see scala/bug#11111), as scalac
does, but that seems typically unhelpful. Instead, we only infer them for
constructor applications.
@Blaisorblade Blaisorblade force-pushed the fix-5010-check-parents-have-type-arguments branch from 49c19f0 to 16ae587 Compare January 15, 2019 17:06
@Blaisorblade Blaisorblade merged commit 634b54c into scala:master Jan 15, 2019
@Blaisorblade Blaisorblade deleted the fix-5010-check-parents-have-type-arguments branch January 15, 2019 17:57
liufengyun added a commit to dotty-staging/scalatest that referenced this pull request Jan 16, 2019
The following code is no longer supported:

class A[T]
object A extends A  // error: A needs type parameters

scala/scala3#5027
liufengyun added a commit to dotty-staging/dotty that referenced this pull request Mar 1, 2019
The code no longer type checks after scala#5027.
liufengyun added a commit to dotty-staging/dotty that referenced this pull request Mar 1, 2019
The code no longer type checks after scala#5027.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:typer fasttrack Simple fix. Reviewer should merge or apply additional changes directly.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants