Commit f346fd5
committed
test: add negative test for reserved keyword in module import diagnostic
Adds a test case verifying that when a reserved keyword (e.g. 'client')
is used unescaped in a module import path, the diagnostic message
correctly includes the keyword in the module path string.
Regression test for #44509 and #44519.1 parent f37a702 commit f346fd5
3 files changed
Lines changed: 21 additions & 0 deletions
File tree
- tests/jballerina-unit-test/src/test
- java/org/ballerinalang/test/imports
- resources/test-src/imports/ReservedKeywordImportTestProject
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
59 | 71 | | |
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments