Skip to content

this. in val v = 1 ; def set = Set(this.v) #230

Open
@valtih1978

Description

@valtih1978

The following refuses to run in Worksheet 0.4.0.v-2_11-201509281548-ab29b9c

object crap {
    val v = 1
    def a = Set(v) // this is fine
    def b = Set(this.v) // failure due to this DOT
}

despite compiles nicely in http://scastie.org/13075

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