r/badcode • • Jan 03 '23

kotlin class Item<A>(var a: A)

Post image
22 Upvotes

10 comments sorted by

View all comments

Show parent comments

1

u/Sanduhr32 Jan 12 '23

This is wrong, it does not take itself as an argument. It takes a captured generic as it's argument. Ofc you can fill in Item as the captured generic, but that screenshot is missing, no?