Skip to content
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

Insert top level type variables before typing quote pattern #16883

Closed
wants to merge 1 commit into from

Conversation

nicolasstucki
Copy link
Contributor

@nicolasstucki nicolasstucki commented Feb 10, 2023

The following code

case '{ type u; ($x: t, $y: t, $z: u) }

is desugared to

case '{ type t; type u; ($x: `t`, $y: `t`, $z: `u`) }

tried to fix #14708

```scala
case '{ type u; ($x: t, $y: t, $z: u) }
```
is desugared to
```scala
case '{ type t; type u; ($x: `t`, $y: `t`, $z: `u`) }
```

Fixes scala#14708
@nicolasstucki
Copy link
Contributor Author

It is impossible to infer the bounds of type t with this approach. We do infer bounds (badly) for type variables defined in the expression.

  • We need another fix
  • Or, we need to do disallow type inference of bounds (and use this desugaring)

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.

assertion failed: unresolved symbols while pickling quote with type bounds
1 participant