Skip to content

value derived is not a member of NoType - if type class has no companion #11072

@bishabosha

Description

@bishabosha

Minimized code

trait Sealed[A]

enum Foo derives Sealed {
  case A, B, C
}

Output

-- [E008] Not Found Error: sandbox/mirror/example.scala:3:17 -------------------
3 |enum Foo derives Sealed {
  |                 ^
  |                 value derived is not a member of <notype>
1 error found

Expectation

an error message that perhaps informs that Sealed has no companion so can not be derived from

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions