Skip to content

Comments

Adjust return type of KmmResult.failure#17

Merged
iaik-jheher merged 3 commits intodevelopmentfrom
iaik-jheher-patch-1
Jan 27, 2026
Merged

Adjust return type of KmmResult.failure#17
iaik-jheher merged 3 commits intodevelopmentfrom
iaik-jheher-patch-1

Conversation

@iaik-jheher
Copy link
Collaborator

Return KmmResult<Nothing> from KmmResult.failure. Due to the out variance on KmmResult, this is a subtype of any KmmResult<T>.

Copy link
Collaborator

@JesusMcCloud JesusMcCloud left a comment

Choose a reason for hiding this comment

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

  • Make tests succeed
  • Check API dump!
  • Don't break the API
  • Document everything in the changelog
  • If API/ABI breaks, we need to discuss a major version release and re-visit everything we have to check if there are other parts that could benefit from a refactor

@github-actions
Copy link

⚠️⚠️ This pull request targets main. I am re-targeting it to development. ⚠️⚠️

@github-actions github-actions bot changed the base branch from main to development April 30, 2025 08:49
@iaik-jheher iaik-jheher force-pushed the iaik-jheher-patch-1 branch 2 times, most recently from 10bdec1 to a20a743 Compare April 30, 2025 14:26
@JesusMcCloud
Copy link
Collaborator

for the sake of completeness: ObjC has variance, Swift not, so we need to be careful here

Copy link
Collaborator

@JesusMcCloud JesusMcCloud left a comment

Choose a reason for hiding this comment

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

smashing!

@iaik-jheher iaik-jheher merged commit 8baf7d8 into development Jan 27, 2026
3 checks passed
@iaik-jheher iaik-jheher deleted the iaik-jheher-patch-1 branch January 27, 2026 10:14
iaik-jheher added a commit that referenced this pull request Jan 27, 2026
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