FunctionType::constrainEqualToFunction : swap types for newly created constraint -> less confusing

This commit is contained in:
Johanna Stuber 2021-02-15 16:54:21 +01:00
parent bbf24cae78
commit 86226f896e

View File

@ -82,7 +82,7 @@ public class FunctionType extends Type {
*/
@Override
public Result<UnificationActions, UnificationError> constrainEqualToFunction(FunctionType type) {
return UnificationUtil.functionFunction(this, type);
return UnificationUtil.functionFunction(type, this);
}
/**