Fixed up test. Thanks arrow functions...

This commit is contained in:
Daniel Rosenwasser
2018-04-13 23:14:13 -07:00
parent 23567ee05d
commit 60b6d3fbce

View File

@@ -32,13 +32,16 @@ export const b = g<Stuff, number, string, boolean> `
declare let obj: {
prop: <T>(strs: TemplateStringsArray, x: (input: T) => T) => {
returnedObjProp: {
lastOne: T
}
returnedObjProp: T
}
}
export const c = obj["prop"]<Stuff> `${(input) => { ...input }}`
c.returnedProp.x;
c.returnedProp.y;
c.returnedProp.z;
export let c = obj["prop"]<Stuff> `${(input) => ({ ...input })}`
c.returnedObjProp.x;
c.returnedObjProp.y;
c.returnedObjProp.z;
c = obj.prop<Stuff> `${(input) => ({ ...input })}`
c.returnedObjProp.x;
c.returnedObjProp.y;
c.returnedObjProp.z;