forked from TypeStrong/typedoc-repros
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af9fd91
commit e3f99fe
Showing
1 changed file
with
31 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,43 @@ | ||
/** | ||
* Some code reproducing a bug. | ||
*/ | ||
class MyClass { | ||
|
||
declare namespace SameNameClassNamespace { | ||
/** | ||
* Documentation for aMethod() | ||
* | ||
* This is OK: {@link anotherMethod} | ||
* | ||
* @param aParam But this produces an error: {@link anotherMethod} | ||
* This causes an error even though it's relatively correct: {@link AnotherInterface} | ||
*/ | ||
aMethod(aParam: number) { | ||
export interface AnInterface { | ||
|
||
} | ||
|
||
/** | ||
* Documentation for anotherMethod() | ||
* Some documentation | ||
*/ | ||
anotherMethod() { | ||
export interface AnotherInterface { | ||
|
||
} | ||
} | ||
} | ||
|
||
/* | ||
* The error goes away in three ways: | ||
* - Comment out the below class | ||
* - Comment out the below interface | ||
* - Even stranger: Make this comment a TSDoc comment (add extra * to beggining of comment), | ||
* which will apply to the class. | ||
* - This may be a workable workaround | ||
*/ | ||
|
||
|
||
declare class SameNameClassNamespace { | ||
|
||
} | ||
|
||
/** | ||
* This interface is used to augment additional keys (from AnInterface) onto SameNameClassNamespace | ||
*/ | ||
interface SameNameClassNamespace extends SameNameClassNamespace.AnInterface { | ||
|
||
} | ||
|
||
export { | ||
SameNameClassNamespace | ||
}; |