-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Typechecking for new records #1692
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.
Looks good, the integration tests are awesome! Just a small question inline
} | ||
|
||
test("invalid field string in record set construction") { | ||
val invalid = "invalidName" |
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 don't get why this field name is invalid, can you help me understand?
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.
Good point. I have added a comment. The test is checking that only ValEx(TlaStr(_))
can be passed, not NameEx(_)
.
Codecov Report
@@ Coverage Diff @@
## unstable #1692 +/- ##
=========================================
Coverage 75.30% 75.31%
=========================================
Files 357 357
Lines 11534 11542 +8
Branches 619 624 +5
=========================================
+ Hits 8686 8693 +7
- Misses 2848 2849 +1
Continue to review full report at Codecov.
|
Closes #1688. This PR integrates type checking of new records when
--features=rows
is enabled. As the four integration tests demonstrate, the new type checker reports type errors in examples that were problematic and counterintuitive with the old records.Type checking for variants is not implemented in this PR. It is scheduled for a later one.
make fmt-fix
(or had formatting run automatically on all files edited)