Skip to content

Handle generic properties and classes #11

Open
@aSemy

Description

@aSemy

This has a large scope. SerialDescriptors are not at all generic. It is probably impossible to get this information from KSX.

  1. Generic fields
    class WrapperClass(
      val type: List<String>
    )
  2. Generic classes
    class WrapperClass<T>(
      val type: T
    )
  3. Generic constraints
    interface MyInterface
    class WrapperClass<T: MyInterface>(
      val type: T
    )
  4. Inheritance plus generics
    interface MyInterface<T>
    class WrapperClass<T>(
      val type: T
    ) : MyInterface<T>
  5. Wildcards
    class SomeClass(
      val type: List<*>
    )  

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions