Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
InvalidShadowInitializer for an invalid const constructor throws away target/arguments #31555
The following code:
throws away element data needed for the analyzer, because
In our tests, we actually are still able to resolve the constant value of Derived even though its constructor is erroneous. Maybe that's not super important anymore, though?
pushed a commit
Dec 6, 2017
Agreed--the constructor and arguments should definitely be preserved.
It probably makes sense to wait for the representation of invalid expressions to land before working on this. @kmillikin is there an issue tracking the work you're doing on the representation of invalid expressions?