We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd32cf8 commit 03cb73fCopy full SHA for 03cb73f
tests/cases/compiler/NonNullableInNonStrictMode.ts renamed to tests/cases/compiler/nonNullableAndObjectIntersections.ts
@@ -1,4 +1,4 @@
1
-// @strict: false
+// @strict: true, false
2
3
// These should all resolve to never
4
@@ -14,5 +14,5 @@ type T6 = null & { a: string } & {};
14
type NonNullableNew<T> = T & {};
15
type NonNullableOld<T> = T extends null | undefined ? never : T;
16
17
-type IsNullWithoutStrictNullChecks = NonNullableNew<null>;
18
-type IsAlwaysNever = NonNullableOld<null>;
+type TestNew = NonNullableNew<null>;
+type TestOld = NonNullableOld<null>;
0 commit comments