Skip to content

Commit ad8a163

Browse files
committed
Using the wrong symbol name in this instance
Based on where the error is reported, we want to not to use `name`, but sym instead
1 parent 2edc844 commit ad8a163

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/sema.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1243,7 +1243,7 @@ class sema
12431243
"local variable " + name
12441244
+ " must be initialized before " + sym.identifier->to_string()
12451245
+ " (local variables must be initialized in the order they are declared)",
1246-
name
1246+
sym.identifier->to_string()
12471247
);
12481248
return false;
12491249
}

0 commit comments

Comments
 (0)