Infimum entfernen #111
Labels
No Label
Codegen
confirmed
duplicate
Eclipse-Plugin
Feature Request
generics
in progress
invalid
JavaCompilerCore
needs info
Parser
Trash
Type
Unify
won't fix
works for me
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: JavaTX/JavaCompilerCore#111
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
public class EliminateInfimum {
/*
<A, B extends C, C extends D, E extends D, D, E extends F, F extends A> A m3(B x) {
C y = x;
D z = y;
E a = null;
z = a;
F b = a;
return b;
}
*/
<C extends D, D, E extends D> E m3(C x) {
C y = x;
D z = y;
E a = null;
z = a;
E b = a;
String s = new EliminateInfimum().<Integer, Object, String>m3(3);
return b;
}
}
Created attachment 27
grafische Darstellung
Infimum vom drei Typen
/*
<B extends C, C extends D, E extends D, D, E extends F, F, E extends FF, FF> Pair<F, FF> m3a(B x) {
C y = x;
D z = y;
E a = null;
z = a;
F b = a;
FF c = a;
return new Pair<FF, F>(c,b);
}
/*
Infimumsauflösung durch Gleichsetzen der Supertypen und Gleichsetzen eine Asts
/*
<B extends C, C extends D, E extends D, D, E extends F, F, E extends FF, FF, G extends FF, G extends H, H> Pair<F, H> m4a(B x) {
C y = x;
D z = y;
E a = null;
z = a;
F b = a;
FF c = a;
G d = null;
c = d;
H e = d;
return new Pair<F, H>(b,e);
}
*/
}
class Pair<T, U> {
public T x;
public U y;
}
Created attachment 28
Zweite Seite