Added tests.
This commit is contained in:
parent
9a9aa0083e
commit
24a108936f
4 changed files with 20 additions and 0 deletions
|
@ -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;
|
||||
});
|
Loading…
Reference in a new issue