Kotlin Discussions
Let `this` as a type
Language Design
seekdasky
April 28, 2022, 10:42am
2
Hi!
I think that what you are describing is called " Self type" and was discussed here :
Self Types
1 Like
show post in topic
Related topics
Topic
Replies
Views
Activity
This type
Language Design
10
7560
January 10, 2019
Cleaner self returning functions
Language Design
4
1689
April 29, 2020
Self Types
Language Design
84
30616
October 24, 2022
Allow creating generic subtype functions on a parent class
Language Design
1
849
November 12, 2019
Proposal: `This` type for generics (Can kotlin interface detects, on which class is attached to, on its own?)
Language Design
4
985
February 1, 2023