Skip to content

Commit

Permalink
Modify library collision test
Browse files Browse the repository at this point in the history
Since libaraies no longer collide on name but on fully-qualified name,
you can only induce collision by colliding them as idenfitiers.
  • Loading branch information
roadriverrail authored and Rhett Aultman committed Jan 16, 2017
1 parent a7f8a19 commit fda39af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/libsolidity/Imports.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ BOOST_AUTO_TEST_CASE(library_name_clash)
CompilerStack c;
c.addSource("a", "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());
}

Expand Down

0 comments on commit fda39af

Please sign in to comment.