Skip to content
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

Make function rest parameters final #41844

Merged
merged 5 commits into from
Jan 23, 2024

Conversation

LakshanWeerasinghe
Copy link
Contributor

Purpose

$subject

Fixes #41833

Approach

Describe how you are implementing the solutions along with the design details.

Samples

Provide high-level details about the samples related to this feature.

Remarks

List any other known issues, related PRs, TODO items, or any other notes related to the PR.

Check List

  • Read the Contributing Guide
  • Updated Change Log
  • Checked Tooling Support (#)
  • Added necessary tests
    • Unit Tests
    • Spec Conformance Tests
    • Integration Tests
    • Ballerina By Example Tests
  • Increased Test Coverage
  • Added necessary documentation
    • API documentation
    • Module documentation in Module.md files
    • Ballerina By Examples

@LakshanWeerasinghe LakshanWeerasinghe added Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Fix/BreakingChange Fix containing a backward incompatible change. labels Dec 7, 2023
@@ -44,3 +44,7 @@ listener test:MockListener ml = new (8080);
public function testChangingListenerVariableAfterDefining() {
ml = new test:MockListener(8081);
}

function restFinal(string p1, string... p2) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename the function to say testXxx reflecting what's being tested.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated in 85eab29.

Copy link

codecov bot commented Dec 11, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (998b57c) 76.67% compared to head (bf890dc) 76.67%.
Report is 17 commits behind head on master.

Files Patch % Lines
.../compiler/bir/codegen/interop/JMethodResolver.java 80.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #41844      +/-   ##
============================================
- Coverage     76.67%   76.67%   -0.01%     
- Complexity    53002    53013      +11     
============================================
  Files          2883     2883              
  Lines        199881   199918      +37     
  Branches      26011    26021      +10     
============================================
+ Hits         153264   153286      +22     
- Misses        38157    38168      +11     
- Partials       8460     8464       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

This PR has been open for more than 15 days with no activity. This will be closed in 3 days unless the stale label is removed or commented.

chiranSachintha
chiranSachintha previously approved these changes Jan 9, 2024
@KavinduZoysa KavinduZoysa merged commit 5bf5d9f into ballerina-platform:master Jan 23, 2024
17 of 18 checks passed
@LakshanWeerasinghe LakshanWeerasinghe added this to the 2201.9.0 milestone Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix/BreakingChange Fix containing a backward incompatible change. Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Function rest param is not set as final
4 participants