Skip to content

Enforce that abstract methods are implemented#1785

Open
HT154 wants to merge 1 commit into
apple:mainfrom
HT154:abstract-method-implementation-check
Open

Enforce that abstract methods are implemented#1785
HT154 wants to merge 1 commit into
apple:mainfrom
HT154:abstract-method-implementation-check

Conversation

@HT154

@HT154 HT154 commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

This adds a check that abstract methods must be implemented. If any members lack an implementation, an error is thrown describing the missing methods.

Also: we have a bug in pkl:base; class Set does not implement all members of class Collection.

Supersedes #1690 if we merge #1781

Comment on lines +2 to +4
Class `abstractMethodNotImplemented2#MyClass` should either be declared `abstract`, or implement the following methods:
foo()
bar()

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a style change compared to #1690 to match how candidates in "Cannot find method" errors are displayed.

@HT154
HT154 force-pushed the abstract-method-implementation-check branch 3 times, most recently from 20cf953 to fd9fc8a Compare July 20, 2026 17:58
This adds a check that abstract members must be implemented.
If any members lack an implementation, an error is thrown describing
the missing members.

Also: we have a bug in `pkl:base`; class `Set` does not implement all
members of class `Collection`.
@HT154
HT154 force-pushed the abstract-method-implementation-check branch from fd9fc8a to 4fb7ec8 Compare July 20, 2026 18:01
@HT154 HT154 changed the title Enforce that abstract members are implemented Enforce that abstract methods are implemented Jul 21, 2026
@HT154
HT154 marked this pull request as ready for review July 21, 2026 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants