Closed
Description
Compiler version
3.1.1-RC1
Minimized code
import annotation.experimental
@experimental trait Exp
@experimental val exp = 1
type Foo = Option[Exp]
type Bar = Option[exp.type]
type Baz = Exp | Int
type Quux = [X] = X match
case Exp => Int
type Quuz[A <: Exp] = Int
Output
Compiles successfully
Expectation
The compilation should fail and all the usages of the experimentals should be reported as errors