solidity/test/libsolidity/syntaxTests/constants/name_clash_via_import.sol

8 lines
182 B
Solidity
Raw Normal View History

2020-09-25 10:21:55 +00:00
==== Source: a ====
uint constant c = 7;
==== Source: b ====
import {c as d} from "a";
uint constant d = 7;
// ----
// DeclarationError 2333: (b:26-45): Identifier already declared.