Added tests.

This commit is contained in:
Daniel Rosenwasser 2016-01-04 22:27:57 -05:00
parent 9a9aa0083e
commit 24a108936f
4 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,3 @@
let x: (a: string) => string;
x = (100, a => a);

View file

@ -0,0 +1,6 @@
let x: (a: string) => string;
x = (100, a => {
const b: number = a;
return b;
});

View file

@ -0,0 +1,4 @@
let x: (a: string) => string;
let y = true;
x = y && (a => a);

View file

@ -0,0 +1,7 @@
let x: (a: string) => string;
let y = true;
x = y && (a => {
const b: number = a;
return b;
});