Skip to content

Feature: support #local for constants and variables #239

@arjendevos

Description

@arjendevos

#local works on function and types but not on constants or variables:

#local
const MY_CONSTANT = "value"  // error: the label can only be applied to type alias or fn

#local
var my_variable = "value"    // same error

Not sure whether or not this is done on purpose.

@weiwenhao are you open to proposals to improve this? I am not against #local but I think there are some other options worth considering.

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