mirror of
https://gitlab.kit.edu/uskyk/typicalc.git
synced 2024-11-10 03:10:44 +00:00
if mgu has no substitution for alpha1, final type is alpha1
This commit is contained in:
parent
886ea78869
commit
49ee20baaa
@ -62,8 +62,10 @@ public class TypeInferenceResult {
|
||||
return substitution.getType();
|
||||
}
|
||||
}
|
||||
throw new IllegalStateException("MGU has to contain substitution for original type variable: "
|
||||
+ typeVar.toString());
|
||||
return typeVar;
|
||||
// TODO: correct?
|
||||
// throw new IllegalStateException("MGU has to contain substitution for original type variable: "
|
||||
// + typeVar.toString());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user