-
Notifications
You must be signed in to change notification settings - Fork 736
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
Generate unknown type diagnostic for checked explicit constructors #42756
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #42756 +/- ##
============================================
- Coverage 77.26% 77.26% -0.01%
Complexity 51301 51301
============================================
Files 2928 2928
Lines 204391 204392 +1
Branches 26659 26660 +1
============================================
- Hits 157925 157921 -4
- Misses 37885 37888 +3
- Partials 8581 8583 +2 ☔ View full report in Codecov by Sentry. |
@@ -624,7 +624,7 @@ public boolean isNotUnknownTypeRef(BLangUserDefinedType td) { | |||
Location pos = td.pos; | |||
LocationData locationData = new LocationData(td.typeName.value, pos.lineRange().startLine().line(), | |||
pos.lineRange().startLine().offset()); | |||
return unknownTypeRefs.add(locationData); | |||
return dlog.isMute() || unknownTypeRefs.add(locationData); |
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.
Will this reflect the function signature?
This PR has been open for more than 15 days with no activity. This will be closed in 3 days unless the |
Purpose
$title.
Fixes #42705
Approach
The
unknownTypeRefs
are updated even during silent type checking, which in result excludes relevant unknown type diagnostics. With the changes, the respective set is only updated if the diagnostic log is not muted.Check List