Skip to content

Commit

Permalink
Merge branch 'master' of github.com:anaelChardan/IMT-Recherche
Browse files Browse the repository at this point in the history
  • Loading branch information
clementgarbay committed Nov 29, 2017
2 parents d8c6955 + d288fde commit a58dd50
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main/java/fr/imt/inference/ExpressionInferer.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ public Either<String, Type> infer(Expression expression) {

logger.debug("Constraints generated : " + constraintCollection);

if (rawReturnType instanceof TypeVariable) {
return Either.right(result.getOrElse((TypeVariable) rawReturnType, (TypeVariable) rawReturnType));
}

return Either.right(rawReturnType);
return Either.right(rawReturnType.applySubstitution(result));
} catch (
UnificationMismatchException |
UnificationFailureException |
Expand Down

0 comments on commit a58dd50

Please sign in to comment.