diff options
| author | Yong He <yonghe@outlook.com> | 2024-02-20 23:13:29 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-20 23:13:29 -0800 |
| commit | 2e2c7943da89b0100db3bba4b11267b5a857ca92 (patch) | |
| tree | 8cbf8010e964cdbb7381fa15b1062b2c43cbd870 /tests | |
| parent | 2ee05c1257c916e5c804a6b565a2a6aa362050e0 (diff) | |
Language server robustness fix. (#3607)
* Language server robustness fix.
* Allow parameter name to be the same as its type.
* fix
* Fix test.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/diagnostics/recursive-import.slang | 3 | ||||
| -rw-r--r-- | tests/language-feature/modules/error-in-nested-import/error-in-nested-import.slang | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/diagnostics/recursive-import.slang b/tests/diagnostics/recursive-import.slang index b74e55be4..312c579cf 100644 --- a/tests/diagnostics/recursive-import.slang +++ b/tests/diagnostics/recursive-import.slang @@ -1,6 +1,7 @@ -//DIAGNOSTIC_TEST:SIMPLE: +//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): // A file that recursively imports itself // (including transitive cases) should be diagnosed. +// CHECK: ([[#@LINE+1]]): error 38200 import recursive_import_extra; diff --git a/tests/language-feature/modules/error-in-nested-import/error-in-nested-import.slang b/tests/language-feature/modules/error-in-nested-import/error-in-nested-import.slang index 2efa69121..b709b52b1 100644 --- a/tests/language-feature/modules/error-in-nested-import/error-in-nested-import.slang +++ b/tests/language-feature/modules/error-in-nested-import/error-in-nested-import.slang @@ -1,6 +1,7 @@ // error-in-nested-import.slang -//DIAGNOSTIC_TEST:SIMPLE: +//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): +// CHECK: ([[#@LINE+1]]): error import a; int main() |
