Skip to content

Define which scope function parameters are in #94

@belyaev-mikhail

Description

@belyaev-mikhail

https://youtrack.jetbrains.com/issue/KT-28932#focus=Comments-27-5169515.0-0

Function parameters are a little bit weird: they're obviously in the scope of a function, but their defaults a little bit different to the scope of the function, and you can use local variables which shadow them (which is explicitly written as impossible for decls in the same scope in spec).

Also: primary constructor parameters, they're even weirder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions