Skip to content

Commit

Permalink
Update test refs
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jan 9, 2025
1 parent 2eef3b9 commit 2b65aae
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
x The angle-bracket syntax for type assertions, `<T>expr`, is not supported in type strip mode. Instead, use the 'as' syntax: `expr as T`.
,-[3:1]
2 |
3 | const foo = <number>1;
: ^^^^^^^^^
`----
3 changes: 3 additions & 0 deletions crates/swc_fast_ts_strip/tests/errors/type-assertions.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@


const foo = <number>1;

0 comments on commit 2b65aae

Please sign in to comment.