kotlin-spec icon indicating copy to clipboard operation
kotlin-spec copied to clipboard

Define which scope function parameters are in

Open belyaev-mikhail opened this issue 4 years ago • 0 comments

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.

belyaev-mikhail avatar Sep 07 '21 09:09 belyaev-mikhail