-
-
Notifications
You must be signed in to change notification settings - Fork 644
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
consume inits part of package object within the inner scope #16282
Conversation
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.
Woohoo! Thank you!
// TODO: should object already be recursive? | ||
// an object is recursive if extends another type because we cannot figure out the provided types | ||
// in the parents, we just mark the object as recursive (which is indicated by non-empty inits) | ||
val recursive = !templ.inits.isEmpty |
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.
I'll wait for Stu to comment
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 piece of code is actually a copy from the Defn.Object
, so not really new.
…ld#16282) package objects `inits` (the constructor + any extends)` should be in the scope of the package object vs other scala templates (class, object) that are in the package scope. This PR fixes that, by calling the apply on the inits within the package object scope. Fixes pantsbuild#16259 # Rust tests and lints will be skipped. Delete if not intended. [ci skip-rust] # Building wheels and fs_util will be skipped. Delete if not intended. [ci skip-build-wheels]
…ld#16282) package objects `inits` (the constructor + any extends)` should be in the scope of the package object vs other scala templates (class, object) that are in the package scope. This PR fixes that, by calling the apply on the inits within the package object scope. Fixes pantsbuild#16259 # Rust tests and lints will be skipped. Delete if not intended. [ci skip-rust] # Building wheels and fs_util will be skipped. Delete if not intended. [ci skip-build-wheels]
…ick of #16282) (#16371) package objects `inits` (the constructor + any extends)` should be in the scope of the package object vs other scala templates (class, object) that are in the package scope. This PR fixes that, by calling the apply on the inits within the package object scope. fixes #16259 [ci skip-rust] [ci skip-build-wheels] Co-authored-by: Doron Somech <[email protected]>
package objects
inits
(the constructor + any extends)` should be in the scope of the package object vs other scala templates (class, object) that are in the package scope.This PR fixes that, by calling the apply on the inits within the package object scope.
fixes #16259