-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
563d7e8
commit b02b9fb
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
8 changes: 8 additions & 0 deletions
8
compiler-plugin-test/src/test/resources/ballerina_sources/sample_package_11/Ballerina.toml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[package] | ||
org = "wso2" | ||
name = "sample_package_11" | ||
version = "0.1.0" | ||
distribution = "2201.9.2" | ||
|
||
[build-options] | ||
observabilityIncluded = true |
16 changes: 16 additions & 0 deletions
16
compiler-plugin-test/src/test/resources/ballerina_sources/sample_package_11/main.bal
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import ballerina/data.csv; | ||
|
||
type A record { | ||
int:Unsigned32 headerRows = 0; | ||
string[] customHeaders = []; | ||
boolean outputWithHeaders = false; | ||
}; | ||
|
||
public function main() returns error? { | ||
record {}[] a = check csv:parseString(string `a,b`, {}); | ||
record {}[] b = test({headerRows: 2, outputWithHeaders: false}); | ||
} | ||
|
||
function test(A a) returns record{}[] { | ||
return [{}]; | ||
} |