Skip to content

Conversation

@som-snytt
Copy link
Contributor

@som-snytt som-snytt commented Nov 9, 2025

In canProfitFromMoreConstraints, balk if mode.is(ImplicitExploration).

The failing case was due to the constrainResult "up the stack" in adaptNoArgs, which drove type comparisons and completions, including a conversion. The FunProto context had a console reporter that emitted the errors encountered, not an exploring reporter.

The justification is that "more constraints" is motivated by arg inference, so if the arg is already involved in views, further information in the result is not needed, especially at the cost of spurious exploratory errors using a context that doesn't reflect the current mode.

@som-snytt som-snytt force-pushed the issue/24192-given-error branch from 5eb0d10 to 02b1caa Compare November 9, 2025 21:51
@som-snytt som-snytt marked this pull request as ready for review November 9, 2025 21:52
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