forked from JavaTX/JavaCompilerCore
modified: src/de/dhbwstuttgart/typeinference/unify/model/TypeParams.java
Zeile 101 Dangling-else Problematik behoben War Fehler im Occurs-Cheeck von Montanari-Martelli.
This commit is contained in:
parent
1f89238fe4
commit
22499f09e8
@ -98,9 +98,10 @@ public final class TypeParams implements Iterable<UnifyType>{
|
|||||||
*/
|
*/
|
||||||
public boolean occurs(PlaceholderType t) {
|
public boolean occurs(PlaceholderType t) {
|
||||||
for(UnifyType p : typeParams)
|
for(UnifyType p : typeParams)
|
||||||
if(p instanceof PlaceholderType)
|
if(p instanceof PlaceholderType) {//PL 2018-01-31 dangeling else Problem { ... } eingefuegt.
|
||||||
if(p.equals(t))
|
if(p.equals(t))
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
if(p.getTypeParams().occurs(t))
|
if(p.getTypeParams().occurs(t))
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user