Skip to content

Commit 3865091

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

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
@@ -932,8 +932,8 @@ void c_typecheck_baset::typecheck_declaration(
932932
// create a contract symbol
933933
symbolt contract;
934934
contract.name = "contract::" + id2string(new_symbol.name);
935-
contract.base_name = new_symbol.name;
936-
contract.pretty_name = new_symbol.name;
935+
contract.base_name = contract.name;
936+
contract.pretty_name = contract.name;
937937
contract.is_property = true;
938938
contract.type = code_type;
939939
contract.mode = new_symbol.mode;

0 commit comments

Comments
 (0)