Skip to content

1.1.1 — Fix ownership-specifier parameter support

Choose a tag to compare

@sorunokoe sorunokoe released this 01 Aug 11:08
· 27 commits to main since this release

Bugfix release.

Initializer parameters with ownership specifiers (consuming, borrowing) now work correctly with @Mapper. Previously, an initializer like:

init(value: consuming String) { self.value = value }

generated invalid code (Boxed<consuming String>) that failed to compile with a cryptic "cannot infer contextual base in reference to member 'init'" error, since ownership specifiers are only valid on a function parameter declaration, not as a generic argument.

No breaking changes — fully additive/corrective.