Skip to content

Showcase support for default interface implementation - #232

Merged
kzu merged 1 commit into
mainfrom
dev/default-interface-implementation
Sep 29, 2026
Merged

kzu merged 1 commit into
mainfrom
dev/default-interface-implementation

Conversation

@kzu

@kzu kzu commented Sep 29, 2026

Copy link
Copy Markdown
Member

Adds a DefaultInterfaceImplementation scenario that stunts an interface with both an abstract member and a member with a default body:

public interface IDefault
{
    void Do();
    int Value => 5;
}

The generated IDefaultStunt only implements Do() through the behavior pipeline and leaves Value to the interface's default implementation, so Stunt.Of<IDefault>().Value returns 5.

@kzu kzu added the documentation Improvements or additions to documentation label Sep 29, 2026
@kzu
kzu enabled auto-merge (rebase) September 29, 2026 03:01
@kzu
kzu merged commit c44f02f into main Sep 29, 2026
6 checks passed
@kzu
kzu deleted the dev/default-interface-implementation branch September 29, 2026 03:06
@devlooped devlooped locked and limited conversation to collaborators Nov 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant