Skip to content

Commit 60b6d3f

Browse files
Fixed up test. Thanks arrow functions...
1 parent 23567ee commit 60b6d3f

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments1.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,16 @@ export const b = g<Stuff, number, string, boolean> `
3232

3333
declare let obj: {
3434
prop: <T>(strs: TemplateStringsArray, x: (input: T) => T) => {
35-
returnedObjProp: {
36-
lastOne: T
37-
}
35+
returnedObjProp: T
3836
}
3937
}
4038

41-
export const c = obj["prop"]<Stuff> `${(input) => { ...input }}`
42-
c.returnedProp.x;
43-
c.returnedProp.y;
44-
c.returnedProp.z;
39+
export let c = obj["prop"]<Stuff> `${(input) => ({ ...input })}`
40+
c.returnedObjProp.x;
41+
c.returnedObjProp.y;
42+
c.returnedObjProp.z;
43+
44+
c = obj.prop<Stuff> `${(input) => ({ ...input })}`
45+
c.returnedObjProp.x;
46+
c.returnedObjProp.y;
47+
c.returnedObjProp.z;

0 commit comments

Comments
 (0)