scala-ide / scala-worksheet

A Scala IDE plugin for a multi-line REPL (called worksheet)
96 stars 24 forks source link

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

Open valtih1978 opened 9 years ago

valtih1978 commented 9 years ago

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