Skip to content

Comments

Fix the transformation of extension functions#164

Merged
pshevche merged 3 commits intomainfrom
pshevche/163-handle-extension-functions
Feb 15, 2026
Merged

Fix the transformation of extension functions#164
pshevche merged 3 commits intomainfrom
pshevche/163-handle-extension-functions

Conversation

@pshevche
Copy link
Owner

Context

When visiting functions, the IR transformer expects them to know their parent class. But in case of extension functions, they don't and this causes the transformation to fail with an NPE. This PR makes the transformation robust in that case by ignoring extension functions.

@pshevche pshevche self-assigned this Feb 15, 2026
@github-project-automation github-project-automation bot moved this to Todo in spockk Feb 15, 2026
@pshevche pshevche enabled auto-merge (squash) February 15, 2026 12:12
@pshevche pshevche linked an issue Feb 15, 2026 that may be closed by this pull request
@pshevche pshevche disabled auto-merge February 15, 2026 12:21
@pshevche pshevche merged commit 2394fd9 into main Feb 15, 2026
1 check passed
@pshevche pshevche deleted the pshevche/163-handle-extension-functions branch February 15, 2026 12:21
@github-project-automation github-project-automation bot moved this from Todo to Done in spockk Feb 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Kotlin extension functions fail the build

1 participant