-
Notifications
You must be signed in to change notification settings - Fork 80
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
Structs: Fields check #1907
base: main
Are you sure you want to change the base?
Structs: Fields check #1907
Conversation
Oh and please also add a test where you mention a field twice. |
source: &SourceRef, | ||
) -> Vec<Error> { | ||
let mut errors = Vec::new(); | ||
if let ( |
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.
Shouldn't this panic if it's not a FunctionValueDefinition::TypeDeclaration
?
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.
Since names comes from StructExpressions, None shouldn't be a possible case, hence the direct unwrap.
Note: Like #1910, this PR also includes the same modifications to expression processing, in order to run tests.