-
Notifications
You must be signed in to change notification settings - Fork 12
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
Thoughts on TASTy grammar #27
Comments
New thing: |
|
|
The param of class ValueClassNonVal(self: String) extends AnyVal:
def get: String = self // TERMREFsymbol, OK
def getThroughThis: String = this.self // SELECT, ~OK because this prefix
// def getOther(that: ValueClassNonVal): String = that.self // does not compile, rightly so
// <generated>
def equals(x$0: Any): Boolean = x$0 match
case x$0: ValueClassNonVal =>
this.self // SELECT, ~OK because this prefix
== x$0.self // SELECT, definitely not OK
case _ =>
false
end ValueClassNonVal |
This is the list of my impressions from working with the TASTy grammar, which can hopefully be useful for an eventual discussion of TASTy. Additions are welcome.
THIS TYPEREFpkg <empty>
rather thanTERMREFpkg <empty>
The text was updated successfully, but these errors were encountered: