@@ -58,9 +58,12 @@ func TestTypeEraser(t *testing.T) {
58
58
{title : "NewExpression2" , input : "new f<T>" , output : "new f;" },
59
59
{title : "TaggedTemplateExpression" , input : "f<T>``" , output : "f ``;" },
60
60
{title : "NonNullExpression" , input : "x!" , output : "x;" },
61
- {title : "TypeAssertionExpression" , input : "<T>x" , output : "x;" },
62
- {title : "AsExpression" , input : "x as T" , output : "x;" },
63
- {title : "SatisfiesExpression" , input : "x satisfies T" , output : "x;" },
61
+ {title : "TypeAssertionExpression#1" , input : "<T>x" , output : "x;" },
62
+ {title : "TypeAssertionExpression#2" , input : "(<T>x).c" , output : "x.c;" },
63
+ {title : "AsExpression#1" , input : "x as T" , output : "x;" },
64
+ {title : "AsExpression#2" , input : "(x as T).c" , output : "x.c;" },
65
+ {title : "SatisfiesExpression#1" , input : "x satisfies T" , output : "x;" },
66
+ {title : "SatisfiesExpression#2" , input : "(x satisfies T).c" , output : "x.c;" },
64
67
{title : "JsxSelfClosingElement" , input : "<x<T> />" , output : "<x />;" , jsx : true },
65
68
{title : "JsxOpeningElement" , input : "<x<T>></x>" , output : "<x></x>;" , jsx : true },
66
69
{title : "ImportEqualsDeclaration#1" , input : "import x = require(\" m\" );" , output : "import x = require(\" m\" );" },
0 commit comments