Skip to content

Usages of experimentals are not always checked in types #14034

Closed
@prolativ

Description

@prolativ

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions