Skip to content

fe: fix "partial application not used when type paramaters are present"#6941

Draft
michaellilltokiwa wants to merge 1 commit intotokiwa-software:mainfrom
michaellilltokiwa:issue/6924
Draft

fe: fix "partial application not used when type paramaters are present"#6941
michaellilltokiwa wants to merge 1 commit intotokiwa-software:mainfrom
michaellilltokiwa:issue/6924

Conversation

@michaellilltokiwa
Copy link
Copy Markdown
Member

fixes #6924

@michaellilltokiwa michaellilltokiwa added bug Something isn't working front end related to the front end until .fum file is created: call and type resolution, type checking, etc. labels Apr 15, 2026
@michaellilltokiwa michaellilltokiwa requested a review from a team April 15, 2026 10:25
if (calledFeatureKnown() &&
!_actuals.isEmpty() &&
_actuals.size() >= _calledFeature.typeArguments().size() &&
_actuals.stream().limit(_calledFeature.typeArguments().size()).allMatch(a -> !(a instanceof Function) && a.asType() != null))
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

can you maybe find a way to reformat this...

Comment on lines +515 to +516
_generics = _actuals.stream().limit(_calledFeature.typeArguments().size()).map(x -> x.asType().resolve(res, context)).collect(List.collector());
_actuals = _actuals.stream().skip(_calledFeature.typeArguments().size()).collect(List.collector());
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

...and these two lines for better readability?

@michaellilltokiwa michaellilltokiwa marked this pull request as draft April 15, 2026 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working front end related to the front end until .fum file is created: call and type resolution, type checking, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Partial application not used when type paramaters are present

2 participants