Fix inheritdoc tags trying to resolve 'empty' elements

This commit is contained in:
Harikrishnan Mulackal
2020-08-26 21:28:00 +02:00
parent fdc4142b2c
commit 79b2e41252
2 changed files with 23 additions and 0 deletions
@@ -2,6 +2,18 @@ contract C {
/// @inheritdoc
function f() internal {
}
/// @inheritdoc .
function f() internal {
}
/// @inheritdoc C..f
function f() internal {
}
/// @inheritdoc C.
function f() internal {
}
}
// ----
// DocstringParsingError 1933: (17-32): Expected contract name following documentation tag @inheritdoc.
// DocstringParsingError 5967: (71-88): Documentation tag @inheritdoc reference "." is malformed.
// DocstringParsingError 5967: (127-147): Documentation tag @inheritdoc reference "C..f" is malformed.
// DocstringParsingError 5967: (186-204): Documentation tag @inheritdoc reference "C." is malformed.