Skip to content

Add scope type "type name" #2179

Closed as not planned
Closed as not planned
@wenkokke

Description

@wenkokke

The scope types include "class name" and "funk name" to match the names in, e.g., class and function declarations. However, it does not include a "type name" to match the name in a type declaration. I propose we add such a scope type.

// TypeScript
export type Tuple[A, B] = [A, B]
//          ^^^^^
# Python
_A = TypeVar("_A")
_B = TypeVar("_B")

Tuple: TypeAlias = tuple[_A, _B]
#^^^^ 
-- Haskell
type Tuple a b = (a, b)
--   ^^^^^

data Tuple a b = Tuple a b
--   ^^^^^

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