From fda39afdba9591131aac6d647cb46247e9495606 Mon Sep 17 00:00:00 2001 From: Rhett Aultman Date: Thu, 22 Dec 2016 08:30:53 -0800 Subject: 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. --- test/libsolidity/Imports.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'test/libsolidity') diff --git a/test/libsolidity/Imports.cpp b/test/libsolidity/Imports.cpp index 56895fdc..6aa96fb8 100644 --- a/test/libsolidity/Imports.cpp +++ b/test/libsolidity/Imports.cpp @@ -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()); } -- cgit