Skip to content

Commit 60d8cca

Browse files
committed
Change the first location information
1 parent e7a44de commit 60d8cca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lpython/parser/parser.yy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ class_def
720720
: decorators_opt KW_CLASS id ":" body_stmts {
721721
$$ = CLASS_01($1, $3, $5, @$); }
722722
| decorators_opt KW_CLASS id "(" call_arguement_list ")" ":" body_stmts {
723-
$$ = CLASS_02($1, $3, $5, $8, @$); }
723+
@$.first = @2.first; $$ = CLASS_02($1, $3, $5, $8, @$); }
724724
;
725725

726726
async_func_def

0 commit comments

Comments
 (0)