mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-10 01:43:59 -05:00
Added tests.
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
let x: (a: string) => string;
|
||||
|
||||
x = (100, a => a);
|
||||
@@ -0,0 +1,6 @@
|
||||
let x: (a: string) => string;
|
||||
|
||||
x = (100, a => {
|
||||
const b: number = a;
|
||||
return b;
|
||||
});
|
||||
@@ -0,0 +1,4 @@
|
||||
let x: (a: string) => string;
|
||||
let y = true;
|
||||
|
||||
x = y && (a => a);
|
||||
@@ -0,0 +1,7 @@
|
||||
let x: (a: string) => string;
|
||||
let y = true;
|
||||
|
||||
x = y && (a => {
|
||||
const b: number = a;
|
||||
return b;
|
||||
});
|
||||
Reference in New Issue
Block a user