Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SI-7944 FOUND: stray undetermined type params in vicinity of implicits #3088

Merged
merged 1 commit into from Nov 3, 2013

Commits on Oct 31, 2013

  1. SI-7944 FOUND: stray undetermined type params in vicinity of implicits

    Implicit search created a nested Context into which the results of
    its typechecking, namely, errors and undetermined type parameters
    (roughly: those inferred as Nothing) are stashed.
    
    The code the drives the process was checking for errors, but
    discarded those undetermined type parameters.
    
    This commit copies them from the child context to the parent,
    which lets `Typer#adapt` to get to:
    
        else if (hasUndetsInMonoMode) { // (9)
          assert(!context.inTypeConstructorAllowed, context) //@m
          instantiatePossiblyExpectingUnit(tree, mode, pt)
        }
    
    Our lost TypeVar has found its way home! The reward for which
    is being instantiated, based on another type inference session
    adapting the expression's type to the expected type.
    retronym committed Oct 31, 2013
    Copy the full SHA
    251c2b9 View commit details
    Browse the repository at this point in the history