Skip to content

Protocol generics #212

@giann

Description

@giann
protocol Countable::<T> {
    fun add(T value) > void;
}

object Item{}

object(Countable::<Item>) Person {
    [Item] items,

    fun add(Item value) > void {
        this.items.append(value);
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    languageIssue related to the language

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions