Repository navigation
fix/issue 2993 - #3020
Draft
jurgenvinju wants to merge 6 commits into
Draft
fix/issue 2993#3020jurgenvinju wants to merge 6 commits into
jurgenvinju wants to merge 6 commits into
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3020 +/- ##
=======================================
Coverage 46% 46%
- Complexity 6933 6940 +7
=======================================
Files 851 851
Lines 69376 69371 -5
Branches 10110 10114 +4
=======================================
+ Hits 32178 32194 +16
+ Misses 34764 34741 -23
- Partials 2434 2436 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…ADT constructors with types that do not match with the currently rewritten constructor (always one without a declaration in the current scope)
|
DavyLandman
approved these changes
Nov 26, 2026
| try { | ||
| assert args != null; | ||
| QualifiedName n = Names.toQualifiedName(cons.getType().getName(), cons.getName(), null); | ||
| // TODO: lookup the function in the current scope and memo it for during the visit, also its absence. |
Member
There was a problem hiding this comment.
When is this Todo suppose to be done? If not in this PR, can we explain why we're not doing this yet?
Closed
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



UnexpectedTypeerror during visit when subject ADT (defined in multiple modules) is only partially visible #2993 by understanding that MatchFailed during a visit case is a normal eventUnexpectedTypeerror during visit when subject ADT (defined in multiple modules) is only partially visible #2993,lang::rascal::tests::functionality::VisitUndefinedConstructorsThe last change makes it possible to type-check visit statically, because the runtime guarantees to not make errors.
@PaulKlint and I talked this over; to see what consequences there are for the (static) semantics of visit; this is the smallest change that:
list[void]to alist[int], and the result will only be used if its fits in the unchanged/changed parent constructor.