mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 12:32:08 -06:00
Specify @strict: false on lots of tests that would fail under noImplicitAny.
This commit is contained in:
parent
5210752a19
commit
1e676f053c
@ -1,3 +1,4 @@
|
||||
// @target: es2015
|
||||
// @strict: false
|
||||
// @target: es2015
|
||||
declare namespace Foo.Bar { export var foo; };
|
||||
Foo.Bar.foo = 5;
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es2015
|
||||
// @strict: false
|
||||
// @target: es2015
|
||||
class C {
|
||||
static x
|
||||
static y
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es2015
|
||||
// @strict: false
|
||||
// @target: es2015
|
||||
class Base {
|
||||
constructor(...arg) {
|
||||
}
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es2015
|
||||
// @strict: false
|
||||
// @target: es2015
|
||||
declare function commentedParameters(...args): any;
|
||||
|
||||
function ifelse() {
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es2015
|
||||
// @strict: false
|
||||
// @target: es2015
|
||||
function commentedParameters(
|
||||
/* Parameter a */
|
||||
a
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es2015
|
||||
// @strict: false
|
||||
// @target: es2015
|
||||
function commentedParameters(
|
||||
/* Parameter a */
|
||||
a /* End of parameter a */
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es2015
|
||||
// @strict: false
|
||||
// @target: es2015
|
||||
function commentedParameters(
|
||||
a /* parameter a */,
|
||||
b /* parameter b */,
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es2015
|
||||
// @strict: false
|
||||
// @target: es2015
|
||||
function getSecurity(level) {
|
||||
switch(level){
|
||||
case 0: // Zero
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es2015
|
||||
// @strict: false
|
||||
// @target: es2015
|
||||
function getSecurity(level) {
|
||||
switch(level){
|
||||
case 0: // Zero
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es2015
|
||||
// @strict: false
|
||||
// @target: es2015
|
||||
function getSecurity(level) {
|
||||
switch(level){
|
||||
case 0: /*Zero*/
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
// @strict: false
|
||||
// @target: es2015
|
||||
// @strictNullChecks: true
|
||||
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es2015
|
||||
// @strict: false
|
||||
// @target: es2015
|
||||
// @declaration: true
|
||||
function baz([, z, , ]) { }
|
||||
function foo([, b, ]: [any, any]): void { }
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es2015
|
||||
// @strict: false
|
||||
// @target: es2015
|
||||
// @declaration: true
|
||||
|
||||
function foo([x, y, z] ?: [string, number, boolean]);
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es2015
|
||||
// @strict: false
|
||||
// @target: es2015
|
||||
// @removeComments: true
|
||||
|
||||
class C {
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es2015
|
||||
// @strict: false
|
||||
// @target: es2015
|
||||
// @removeComments: true
|
||||
|
||||
class C {
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es5, es2015
|
||||
// @strict: false
|
||||
// @target: es5, es2015
|
||||
|
||||
(x) => ({ "1": "one", "2": "two" } as { [key: string]: string })[x];
|
||||
(x) => ({ "1": "one", "2": "two" } as { [key: string]: string }).x;
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es6
|
||||
// @strict: false
|
||||
// @target: es6
|
||||
|
||||
(x) => ({ "1": "one", "2": "two" } as { [key: string]: string })[x];
|
||||
(x) => ({ "1": "one", "2": "two" } as { [key: string]: string }).x;
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es2015
|
||||
// @strict: false
|
||||
// @target: es2015
|
||||
namespace TypeScript.Parser {
|
||||
class SyntaxCursor {
|
||||
public currentNode(): SyntaxNode {
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
// @strict: false
|
||||
// @target: es2015
|
||||
//@noUncheckedIndexedAccess: true
|
||||
//@strictNullChecks: true
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es2015
|
||||
// @strict: false
|
||||
// @target: es2015
|
||||
class T {
|
||||
m(...p3) {
|
||||
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: ES6
|
||||
// @strict: false
|
||||
// @target: ES6
|
||||
|
||||
function CreateTypedArrayTypes() {
|
||||
var typedArrays = [];
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target:es5, es2015
|
||||
// @strict: false
|
||||
// @target:es5, es2015
|
||||
var f1 = () => { }
|
||||
var f2 = (x: string, y: string) => { }
|
||||
var f3 = (x: string, y: number, ...rest) => { }
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target:ES5, ES2015
|
||||
// @strict: false
|
||||
// @target:ES5, ES2015
|
||||
var arrow1 = a => { };
|
||||
var arrow2 = (a) => { };
|
||||
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target:ES6
|
||||
// @strict: false
|
||||
// @target:ES6
|
||||
var arrow1 = a => { };
|
||||
var arrow2 = (a) => { };
|
||||
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target:es6
|
||||
// @strict: false
|
||||
// @target:es6
|
||||
var f1 = () => { }
|
||||
var f2 = (x: string, y: string) => { }
|
||||
var f3 = (x: string, y: number, ...rest) => { }
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target:es5, es2015
|
||||
// @strict: false
|
||||
// @target:es5, es2015
|
||||
var f1 = () => {
|
||||
this.age = 10
|
||||
};
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target:es6
|
||||
// @strict: false
|
||||
// @target:es6
|
||||
var f1 = () => {
|
||||
this.age = 10
|
||||
};
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es5, es2015
|
||||
// @strict: false
|
||||
// @target: es5, es2015
|
||||
var a = () => {
|
||||
var arg = arguments[0]; // error
|
||||
}
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es6
|
||||
// @strict: false
|
||||
// @target: es6
|
||||
var a = () => {
|
||||
var arg = arguments[0]; // error
|
||||
}
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
// @target: es5, es2015
|
||||
// @strict: false
|
||||
// @target: es5, es2015
|
||||
|
||||
var a = () => arguments;
|
||||
@ -1,3 +1,4 @@
|
||||
// @target: es6
|
||||
// @strict: false
|
||||
// @target: es6
|
||||
|
||||
var a = () => arguments;
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es5, es2015
|
||||
// @strict: false
|
||||
// @target: es5, es2015
|
||||
|
||||
var arguments;
|
||||
var a = () => arguments;
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es6
|
||||
// @strict: false
|
||||
// @target: es6
|
||||
|
||||
var arguments;
|
||||
var a = () => arguments;
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es5, es2015
|
||||
// @strict: false
|
||||
// @target: es5, es2015
|
||||
|
||||
function f() {
|
||||
var arguments;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es6
|
||||
// @strict: false
|
||||
// @target: es6
|
||||
|
||||
function f() {
|
||||
var arguments;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es5, es2015
|
||||
// @strict: false
|
||||
// @target: es5, es2015
|
||||
|
||||
function f(arguments) {
|
||||
var a = () => arguments;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es6
|
||||
// @strict: false
|
||||
// @target: es6
|
||||
|
||||
function f(arguments) {
|
||||
var a = () => arguments;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es5, es2015
|
||||
// @strict: false
|
||||
// @target: es5, es2015
|
||||
|
||||
function f(arguments) {
|
||||
var a = () => () => arguments;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es6
|
||||
// @strict: false
|
||||
// @target: es6
|
||||
|
||||
function f(arguments) {
|
||||
var a = () => () => arguments;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es5, es2015
|
||||
// @strict: false
|
||||
// @target: es5, es2015
|
||||
|
||||
function f(arguments) {
|
||||
var a = (arguments) => () => arguments;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es6
|
||||
// @strict: false
|
||||
// @target: es6
|
||||
|
||||
function f(arguments) {
|
||||
var a = (arguments) => () => arguments;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es5, es2015
|
||||
// @strict: false
|
||||
// @target: es5, es2015
|
||||
|
||||
function f(arguments) {
|
||||
var a = () => (arguments) => arguments;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es6
|
||||
// @strict: false
|
||||
// @target: es6
|
||||
|
||||
function f(arguments) {
|
||||
var a = () => (arguments) => arguments;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es5, es2015
|
||||
// @strict: false
|
||||
// @target: es5, es2015
|
||||
|
||||
function f(_arguments) {
|
||||
var a = () => () => arguments;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es6
|
||||
// @strict: false
|
||||
// @target: es6
|
||||
|
||||
function f(_arguments) {
|
||||
var a = () => () => arguments;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es5, es2015
|
||||
// @strict: false
|
||||
// @target: es5, es2015
|
||||
|
||||
function f() {
|
||||
var _arguments = 10;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es6
|
||||
// @strict: false
|
||||
// @target: es6
|
||||
|
||||
function f() {
|
||||
var _arguments = 10;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es5, es2015
|
||||
// @strict: false
|
||||
// @target: es5, es2015
|
||||
|
||||
function f(arguments) {
|
||||
var _arguments = 10;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es6
|
||||
// @strict: false
|
||||
// @target: es6
|
||||
|
||||
function f(arguments) {
|
||||
var _arguments = 10;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es5, es2015
|
||||
// @strict: false
|
||||
// @target: es5, es2015
|
||||
|
||||
class C {
|
||||
f(arguments) {
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es6
|
||||
// @strict: false
|
||||
// @target: es6
|
||||
|
||||
class C {
|
||||
f(arguments) {
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es5, es2015
|
||||
// @strict: false
|
||||
// @target: es5, es2015
|
||||
|
||||
function f() {
|
||||
var _arguments = 10;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es6
|
||||
// @strict: false
|
||||
// @target: es6
|
||||
|
||||
function f() {
|
||||
var _arguments = 10;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es5, es2015
|
||||
// @strict: false
|
||||
// @target: es5, es2015
|
||||
|
||||
function f() {
|
||||
if (Math.random()) {
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es6
|
||||
// @strict: false
|
||||
// @target: es6
|
||||
|
||||
function f() {
|
||||
if (Math.random()) {
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es5, es2015
|
||||
// @strict: false
|
||||
// @target: es5, es2015
|
||||
|
||||
function f() {
|
||||
var arguments = "hello";
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es6
|
||||
// @strict: false
|
||||
// @target: es6
|
||||
|
||||
function f() {
|
||||
var arguments = "hello";
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es5, es2015
|
||||
// @strict: false
|
||||
// @target: es5, es2015
|
||||
|
||||
function f() {
|
||||
var arguments = "hello";
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es6
|
||||
// @strict: false
|
||||
// @target: es6
|
||||
|
||||
function f() {
|
||||
var arguments = "hello";
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es5, es2015
|
||||
// @strict: false
|
||||
// @target: es5, es2015
|
||||
|
||||
function f() {
|
||||
var { arguments } = { arguments: "hello" };
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es6
|
||||
// @strict: false
|
||||
// @target: es6
|
||||
|
||||
function f() {
|
||||
var { arguments } = { arguments: "hello" };
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es5, es2015
|
||||
// @strict: false
|
||||
// @target: es5, es2015
|
||||
|
||||
function f() {
|
||||
var { arguments: args } = { arguments };
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es6
|
||||
// @strict: false
|
||||
// @target: es6
|
||||
|
||||
function f() {
|
||||
var { arguments: args } = { arguments };
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es5, es2015
|
||||
// @strict: false
|
||||
// @target: es5, es2015
|
||||
|
||||
function f() {
|
||||
function g() {
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es6
|
||||
// @strict: false
|
||||
// @target: es6
|
||||
|
||||
function f() {
|
||||
function g() {
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target:ES5, ES2015
|
||||
// @strict: false
|
||||
// @target:ES5, ES2015
|
||||
var arrow1 = a => { };
|
||||
var arrow2 = (a) => { };
|
||||
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target:ES6
|
||||
// @strict: false
|
||||
// @target:ES6
|
||||
var arrow1 = a => { };
|
||||
var arrow2 = (a) => { };
|
||||
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es6
|
||||
// @strict: false
|
||||
// @target: es6
|
||||
class A {
|
||||
y: number;
|
||||
constructor(x: number) {
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es6
|
||||
// @strict: false
|
||||
// @target: es6
|
||||
class B<T> {
|
||||
x: T;
|
||||
B: T;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es2015
|
||||
// @strict: false
|
||||
// @target: es2015
|
||||
declare var Factory: any
|
||||
|
||||
class Base {
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es2015
|
||||
// @strict: false
|
||||
// @target: es2015
|
||||
class Base {
|
||||
constructor(c) { }
|
||||
}
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es2015
|
||||
// @strict: false
|
||||
// @target: es2015
|
||||
class D extends null {
|
||||
private _t;
|
||||
constructor() {
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es2015
|
||||
// @strict: false
|
||||
// @target: es2015
|
||||
class Base {
|
||||
constructor(c) { }
|
||||
}
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es5, es2015
|
||||
// @strict: false
|
||||
// @target: es5, es2015
|
||||
function foo(x: string, y = 10) { }
|
||||
function baz(x: string, y = 5, ...rest) { }
|
||||
function bar(y = 10) { }
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target:es6
|
||||
// @strict: false
|
||||
// @target:es6
|
||||
function foo(x: string, y = 10) { }
|
||||
function baz(x: string, y = 5, ...rest) { }
|
||||
function bar(y = 10) { }
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es5, es2015
|
||||
// @strict: false
|
||||
// @target: es5, es2015
|
||||
var lambda1 = (y = "hello") => { }
|
||||
var lambda2 = (x: number, y = "hello") => { }
|
||||
var lambda3 = (x: number, y = "hello", ...rest) => { }
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target:es6
|
||||
// @strict: false
|
||||
// @target:es6
|
||||
var lambda1 = (y = "hello") => { }
|
||||
var lambda2 = (x: number, y = "hello") => { }
|
||||
var lambda3 = (x: number, y = "hello", ...rest) => { }
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es5, es2015
|
||||
// @strict: false
|
||||
// @target: es5, es2015
|
||||
var obj2 = {
|
||||
func1(y = 10, ...rest) { },
|
||||
func2(x = "hello") { },
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target:es6
|
||||
// @strict: false
|
||||
// @target:es6
|
||||
var obj2 = {
|
||||
func1(y = 10, ...rest) { },
|
||||
func2(x = "hello") { },
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es5, es2015
|
||||
// @strict: false
|
||||
// @target: es5, es2015
|
||||
class C {
|
||||
constructor(t: boolean, z: string, x: number, y = "hello") { }
|
||||
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target:es6
|
||||
// @strict: false
|
||||
// @target:es6
|
||||
class C {
|
||||
constructor(t: boolean, z: string, x: number, y = "hello") { }
|
||||
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es2015
|
||||
// @strict: false
|
||||
// @target: es2015
|
||||
// In a destructuring assignment expression, the type of the expression on the right must be assignable to the assignment target on the left.
|
||||
// An expression of type S is considered assignable to an assignment target V if one of the following is true
|
||||
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es6
|
||||
// @strict: false
|
||||
// @target: es6
|
||||
// In a destructuring assignment expression, the type of the expression on the right must be assignable to the assignment target on the left.
|
||||
// An expression of type S is considered assignable to an assignment target V if one of the following is true
|
||||
|
||||
|
||||
@ -1,2 +1,3 @@
|
||||
//@target: ES6
|
||||
// @strict: false
|
||||
//@target: ES6
|
||||
for (var let of []) {}
|
||||
@ -1,3 +1,4 @@
|
||||
// @target: es5, es2015
|
||||
// @strict: false
|
||||
// @target: es5, es2015
|
||||
function bar(...rest) { }
|
||||
function foo(x: number, y: string, ...rest) { }
|
||||
@ -1,3 +1,4 @@
|
||||
// @target: es6
|
||||
// @strict: false
|
||||
// @target: es6
|
||||
function bar(...rest) { }
|
||||
function foo(x: number, y: string, ...rest) { }
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es5, es2015
|
||||
// @strict: false
|
||||
// @target: es5, es2015
|
||||
var funcExp = (...rest) => { }
|
||||
var funcExp1 = (X: number, ...rest) => { }
|
||||
var funcExp2 = function (...rest) { }
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es6
|
||||
// @strict: false
|
||||
// @target: es6
|
||||
var funcExp = (...rest) => { }
|
||||
var funcExp1 = (X: number, ...rest) => { }
|
||||
var funcExp2 = function (...rest) { }
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es5, es2015
|
||||
// @strict: false
|
||||
// @target: es5, es2015
|
||||
var obj: {
|
||||
func1: (...rest) => void
|
||||
}
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es6
|
||||
// @strict: false
|
||||
// @target: es6
|
||||
var obj: {
|
||||
func1: (...rest) => void
|
||||
}
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es5, es2015
|
||||
// @strict: false
|
||||
// @target: es5, es2015
|
||||
class C {
|
||||
constructor(name: string, ...rest) { }
|
||||
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es6
|
||||
// @strict: false
|
||||
// @target: es6
|
||||
class C {
|
||||
constructor(name: string, ...rest) { }
|
||||
|
||||
|
||||
@ -1,2 +1,3 @@
|
||||
// @target: ES6
|
||||
// @strict: false
|
||||
// @target: ES6
|
||||
var x = x => `abc${ x }def`;
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es6
|
||||
// @strict: false
|
||||
// @target: es6
|
||||
function* gen() {
|
||||
// Once this is supported, the inner expression does not need to be parenthesized.
|
||||
var x = yield `abc${ x }def`;
|
||||
|
||||
@ -1,2 +1,3 @@
|
||||
// @target: ES6
|
||||
// @strict: false
|
||||
// @target: ES6
|
||||
var x = `abc${ x => x }def`;
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: ES6
|
||||
// @strict: false
|
||||
// @target: ES6
|
||||
function* gen() {
|
||||
// Once this is supported, yield *must* be parenthesized.
|
||||
var x = `abc${ yield 10 }def`;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es2015
|
||||
// @strict: false
|
||||
// @target: es2015
|
||||
// ElementList: ( Modified )
|
||||
// Elisionopt AssignmentExpression
|
||||
// Elisionopt SpreadElement
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es2015
|
||||
// @strict: false
|
||||
// @target: es2015
|
||||
// When a function expression with no type parameters and no parameter type annotations
|
||||
// is contextually typed (section 4.19) by a type T and a contextual signature S can be extracted from T
|
||||
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es2015
|
||||
// @strict: false
|
||||
// @target: es2015
|
||||
function f1() {
|
||||
var a, b, c;
|
||||
if (a < b || b > (c + 1)) { }
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @target: es2015
|
||||
// @strict: false
|
||||
// @target: es2015
|
||||
function f() {
|
||||
var a, b, c;
|
||||
if (a < b && b > (c + 1)) { }
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user