Skip to content

Mark some interfaces with SubclassOptIn #3811

@kyay10

Description

@kyay10

It might be useful to lock down some classes that aren't intended to be inherited from (e.g. ResourceScope, AutoCloseScope) with SubclassOptIn, so that we communicate clearly that inheriting from them is inadvisable and maybe might break across releases.
This approach is taken by kotlinx-coroutines, for one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions