Skip to content

Commit 7581c18

Browse files
author
Remi Delmas
committed
CONTRACTS: use contract::foo as name, base name and pretty name for the contract symbol.
1 parent 78efc2c commit 7581c18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ansi-c/c_typecheck_base.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -877,8 +877,8 @@ void c_typecheck_baset::typecheck_declaration(
877877
// create a contract symbol
878878
symbolt contract;
879879
contract.name = "contract::" + id2string(new_symbol.name);
880-
contract.base_name = new_symbol.name;
881-
contract.pretty_name = new_symbol.name;
880+
contract.base_name = contract.name;
881+
contract.pretty_name = contract.name;
882882
contract.is_property = true;
883883
contract.type = code_type;
884884
contract.mode = new_symbol.mode;

0 commit comments

Comments
 (0)