Natspec: Add warning when using @author with functions

This commit is contained in:
Mathias Baumann
2020-06-29 18:10:36 +02:00
parent a1309e4c5f
commit fe33891531
3 changed files with 14 additions and 7 deletions
@@ -0,0 +1,6 @@
contract C {
/// @author author
function iHaveAuthor() public pure {}
}
// ----
// Warning 9843: (17-35): Documentation tag @author is only allowed on contract definitions. It will be disallowed in 0.7.0.