mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
27 lines
491 B
TypeScript
27 lines
491 B
TypeScript
//// [tests/cases/compiler/configFileExtendsAsList.ts] ////
|
|
|
|
//// [tsconfig1.json]
|
|
{
|
|
"compilerOptions": {
|
|
"strictNullChecks": true
|
|
}
|
|
}
|
|
|
|
//// [tsconfig2.json]
|
|
{
|
|
"compilerOptions": {
|
|
"noImplicitAny": true
|
|
}
|
|
}
|
|
|
|
//// [index.ts]
|
|
function f(x) { } // noImplicitAny error
|
|
let y: string;
|
|
y.toLowerCase(); // strictNullChecks error
|
|
|
|
//// [index.js]
|
|
"use strict";
|
|
function f(x) { } // noImplicitAny error
|
|
let y;
|
|
y.toLowerCase(); // strictNullChecks error
|