Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
valtih1978 opened this issue Nov 5, 2015 · 0 comments
Open

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

valtih1978 opened this issue Nov 5, 2015 · 0 comments

Comments

@valtih1978
Copy link

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

@valtih1978 valtih1978 changed the title this. in def dict = Map[Int, Int](1 -> this.v) this. in val v = 1 ; def set = Set(this.v) Nov 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant