zceejkr
11/10/2019, 4:34 PMProjections are not allowed for immediate arguments of a supertype
.
I am new to generics so if anyone can point me in the right direction I would be thankful.streetsofboston
11/10/2019, 4:38 PMT
(out on the declaration site): interface Bar<out T> { fun oneMethodThatReturnsT(): T }
?zceejkr
11/10/2019, 6:17 PMkarelpeeters
11/10/2019, 7:21 PM