Jakob K
09/22/2020, 4:40 PMZusammenfassungABC , even if it inherits from ZusammenfassungAC (line 22)?Jakob K
09/22/2020, 4:41 PMdiesieben07
09/22/2020, 4:42 PMZach Klippenstein (he/him) [MOD]
09/22/2020, 4:44 PMout and in modifiers and it should work I think.Jakob K
09/22/2020, 4:46 PMNir
09/22/2020, 4:59 PMin and out modifiers are actually appropriateNir
09/22/2020, 4:59 PMTobias Berger
09/23/2020, 7:21 AMopen class ErstTyp<out T : GrundTyp>
This out-projection allows the compiler to use instance with a more specific generic type to be used in places where a superclass would be expected as the generic parameter.Tobias Berger
09/23/2020, 7:22 AMErstTyp<T> to ErstTyp<U> if U inherits from TTobias Berger
09/23/2020, 10:41 AMZusammenfassungABC, but an object of type ErstTyp<ZusammenfassungABC>. That's an important difference.Jakob K
09/24/2020, 12:00 PM