Skip to content

Commit 38cef4b

Browse files
committed
chore: compiler test for argument incompatibility
1 parent 2ed07c8 commit 38cef4b

5 files changed

+34
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
error TS5091: Option 'preserveConstEnums' cannot be disabled when 'isolatedModules' is enabled.
2+
3+
4+
!!! error TS5091: Option 'preserveConstEnums' cannot be disabled when 'isolatedModules' is enabled.
5+
==== tests/cases/compiler/file1.ts (0 errors) ====
6+
export {};
7+
8+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
//// [file1.ts]
2+
export {};
3+
4+
5+
6+
//// [file1.js]
7+
"use strict";
8+
exports.__esModule = true;
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
=== tests/cases/compiler/file1.ts ===
2+
export {};
3+
No type information for this code.
4+
No type information for this code.
5+
No type information for this code.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
=== tests/cases/compiler/file1.ts ===
2+
export {};
3+
No type information for this code.
4+
No type information for this code.
5+
No type information for this code.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// @isolatedModules: true
2+
// @preserveConstEnums: false
3+
// @module: commonjs
4+
5+
// @filename: file1.ts
6+
7+
export {};
8+

0 commit comments

Comments
 (0)