kotlin icon indicating copy to clipboard operation
kotlin copied to clipboard

FIR: Self types draft

Open maxim092001 opened this issue 2 years ago • 1 comments

Proposal

maxim092001 avatar Apr 20 '22 22:04 maxim092001

Some more questionable examples:

  • @Self on a local class
  • @Self on an object (or anonymous object), on ~~an annotation class~~, on ~~an enum class~~, on an enum entry
  • @Self on an interface, or on a fun interface
  • different kinds of inheritance (class from self interface, class from self class, local class from self class, local class from self local class)
  • @Self around inner classes (inner class inside self class, self inner class inside self class)
  • @Self sealed class with inheritors

mglukhikh avatar Jan 20 '23 08:01 mglukhikh