- Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Closed
Copy link
Labels
cc-experimentIntended to be merged with cc-experiment branch on originIntended to be merged with cc-experiment branch on origin
Description
Compiler version
Head of CC experiment.
Minimized code
Both of the calls to withSession
should be rejected (note the first one is also affected by #15057):
scala> class Session // defined class Session scala> def withSession[T](thunk : ({*} Session) => T): T = thunk(new Session) def withSession[T](thunk: ({*} Session) => T): T scala> withSession(t => t) val res1: Session = Session@7866a0b3 scala> withSession[{*} Session](t => t) val res2: {*} Session = Session@14e53307
Metadata
Metadata
Assignees
Labels
cc-experimentIntended to be merged with cc-experiment branch on originIntended to be merged with cc-experiment branch on origin