-
Notifications
You must be signed in to change notification settings - Fork 1.1k
port scala-stdlib for Scala.js #24115
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
base: main
Are you sure you want to change the base?
Conversation
426b41e
to
071593f
Compare
else if denot.isClass && denot.is(Scala2x) || (denot.maybeOwner.lastKnownDenotation.is(Scala2x) && !denot.is(Inline)) then | ||
else if denot.isClass && denot.is(Scala2x) | ||
|| (denot.maybeOwner.lastKnownDenotation.is(Scala2x) && !denot.is(Inline)) | ||
|| denot.is(Param) && denot.maybeOwner.is(Method) && denot.maybeOwner.maybeOwner.is(Scala2x) then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|| denot.is(Param) && denot.maybeOwner.is(Method) && denot.maybeOwner.maybeOwner.is(Scala2x) then | |
|| denot.is(Param) && denot.maybeOwner.is(Method) && denot.maybeOwner.maybeOwner.lastKnownDenotation.is(Scala2x) then |
to be consistent with the method case?
We might also need to exclude the params of Inline
methods? I don't know when that actually happens. What is even an Inline
Scala 2 method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might also need to exclude the params of Inline methods? I don't know when that actually happens.
I actually don't know yet what happened. I was curious too but not had the time yet to investigate. The only thing I know is that it was added by @jchyb.
What is even an Inline Scala 2 method?
For now, I genuinely don't know... but I know that when we will add an inline def
in scala.collection.Seq
, we will have an inline Scala2 method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my defense, this precedes my changes: 6e58d25#diff-7cbbe7d1307696dd5d37afe4ce94c01f85f4945edb2c37b113245ad8c85264c1L30 .
I was only interested in making sure we are not recalculating the denotation, and likely missed the weird nature of the check there. That is to say, I don't know what that is either :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my defense, this precedes my changes: 6e58d25#diff-7cbbe7d1307696dd5d37afe4ce94c01f85f4945edb2c37b113245ad8c85264c1L30 .
I didn't meant to blame you for this, I only relied on what VSCode showed me for on git blame
when I did the change.
071593f
to
02e217f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK looks good. There's probably something to investigate further for those "Scala 2 inline" things in the future.
There is, I agree. |
No description provided.