Fehler in Test Lambda beheben
This commit is contained in:
parent
c72204428f
commit
654f347450
@ -218,7 +218,7 @@ public class JavaTXCompiler {
|
|||||||
phSetVariance = new ArrayList<>(phSet);
|
phSetVariance = new ArrayList<>(phSet);
|
||||||
phSetVariance.removeIf(x -> (x.getVariance() == 0 || usedTPH.contains(x)));
|
phSetVariance.removeIf(x -> (x.getVariance() == 0 || usedTPH.contains(x)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private Map<String, TypePlaceholder> generateTPHMap(ConstraintSet<Pair> constraints) {
|
private Map<String, TypePlaceholder> generateTPHMap(ConstraintSet<Pair> constraints) {
|
||||||
HashMap<String, TypePlaceholder> ret = new HashMap<>();
|
HashMap<String, TypePlaceholder> ret = new HashMap<>();
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
|
|
||||||
class Apply { }
|
class Apply { }
|
||||||
|
|
||||||
public class Lambda {
|
public class Lambda {
|
||||||
|
|
||||||
m () {
|
m () {
|
||||||
var lam1 = (Integer x) -> {
|
var lam1 = (x) -> {
|
||||||
return x;
|
return x;
|
||||||
};
|
};
|
||||||
return lam1.apply(new Apply());
|
return lam1.apply(new Apply());
|
||||||
|
Loading…
Reference in New Issue
Block a user