mirror of
https://gitlab.kit.edu/uskyk/typicalc.git
synced 2024-11-08 18:30:42 +00:00
FunctionType::constrainEqualToFunction : swap types for newly created constraint -> less confusing
This commit is contained in:
parent
bbf24cae78
commit
86226f896e
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user