Skip to content

Implement code actions for class X needs to be abstract that implements all missing members #23469

Open
@rochala

Description

@rochala

Compiler version

3.nightly

Minimized example

trait Test:
  def name: String
  def id: String

class TestImpl extends Test

Output

Diagnostics:
   class TestImpl needs to be abstract, since:
     it has 2 unimplemented members.
     /** As seen from class TestImpl, the missing signatures are as follows.
      *  For convenience, these are usable as stub implementations.
      */
       def id: String = ???
       def name: String = ???
     

Expectation

Code-Action properly implemented in dotty that allows us to implement all missing members. Also applicable to other issues similar to this such as try importing ...

Metadata

Metadata

Assignees

Labels

area:reportingError reporting including formatting, implicit suggestions, etc

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions