Bei TPH <./<? RefTyp (mit Variablen) und RefTyp <./<? TPH fehlen Lösungen #166

Closed
opened 2015-03-06 16:19:29 +00:00 by pl · 2 comments
Owner
  1. Beispiel

FC: A < B

Constraint: a <. B führt zu {a =. A} und {a=. B}
Die Lösung a = B b = B<? ext Object> fehlt.

Dies kann durch ändern erreicht werden:

a <. B -> {a =. B, b <? c}

  1. Beispiel:

A<? ext a> <. b führt zu {b =. A<? ext a>}
Die Lösung a = Integer und b = A<? extends Object> fehlt.

Dies kann durch ändern erreicht werden:

A<? ext a> <. b -> {b =. A, ? ext a <? c}

1. Beispiel FC: A<X> < B<X> Constraint: a <. B<b> führt zu {a =. A<b>} und {a=. B<b>} Die Lösung a = B<Integer> b = B<? ext Object> fehlt. Dies kann durch ändern erreicht werden: a <. B<b> -> {a =. B<c>, b <? c} 2. Beispiel: A<? ext a> <. b führt zu {b =. A<? ext a>} Die Lösung a = Integer und b = A<? extends Object> fehlt. Dies kann durch ändern erreicht werden: A<? ext a> <. b -> {b =. A<c>, ? ext a <? c}
Author
Owner

LambdaTest4:

class LambdaTest{

Fun1<String, String> op = (var) -> {
var2;
var2 = var;
return var;
};

}

kommt auch dieses Problem zu tragen.

LambdaTest4: class LambdaTest{ Fun1<String, String> op = (var) -> { var2; var2 = var; return var; }; } kommt auch dieses Problem zu tragen.
Owner

OLD BUG

OLD BUG
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: JavaTX/JavaCompilerCore#166
No description provided.