File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -6599,12 +6599,12 @@ namespace ts {
6599
6599
const result = < JSDocTypeTag > createNode ( SyntaxKind . JSDocTypeTag , atToken . pos ) ;
6600
6600
result . atToken = atToken ;
6601
6601
result . tagName = tagName ;
6602
- result . typeExpression = parseJSDocTypeExpression ( /*mayBail */ true ) ;
6602
+ result . typeExpression = parseJSDocTypeExpression ( /*requireBraces */ true ) ;
6603
6603
return finishNode ( result ) ;
6604
6604
}
6605
6605
6606
6606
function parseAugmentsTag ( atToken : AtToken , tagName : Identifier ) : JSDocAugmentsTag {
6607
- const typeExpression = tryParseTypeExpression ( ) ;
6607
+ const typeExpression = parseJSDocTypeExpression ( /*requireBraces*/ true ) ;
6608
6608
6609
6609
const result = < JSDocAugmentsTag > createNode ( SyntaxKind . JSDocAugmentsTag , atToken . pos ) ;
6610
6610
result . atToken = atToken ;
Original file line number Diff line number Diff line change @@ -144,6 +144,11 @@ namespace ts {
144
144
`/**
145
145
* @type
146
146
*/` ) ;
147
+
148
+ parsesIncorrectly ( "@augments with no type" ,
149
+ `/**
150
+ * @augments
151
+ */` ) ;
147
152
} ) ;
148
153
149
154
describe ( "parsesCorrectly" , ( ) => {
You can’t perform that action at this time.
0 commit comments