Skip to content

Commit

Permalink
test: erasureSyntaxOnly regression
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Jan 30, 2025
1 parent 306713c commit 2d784cf
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/internal/test/ts-erasureSyntaxOnly.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// NB: not a test that runs.

// Test the `--erasureSyntaxOnly` option of TypeScript 5.8
// https://devblogs.microsoft.com/typescript/announcing-typescript-5-8-beta/#the---erasablesyntaxonly-option

// @ts-expect-error ts(1294) This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
enum Foo {
A = 1,
B = 2,
C = 3,
}

0 comments on commit 2d784cf

Please sign in to comment.