Skip to content

feat: DIM shim pattern and CS0453 fix for class stubs - #76

Open
keithdv wants to merge 2 commits into
mainfrom
bug7
Open

keithdv wants to merge 2 commits into
mainfrom
bug7

Conversation

@keithdv

@keithdv keithdv commented Feb 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Default Interface Method (DIM) support: Interface stubs now execute DIMs when interceptors are unconfigured, via a generated __DimShim class. Supports methods, properties, and indexers across standalone and inline patterns.
  • CS0453 fix: Nullable unconstrained generic type parameters in class stub pipelines no longer cause compilation errors. Extends the existing interface stub fix (v0.45.0) to class stubs.
  • Version bump to 0.48.2

Test plan

  • All existing Design.Tests pass (377+ tests across net8.0/net9.0/net10.0)
  • 7 new DIM tests pass (inline + standalone, methods/properties/indexers)
  • Nullable generic class stub tests compile and pass
  • CI build succeeds with zero warnings

🤖 Generated with Claude Code

keithdv and others added 2 commits February 13, 2026 08:29
Default Interface Methods now execute when interceptors are unconfigured,
via a generated __DimShim class. Also fixes CS0453 for nullable unconstrained
generic type parameters in class stub pipelines.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Design projects are the API source-of-truth and shouldn't be overloaded
with feature tests. Moved 7 DIM tests and supporting types to KnockOffTests.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant