From c3dc61d18a42d2a1e8d1524be579d1055dd26e18 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Wed, 21 Jan 2026 09:29:18 -0800 Subject: [PATCH] Turn `// @strict` off in all failing fourslash tests which do not contain baseline calls (#63023) --- tests/cases/fourslash/annotateWithTypeFromJSDoc1.ts | 1 + tests/cases/fourslash/annotateWithTypeFromJSDoc10.ts | 1 + tests/cases/fourslash/annotateWithTypeFromJSDoc11.ts | 1 + tests/cases/fourslash/annotateWithTypeFromJSDoc12.ts | 1 + tests/cases/fourslash/annotateWithTypeFromJSDoc17.ts | 1 + tests/cases/fourslash/annotateWithTypeFromJSDoc18.ts | 1 + tests/cases/fourslash/annotateWithTypeFromJSDoc3.ts | 1 + tests/cases/fourslash/annotateWithTypeFromJSDoc6.ts | 1 + tests/cases/fourslash/annotateWithTypeFromJSDoc7.ts | 1 + tests/cases/fourslash/annotateWithTypeFromJSDoc8.ts | 1 + tests/cases/fourslash/annotateWithTypeFromJSDoc9.5.ts | 1 + tests/cases/fourslash/annotateWithTypeFromJSDoc9.ts | 1 + tests/cases/fourslash/cloduleAsBaseClass.ts | 1 + tests/cases/fourslash/cloduleAsBaseClass2.ts | 1 + tests/cases/fourslash/cloduleTypeOf1.ts | 1 + tests/cases/fourslash/codeFixAddMissingAsync2.ts | 1 + tests/cases/fourslash/codeFixAddMissingDeclareProperty.ts | 1 + tests/cases/fourslash/codeFixAddMissingEnumMember12.ts | 1 + tests/cases/fourslash/codeFixAddMissingProperties1.ts | 1 + tests/cases/fourslash/codeFixAddMissingProperties33.ts | 1 + tests/cases/fourslash/codeFixAddMissingProperties37.ts | 1 + tests/cases/fourslash/codeFixAddMissingProperties43.ts | 1 + tests/cases/fourslash/codeFixAddMissingProperties44.ts | 1 + tests/cases/fourslash/codeFixAddMissingProperties6.ts | 1 + tests/cases/fourslash/codeFixAwaitInSyncFunction6.5.ts | 1 + tests/cases/fourslash/codeFixAwaitInSyncFunction6.ts | 1 + tests/cases/fourslash/codeFixCannotFindModule_suggestion.ts | 1 + tests/cases/fourslash/codeFixChangeJSDocSyntax15.ts | 1 + .../fourslash/codeFixClassExtendAbstractSomePropertiesPresent.ts | 1 + .../fourslash/codeFixClassImplementClassMemberAnonymousClass.ts | 1 + .../fourslash/codeFixClassImplementClassPropertyModifiers.ts | 1 + .../fourslash/codeFixClassImplementClassPropertyTypeQuery.ts | 1 + tests/cases/fourslash/codeFixClassImplementDeepInheritance.ts | 1 + ...lassImplementInterfaceComputedPropertyNameWellKnownSymbols.ts | 1 + .../fourslash/codeFixClassImplementInterfaceDuplicateMember2.ts | 1 + ...eFixClassImplementInterfaceHeritageClauseAlreadyHaveMember.ts | 1 + .../codeFixClassImplementInterfaceMultipleImplements1.ts | 1 + .../codeFixClassImplementInterfaceMultipleImplements2.ts | 1 + ...eFixClassImplementInterfaceMultipleImplementsIntersection2.ts | 1 + .../fourslash/codeFixClassImplementInterfaceOptionalProperty.ts | 1 + .../codeFixClassImplementInterfaceSomePropertiesPresent.ts | 1 + tests/cases/fourslash/codeFixCorrectReturnValue10.ts | 1 + tests/cases/fourslash/codeFixCorrectReturnValue18.ts | 1 + tests/cases/fourslash/codeFixCorrectReturnValue19.ts | 1 + tests/cases/fourslash/codeFixCorrectReturnValue20.ts | 1 + tests/cases/fourslash/codeFixCorrectReturnValue8.ts | 1 + tests/cases/fourslash/codeFixDisableJsDiagnosticsInFile6.ts | 1 + tests/cases/fourslash/codeFixDisableJsDiagnosticsInFile7.ts | 1 + tests/cases/fourslash/codeFixDisableJsDiagnosticsInFile8.ts | 1 + tests/cases/fourslash/codeFixForgottenThisPropertyAccess01.ts | 1 + tests/cases/fourslash/codeFixForgottenThisPropertyAccess02.ts | 1 + tests/cases/fourslash/codeFixForgottenThisPropertyAccess03.ts | 1 + tests/cases/fourslash/codeFixInferFromUsageConstructor.ts | 1 + .../fourslash/codeFixInferFromUsageConstructorFunctionJS.ts | 1 + tests/cases/fourslash/codeFixInferFromUsageGetter2.ts | 1 + tests/cases/fourslash/codeFixInferFromUsageInaccessibleTypes.ts | 1 + tests/cases/fourslash/codeFixInferFromUsageOptionalParam.ts | 1 + tests/cases/fourslash/codeFixInferFromUsageOptionalParamJS.ts | 1 + tests/cases/fourslash/codeFixInferFromUsageRestParam.ts | 1 + tests/cases/fourslash/codeFixInferFromUsageRestParam2.ts | 1 + tests/cases/fourslash/codeFixInferFromUsageRestParam2JS.ts | 1 + tests/cases/fourslash/codeFixInferFromUsageRestParamJS.ts | 1 + tests/cases/fourslash/codeFixInferFromUsageString.ts | 1 + tests/cases/fourslash/codeFixInitializePrivatePropertyJS.ts | 1 + .../codeFixMissingTypeAnnotationOnExports28-long-types.ts | 1 + tests/cases/fourslash/codeFixOverrideModifier10.ts | 1 + tests/cases/fourslash/codeFixOverrideModifier9.ts | 1 + tests/cases/fourslash/codeFixOverrideModifier_js1.ts | 1 + tests/cases/fourslash/codeFixRenameUnmatchedParameterJS1.ts | 1 + tests/cases/fourslash/codeFixRenameUnmatchedParameterJS2.ts | 1 + tests/cases/fourslash/codeFixRenameUnmatchedParameterJS3.ts | 1 + tests/cases/fourslash/codeFixSpellingVsMissingMember.ts | 1 + tests/cases/fourslash/codeFixUndeclaredAcrossFiles1.ts | 1 + tests/cases/fourslash/codeFixUndeclaredClassInstance.ts | 1 + .../fourslash/codeFixUndeclaredClassInstanceWithTypeParams.ts | 1 + .../fourslash/codeFixUndeclaredPropertyFunctionEmptyClass.ts | 1 + .../fourslash/codeFixUndeclaredPropertyFunctionNonEmptyClass.ts | 1 + tests/cases/fourslash/codeFixUndeclaredPropertyObjectLiteral.ts | 1 + tests/cases/fourslash/codeFixUnusedIdentifier_deleteWrite2.ts | 1 + tests/cases/fourslash/codeFixUnusedIdentifier_prefix.ts | 1 + tests/cases/fourslash/codeFixUnusedIdentifier_suggestion.ts | 1 + tests/cases/fourslash/codefixInferFromUsageNullish.ts | 1 + tests/cases/fourslash/completionCloneQuestionToken.ts | 1 + .../fourslash/completionListsThroughTransitiveBaseClasses.ts | 1 + .../fourslash/completionListsThroughTransitiveBaseClasses2.ts | 1 + tests/cases/fourslash/completionsOverridingMethod9.ts | 1 + .../cases/fourslash/consistentContextualTypeErrorsAfterEdits.ts | 1 + tests/cases/fourslash/constEnumsEmitOutputInMultipleFiles.ts | 1 + tests/cases/fourslash/contextualTypingOfArrayLiterals.ts | 1 + tests/cases/fourslash/defaultParamsAndContextualTypes.ts | 1 + tests/cases/fourslash/deprecatedInheritedJSDocOverload.ts | 1 + .../cases/fourslash/derivedTypeIndexerWithGenericConstraints.ts | 1 + ...iagnosticsJsFileCompilationDuplicateFunctionImplementation.ts | 1 + tests/cases/fourslash/emptyArrayInference.ts | 1 + tests/cases/fourslash/exportEqualTypes.ts | 1 + tests/cases/fourslash/extendArrayInterfaceMember.ts | 1 + tests/cases/fourslash/extendInterfaceOverloadedMethod.ts | 1 + tests/cases/fourslash/extendsTArray.ts | 1 + tests/cases/fourslash/extractFunctionContainingThis3.ts | 1 + tests/cases/fourslash/fixingTypeParametersQuickInfo.ts | 1 + tests/cases/fourslash/functionTypes.ts | 1 + tests/cases/fourslash/genericInterfacePropertyInference1.ts | 1 + tests/cases/fourslash/genericInterfacePropertyInference2.ts | 1 + tests/cases/fourslash/genericMapTyping1.ts | 1 + tests/cases/fourslash/genericObjectBaseType.ts | 1 + tests/cases/fourslash/genericRespecialization1.ts | 1 + tests/cases/fourslash/getDeclarationDiagnostics.ts | 1 + tests/cases/fourslash/getSemanticDiagnosticForDeclaration.ts | 1 + tests/cases/fourslash/incompatibleOverride.ts | 1 + tests/cases/fourslash/inheritedModuleMembersForClodule2.ts | 1 + tests/cases/fourslash/invertedCloduleAfterQuickInfo.ts | 1 + .../fourslash/jsxAttributeSnippetCompletionAfterTypeArgs.ts | 1 + tests/cases/fourslash/jsxAttributeSnippetCompletionClosed.ts | 1 + tests/cases/fourslash/jsxAttributeSnippetCompletionUnclosed.ts | 1 + tests/cases/fourslash/multiModuleFundule.ts | 1 + tests/cases/fourslash/noSuggestionDiagnosticsOnParseError.ts | 1 + tests/cases/fourslash/objectLiteralCallSignatures.ts | 1 + tests/cases/fourslash/parenthesisFatArrows.ts | 1 + tests/cases/fourslash/pasteLambdaOverModule.ts | 1 + ...nfoForContextuallyTypedFunctionInTaggedTemplateExpression2.ts | 1 + .../fourslash/quickInfoForObjectBindingElementPropertyName03.ts | 1 + tests/cases/fourslash/quickInfoForShorthandProperty.ts | 1 + tests/cases/fourslash/quickInfoGenericTypeArgumentInference1.ts | 1 + .../fourslash/quickInfoJsDocNonDiscriminatedUnionSharedProp.ts | 1 + tests/cases/fourslash/quickInfoOnCatchVariable.ts | 1 + .../fourslash/quickInfoOnMergedInterfacesWithIncrementalEdits.ts | 1 + tests/cases/fourslash/quickInfoOnMergedModule.ts | 1 + tests/cases/fourslash/quickInfoOnNarrowedTypeInModule.ts | 1 + .../fourslash/quickInfoSignatureOptionalParameterFromUnion1.ts | 1 + .../cases/fourslash/quickInfoSignatureRestParameterFromUnion2.ts | 1 + tests/cases/fourslash/quickInfoWidenedTypes.ts | 1 + .../cases/fourslash/refactorConvertToGetAccessAndSetAccess10.ts | 1 + tests/cases/fourslash/signatureHelpCallExpressionJs.ts | 1 + tests/cases/fourslash/signatureHelpOptionalCall2.ts | 1 + tests/cases/fourslash/squiggleFunctionExpression.ts | 1 + tests/cases/fourslash/squiggleIllegalSubclassOverride.ts | 1 + tests/cases/fourslash/superInDerivedTypeOfGenericWithStatics.ts | 1 + tests/cases/fourslash/unclosedArrayErrorRecovery.ts | 1 + tests/cases/fourslash/underscoreTypings02.ts | 1 + tests/cases/fourslash/unusedClassInNamespace4.ts | 1 + tests/cases/fourslash/unusedParameterInFunction2.ts | 1 + tests/cases/fourslash/unusedParameterInLambda3.ts | 1 + tests/cases/fourslash/unusedTypeParametersInLambda3.ts | 1 + tests/cases/fourslash/unusedTypeParametersInLambda4.ts | 1 + tests/cases/fourslash/unusedVariableInClass1.ts | 1 + tests/cases/fourslash/unusedVariableInClass2.ts | 1 + tests/cases/fourslash/unusedVariableInClass4.ts | 1 + 147 files changed, 147 insertions(+) diff --git a/tests/cases/fourslash/annotateWithTypeFromJSDoc1.ts b/tests/cases/fourslash/annotateWithTypeFromJSDoc1.ts index f57c1a8101b..80c8f168b86 100644 --- a/tests/cases/fourslash/annotateWithTypeFromJSDoc1.ts +++ b/tests/cases/fourslash/annotateWithTypeFromJSDoc1.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @Filename: test123.ts /////** @type {number} */ ////var [|x|]; diff --git a/tests/cases/fourslash/annotateWithTypeFromJSDoc10.ts b/tests/cases/fourslash/annotateWithTypeFromJSDoc10.ts index 98cc31e3207..ba5fb3ecfdb 100644 --- a/tests/cases/fourslash/annotateWithTypeFromJSDoc10.ts +++ b/tests/cases/fourslash/annotateWithTypeFromJSDoc10.ts @@ -1,5 +1,6 @@ /// +// @strict: false /////** //// * @param {?} x //// * @returns {number} diff --git a/tests/cases/fourslash/annotateWithTypeFromJSDoc11.ts b/tests/cases/fourslash/annotateWithTypeFromJSDoc11.ts index a08906ef91a..6a59fa45a46 100644 --- a/tests/cases/fourslash/annotateWithTypeFromJSDoc11.ts +++ b/tests/cases/fourslash/annotateWithTypeFromJSDoc11.ts @@ -1,5 +1,6 @@ /// +// @strict: false /////** //// * @param {?} x //// * @returns {number} diff --git a/tests/cases/fourslash/annotateWithTypeFromJSDoc12.ts b/tests/cases/fourslash/annotateWithTypeFromJSDoc12.ts index ec1ab370222..d7a73c3f350 100644 --- a/tests/cases/fourslash/annotateWithTypeFromJSDoc12.ts +++ b/tests/cases/fourslash/annotateWithTypeFromJSDoc12.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////class C { //// /** //// * @return {...*} diff --git a/tests/cases/fourslash/annotateWithTypeFromJSDoc17.ts b/tests/cases/fourslash/annotateWithTypeFromJSDoc17.ts index c452dd4516f..f2cb9b9ded3 100644 --- a/tests/cases/fourslash/annotateWithTypeFromJSDoc17.ts +++ b/tests/cases/fourslash/annotateWithTypeFromJSDoc17.ts @@ -1,4 +1,5 @@ /// +// @strict: false ////class C { //// /** //// * @param {number} x - the first parameter diff --git a/tests/cases/fourslash/annotateWithTypeFromJSDoc18.ts b/tests/cases/fourslash/annotateWithTypeFromJSDoc18.ts index 9fc2e966028..043ff1d0430 100644 --- a/tests/cases/fourslash/annotateWithTypeFromJSDoc18.ts +++ b/tests/cases/fourslash/annotateWithTypeFromJSDoc18.ts @@ -1,4 +1,5 @@ /// +// @strict: false ////class C { //// /** @param {number} value */ //// set c(value) { return value } diff --git a/tests/cases/fourslash/annotateWithTypeFromJSDoc3.ts b/tests/cases/fourslash/annotateWithTypeFromJSDoc3.ts index f7d0522018a..de7bc34e174 100644 --- a/tests/cases/fourslash/annotateWithTypeFromJSDoc3.ts +++ b/tests/cases/fourslash/annotateWithTypeFromJSDoc3.ts @@ -1,4 +1,5 @@ /// +// @strict: false /////** //// * @param {number} x - the first parameter //// * @param {{ a: string, b: Date }} y - the most complex parameter diff --git a/tests/cases/fourslash/annotateWithTypeFromJSDoc6.ts b/tests/cases/fourslash/annotateWithTypeFromJSDoc6.ts index dbb75590fb2..8e384be0f32 100644 --- a/tests/cases/fourslash/annotateWithTypeFromJSDoc6.ts +++ b/tests/cases/fourslash/annotateWithTypeFromJSDoc6.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////declare class C { //// /** @type {number | null} */ //// p; diff --git a/tests/cases/fourslash/annotateWithTypeFromJSDoc7.ts b/tests/cases/fourslash/annotateWithTypeFromJSDoc7.ts index 0d43bde45d4..f9ce9f7a152 100644 --- a/tests/cases/fourslash/annotateWithTypeFromJSDoc7.ts +++ b/tests/cases/fourslash/annotateWithTypeFromJSDoc7.ts @@ -1,5 +1,6 @@ /// +// @strict: false /////** //// * @param {number} x //// * @returns {number} diff --git a/tests/cases/fourslash/annotateWithTypeFromJSDoc8.ts b/tests/cases/fourslash/annotateWithTypeFromJSDoc8.ts index ca9450c1e6f..cbc6ca33cdd 100644 --- a/tests/cases/fourslash/annotateWithTypeFromJSDoc8.ts +++ b/tests/cases/fourslash/annotateWithTypeFromJSDoc8.ts @@ -1,5 +1,6 @@ /// +// @strict: false /////** //// * @param {number} x //// * @returns {number} diff --git a/tests/cases/fourslash/annotateWithTypeFromJSDoc9.5.ts b/tests/cases/fourslash/annotateWithTypeFromJSDoc9.5.ts index aa17b0591c8..a7196ef0e41 100644 --- a/tests/cases/fourslash/annotateWithTypeFromJSDoc9.5.ts +++ b/tests/cases/fourslash/annotateWithTypeFromJSDoc9.5.ts @@ -1,5 +1,6 @@ /// +// @strict: false /////** //// * @template T //// * @param {T} x diff --git a/tests/cases/fourslash/annotateWithTypeFromJSDoc9.ts b/tests/cases/fourslash/annotateWithTypeFromJSDoc9.ts index f664d5be6b7..138bb3f2756 100644 --- a/tests/cases/fourslash/annotateWithTypeFromJSDoc9.ts +++ b/tests/cases/fourslash/annotateWithTypeFromJSDoc9.ts @@ -1,5 +1,6 @@ /// +// @strict: false /////** //// * @param {?} x //// * @returns {number} diff --git a/tests/cases/fourslash/cloduleAsBaseClass.ts b/tests/cases/fourslash/cloduleAsBaseClass.ts index 9de78e58cce..fab29479339 100644 --- a/tests/cases/fourslash/cloduleAsBaseClass.ts +++ b/tests/cases/fourslash/cloduleAsBaseClass.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////class A { //// constructor(x: number) { } //// foo() { } diff --git a/tests/cases/fourslash/cloduleAsBaseClass2.ts b/tests/cases/fourslash/cloduleAsBaseClass2.ts index c628a0f859a..e517d104964 100644 --- a/tests/cases/fourslash/cloduleAsBaseClass2.ts +++ b/tests/cases/fourslash/cloduleAsBaseClass2.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @Filename: cloduleAsBaseClass2_0.ts ////class A { //// constructor(x: number) { } diff --git a/tests/cases/fourslash/cloduleTypeOf1.ts b/tests/cases/fourslash/cloduleTypeOf1.ts index 6d57ff2f45c..b7ce305b680 100644 --- a/tests/cases/fourslash/cloduleTypeOf1.ts +++ b/tests/cases/fourslash/cloduleTypeOf1.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////class C { //// static foo(x: number) { } //// x: T; diff --git a/tests/cases/fourslash/codeFixAddMissingAsync2.ts b/tests/cases/fourslash/codeFixAddMissingAsync2.ts index 3f610ae141b..aaadea94be5 100644 --- a/tests/cases/fourslash/codeFixAddMissingAsync2.ts +++ b/tests/cases/fourslash/codeFixAddMissingAsync2.ts @@ -1,4 +1,5 @@ /// +// @strict: false ////interface Stuff { //// b: () => Promise; ////} diff --git a/tests/cases/fourslash/codeFixAddMissingDeclareProperty.ts b/tests/cases/fourslash/codeFixAddMissingDeclareProperty.ts index e4ebea338f6..3fbf4865117 100644 --- a/tests/cases/fourslash/codeFixAddMissingDeclareProperty.ts +++ b/tests/cases/fourslash/codeFixAddMissingDeclareProperty.ts @@ -1,4 +1,5 @@ /// +// @strict: false // @useDefineForClassFields: true ////class B { diff --git a/tests/cases/fourslash/codeFixAddMissingEnumMember12.ts b/tests/cases/fourslash/codeFixAddMissingEnumMember12.ts index af813c71f7f..4935e132328 100644 --- a/tests/cases/fourslash/codeFixAddMissingEnumMember12.ts +++ b/tests/cases/fourslash/codeFixAddMissingEnumMember12.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////const x; // this is x //// ////// this is E diff --git a/tests/cases/fourslash/codeFixAddMissingProperties1.ts b/tests/cases/fourslash/codeFixAddMissingProperties1.ts index 0d82892c02c..ee9cb811602 100644 --- a/tests/cases/fourslash/codeFixAddMissingProperties1.ts +++ b/tests/cases/fourslash/codeFixAddMissingProperties1.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////interface Foo { //// a: number; //// b: string; diff --git a/tests/cases/fourslash/codeFixAddMissingProperties33.ts b/tests/cases/fourslash/codeFixAddMissingProperties33.ts index c034471a420..4ada2d89fdc 100644 --- a/tests/cases/fourslash/codeFixAddMissingProperties33.ts +++ b/tests/cases/fourslash/codeFixAddMissingProperties33.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////interface Foo { //// a: number; //// b: string; diff --git a/tests/cases/fourslash/codeFixAddMissingProperties37.ts b/tests/cases/fourslash/codeFixAddMissingProperties37.ts index cdc0b7e82f7..9811e04e933 100644 --- a/tests/cases/fourslash/codeFixAddMissingProperties37.ts +++ b/tests/cases/fourslash/codeFixAddMissingProperties37.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////interface I { //// x: number; //// y: number; diff --git a/tests/cases/fourslash/codeFixAddMissingProperties43.ts b/tests/cases/fourslash/codeFixAddMissingProperties43.ts index bf50ec73974..086ef47fb0f 100644 --- a/tests/cases/fourslash/codeFixAddMissingProperties43.ts +++ b/tests/cases/fourslash/codeFixAddMissingProperties43.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////interface Foo { //// a: number; //// b: string; diff --git a/tests/cases/fourslash/codeFixAddMissingProperties44.ts b/tests/cases/fourslash/codeFixAddMissingProperties44.ts index 5cb87bd2a53..f648912e8ab 100644 --- a/tests/cases/fourslash/codeFixAddMissingProperties44.ts +++ b/tests/cases/fourslash/codeFixAddMissingProperties44.ts @@ -1,4 +1,5 @@ /// +// @strict: false // @lib: es2020 // @target: es2020 diff --git a/tests/cases/fourslash/codeFixAddMissingProperties6.ts b/tests/cases/fourslash/codeFixAddMissingProperties6.ts index d4d4e2eb8dd..b042ba5aa19 100644 --- a/tests/cases/fourslash/codeFixAddMissingProperties6.ts +++ b/tests/cases/fourslash/codeFixAddMissingProperties6.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////interface I { //// x: number; //// y: number; diff --git a/tests/cases/fourslash/codeFixAwaitInSyncFunction6.5.ts b/tests/cases/fourslash/codeFixAwaitInSyncFunction6.5.ts index b33d50078ef..99d54ddd95a 100644 --- a/tests/cases/fourslash/codeFixAwaitInSyncFunction6.5.ts +++ b/tests/cases/fourslash/codeFixAwaitInSyncFunction6.5.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////const f = promise => { //// await promise; ////} diff --git a/tests/cases/fourslash/codeFixAwaitInSyncFunction6.ts b/tests/cases/fourslash/codeFixAwaitInSyncFunction6.ts index 5fc50a4f9d7..314edcc3ce6 100644 --- a/tests/cases/fourslash/codeFixAwaitInSyncFunction6.ts +++ b/tests/cases/fourslash/codeFixAwaitInSyncFunction6.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////const f = (promise) => { //// await promise; ////} diff --git a/tests/cases/fourslash/codeFixCannotFindModule_suggestion.ts b/tests/cases/fourslash/codeFixCannotFindModule_suggestion.ts index 83e17f170ba..205a1c9a84f 100644 --- a/tests/cases/fourslash/codeFixCannotFindModule_suggestion.ts +++ b/tests/cases/fourslash/codeFixCannotFindModule_suggestion.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @moduleResolution: bundler // @Filename: /node_modules/abs/subModule.js ////export const x = 0; diff --git a/tests/cases/fourslash/codeFixChangeJSDocSyntax15.ts b/tests/cases/fourslash/codeFixChangeJSDocSyntax15.ts index 748eae27161..832e8df3926 100644 --- a/tests/cases/fourslash/codeFixChangeJSDocSyntax15.ts +++ b/tests/cases/fourslash/codeFixChangeJSDocSyntax15.ts @@ -1,4 +1,5 @@ /// +// @strict: false //// var f = <[|function(number?): number|]>(x => x); verify.codeFix({ diff --git a/tests/cases/fourslash/codeFixClassExtendAbstractSomePropertiesPresent.ts b/tests/cases/fourslash/codeFixClassExtendAbstractSomePropertiesPresent.ts index 0a9df34bc88..b127cfefda2 100644 --- a/tests/cases/fourslash/codeFixClassExtendAbstractSomePropertiesPresent.ts +++ b/tests/cases/fourslash/codeFixClassExtendAbstractSomePropertiesPresent.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @noImplicitOverride: true //// abstract class A { //// abstract x: number; diff --git a/tests/cases/fourslash/codeFixClassImplementClassMemberAnonymousClass.ts b/tests/cases/fourslash/codeFixClassImplementClassMemberAnonymousClass.ts index ee8b8cafffe..84b9236c948 100644 --- a/tests/cases/fourslash/codeFixClassImplementClassMemberAnonymousClass.ts +++ b/tests/cases/fourslash/codeFixClassImplementClassMemberAnonymousClass.ts @@ -1,5 +1,6 @@ /// +// @strict: false //// class A { //// foo() { //// return class { x: number; } diff --git a/tests/cases/fourslash/codeFixClassImplementClassPropertyModifiers.ts b/tests/cases/fourslash/codeFixClassImplementClassPropertyModifiers.ts index 9614213798f..d20c3302b5e 100644 --- a/tests/cases/fourslash/codeFixClassImplementClassPropertyModifiers.ts +++ b/tests/cases/fourslash/codeFixClassImplementClassPropertyModifiers.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////abstract class A { //// abstract x: number; //// private y: number; diff --git a/tests/cases/fourslash/codeFixClassImplementClassPropertyTypeQuery.ts b/tests/cases/fourslash/codeFixClassImplementClassPropertyTypeQuery.ts index 3c34de1e1bf..fe2f291c2b6 100644 --- a/tests/cases/fourslash/codeFixClassImplementClassPropertyTypeQuery.ts +++ b/tests/cases/fourslash/codeFixClassImplementClassPropertyTypeQuery.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////class A { //// A: typeof A; ////} diff --git a/tests/cases/fourslash/codeFixClassImplementDeepInheritance.ts b/tests/cases/fourslash/codeFixClassImplementDeepInheritance.ts index c9a568effbf..1f01ea708c2 100644 --- a/tests/cases/fourslash/codeFixClassImplementDeepInheritance.ts +++ b/tests/cases/fourslash/codeFixClassImplementDeepInheritance.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////// Referenced throughout the inheritance chain. ////interface I0 { a: number } //// diff --git a/tests/cases/fourslash/codeFixClassImplementInterfaceComputedPropertyNameWellKnownSymbols.ts b/tests/cases/fourslash/codeFixClassImplementInterfaceComputedPropertyNameWellKnownSymbols.ts index 371d6115b14..f9eebb3e727 100644 --- a/tests/cases/fourslash/codeFixClassImplementInterfaceComputedPropertyNameWellKnownSymbols.ts +++ b/tests/cases/fourslash/codeFixClassImplementInterfaceComputedPropertyNameWellKnownSymbols.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @lib: es2017 ////interface I { diff --git a/tests/cases/fourslash/codeFixClassImplementInterfaceDuplicateMember2.ts b/tests/cases/fourslash/codeFixClassImplementInterfaceDuplicateMember2.ts index 9b4831e0702..0058806179c 100644 --- a/tests/cases/fourslash/codeFixClassImplementInterfaceDuplicateMember2.ts +++ b/tests/cases/fourslash/codeFixClassImplementInterfaceDuplicateMember2.ts @@ -1,5 +1,6 @@ /// +// @strict: false //// interface I1 { //// x: number; //// } diff --git a/tests/cases/fourslash/codeFixClassImplementInterfaceHeritageClauseAlreadyHaveMember.ts b/tests/cases/fourslash/codeFixClassImplementInterfaceHeritageClauseAlreadyHaveMember.ts index b67bd966f9e..6c9923b62a3 100644 --- a/tests/cases/fourslash/codeFixClassImplementInterfaceHeritageClauseAlreadyHaveMember.ts +++ b/tests/cases/fourslash/codeFixClassImplementInterfaceHeritageClauseAlreadyHaveMember.ts @@ -1,5 +1,6 @@ /// +// @strict: false //// class Base { //// foo: number; //// } diff --git a/tests/cases/fourslash/codeFixClassImplementInterfaceMultipleImplements1.ts b/tests/cases/fourslash/codeFixClassImplementInterfaceMultipleImplements1.ts index 13d58d0ad6e..0be38624757 100644 --- a/tests/cases/fourslash/codeFixClassImplementInterfaceMultipleImplements1.ts +++ b/tests/cases/fourslash/codeFixClassImplementInterfaceMultipleImplements1.ts @@ -1,5 +1,6 @@ /// +// @strict: false //// interface I1 { //// x: number; //// } diff --git a/tests/cases/fourslash/codeFixClassImplementInterfaceMultipleImplements2.ts b/tests/cases/fourslash/codeFixClassImplementInterfaceMultipleImplements2.ts index 946b6495c5f..517ce220740 100644 --- a/tests/cases/fourslash/codeFixClassImplementInterfaceMultipleImplements2.ts +++ b/tests/cases/fourslash/codeFixClassImplementInterfaceMultipleImplements2.ts @@ -1,5 +1,6 @@ /// +// @strict: false //// interface I1 { //// x: number; //// } diff --git a/tests/cases/fourslash/codeFixClassImplementInterfaceMultipleImplementsIntersection2.ts b/tests/cases/fourslash/codeFixClassImplementInterfaceMultipleImplementsIntersection2.ts index e43c44063e6..8b7bb55705a 100644 --- a/tests/cases/fourslash/codeFixClassImplementInterfaceMultipleImplementsIntersection2.ts +++ b/tests/cases/fourslash/codeFixClassImplementInterfaceMultipleImplementsIntersection2.ts @@ -1,5 +1,6 @@ /// +// @strict: false //// interface I1 { //// x: number; //// } diff --git a/tests/cases/fourslash/codeFixClassImplementInterfaceOptionalProperty.ts b/tests/cases/fourslash/codeFixClassImplementInterfaceOptionalProperty.ts index 9cb6f477733..6c2b7717f38 100644 --- a/tests/cases/fourslash/codeFixClassImplementInterfaceOptionalProperty.ts +++ b/tests/cases/fourslash/codeFixClassImplementInterfaceOptionalProperty.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////interface IPerson { //// name: string; //// birthday?: string; diff --git a/tests/cases/fourslash/codeFixClassImplementInterfaceSomePropertiesPresent.ts b/tests/cases/fourslash/codeFixClassImplementInterfaceSomePropertiesPresent.ts index 4b61ea41e40..2b93b0e4a78 100644 --- a/tests/cases/fourslash/codeFixClassImplementInterfaceSomePropertiesPresent.ts +++ b/tests/cases/fourslash/codeFixClassImplementInterfaceSomePropertiesPresent.ts @@ -1,5 +1,6 @@ /// +// @strict: false //// //// interface I { //// x: number; diff --git a/tests/cases/fourslash/codeFixCorrectReturnValue10.ts b/tests/cases/fourslash/codeFixCorrectReturnValue10.ts index 61523d804b1..89ab1a6b9be 100644 --- a/tests/cases/fourslash/codeFixCorrectReturnValue10.ts +++ b/tests/cases/fourslash/codeFixCorrectReturnValue10.ts @@ -1,5 +1,6 @@ /// +// @strict: false //// const a: ((() => number) | (() => undefined)) = () => { 1 } verify.codeFixAvailable([ diff --git a/tests/cases/fourslash/codeFixCorrectReturnValue18.ts b/tests/cases/fourslash/codeFixCorrectReturnValue18.ts index a5f7eca4c1a..3e911df6577 100644 --- a/tests/cases/fourslash/codeFixCorrectReturnValue18.ts +++ b/tests/cases/fourslash/codeFixCorrectReturnValue18.ts @@ -1,5 +1,6 @@ /// +// @strict: false //@Filename: file.tsx //// declare namespace JSX { //// interface Element { } diff --git a/tests/cases/fourslash/codeFixCorrectReturnValue19.ts b/tests/cases/fourslash/codeFixCorrectReturnValue19.ts index 4b13495bac6..3bda538a4f5 100644 --- a/tests/cases/fourslash/codeFixCorrectReturnValue19.ts +++ b/tests/cases/fourslash/codeFixCorrectReturnValue19.ts @@ -1,5 +1,6 @@ /// +// @strict: false //@Filename: file.tsx //// declare namespace JSX { //// interface Element { } diff --git a/tests/cases/fourslash/codeFixCorrectReturnValue20.ts b/tests/cases/fourslash/codeFixCorrectReturnValue20.ts index 81072badec0..fa654e987af 100644 --- a/tests/cases/fourslash/codeFixCorrectReturnValue20.ts +++ b/tests/cases/fourslash/codeFixCorrectReturnValue20.ts @@ -1,5 +1,6 @@ /// +// @strict: false //@Filename: file.tsx //// declare namespace JSX { //// interface Element { } diff --git a/tests/cases/fourslash/codeFixCorrectReturnValue8.ts b/tests/cases/fourslash/codeFixCorrectReturnValue8.ts index 640f84af4d0..b1ff11eedb3 100644 --- a/tests/cases/fourslash/codeFixCorrectReturnValue8.ts +++ b/tests/cases/fourslash/codeFixCorrectReturnValue8.ts @@ -1,5 +1,6 @@ /// +// @strict: false //// function Foo (a: (() => number) | (() => undefined) ) { a() } //// Foo(() => { 1 }) diff --git a/tests/cases/fourslash/codeFixDisableJsDiagnosticsInFile6.ts b/tests/cases/fourslash/codeFixDisableJsDiagnosticsInFile6.ts index 952628c6cac..7db7808c46e 100644 --- a/tests/cases/fourslash/codeFixDisableJsDiagnosticsInFile6.ts +++ b/tests/cases/fourslash/codeFixDisableJsDiagnosticsInFile6.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @allowjs: true // @noEmit: true // @checkJs: true diff --git a/tests/cases/fourslash/codeFixDisableJsDiagnosticsInFile7.ts b/tests/cases/fourslash/codeFixDisableJsDiagnosticsInFile7.ts index 11f027d4f35..b68de9267e6 100644 --- a/tests/cases/fourslash/codeFixDisableJsDiagnosticsInFile7.ts +++ b/tests/cases/fourslash/codeFixDisableJsDiagnosticsInFile7.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @allowjs: true // @noEmit: true // @checkJs: true diff --git a/tests/cases/fourslash/codeFixDisableJsDiagnosticsInFile8.ts b/tests/cases/fourslash/codeFixDisableJsDiagnosticsInFile8.ts index 334b275c877..5f20a9502ae 100644 --- a/tests/cases/fourslash/codeFixDisableJsDiagnosticsInFile8.ts +++ b/tests/cases/fourslash/codeFixDisableJsDiagnosticsInFile8.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @allowjs: true // @noEmit: true // @checkJs: true diff --git a/tests/cases/fourslash/codeFixForgottenThisPropertyAccess01.ts b/tests/cases/fourslash/codeFixForgottenThisPropertyAccess01.ts index 22ca176aa03..5f0dddaabcf 100644 --- a/tests/cases/fourslash/codeFixForgottenThisPropertyAccess01.ts +++ b/tests/cases/fourslash/codeFixForgottenThisPropertyAccess01.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @Filename: /a.ts ////export const foo = 0; diff --git a/tests/cases/fourslash/codeFixForgottenThisPropertyAccess02.ts b/tests/cases/fourslash/codeFixForgottenThisPropertyAccess02.ts index 6f6c6f5510d..ec019c348b8 100644 --- a/tests/cases/fourslash/codeFixForgottenThisPropertyAccess02.ts +++ b/tests/cases/fourslash/codeFixForgottenThisPropertyAccess02.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////class C { //// constructor(public foo) { //// } diff --git a/tests/cases/fourslash/codeFixForgottenThisPropertyAccess03.ts b/tests/cases/fourslash/codeFixForgottenThisPropertyAccess03.ts index 2dd1c47b6f7..52b7c7faa66 100644 --- a/tests/cases/fourslash/codeFixForgottenThisPropertyAccess03.ts +++ b/tests/cases/fourslash/codeFixForgottenThisPropertyAccess03.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////class C { //// foo: number; //// constructor() {[| diff --git a/tests/cases/fourslash/codeFixInferFromUsageConstructor.ts b/tests/cases/fourslash/codeFixInferFromUsageConstructor.ts index aa74fb2f6ff..d9a7e062ebc 100644 --- a/tests/cases/fourslash/codeFixInferFromUsageConstructor.ts +++ b/tests/cases/fourslash/codeFixInferFromUsageConstructor.ts @@ -1,4 +1,5 @@ /// +// @strict: false // @strictNullChecks: true ////class TokenType { diff --git a/tests/cases/fourslash/codeFixInferFromUsageConstructorFunctionJS.ts b/tests/cases/fourslash/codeFixInferFromUsageConstructorFunctionJS.ts index 2177e5b8ea0..894d34fa185 100644 --- a/tests/cases/fourslash/codeFixInferFromUsageConstructorFunctionJS.ts +++ b/tests/cases/fourslash/codeFixInferFromUsageConstructorFunctionJS.ts @@ -1,4 +1,5 @@ /// +// @strict: false // @allowJs: true // @checkJs: true // @noImplicitAny: true diff --git a/tests/cases/fourslash/codeFixInferFromUsageGetter2.ts b/tests/cases/fourslash/codeFixInferFromUsageGetter2.ts index a50d471ad12..38649188bd3 100644 --- a/tests/cases/fourslash/codeFixInferFromUsageGetter2.ts +++ b/tests/cases/fourslash/codeFixInferFromUsageGetter2.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @noImplicitAny: true ////class C { //// [|get x() |]{ diff --git a/tests/cases/fourslash/codeFixInferFromUsageInaccessibleTypes.ts b/tests/cases/fourslash/codeFixInferFromUsageInaccessibleTypes.ts index 91dfcffafc0..10687392cce 100644 --- a/tests/cases/fourslash/codeFixInferFromUsageInaccessibleTypes.ts +++ b/tests/cases/fourslash/codeFixInferFromUsageInaccessibleTypes.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @noImplicitAny: true ////function f1(a) { a; } ////function h1() { diff --git a/tests/cases/fourslash/codeFixInferFromUsageOptionalParam.ts b/tests/cases/fourslash/codeFixInferFromUsageOptionalParam.ts index f9b7277e4cc..3796cdd1efc 100644 --- a/tests/cases/fourslash/codeFixInferFromUsageOptionalParam.ts +++ b/tests/cases/fourslash/codeFixInferFromUsageOptionalParam.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @noImplicitAny: true ////function f([|a? |]){ //// a; diff --git a/tests/cases/fourslash/codeFixInferFromUsageOptionalParamJS.ts b/tests/cases/fourslash/codeFixInferFromUsageOptionalParamJS.ts index dbf29fe2f5d..d18b35aedf5 100644 --- a/tests/cases/fourslash/codeFixInferFromUsageOptionalParamJS.ts +++ b/tests/cases/fourslash/codeFixInferFromUsageOptionalParamJS.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @allowJs: true // @checkJs: true // @noImplicitAny: true diff --git a/tests/cases/fourslash/codeFixInferFromUsageRestParam.ts b/tests/cases/fourslash/codeFixInferFromUsageRestParam.ts index b4713181d9a..b4179fb15b5 100644 --- a/tests/cases/fourslash/codeFixInferFromUsageRestParam.ts +++ b/tests/cases/fourslash/codeFixInferFromUsageRestParam.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @noImplicitAny: true ////function f(a: number, [|...rest |]){ //// a; rest; diff --git a/tests/cases/fourslash/codeFixInferFromUsageRestParam2.ts b/tests/cases/fourslash/codeFixInferFromUsageRestParam2.ts index 0b0d0e1dfbf..15fd04c6271 100644 --- a/tests/cases/fourslash/codeFixInferFromUsageRestParam2.ts +++ b/tests/cases/fourslash/codeFixInferFromUsageRestParam2.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @noImplicitAny: true ////function f(a: number, [|...rest |]){ //// a; rest; diff --git a/tests/cases/fourslash/codeFixInferFromUsageRestParam2JS.ts b/tests/cases/fourslash/codeFixInferFromUsageRestParam2JS.ts index d5c1fd54bb5..1b3e36430a4 100644 --- a/tests/cases/fourslash/codeFixInferFromUsageRestParam2JS.ts +++ b/tests/cases/fourslash/codeFixInferFromUsageRestParam2JS.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @allowJs: true // @checkJs: true // @noImplicitAny: true diff --git a/tests/cases/fourslash/codeFixInferFromUsageRestParamJS.ts b/tests/cases/fourslash/codeFixInferFromUsageRestParamJS.ts index 4b7f046ca18..d6086ebf6db 100644 --- a/tests/cases/fourslash/codeFixInferFromUsageRestParamJS.ts +++ b/tests/cases/fourslash/codeFixInferFromUsageRestParamJS.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @allowJs: true // @checkJs: true // @noImplicitAny: true diff --git a/tests/cases/fourslash/codeFixInferFromUsageString.ts b/tests/cases/fourslash/codeFixInferFromUsageString.ts index d58998cf4a3..a6c66af0511 100644 --- a/tests/cases/fourslash/codeFixInferFromUsageString.ts +++ b/tests/cases/fourslash/codeFixInferFromUsageString.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @noImplicitAny: true //// function foo([|p, a, b |]) { //// var x diff --git a/tests/cases/fourslash/codeFixInitializePrivatePropertyJS.ts b/tests/cases/fourslash/codeFixInitializePrivatePropertyJS.ts index 1b991d06a1c..b61be3d5673 100644 --- a/tests/cases/fourslash/codeFixInitializePrivatePropertyJS.ts +++ b/tests/cases/fourslash/codeFixInitializePrivatePropertyJS.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @allowjs: true // @checkJs: true diff --git a/tests/cases/fourslash/codeFixMissingTypeAnnotationOnExports28-long-types.ts b/tests/cases/fourslash/codeFixMissingTypeAnnotationOnExports28-long-types.ts index 1de6a9ea124..a3ef35e5ff4 100644 --- a/tests/cases/fourslash/codeFixMissingTypeAnnotationOnExports28-long-types.ts +++ b/tests/cases/fourslash/codeFixMissingTypeAnnotationOnExports28-long-types.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @isolatedDeclarations: true // @declaration: true // fileName: code.ts diff --git a/tests/cases/fourslash/codeFixOverrideModifier10.ts b/tests/cases/fourslash/codeFixOverrideModifier10.ts index 362fd859608..0e2af30da70 100644 --- a/tests/cases/fourslash/codeFixOverrideModifier10.ts +++ b/tests/cases/fourslash/codeFixOverrideModifier10.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @noImplicitOverride: true //// class B { diff --git a/tests/cases/fourslash/codeFixOverrideModifier9.ts b/tests/cases/fourslash/codeFixOverrideModifier9.ts index 0361a75e52f..4b581dd1f47 100644 --- a/tests/cases/fourslash/codeFixOverrideModifier9.ts +++ b/tests/cases/fourslash/codeFixOverrideModifier9.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @noImplicitOverride: true //// class B { diff --git a/tests/cases/fourslash/codeFixOverrideModifier_js1.ts b/tests/cases/fourslash/codeFixOverrideModifier_js1.ts index 8f3584021cb..bd8c4f4876d 100644 --- a/tests/cases/fourslash/codeFixOverrideModifier_js1.ts +++ b/tests/cases/fourslash/codeFixOverrideModifier_js1.ts @@ -1,4 +1,5 @@ /// +// @strict: false // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/tests/cases/fourslash/codeFixRenameUnmatchedParameterJS1.ts b/tests/cases/fourslash/codeFixRenameUnmatchedParameterJS1.ts index ccc7c971150..f880c469aa0 100644 --- a/tests/cases/fourslash/codeFixRenameUnmatchedParameterJS1.ts +++ b/tests/cases/fourslash/codeFixRenameUnmatchedParameterJS1.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @allowJs: true // @checkJs: true // @filename: /a.js diff --git a/tests/cases/fourslash/codeFixRenameUnmatchedParameterJS2.ts b/tests/cases/fourslash/codeFixRenameUnmatchedParameterJS2.ts index 89acd2ff590..02f14bf1b44 100644 --- a/tests/cases/fourslash/codeFixRenameUnmatchedParameterJS2.ts +++ b/tests/cases/fourslash/codeFixRenameUnmatchedParameterJS2.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @allowJs: true // @checkJs: true // @filename: /a.js diff --git a/tests/cases/fourslash/codeFixRenameUnmatchedParameterJS3.ts b/tests/cases/fourslash/codeFixRenameUnmatchedParameterJS3.ts index 13c11a224c9..f1f97a0e70d 100644 --- a/tests/cases/fourslash/codeFixRenameUnmatchedParameterJS3.ts +++ b/tests/cases/fourslash/codeFixRenameUnmatchedParameterJS3.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @allowJs: true // @checkJs: true // @filename: /a.js diff --git a/tests/cases/fourslash/codeFixSpellingVsMissingMember.ts b/tests/cases/fourslash/codeFixSpellingVsMissingMember.ts index 71fd41d5c7c..5352f4b4a95 100644 --- a/tests/cases/fourslash/codeFixSpellingVsMissingMember.ts +++ b/tests/cases/fourslash/codeFixSpellingVsMissingMember.ts @@ -2,6 +2,7 @@ // Tests that the spelling fix is returned first. +// @strict: false ////class C { //// foof: number; //// method() { diff --git a/tests/cases/fourslash/codeFixUndeclaredAcrossFiles1.ts b/tests/cases/fourslash/codeFixUndeclaredAcrossFiles1.ts index a8171668751..73f72c499d1 100644 --- a/tests/cases/fourslash/codeFixUndeclaredAcrossFiles1.ts +++ b/tests/cases/fourslash/codeFixUndeclaredAcrossFiles1.ts @@ -1,4 +1,5 @@ /// +// @strict: false // @allowJs: true // @checkJs: true diff --git a/tests/cases/fourslash/codeFixUndeclaredClassInstance.ts b/tests/cases/fourslash/codeFixUndeclaredClassInstance.ts index 024ec144092..a432861ae5d 100644 --- a/tests/cases/fourslash/codeFixUndeclaredClassInstance.ts +++ b/tests/cases/fourslash/codeFixUndeclaredClassInstance.ts @@ -1,5 +1,6 @@ /// +// @strict: false //// class A { //// a: number; //// b: string; diff --git a/tests/cases/fourslash/codeFixUndeclaredClassInstanceWithTypeParams.ts b/tests/cases/fourslash/codeFixUndeclaredClassInstanceWithTypeParams.ts index 34e359feea8..9711ad9b959 100644 --- a/tests/cases/fourslash/codeFixUndeclaredClassInstanceWithTypeParams.ts +++ b/tests/cases/fourslash/codeFixUndeclaredClassInstanceWithTypeParams.ts @@ -1,5 +1,6 @@ /// +// @strict: false //// class A { //// a: number; //// b: string; diff --git a/tests/cases/fourslash/codeFixUndeclaredPropertyFunctionEmptyClass.ts b/tests/cases/fourslash/codeFixUndeclaredPropertyFunctionEmptyClass.ts index 6f0a5de3557..1bf54f8fc21 100644 --- a/tests/cases/fourslash/codeFixUndeclaredPropertyFunctionEmptyClass.ts +++ b/tests/cases/fourslash/codeFixUndeclaredPropertyFunctionEmptyClass.ts @@ -1,5 +1,6 @@ /// +// @strict: false //// [|class A { //// constructor() { //// this.x = function(x: number, y?: A){ diff --git a/tests/cases/fourslash/codeFixUndeclaredPropertyFunctionNonEmptyClass.ts b/tests/cases/fourslash/codeFixUndeclaredPropertyFunctionNonEmptyClass.ts index 30d7e13cb56..acda3462116 100644 --- a/tests/cases/fourslash/codeFixUndeclaredPropertyFunctionNonEmptyClass.ts +++ b/tests/cases/fourslash/codeFixUndeclaredPropertyFunctionNonEmptyClass.ts @@ -1,5 +1,6 @@ /// +// @strict: false //// [|class A { //// y: number; //// constructor(public a: number) { diff --git a/tests/cases/fourslash/codeFixUndeclaredPropertyObjectLiteral.ts b/tests/cases/fourslash/codeFixUndeclaredPropertyObjectLiteral.ts index a2647c5a21e..8eec6c164f6 100644 --- a/tests/cases/fourslash/codeFixUndeclaredPropertyObjectLiteral.ts +++ b/tests/cases/fourslash/codeFixUndeclaredPropertyObjectLiteral.ts @@ -1,5 +1,6 @@ /// +// @strict: false //// [|class A { //// constructor() { //// let e: any = 10; diff --git a/tests/cases/fourslash/codeFixUnusedIdentifier_deleteWrite2.ts b/tests/cases/fourslash/codeFixUnusedIdentifier_deleteWrite2.ts index 2fe01399355..8723e1e4a16 100644 --- a/tests/cases/fourslash/codeFixUnusedIdentifier_deleteWrite2.ts +++ b/tests/cases/fourslash/codeFixUnusedIdentifier_deleteWrite2.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @noLib: true // @noUnusedLocals: true diff --git a/tests/cases/fourslash/codeFixUnusedIdentifier_prefix.ts b/tests/cases/fourslash/codeFixUnusedIdentifier_prefix.ts index 80b2b9bb75c..55b4e00a1c4 100644 --- a/tests/cases/fourslash/codeFixUnusedIdentifier_prefix.ts +++ b/tests/cases/fourslash/codeFixUnusedIdentifier_prefix.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @noUnusedLocals: true // @noUnusedParameters: true diff --git a/tests/cases/fourslash/codeFixUnusedIdentifier_suggestion.ts b/tests/cases/fourslash/codeFixUnusedIdentifier_suggestion.ts index 19e06e06165..08574d2d655 100644 --- a/tests/cases/fourslash/codeFixUnusedIdentifier_suggestion.ts +++ b/tests/cases/fourslash/codeFixUnusedIdentifier_suggestion.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////function f([|p|]) { //// const [|x|] = 0; ////} diff --git a/tests/cases/fourslash/codefixInferFromUsageNullish.ts b/tests/cases/fourslash/codefixInferFromUsageNullish.ts index d1073a9d9a9..66a2f04264f 100644 --- a/tests/cases/fourslash/codefixInferFromUsageNullish.ts +++ b/tests/cases/fourslash/codefixInferFromUsageNullish.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @noImplicitAny: true ////declare const a: string ////function wat([|b |]) { diff --git a/tests/cases/fourslash/completionCloneQuestionToken.ts b/tests/cases/fourslash/completionCloneQuestionToken.ts index 67df1cabb4a..71ea89081b4 100644 --- a/tests/cases/fourslash/completionCloneQuestionToken.ts +++ b/tests/cases/fourslash/completionCloneQuestionToken.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @Filename: /file2.ts //// type TCallback = (options: T) => any; //// type InKeyOf = { [K in keyof E]?: TCallback; }; diff --git a/tests/cases/fourslash/completionListsThroughTransitiveBaseClasses.ts b/tests/cases/fourslash/completionListsThroughTransitiveBaseClasses.ts index f4fd2765028..0d63653b93f 100644 --- a/tests/cases/fourslash/completionListsThroughTransitiveBaseClasses.ts +++ b/tests/cases/fourslash/completionListsThroughTransitiveBaseClasses.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////declare class A { //// static foo; ////} diff --git a/tests/cases/fourslash/completionListsThroughTransitiveBaseClasses2.ts b/tests/cases/fourslash/completionListsThroughTransitiveBaseClasses2.ts index 5adade8c2a7..035f030a481 100644 --- a/tests/cases/fourslash/completionListsThroughTransitiveBaseClasses2.ts +++ b/tests/cases/fourslash/completionListsThroughTransitiveBaseClasses2.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////declare class A { //// foo; ////} diff --git a/tests/cases/fourslash/completionsOverridingMethod9.ts b/tests/cases/fourslash/completionsOverridingMethod9.ts index 5026f3aa8aa..d99f1bd0a7a 100644 --- a/tests/cases/fourslash/completionsOverridingMethod9.ts +++ b/tests/cases/fourslash/completionsOverridingMethod9.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @Filename: a.ts // @newline: LF diff --git a/tests/cases/fourslash/consistentContextualTypeErrorsAfterEdits.ts b/tests/cases/fourslash/consistentContextualTypeErrorsAfterEdits.ts index 27feb9eac59..a6f980133f5 100644 --- a/tests/cases/fourslash/consistentContextualTypeErrorsAfterEdits.ts +++ b/tests/cases/fourslash/consistentContextualTypeErrorsAfterEdits.ts @@ -1,5 +1,6 @@ /// +// @strict: false //// class A { //// foo: string; //// } diff --git a/tests/cases/fourslash/constEnumsEmitOutputInMultipleFiles.ts b/tests/cases/fourslash/constEnumsEmitOutputInMultipleFiles.ts index 6cf29e8b6fe..f0d8c10462a 100644 --- a/tests/cases/fourslash/constEnumsEmitOutputInMultipleFiles.ts +++ b/tests/cases/fourslash/constEnumsEmitOutputInMultipleFiles.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @Filename: a.ts // @newLine: lf ////const enum TestEnum { diff --git a/tests/cases/fourslash/contextualTypingOfArrayLiterals.ts b/tests/cases/fourslash/contextualTypingOfArrayLiterals.ts index 7318eeee6cb..1a553e52f76 100644 --- a/tests/cases/fourslash/contextualTypingOfArrayLiterals.ts +++ b/tests/cases/fourslash/contextualTypingOfArrayLiterals.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////class C { //// name: string; //// age: number; diff --git a/tests/cases/fourslash/defaultParamsAndContextualTypes.ts b/tests/cases/fourslash/defaultParamsAndContextualTypes.ts index b5e05fd9377..56e08348ff1 100644 --- a/tests/cases/fourslash/defaultParamsAndContextualTypes.ts +++ b/tests/cases/fourslash/defaultParamsAndContextualTypes.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////interface FooOptions { //// text?: string; ////} diff --git a/tests/cases/fourslash/deprecatedInheritedJSDocOverload.ts b/tests/cases/fourslash/deprecatedInheritedJSDocOverload.ts index 838d984bae0..1cb1cc35d4a 100644 --- a/tests/cases/fourslash/deprecatedInheritedJSDocOverload.ts +++ b/tests/cases/fourslash/deprecatedInheritedJSDocOverload.ts @@ -1,3 +1,4 @@ +// @strict: false //// interface PartialObserver {} //// interface Subscription {} diff --git a/tests/cases/fourslash/derivedTypeIndexerWithGenericConstraints.ts b/tests/cases/fourslash/derivedTypeIndexerWithGenericConstraints.ts index 82dfe9429e1..a11a5976b6f 100644 --- a/tests/cases/fourslash/derivedTypeIndexerWithGenericConstraints.ts +++ b/tests/cases/fourslash/derivedTypeIndexerWithGenericConstraints.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////class CollectionItem { //// x: number; ////} diff --git a/tests/cases/fourslash/diagnosticsJsFileCompilationDuplicateFunctionImplementation.ts b/tests/cases/fourslash/diagnosticsJsFileCompilationDuplicateFunctionImplementation.ts index 268944e010a..01767fef7bc 100644 --- a/tests/cases/fourslash/diagnosticsJsFileCompilationDuplicateFunctionImplementation.ts +++ b/tests/cases/fourslash/diagnosticsJsFileCompilationDuplicateFunctionImplementation.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @declaration: true // @newLine: lf // @outFile: out.js diff --git a/tests/cases/fourslash/emptyArrayInference.ts b/tests/cases/fourslash/emptyArrayInference.ts index 195acdf33d5..a7ed3da94ac 100644 --- a/tests/cases/fourslash/emptyArrayInference.ts +++ b/tests/cases/fourslash/emptyArrayInference.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////var x/*1*/x = true ? [1] : [undefined]; ////var y/*2*/y = true ? [1] : []; diff --git a/tests/cases/fourslash/exportEqualTypes.ts b/tests/cases/fourslash/exportEqualTypes.ts index 0853fc9fc79..f5f14433c14 100644 --- a/tests/cases/fourslash/exportEqualTypes.ts +++ b/tests/cases/fourslash/exportEqualTypes.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @Filename: exportEqualTypes_file0.ts ////interface x { //// (): Date; diff --git a/tests/cases/fourslash/extendArrayInterfaceMember.ts b/tests/cases/fourslash/extendArrayInterfaceMember.ts index cc1460b126e..ee1eb812769 100644 --- a/tests/cases/fourslash/extendArrayInterfaceMember.ts +++ b/tests/cases/fourslash/extendArrayInterfaceMember.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////var x = [1, 2, 3]; ////var /*y*/y = x.pop(/*1*/5/*2*/); //// diff --git a/tests/cases/fourslash/extendInterfaceOverloadedMethod.ts b/tests/cases/fourslash/extendInterfaceOverloadedMethod.ts index dd4332c2473..4d172cdf4ff 100644 --- a/tests/cases/fourslash/extendInterfaceOverloadedMethod.ts +++ b/tests/cases/fourslash/extendInterfaceOverloadedMethod.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////interface A { //// foo(a: T): B; //// foo(): void ; diff --git a/tests/cases/fourslash/extendsTArray.ts b/tests/cases/fourslash/extendsTArray.ts index 8f655b9db45..c305c7ca850 100644 --- a/tests/cases/fourslash/extendsTArray.ts +++ b/tests/cases/fourslash/extendsTArray.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////interface I1 { //// (a: T): T; ////} diff --git a/tests/cases/fourslash/extractFunctionContainingThis3.ts b/tests/cases/fourslash/extractFunctionContainingThis3.ts index 505f241239a..cef16f5fb18 100644 --- a/tests/cases/fourslash/extractFunctionContainingThis3.ts +++ b/tests/cases/fourslash/extractFunctionContainingThis3.ts @@ -1,6 +1,7 @@ /// +// @strict: false ////const foo = { //// bar: "1", //// baz() { diff --git a/tests/cases/fourslash/fixingTypeParametersQuickInfo.ts b/tests/cases/fourslash/fixingTypeParametersQuickInfo.ts index fb7fcb69cc5..b9974c1aaa1 100644 --- a/tests/cases/fourslash/fixingTypeParametersQuickInfo.ts +++ b/tests/cases/fourslash/fixingTypeParametersQuickInfo.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////declare function f(x: T, y: (p: T) => T, z: (p: T) => T): T; ////var /*1*/result = /*2*/f(0, /*3*/x => null, /*4*/x => x.blahblah); diff --git a/tests/cases/fourslash/functionTypes.ts b/tests/cases/fourslash/functionTypes.ts index 222bbf2fd97..2b2e7876891 100644 --- a/tests/cases/fourslash/functionTypes.ts +++ b/tests/cases/fourslash/functionTypes.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////var f: Function; ////function g() { } //// diff --git a/tests/cases/fourslash/genericInterfacePropertyInference1.ts b/tests/cases/fourslash/genericInterfacePropertyInference1.ts index 60f4cf0dda3..6e2595e73cf 100644 --- a/tests/cases/fourslash/genericInterfacePropertyInference1.ts +++ b/tests/cases/fourslash/genericInterfacePropertyInference1.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////interface I { //// x: number; ////} diff --git a/tests/cases/fourslash/genericInterfacePropertyInference2.ts b/tests/cases/fourslash/genericInterfacePropertyInference2.ts index a3600865a9e..0f6ea7d0e93 100644 --- a/tests/cases/fourslash/genericInterfacePropertyInference2.ts +++ b/tests/cases/fourslash/genericInterfacePropertyInference2.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////interface I { //// x: number; ////} diff --git a/tests/cases/fourslash/genericMapTyping1.ts b/tests/cases/fourslash/genericMapTyping1.ts index 47514c96168..3623d417b93 100644 --- a/tests/cases/fourslash/genericMapTyping1.ts +++ b/tests/cases/fourslash/genericMapTyping1.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////interface Iterator_ { //// (value: T, index: any, list: any): U; ////} diff --git a/tests/cases/fourslash/genericObjectBaseType.ts b/tests/cases/fourslash/genericObjectBaseType.ts index acca6c3c33b..e4acbdbcd34 100644 --- a/tests/cases/fourslash/genericObjectBaseType.ts +++ b/tests/cases/fourslash/genericObjectBaseType.ts @@ -1,5 +1,6 @@ /// +// @strict: false //// class C { //// constructor(){} //// foo(a: T) { diff --git a/tests/cases/fourslash/genericRespecialization1.ts b/tests/cases/fourslash/genericRespecialization1.ts index 3264052aea9..e69742b6653 100644 --- a/tests/cases/fourslash/genericRespecialization1.ts +++ b/tests/cases/fourslash/genericRespecialization1.ts @@ -1,5 +1,6 @@ /// +// @strict: false //// class Food { //// private amount: number; //// constructor(public name: string) { diff --git a/tests/cases/fourslash/getDeclarationDiagnostics.ts b/tests/cases/fourslash/getDeclarationDiagnostics.ts index 575586efb94..3a35f824042 100644 --- a/tests/cases/fourslash/getDeclarationDiagnostics.ts +++ b/tests/cases/fourslash/getDeclarationDiagnostics.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @declaration: true // @outFile: true diff --git a/tests/cases/fourslash/getSemanticDiagnosticForDeclaration.ts b/tests/cases/fourslash/getSemanticDiagnosticForDeclaration.ts index 72739c665be..b27f86c7688 100644 --- a/tests/cases/fourslash/getSemanticDiagnosticForDeclaration.ts +++ b/tests/cases/fourslash/getSemanticDiagnosticForDeclaration.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @module: CommonJS // @declaration: true //// export function /*1*/foo/*2*/() { diff --git a/tests/cases/fourslash/incompatibleOverride.ts b/tests/cases/fourslash/incompatibleOverride.ts index 1ce0b07def1..155a88c5972 100644 --- a/tests/cases/fourslash/incompatibleOverride.ts +++ b/tests/cases/fourslash/incompatibleOverride.ts @@ -2,6 +2,7 @@ // Squiggle for implementing a derived class with an incompatible override is too large +// @strict: false //// class Foo { xyz: string; } //// class Bar extends Foo { /*1*/xyz/*2*/: number = 1; } //// class Baz extends Foo { public /*3*/xyz/*4*/: number = 2; } diff --git a/tests/cases/fourslash/inheritedModuleMembersForClodule2.ts b/tests/cases/fourslash/inheritedModuleMembersForClodule2.ts index 8c1150be0c7..87139fce985 100644 --- a/tests/cases/fourslash/inheritedModuleMembersForClodule2.ts +++ b/tests/cases/fourslash/inheritedModuleMembersForClodule2.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////namespace M { //// export namespace A { //// var o; diff --git a/tests/cases/fourslash/invertedCloduleAfterQuickInfo.ts b/tests/cases/fourslash/invertedCloduleAfterQuickInfo.ts index 7c593913bb0..ce6ec86e26d 100644 --- a/tests/cases/fourslash/invertedCloduleAfterQuickInfo.ts +++ b/tests/cases/fourslash/invertedCloduleAfterQuickInfo.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////namespace M { //// namespace A { //// var o; diff --git a/tests/cases/fourslash/jsxAttributeSnippetCompletionAfterTypeArgs.ts b/tests/cases/fourslash/jsxAttributeSnippetCompletionAfterTypeArgs.ts index f22d6a7c86e..6b0ef2e2f62 100644 --- a/tests/cases/fourslash/jsxAttributeSnippetCompletionAfterTypeArgs.ts +++ b/tests/cases/fourslash/jsxAttributeSnippetCompletionAfterTypeArgs.ts @@ -1,4 +1,5 @@ /// +// @strict: false //@Filename: file.tsx ////declare const React: any; diff --git a/tests/cases/fourslash/jsxAttributeSnippetCompletionClosed.ts b/tests/cases/fourslash/jsxAttributeSnippetCompletionClosed.ts index 636c5bb1ab2..b73a15acae9 100644 --- a/tests/cases/fourslash/jsxAttributeSnippetCompletionClosed.ts +++ b/tests/cases/fourslash/jsxAttributeSnippetCompletionClosed.ts @@ -1,4 +1,5 @@ /// +// @strict: false //@Filename: file.tsx ////interface NestedInterface { //// Foo: NestedInterface; diff --git a/tests/cases/fourslash/jsxAttributeSnippetCompletionUnclosed.ts b/tests/cases/fourslash/jsxAttributeSnippetCompletionUnclosed.ts index 5816f56500d..1581047f114 100644 --- a/tests/cases/fourslash/jsxAttributeSnippetCompletionUnclosed.ts +++ b/tests/cases/fourslash/jsxAttributeSnippetCompletionUnclosed.ts @@ -1,4 +1,5 @@ /// +// @strict: false //@Filename: file.tsx ////interface NestedInterface { //// Foo: NestedInterface; diff --git a/tests/cases/fourslash/multiModuleFundule.ts b/tests/cases/fourslash/multiModuleFundule.ts index 8856759144b..b7d23b482cc 100644 --- a/tests/cases/fourslash/multiModuleFundule.ts +++ b/tests/cases/fourslash/multiModuleFundule.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////function C(x: number) { } //// ////namespace C { diff --git a/tests/cases/fourslash/noSuggestionDiagnosticsOnParseError.ts b/tests/cases/fourslash/noSuggestionDiagnosticsOnParseError.ts index c36d5352e7f..0f6569bacdc 100644 --- a/tests/cases/fourslash/noSuggestionDiagnosticsOnParseError.ts +++ b/tests/cases/fourslash/noSuggestionDiagnosticsOnParseError.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @Filename: /a.ts ////export {}; ////const a = 1 d; diff --git a/tests/cases/fourslash/objectLiteralCallSignatures.ts b/tests/cases/fourslash/objectLiteralCallSignatures.ts index 3749d26fb4e..7926af77395 100644 --- a/tests/cases/fourslash/objectLiteralCallSignatures.ts +++ b/tests/cases/fourslash/objectLiteralCallSignatures.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////var /*1*/x: { //// func1(x: number): number; // Method signature //// func2: (x: number) => number; // Function type literal diff --git a/tests/cases/fourslash/parenthesisFatArrows.ts b/tests/cases/fourslash/parenthesisFatArrows.ts index ea123b986e4..2bdc235e76b 100644 --- a/tests/cases/fourslash/parenthesisFatArrows.ts +++ b/tests/cases/fourslash/parenthesisFatArrows.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////x => x; ////(y) => y; /////**/ diff --git a/tests/cases/fourslash/pasteLambdaOverModule.ts b/tests/cases/fourslash/pasteLambdaOverModule.ts index f85b9d902c2..5637baac373 100644 --- a/tests/cases/fourslash/pasteLambdaOverModule.ts +++ b/tests/cases/fourslash/pasteLambdaOverModule.ts @@ -1,5 +1,6 @@ /// +// @strict: false //// /**/ goTo.marker(); diff --git a/tests/cases/fourslash/quickInfoForContextuallyTypedFunctionInTaggedTemplateExpression2.ts b/tests/cases/fourslash/quickInfoForContextuallyTypedFunctionInTaggedTemplateExpression2.ts index 0c72575d936..12fbd6865df 100644 --- a/tests/cases/fourslash/quickInfoForContextuallyTypedFunctionInTaggedTemplateExpression2.ts +++ b/tests/cases/fourslash/quickInfoForContextuallyTypedFunctionInTaggedTemplateExpression2.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////function tempTag2(templateStrs: TemplateStringsArray, f: (x: number) => number, x: number): number; ////function tempTag2(templateStrs: TemplateStringsArray, f: (x: string) => string, h: (y: string) => string, x: string): string; ////function tempTag2(...rest: any[]): any { diff --git a/tests/cases/fourslash/quickInfoForObjectBindingElementPropertyName03.ts b/tests/cases/fourslash/quickInfoForObjectBindingElementPropertyName03.ts index 9378c99126c..aadd48680f7 100644 --- a/tests/cases/fourslash/quickInfoForObjectBindingElementPropertyName03.ts +++ b/tests/cases/fourslash/quickInfoForObjectBindingElementPropertyName03.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////interface Recursive { //// next?: Recursive; //// value: any; diff --git a/tests/cases/fourslash/quickInfoForShorthandProperty.ts b/tests/cases/fourslash/quickInfoForShorthandProperty.ts index c863663eff0..6dd36a29b3c 100644 --- a/tests/cases/fourslash/quickInfoForShorthandProperty.ts +++ b/tests/cases/fourslash/quickInfoForShorthandProperty.ts @@ -1,5 +1,6 @@ /// +// @strict: false //// var name1 = undefined, id1 = undefined; //// var /*obj1*/obj1 = {/*name1*/name1, /*id1*/id1}; //// var name2 = "Hello"; diff --git a/tests/cases/fourslash/quickInfoGenericTypeArgumentInference1.ts b/tests/cases/fourslash/quickInfoGenericTypeArgumentInference1.ts index 3b8bff11dca..837e48ea826 100644 --- a/tests/cases/fourslash/quickInfoGenericTypeArgumentInference1.ts +++ b/tests/cases/fourslash/quickInfoGenericTypeArgumentInference1.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////namespace Underscore { //// export interface Iterator { //// (value: T, index: any, list: any): U; diff --git a/tests/cases/fourslash/quickInfoJsDocNonDiscriminatedUnionSharedProp.ts b/tests/cases/fourslash/quickInfoJsDocNonDiscriminatedUnionSharedProp.ts index ad4300f2696..18fb506d05c 100644 --- a/tests/cases/fourslash/quickInfoJsDocNonDiscriminatedUnionSharedProp.ts +++ b/tests/cases/fourslash/quickInfoJsDocNonDiscriminatedUnionSharedProp.ts @@ -1,5 +1,6 @@ /// +// @strict: false //// interface Entries { //// /** //// * Plugins info... diff --git a/tests/cases/fourslash/quickInfoOnCatchVariable.ts b/tests/cases/fourslash/quickInfoOnCatchVariable.ts index 07e86c2ed81..f6c4ba3e672 100644 --- a/tests/cases/fourslash/quickInfoOnCatchVariable.ts +++ b/tests/cases/fourslash/quickInfoOnCatchVariable.ts @@ -1,5 +1,6 @@ /// +// @strict: false //// function f() { //// try { } catch (/**/e) { } //// } diff --git a/tests/cases/fourslash/quickInfoOnMergedInterfacesWithIncrementalEdits.ts b/tests/cases/fourslash/quickInfoOnMergedInterfacesWithIncrementalEdits.ts index d3bbb125e8d..46540ac07f6 100644 --- a/tests/cases/fourslash/quickInfoOnMergedInterfacesWithIncrementalEdits.ts +++ b/tests/cases/fourslash/quickInfoOnMergedInterfacesWithIncrementalEdits.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////namespace MM { //// interface B { //// foo: number; diff --git a/tests/cases/fourslash/quickInfoOnMergedModule.ts b/tests/cases/fourslash/quickInfoOnMergedModule.ts index b9225e2b0bc..8d8d7a3781b 100644 --- a/tests/cases/fourslash/quickInfoOnMergedModule.ts +++ b/tests/cases/fourslash/quickInfoOnMergedModule.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////namespace M2 { //// export interface A { //// foo: string; diff --git a/tests/cases/fourslash/quickInfoOnNarrowedTypeInModule.ts b/tests/cases/fourslash/quickInfoOnNarrowedTypeInModule.ts index 2f834c9515b..b5d9ee7f933 100644 --- a/tests/cases/fourslash/quickInfoOnNarrowedTypeInModule.ts +++ b/tests/cases/fourslash/quickInfoOnNarrowedTypeInModule.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////var strOrNum: string | number; ////namespace m { //// var nonExportedStrOrNum: string | number; diff --git a/tests/cases/fourslash/quickInfoSignatureOptionalParameterFromUnion1.ts b/tests/cases/fourslash/quickInfoSignatureOptionalParameterFromUnion1.ts index dce4bfdf0ad..56b17d9c59c 100644 --- a/tests/cases/fourslash/quickInfoSignatureOptionalParameterFromUnion1.ts +++ b/tests/cases/fourslash/quickInfoSignatureOptionalParameterFromUnion1.ts @@ -2,6 +2,7 @@ // https://github.com/microsoft/TypeScript/issues/55574 +// @strict: false //// declare const optionals: //// | ((a?: { a: true }) => unknown) //// | ((b?: { b: true }) => unknown); diff --git a/tests/cases/fourslash/quickInfoSignatureRestParameterFromUnion2.ts b/tests/cases/fourslash/quickInfoSignatureRestParameterFromUnion2.ts index d53beebd5d8..0707d8f69f8 100644 --- a/tests/cases/fourslash/quickInfoSignatureRestParameterFromUnion2.ts +++ b/tests/cases/fourslash/quickInfoSignatureRestParameterFromUnion2.ts @@ -2,6 +2,7 @@ // https://github.com/microsoft/TypeScript/issues/55574 +// @strict: false //// declare const rest: //// | ((a?: { a: true }, ...rest: string[]) => unknown) //// | ((b?: { b: true }) => unknown); diff --git a/tests/cases/fourslash/quickInfoWidenedTypes.ts b/tests/cases/fourslash/quickInfoWidenedTypes.ts index 1ece274690b..3d69b22dea4 100644 --- a/tests/cases/fourslash/quickInfoWidenedTypes.ts +++ b/tests/cases/fourslash/quickInfoWidenedTypes.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////var /*1*/a = null; // var a: any ////var /*2*/b = undefined; // var b: any ////var /*3*/c = { x: 0, y: null }; // var c: { x: number, y: any } diff --git a/tests/cases/fourslash/refactorConvertToGetAccessAndSetAccess10.ts b/tests/cases/fourslash/refactorConvertToGetAccessAndSetAccess10.ts index 7161dd18d7c..fdf5e3d2819 100644 --- a/tests/cases/fourslash/refactorConvertToGetAccessAndSetAccess10.ts +++ b/tests/cases/fourslash/refactorConvertToGetAccessAndSetAccess10.ts @@ -1,5 +1,6 @@ /// +// @strict: false //// class A { //// /*a*/public a?: string = "foo";/*b*/ //// } diff --git a/tests/cases/fourslash/signatureHelpCallExpressionJs.ts b/tests/cases/fourslash/signatureHelpCallExpressionJs.ts index 3b19ddb393a..db7e19c383c 100644 --- a/tests/cases/fourslash/signatureHelpCallExpressionJs.ts +++ b/tests/cases/fourslash/signatureHelpCallExpressionJs.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @checkJs: true // @allowJs: true diff --git a/tests/cases/fourslash/signatureHelpOptionalCall2.ts b/tests/cases/fourslash/signatureHelpOptionalCall2.ts index ab388398177..0a400444c24 100644 --- a/tests/cases/fourslash/signatureHelpOptionalCall2.ts +++ b/tests/cases/fourslash/signatureHelpOptionalCall2.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////declare const fnTest: undefined | ((str: string, num: number) => void); ////fnTest?.(/*1*/); diff --git a/tests/cases/fourslash/squiggleFunctionExpression.ts b/tests/cases/fourslash/squiggleFunctionExpression.ts index 75cca339e9d..1d28f445d7c 100644 --- a/tests/cases/fourslash/squiggleFunctionExpression.ts +++ b/tests/cases/fourslash/squiggleFunctionExpression.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////function takesCallback(callback: (n) => any) { } ////takesCallback(function inner(n) { var /*1*/k/*2*/: string = 10; }); diff --git a/tests/cases/fourslash/squiggleIllegalSubclassOverride.ts b/tests/cases/fourslash/squiggleIllegalSubclassOverride.ts index c97c6c75fcf..103fd13132c 100644 --- a/tests/cases/fourslash/squiggleIllegalSubclassOverride.ts +++ b/tests/cases/fourslash/squiggleIllegalSubclassOverride.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////class Foo { //// public x: number; ////} diff --git a/tests/cases/fourslash/superInDerivedTypeOfGenericWithStatics.ts b/tests/cases/fourslash/superInDerivedTypeOfGenericWithStatics.ts index 03ff229fd58..5472c1d1eeb 100644 --- a/tests/cases/fourslash/superInDerivedTypeOfGenericWithStatics.ts +++ b/tests/cases/fourslash/superInDerivedTypeOfGenericWithStatics.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////namespace M { //// export class C { //// static foo(): C { diff --git a/tests/cases/fourslash/unclosedArrayErrorRecovery.ts b/tests/cases/fourslash/unclosedArrayErrorRecovery.ts index 3d9e4acea53..790fc72cf60 100644 --- a/tests/cases/fourslash/unclosedArrayErrorRecovery.ts +++ b/tests/cases/fourslash/unclosedArrayErrorRecovery.ts @@ -1,5 +1,6 @@ /// +// @strict: false ////var table: number[; /////**/table.push(1) diff --git a/tests/cases/fourslash/underscoreTypings02.ts b/tests/cases/fourslash/underscoreTypings02.ts index be7d20427e2..bf7fdeaca1d 100644 --- a/tests/cases/fourslash/underscoreTypings02.ts +++ b/tests/cases/fourslash/underscoreTypings02.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @module: CommonJS //// interface Dictionary { diff --git a/tests/cases/fourslash/unusedClassInNamespace4.ts b/tests/cases/fourslash/unusedClassInNamespace4.ts index 8b856379acb..ecbc7f213a8 100644 --- a/tests/cases/fourslash/unusedClassInNamespace4.ts +++ b/tests/cases/fourslash/unusedClassInNamespace4.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @noUnusedLocals: true // @noUnusedParameters:true //// [| namespace Validation { diff --git a/tests/cases/fourslash/unusedParameterInFunction2.ts b/tests/cases/fourslash/unusedParameterInFunction2.ts index 96a710df911..c53aedad6d5 100644 --- a/tests/cases/fourslash/unusedParameterInFunction2.ts +++ b/tests/cases/fourslash/unusedParameterInFunction2.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @noUnusedParameters: true ////function [|greeter(x,y)|] { //// use(x); diff --git a/tests/cases/fourslash/unusedParameterInLambda3.ts b/tests/cases/fourslash/unusedParameterInLambda3.ts index 20742f4bd37..a478baf950c 100644 --- a/tests/cases/fourslash/unusedParameterInLambda3.ts +++ b/tests/cases/fourslash/unusedParameterInLambda3.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @noUnusedLocals: true // @noUnusedParameters: true ////[|/*~a*/(/*~b*/x/*~c*/,/*~d*/y/*~e*/)/*~f*/ => /*~g*/x/*~h*/|] diff --git a/tests/cases/fourslash/unusedTypeParametersInLambda3.ts b/tests/cases/fourslash/unusedTypeParametersInLambda3.ts index 764e75294b9..937865a5916 100644 --- a/tests/cases/fourslash/unusedTypeParametersInLambda3.ts +++ b/tests/cases/fourslash/unusedTypeParametersInLambda3.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @noUnusedLocals: true // @noUnusedParameters: true //// class A { public x: Dummy } diff --git a/tests/cases/fourslash/unusedTypeParametersInLambda4.ts b/tests/cases/fourslash/unusedTypeParametersInLambda4.ts index 14bdb64549b..a1cd928745c 100644 --- a/tests/cases/fourslash/unusedTypeParametersInLambda4.ts +++ b/tests/cases/fourslash/unusedTypeParametersInLambda4.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @noUnusedParameters: true //// class A { //// public x: T; diff --git a/tests/cases/fourslash/unusedVariableInClass1.ts b/tests/cases/fourslash/unusedVariableInClass1.ts index 9e7235841c9..66d18087325 100644 --- a/tests/cases/fourslash/unusedVariableInClass1.ts +++ b/tests/cases/fourslash/unusedVariableInClass1.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @noUnusedLocals: true ////class greeter { //// [|private greeting: string;|] diff --git a/tests/cases/fourslash/unusedVariableInClass2.ts b/tests/cases/fourslash/unusedVariableInClass2.ts index a4302b4dd53..d183580601e 100644 --- a/tests/cases/fourslash/unusedVariableInClass2.ts +++ b/tests/cases/fourslash/unusedVariableInClass2.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @noUnusedLocals: true ////class greeter { //// [|public greeting1; diff --git a/tests/cases/fourslash/unusedVariableInClass4.ts b/tests/cases/fourslash/unusedVariableInClass4.ts index ec5d5f973a2..f3ab0bad887 100644 --- a/tests/cases/fourslash/unusedVariableInClass4.ts +++ b/tests/cases/fourslash/unusedVariableInClass4.ts @@ -1,5 +1,6 @@ /// +// @strict: false // @noUnusedLocals: false ////class greeter { //// [|private greeting: string;|]