-
Notifications
You must be signed in to change notification settings - Fork 11
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
Support reading all sorts of refinement types. #216
Conversation
Only `TypeMember`s, `ValDef`s and `DefDef`s are allowed there.
|
||
// Read infos -- skip names | ||
def readParamInfos()(using LocalContext): List[PInfo] = | ||
paramInfosUnpickler.reader.until(end) { |
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.
this looks like it would try to readInfo when the next byte is the mods
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.
this example causes unexpected type tag GIVEN
error (reading the inferred type of givenRefinement
, stack trace includes TreeUnpickler.scala:1117
):
// test-sources/src/main/scala/simple_trees/Function.scala
class Function {
...
val givenRefinement = ??? : { def foo(using Int): Int }
}
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.
Oh nice catch! It's fixed now.
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.
there is a bug in reading the parameter infos of lambdas
Including their members which can contain RECthis, METHODtype, and POLYtype. Fix scalacenter#6, fix scalacenter#16, fix scalacenter#20, fix scalacenter#21.
4d4fe01
to
527ade5
Compare
Including their members which can contain RECthis, METHODtype, and POLYtype.
Fix #6, fix #16, fix #20, fix #21.
This is not enough for #213 yet, since they are not handled correctly in member selection nor subtyping yet.