Added tests.

This commit is contained in:
Daniel Rosenwasser
2016-01-04 22:39:31 -05:00
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;
});