Fehler in Test Lambda beheben

This commit is contained in:
JanUlrich 2018-09-07 04:35:58 +02:00
parent c72204428f
commit 654f347450
2 changed files with 5 additions and 4 deletions

View File

@ -217,8 +217,8 @@ public class JavaTXCompiler {
eq1.stream().forEach(x -> { x.getLhsType().accept(new distributeVariance(), a.getVariance());});
phSetVariance = new ArrayList<>(phSet);
phSetVariance.removeIf(x -> (x.getVariance() == 0 || usedTPH.contains(x)));
}
}
}
}
private Map<String, TypePlaceholder> generateTPHMap(ConstraintSet<Pair> constraints) {
HashMap<String, TypePlaceholder> ret = new HashMap<>();

View File

@ -1,9 +1,10 @@
class Apply { }
class Apply { }
public class Lambda {
m () {
var lam1 = (Integer x) -> {
var lam1 = (x) -> {
return x;
};
return lam1.apply(new Apply());