diff options
Diffstat (limited to 'test/libsolidity/syntaxTests/constructor/returns_in_constructor_new.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/constructor/returns_in_constructor_new.sol | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/constructor/returns_in_constructor_new.sol b/test/libsolidity/syntaxTests/constructor/returns_in_constructor_new.sol new file mode 100644 index 00000000..e6a03014 --- /dev/null +++ b/test/libsolidity/syntaxTests/constructor/returns_in_constructor_new.sol @@ -0,0 +1,5 @@ +contract test { + constructor() public returns (uint a) { } +} +// ---- +// TypeError: (46-54): Non-empty "returns" directive for constructor. |