-
Notifications
You must be signed in to change notification settings - Fork 758
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
Make function rest parameters final #41844
Conversation
@@ -44,3 +44,7 @@ listener test:MockListener ml = new (8080); | |||
public function testChangingListenerVariableAfterDefining() { | |||
ml = new test:MockListener(8081); | |||
} | |||
|
|||
function restFinal(string p1, string... p2) { |
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.
Rename the function to say testXxx reflecting what's being tested.
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.
Updated in 85eab29.
...na-unit-test/src/test/resources/test-src/types/finaltypes/test_implicitly_final_negative.bal
Show resolved
Hide resolved
...llerina-unit-test/src/test/java/org/ballerinalang/test/types/finaltypes/FinalAccessTest.java
Outdated
Show resolved
Hide resolved
...llerina-unit-test/src/test/java/org/ballerinalang/test/types/finaltypes/FinalAccessTest.java
Outdated
Show resolved
Hide resolved
Codecov ReportAttention:
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. |
...-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/SemanticAnalyzer.java
Outdated
Show resolved
Hide resolved
...-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/SemanticAnalyzer.java
Outdated
Show resolved
Hide resolved
...na-unit-test/src/test/resources/test-src/types/finaltypes/test_implicitly_final_negative.bal
Outdated
Show resolved
Hide resolved
This PR has been open for more than 15 days with no activity. This will be closed in 3 days unless the |
35632b8
to
bf890dc
Compare
5bf5d9f
into
ballerina-platform:master
Purpose
$subject
Fixes #41833
Approach
Samples
Remarks
Check List