From 9d079fd1261e40339157bff6fd46de96ae844562 Mon Sep 17 00:00:00 2001 From: Daniel Kirchner Date: Wed, 14 Mar 2018 10:34:16 +0100 Subject: [PATCH] DocStringParser: Add Changelog entry and test case for empty descriptions. --- Changelog.md | 1 + .../libsolidity/syntaxTests/docstring_empty_description.sol | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 test/libsolidity/syntaxTests/docstring_empty_description.sol diff --git a/Changelog.md b/Changelog.md index 648af66c6..a0ad62426 100644 --- a/Changelog.md +++ b/Changelog.md @@ -6,6 +6,7 @@ Bugfixes: * Code Generator: Properly skip unneeded storgae array cleanup when not reducing length. * Commandline interface: Support ``--evm-version constantinople`` properly. * Standard JSON: Support ``constantinople`` as ``evmVersion`` properly. + * DocString Parser: Fix error message for empty descriptions. ### 0.4.21 (2018-03-07) diff --git a/test/libsolidity/syntaxTests/docstring_empty_description.sol b/test/libsolidity/syntaxTests/docstring_empty_description.sol new file mode 100644 index 000000000..0caa1b232 --- /dev/null +++ b/test/libsolidity/syntaxTests/docstring_empty_description.sol @@ -0,0 +1,6 @@ +contract C { + /// @param id + function vote(uint id) public; +} +// ---- +// DocstringParsingError: No description given for param id