Argumente mit Typvariabelen werden die Generics einschließlich Bounds immer bei den Argumenten eingefügt #147

Closed
opened 2019-12-05 14:45:30 +00:00 by pl · 1 comment
Owner

Beispiel

class Id {
id2 = x -> x;

id(x) {
return x;
}

id3(x) {
return id(x);
}
}

führt zu

class Id <AOLW extends AOLX, AOLX> {
id2 = x -> x;

id(x) {
return x;
}

id3( <AJMV extends AJMU, AJMU> AJMV x) {
return id(x);
}
}

Soltte aber führen zu:

class Id <AOLW extends AOLX, AOLX> {
id2 = x -> x;

id(x) {
return x;
}

AJMV extends AJMU, AJMU> id3( AJMV x) {
return id(x);
}
}

Beispiel class Id { id2 = x -> x; id(x) { return x; } id3(x) { return id(x); } } führt zu class Id <AOLW extends AOLX, AOLX> { id2 = x -> x; id(x) { return x; } id3( <AJMV extends AJMU, AJMU> AJMV x) { return id(x); } } Soltte aber führen zu: class Id <AOLW extends AOLX, AOLX> { id2 = x -> x; id(x) { return x; } AJMV extends AJMU, AJMU> id3( AJMV x) { return id(x); } }
Author
Owner

erledigt

erledigt
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 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#147
No description provided.