Skip to content

Missing type bound for quoted type splices in patterns #7264

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

Closed
nicolasstucki opened this issue Sep 19, 2019 · 0 comments
Closed

Missing type bound for quoted type splices in patterns #7264

nicolasstucki opened this issue Sep 19, 2019 · 0 comments
Assignees

Comments

@nicolasstucki
Copy link
Contributor

minimized code

import scala.quoted._
class Foo {
  def f[T](t: Type[T])(given QuoteContext) = t match {
    case '[ *:[Int, $t] ] =>
  }
}

fails with

4 |    case '[ *:[Int, $t] ] =>
  |                     ^
  |                   Type argument $t does not conform to upper bound Tuple 

expectation

Should compile

odersky added a commit to dotty-staging/dotty that referenced this issue Nov 21, 2019
nicolasstucki pushed a commit to dotty-staging/dotty that referenced this issue Dec 3, 2019
@odersky odersky closed this as completed in 3b0afb3 Dec 9, 2019
odersky added a commit that referenced this issue Dec 9, 2019
Fix #7264: Propagate prototypes in quoted type patterns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants