mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Modify library collision test
Since libaraies no longer collide on name but on fully-qualified name, you can only induce collision by colliding them as idenfitiers.
This commit is contained in:
parent
a7f8a1986a
commit
fda39afdba
@ -106,6 +106,7 @@ BOOST_AUTO_TEST_CASE(library_name_clash)
|
|||||||
CompilerStack c;
|
CompilerStack c;
|
||||||
c.addSource("a", "library A {} pragma solidity >=0.0;");
|
c.addSource("a", "library A {} pragma solidity >=0.0;");
|
||||||
c.addSource("b", "library A {} pragma solidity >=0.0;");
|
c.addSource("b", "library A {} pragma solidity >=0.0;");
|
||||||
|
c.addSource("c", "import {A} from \"./a\"; import {A} from \"./b\";");
|
||||||
BOOST_CHECK(!c.compile());
|
BOOST_CHECK(!c.compile());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user