Skip to content

Cannot define 'opaque type' in class or trait #8750

@edolgy

Description

@edolgy
class Abc:
  opaque type Log = Double

val v : Abc = new Abc

Fails with error: Abc does not conform to its self type Any{Log = LazyRef(Double)}; cannot be instantiated

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions