Turn // @strict off in all failing fourslash tests which do not contain baseline calls (#63023)

This commit is contained in:
Daniel Rosenwasser 2026-01-21 09:29:18 -08:00 committed by GitHub
parent e6fac66a72
commit c3dc61d18a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
147 changed files with 147 additions and 0 deletions

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
// @Filename: test123.ts
/////** @type {number} */
////var [|x|];

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
/////**
//// * @param {?} x
//// * @returns {number}

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
/////**
//// * @param {?} x
//// * @returns {number}

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
////class C {
//// /**
//// * @return {...*}

View File

@ -1,4 +1,5 @@
/// <reference path='fourslash.ts' />
// @strict: false
////class C {
//// /**
//// * @param {number} x - the first parameter

View File

@ -1,4 +1,5 @@
/// <reference path='fourslash.ts' />
// @strict: false
////class C {
//// /** @param {number} value */
//// set c(value) { return value }

View File

@ -1,4 +1,5 @@
/// <reference path='fourslash.ts' />
// @strict: false
/////**
//// * @param {number} x - the first parameter
//// * @param {{ a: string, b: Date }} y - the most complex parameter

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
////declare class C {
//// /** @type {number | null} */
//// p;

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
/////**
//// * @param {number} x
//// * @returns {number}

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
/////**
//// * @param {number} x
//// * @returns {number}

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
/////**
//// * @template T
//// * @param {T} x

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
/////**
//// * @param {?} x
//// * @returns {number}

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts'/>
// @strict: false
////class A {
//// constructor(x: number) { }
//// foo() { }

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts'/>
// @strict: false
// @Filename: cloduleAsBaseClass2_0.ts
////class A {
//// constructor(x: number) { }

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts'/>
// @strict: false
////class C<T> {
//// static foo(x: number) { }
//// x: T;

View File

@ -1,4 +1,5 @@
/// <reference path="fourslash.ts" />
// @strict: false
////interface Stuff {
//// b: () => Promise<string>;
////}

View File

@ -1,4 +1,5 @@
/// <reference path='fourslash.ts' />
// @strict: false
// @useDefineForClassFields: true
////class B {

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
////const x; // this is x
////
////// this is E

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
////interface Foo {
//// a: number;
//// b: string;

View File

@ -1,5 +1,6 @@
/// <reference path="fourslash.ts" />
// @strict: false
////interface Foo {
//// a: number;
//// b: string;

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
////interface I {
//// x: number;
//// y: number;

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
////interface Foo {
//// a: number;
//// b: string;

View File

@ -1,4 +1,5 @@
/// <reference path='fourslash.ts' />
// @strict: false
// @lib: es2020
// @target: es2020

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
////interface I {
//// x: number;
//// y: number;

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
////const f = promise => {
//// await promise;
////}

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
////const f = (promise) => {
//// await promise;
////}

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
// @moduleResolution: bundler
// @Filename: /node_modules/abs/subModule.js
////export const x = 0;

View File

@ -1,4 +1,5 @@
/// <reference path='fourslash.ts' />
// @strict: false
//// var f = <[|function(number?): number|]>(x => x);
verify.codeFix({

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
// @noImplicitOverride: true
//// abstract class A {
//// abstract x: number;

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
//// class A {
//// foo() {
//// return class { x: number; }

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
////abstract class A {
//// abstract x: number;
//// private y: number;

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
////class A {
//// A: typeof A;
////}

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
////// Referenced throughout the inheritance chain.
////interface I0 { a: number }
////

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
// @lib: es2017
////interface I<Species> {

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
//// interface I1 {
//// x: number;
//// }

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
//// class Base {
//// foo: number;
//// }

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
//// interface I1 {
//// x: number;
//// }

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
//// interface I1 {
//// x: number;
//// }

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
//// interface I1 {
//// x: number;
//// }

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
////interface IPerson {
//// name: string;
//// birthday?: string;

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
////
//// interface I {
//// x: number;

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
//// const a: ((() => number) | (() => undefined)) = () => { 1 }
verify.codeFixAvailable([

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
//@Filename: file.tsx
//// declare namespace JSX {
//// interface Element { }

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
//@Filename: file.tsx
//// declare namespace JSX {
//// interface Element { }

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
//@Filename: file.tsx
//// declare namespace JSX {
//// interface Element { }

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
//// function Foo (a: (() => number) | (() => undefined) ) { a() }
//// Foo(() => { 1 })

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
// @allowjs: true
// @noEmit: true
// @checkJs: true

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
// @allowjs: true
// @noEmit: true
// @checkJs: true

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
// @allowjs: true
// @noEmit: true
// @checkJs: true

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
// @Filename: /a.ts
////export const foo = 0;

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
////class C {
//// constructor(public foo) {
//// }

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
////class C {
//// foo: number;
//// constructor() {[|

View File

@ -1,4 +1,5 @@
/// <reference path='fourslash.ts' />
// @strict: false
// @strictNullChecks: true
////class TokenType {

View File

@ -1,4 +1,5 @@
/// <reference path='fourslash.ts' />
// @strict: false
// @allowJs: true
// @checkJs: true
// @noImplicitAny: true

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
// @noImplicitAny: true
////class C {
//// [|get x() |]{

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
// @noImplicitAny: true
////function f1(a) { a; }
////function h1() {

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
// @noImplicitAny: true
////function f([|a? |]){
//// a;

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
// @allowJs: true
// @checkJs: true
// @noImplicitAny: true

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
// @noImplicitAny: true
////function f(a: number, [|...rest |]){
//// a; rest;

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
// @noImplicitAny: true
////function f(a: number, [|...rest |]){
//// a; rest;

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
// @allowJs: true
// @checkJs: true
// @noImplicitAny: true

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
// @allowJs: true
// @checkJs: true
// @noImplicitAny: true

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
// @noImplicitAny: true
//// function foo([|p, a, b |]) {
//// var x

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
// @allowjs: true
// @checkJs: true

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts'/>
// @strict: false
// @isolatedDeclarations: true
// @declaration: true
// fileName: code.ts

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
// @noImplicitOverride: true
//// class B {

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
// @noImplicitOverride: true
//// class B {

View File

@ -1,4 +1,5 @@
/// <reference path='fourslash.ts' />
// @strict: false
// @allowJs: true
// @checkJs: true
// @noEmit: true

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
// @allowJs: true
// @checkJs: true
// @filename: /a.js

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
// @allowJs: true
// @checkJs: true
// @filename: /a.js

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
// @allowJs: true
// @checkJs: true
// @filename: /a.js

View File

@ -2,6 +2,7 @@
// Tests that the spelling fix is returned first.
// @strict: false
////class C {
//// foof: number;
//// method() {

View File

@ -1,4 +1,5 @@
/// <reference path='fourslash.ts' />
// @strict: false
// @allowJs: true
// @checkJs: true

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
//// class A {
//// a: number;
//// b: string;

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
//// class A<T> {
//// a: number;
//// b: string;

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
//// [|class A {
//// constructor() {
//// this.x = function(x: number, y?: A){

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
//// [|class A {
//// y: number;
//// constructor(public a: number) {

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
//// [|class A {
//// constructor() {
//// let e: any = 10;

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
// @noLib: true
// @noUnusedLocals: true

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
// @noUnusedLocals: true
// @noUnusedParameters: true

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
////function f([|p|]) {
//// const [|x|] = 0;
////}

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts' />
// @strict: false
// @noImplicitAny: true
////declare const a: string
////function wat([|b |]) {

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts'/>
// @strict: false
// @Filename: /file2.ts
//// type TCallback<T = any> = (options: T) => any;
//// type InKeyOf<E> = { [K in keyof E]?: TCallback<E[K]>; };

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts'/>
// @strict: false
////declare class A {
//// static foo;
////}

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts'/>
// @strict: false
////declare class A {
//// foo;
////}

View File

@ -1,5 +1,6 @@
/// <reference path="fourslash.ts" />
// @strict: false
// @Filename: a.ts
// @newline: LF

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts'/>
// @strict: false
//// class A {
//// foo: string;
//// }

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts'/>
// @strict: false
// @Filename: a.ts
// @newLine: lf
////const enum TestEnum {

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts'/>
// @strict: false
////class C {
//// name: string;
//// age: number;

View File

@ -1,5 +1,6 @@
/// <reference path="fourslash.ts"/>
// @strict: false
////interface FooOptions {
//// text?: string;
////}

View File

@ -1,3 +1,4 @@
// @strict: false
//// interface PartialObserver<T> {}
//// interface Subscription {}

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts'/>
// @strict: false
////class CollectionItem {
//// x: number;
////}

View File

@ -1,5 +1,6 @@
/// <reference path="fourslash.ts" />
// @strict: false
// @declaration: true
// @newLine: lf
// @outFile: out.js

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts'/>
// @strict: false
////var x/*1*/x = true ? [1] : [undefined];
////var y/*2*/y = true ? [1] : [];

View File

@ -1,5 +1,6 @@
/// <reference path='./fourslash.ts'/>
// @strict: false
// @Filename: exportEqualTypes_file0.ts
////interface x {
//// (): Date;

View File

@ -1,5 +1,6 @@
/// <reference path="fourslash.ts"/>
// @strict: false
////var x = [1, 2, 3];
////var /*y*/y = x.pop(/*1*/5/*2*/);
////

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts'/>
// @strict: false
////interface A<T> {
//// foo(a: T): B<T>;
//// foo(): void ;

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts'/>
// @strict: false
////interface I1<T> {
//// (a: T): T;
////}

View File

@ -1,6 +1,7 @@
/// <reference path='fourslash.ts' />
// @strict: false
////const foo = {
//// bar: "1",
//// baz() {

View File

@ -1,5 +1,6 @@
/// <reference path='fourslash.ts'/>
// @strict: false
////declare function f<T>(x: T, y: (p: T) => T, z: (p: T) => T): T;
////var /*1*/result = /*2*/f(0, /*3*/x => null, /*4*/x => x.blahblah);

Some files were not shown because too many files have changed in this diff Show More