Add error messages for bad include and nested namespace

This commit is contained in:
Hans Svensson
2019-02-08 11:51:50 +01:00
committed by Ulf Norell
parent 2b7490776e
commit 421bc01012
4 changed files with 21 additions and 2 deletions
+6
View File
@@ -0,0 +1,6 @@
contract Bad =
include "included.aes"
namespace Foo =
function foo() = 42
function foo() = 43
-1
View File
@@ -2,7 +2,6 @@ include "included.aes"
include "../contracts/included2.aes"
contract Include =
// include "maps.aes"
function foo() =
Included.foo() < Included2a.bar()