Skip to content

Commit b163980

Browse files
committed
TEST: Update reference tests
1 parent df48a44 commit b163980

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"basename": "asr-func_06-62e738c",
3+
"cmd": "lpython --show-asr --no-color {infile} -o {outfile}",
4+
"infile": "tests/errors/func_06.py",
5+
"infile_hash": "2b8a5fa5d38ad35eeec67177ab8848255901548fe929c964a9eefef1",
6+
"outfile": null,
7+
"outfile_hash": null,
8+
"stdout": null,
9+
"stdout_hash": null,
10+
"stderr": "asr-func_06-62e738c.stderr",
11+
"stderr_hash": "a97e6d8f812ec9e81cb4b0565dc2fd30f3bd194ccab41770962f6e32",
12+
"returncode": 2
13+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
semantic error: Parameter is already declared
2+
--> tests/errors/func_06.py:1:12
3+
|
4+
1 | def init_X(m:i32, n: i32, b: CPtr, m: i32) -> None:
5+
| ~~~~~ original declaration
6+
|
7+
1 | def init_X(m:i32, n: i32, b: CPtr, m: i32) -> None:
8+
| ^^^^^^ redeclaration

0 commit comments

Comments
 (0)