Skip to content

Commit fe8615d

Browse files
Accepted baselines.
1 parent 82e09c9 commit fe8615d

3 files changed

Lines changed: 101 additions & 161 deletions

File tree

tests/baselines/reference/taggedTemplatesWithTypeArguments1.errors.txt

Lines changed: 0 additions & 84 deletions
This file was deleted.

tests/baselines/reference/taggedTemplatesWithTypeArguments1.symbols

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,23 @@ export const a = f<Stuff> `
3030
hello
3131
${stuff => stuff.x}
3232
>stuff : Symbol(stuff, Decl(taggedTemplatesWithTypeArguments1.ts, 10, 6))
33+
>stuff.x : Symbol(Stuff.x, Decl(taggedTemplatesWithTypeArguments1.ts, 2, 17))
3334
>stuff : Symbol(stuff, Decl(taggedTemplatesWithTypeArguments1.ts, 10, 6))
35+
>x : Symbol(Stuff.x, Decl(taggedTemplatesWithTypeArguments1.ts, 2, 17))
3436

3537
brave
3638
${stuff => stuff.y}
3739
>stuff : Symbol(stuff, Decl(taggedTemplatesWithTypeArguments1.ts, 12, 6))
40+
>stuff.y : Symbol(Stuff.y, Decl(taggedTemplatesWithTypeArguments1.ts, 3, 14))
3841
>stuff : Symbol(stuff, Decl(taggedTemplatesWithTypeArguments1.ts, 12, 6))
42+
>y : Symbol(Stuff.y, Decl(taggedTemplatesWithTypeArguments1.ts, 3, 14))
3943

4044
world
4145
${stuff => stuff.z}
4246
>stuff : Symbol(stuff, Decl(taggedTemplatesWithTypeArguments1.ts, 14, 6))
47+
>stuff.z : Symbol(Stuff.z, Decl(taggedTemplatesWithTypeArguments1.ts, 4, 14))
4348
>stuff : Symbol(stuff, Decl(taggedTemplatesWithTypeArguments1.ts, 14, 6))
49+
>z : Symbol(Stuff.z, Decl(taggedTemplatesWithTypeArguments1.ts, 4, 14))
4450

4551
`;
4652

@@ -80,17 +86,23 @@ export const b = g<Stuff, number, string, boolean> `
8086
hello
8187
${stuff => stuff.x}
8288
>stuff : Symbol(stuff, Decl(taggedTemplatesWithTypeArguments1.ts, 23, 6))
89+
>stuff.x : Symbol(Stuff.x, Decl(taggedTemplatesWithTypeArguments1.ts, 2, 17))
8390
>stuff : Symbol(stuff, Decl(taggedTemplatesWithTypeArguments1.ts, 23, 6))
91+
>x : Symbol(Stuff.x, Decl(taggedTemplatesWithTypeArguments1.ts, 2, 17))
8492

8593
brave
8694
${stuff => stuff.y}
8795
>stuff : Symbol(stuff, Decl(taggedTemplatesWithTypeArguments1.ts, 25, 6))
96+
>stuff.y : Symbol(Stuff.y, Decl(taggedTemplatesWithTypeArguments1.ts, 3, 14))
8897
>stuff : Symbol(stuff, Decl(taggedTemplatesWithTypeArguments1.ts, 25, 6))
98+
>y : Symbol(Stuff.y, Decl(taggedTemplatesWithTypeArguments1.ts, 3, 14))
8999

90100
world
91101
${stuff => stuff.z}
92102
>stuff : Symbol(stuff, Decl(taggedTemplatesWithTypeArguments1.ts, 27, 6))
103+
>stuff.z : Symbol(Stuff.z, Decl(taggedTemplatesWithTypeArguments1.ts, 4, 14))
93104
>stuff : Symbol(stuff, Decl(taggedTemplatesWithTypeArguments1.ts, 27, 6))
105+
>z : Symbol(Stuff.z, Decl(taggedTemplatesWithTypeArguments1.ts, 4, 14))
94106

95107
`;
96108

@@ -122,19 +134,25 @@ export let c = obj["prop"]<Stuff> `${(input) => ({ ...input })}`
122134
>input : Symbol(input, Decl(taggedTemplatesWithTypeArguments1.ts, 36, 38))
123135

124136
c.returnedObjProp.x;
137+
>c.returnedObjProp.x : Symbol(Stuff.x, Decl(taggedTemplatesWithTypeArguments1.ts, 2, 17))
125138
>c.returnedObjProp : Symbol(returnedObjProp, Decl(taggedTemplatesWithTypeArguments1.ts, 31, 66))
126139
>c : Symbol(c, Decl(taggedTemplatesWithTypeArguments1.ts, 36, 10))
127140
>returnedObjProp : Symbol(returnedObjProp, Decl(taggedTemplatesWithTypeArguments1.ts, 31, 66))
141+
>x : Symbol(Stuff.x, Decl(taggedTemplatesWithTypeArguments1.ts, 2, 17))
128142

129143
c.returnedObjProp.y;
144+
>c.returnedObjProp.y : Symbol(Stuff.y, Decl(taggedTemplatesWithTypeArguments1.ts, 3, 14))
130145
>c.returnedObjProp : Symbol(returnedObjProp, Decl(taggedTemplatesWithTypeArguments1.ts, 31, 66))
131146
>c : Symbol(c, Decl(taggedTemplatesWithTypeArguments1.ts, 36, 10))
132147
>returnedObjProp : Symbol(returnedObjProp, Decl(taggedTemplatesWithTypeArguments1.ts, 31, 66))
148+
>y : Symbol(Stuff.y, Decl(taggedTemplatesWithTypeArguments1.ts, 3, 14))
133149

134150
c.returnedObjProp.z;
151+
>c.returnedObjProp.z : Symbol(Stuff.z, Decl(taggedTemplatesWithTypeArguments1.ts, 4, 14))
135152
>c.returnedObjProp : Symbol(returnedObjProp, Decl(taggedTemplatesWithTypeArguments1.ts, 31, 66))
136153
>c : Symbol(c, Decl(taggedTemplatesWithTypeArguments1.ts, 36, 10))
137154
>returnedObjProp : Symbol(returnedObjProp, Decl(taggedTemplatesWithTypeArguments1.ts, 31, 66))
155+
>z : Symbol(Stuff.z, Decl(taggedTemplatesWithTypeArguments1.ts, 4, 14))
138156

139157
c = obj.prop<Stuff> `${(input) => ({ ...input })}`
140158
>c : Symbol(c, Decl(taggedTemplatesWithTypeArguments1.ts, 36, 10))
@@ -146,17 +164,23 @@ c = obj.prop<Stuff> `${(input) => ({ ...input })}`
146164
>input : Symbol(input, Decl(taggedTemplatesWithTypeArguments1.ts, 41, 24))
147165

148166
c.returnedObjProp.x;
167+
>c.returnedObjProp.x : Symbol(Stuff.x, Decl(taggedTemplatesWithTypeArguments1.ts, 2, 17))
149168
>c.returnedObjProp : Symbol(returnedObjProp, Decl(taggedTemplatesWithTypeArguments1.ts, 31, 66))
150169
>c : Symbol(c, Decl(taggedTemplatesWithTypeArguments1.ts, 36, 10))
151170
>returnedObjProp : Symbol(returnedObjProp, Decl(taggedTemplatesWithTypeArguments1.ts, 31, 66))
171+
>x : Symbol(Stuff.x, Decl(taggedTemplatesWithTypeArguments1.ts, 2, 17))
152172

153173
c.returnedObjProp.y;
174+
>c.returnedObjProp.y : Symbol(Stuff.y, Decl(taggedTemplatesWithTypeArguments1.ts, 3, 14))
154175
>c.returnedObjProp : Symbol(returnedObjProp, Decl(taggedTemplatesWithTypeArguments1.ts, 31, 66))
155176
>c : Symbol(c, Decl(taggedTemplatesWithTypeArguments1.ts, 36, 10))
156177
>returnedObjProp : Symbol(returnedObjProp, Decl(taggedTemplatesWithTypeArguments1.ts, 31, 66))
178+
>y : Symbol(Stuff.y, Decl(taggedTemplatesWithTypeArguments1.ts, 3, 14))
157179

158180
c.returnedObjProp.z;
181+
>c.returnedObjProp.z : Symbol(Stuff.z, Decl(taggedTemplatesWithTypeArguments1.ts, 4, 14))
159182
>c.returnedObjProp : Symbol(returnedObjProp, Decl(taggedTemplatesWithTypeArguments1.ts, 31, 66))
160183
>c : Symbol(c, Decl(taggedTemplatesWithTypeArguments1.ts, 36, 10))
161184
>returnedObjProp : Symbol(returnedObjProp, Decl(taggedTemplatesWithTypeArguments1.ts, 31, 66))
185+
>z : Symbol(Stuff.z, Decl(taggedTemplatesWithTypeArguments1.ts, 4, 14))
162186

tests/baselines/reference/taggedTemplatesWithTypeArguments1.types

Lines changed: 77 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -31,27 +31,27 @@ export const a = f<Stuff> `
3131

3232
hello
3333
${stuff => stuff.x}
34-
>stuff => stuff.x : (stuff: {}) => any
35-
>stuff : {}
36-
>stuff.x : any
37-
>stuff : {}
38-
>x : any
34+
>stuff => stuff.x : (stuff: Stuff) => number
35+
>stuff : Stuff
36+
>stuff.x : number
37+
>stuff : Stuff
38+
>x : number
3939

4040
brave
4141
${stuff => stuff.y}
42-
>stuff => stuff.y : (stuff: {}) => any
43-
>stuff : {}
44-
>stuff.y : any
45-
>stuff : {}
46-
>y : any
42+
>stuff => stuff.y : (stuff: Stuff) => string
43+
>stuff : Stuff
44+
>stuff.y : string
45+
>stuff : Stuff
46+
>y : string
4747

4848
world
4949
${stuff => stuff.z}
50-
>stuff => stuff.z : (stuff: {}) => any
51-
>stuff : {}
52-
>stuff.z : any
53-
>stuff : {}
54-
>z : any
50+
>stuff => stuff.z : (stuff: Stuff) => boolean
51+
>stuff : Stuff
52+
>stuff.z : boolean
53+
>stuff : Stuff
54+
>z : boolean
5555

5656
`;
5757

@@ -84,35 +84,35 @@ declare function g<Input, T, U, V>(
8484
>V : V
8585

8686
export const b = g<Stuff, number, string, boolean> `
87-
>b : any
88-
>g<Stuff, number, string, boolean> ` hello ${stuff => stuff.x} brave ${stuff => stuff.y} world ${stuff => stuff.z}` : any
87+
>b : string | number | boolean
88+
>g<Stuff, number, string, boolean> ` hello ${stuff => stuff.x} brave ${stuff => stuff.y} world ${stuff => stuff.z}` : string | number | boolean
8989
>g : <Input, T, U, V>(strs: TemplateStringsArray, t: (i: Input) => T, u: (i: Input) => U, v: (i: Input) => V) => T | U | V
9090
>Stuff : Stuff
9191
>` hello ${stuff => stuff.x} brave ${stuff => stuff.y} world ${stuff => stuff.z}` : string
9292

9393
hello
9494
${stuff => stuff.x}
95-
>stuff => stuff.x : (stuff: {}) => any
96-
>stuff : {}
97-
>stuff.x : any
98-
>stuff : {}
99-
>x : any
95+
>stuff => stuff.x : (stuff: Stuff) => number
96+
>stuff : Stuff
97+
>stuff.x : number
98+
>stuff : Stuff
99+
>x : number
100100

101101
brave
102102
${stuff => stuff.y}
103-
>stuff => stuff.y : (stuff: {}) => any
104-
>stuff : {}
105-
>stuff.y : any
106-
>stuff : {}
107-
>y : any
103+
>stuff => stuff.y : (stuff: Stuff) => string
104+
>stuff : Stuff
105+
>stuff.y : string
106+
>stuff : Stuff
107+
>y : string
108108

109109
world
110110
${stuff => stuff.z}
111-
>stuff => stuff.z : (stuff: {}) => any
112-
>stuff : {}
113-
>stuff.z : any
114-
>stuff : {}
115-
>z : any
111+
>stuff => stuff.z : (stuff: Stuff) => boolean
112+
>stuff : Stuff
113+
>stuff.z : boolean
114+
>stuff : Stuff
115+
>z : boolean
116116

117117
`;
118118

@@ -136,73 +136,73 @@ declare let obj: {
136136
}
137137

138138
export let c = obj["prop"]<Stuff> `${(input) => ({ ...input })}`
139-
>c : { returnedObjProp: {}; }
140-
>obj["prop"]<Stuff> `${(input) => ({ ...input })}` : { returnedObjProp: {}; }
139+
>c : { returnedObjProp: Stuff; }
140+
>obj["prop"]<Stuff> `${(input) => ({ ...input })}` : { returnedObjProp: Stuff; }
141141
>obj["prop"] : <T>(strs: TemplateStringsArray, x: (input: T) => T) => { returnedObjProp: T; }
142142
>obj : { prop: <T>(strs: TemplateStringsArray, x: (input: T) => T) => { returnedObjProp: T; }; }
143143
>"prop" : "prop"
144144
>Stuff : Stuff
145145
>`${(input) => ({ ...input })}` : string
146-
>(input) => ({ ...input }) : (input: {}) => {}
147-
>input : {}
148-
>({ ...input }) : {}
149-
>{ ...input } : {}
150-
>input : {}
146+
>(input) => ({ ...input }) : (input: Stuff) => { x: number; y: string; z: boolean; }
147+
>input : Stuff
148+
>({ ...input }) : { x: number; y: string; z: boolean; }
149+
>{ ...input } : { x: number; y: string; z: boolean; }
150+
>input : Stuff
151151

152152
c.returnedObjProp.x;
153-
>c.returnedObjProp.x : any
154-
>c.returnedObjProp : {}
155-
>c : { returnedObjProp: {}; }
156-
>returnedObjProp : {}
157-
>x : any
153+
>c.returnedObjProp.x : number
154+
>c.returnedObjProp : Stuff
155+
>c : { returnedObjProp: Stuff; }
156+
>returnedObjProp : Stuff
157+
>x : number
158158

159159
c.returnedObjProp.y;
160-
>c.returnedObjProp.y : any
161-
>c.returnedObjProp : {}
162-
>c : { returnedObjProp: {}; }
163-
>returnedObjProp : {}
164-
>y : any
160+
>c.returnedObjProp.y : string
161+
>c.returnedObjProp : Stuff
162+
>c : { returnedObjProp: Stuff; }
163+
>returnedObjProp : Stuff
164+
>y : string
165165

166166
c.returnedObjProp.z;
167-
>c.returnedObjProp.z : any
168-
>c.returnedObjProp : {}
169-
>c : { returnedObjProp: {}; }
170-
>returnedObjProp : {}
171-
>z : any
167+
>c.returnedObjProp.z : boolean
168+
>c.returnedObjProp : Stuff
169+
>c : { returnedObjProp: Stuff; }
170+
>returnedObjProp : Stuff
171+
>z : boolean
172172

173173
c = obj.prop<Stuff> `${(input) => ({ ...input })}`
174-
>c = obj.prop<Stuff> `${(input) => ({ ...input })}` : { returnedObjProp: {}; }
175-
>c : { returnedObjProp: {}; }
176-
>obj.prop<Stuff> `${(input) => ({ ...input })}` : { returnedObjProp: {}; }
174+
>c = obj.prop<Stuff> `${(input) => ({ ...input })}` : { returnedObjProp: Stuff; }
175+
>c : { returnedObjProp: Stuff; }
176+
>obj.prop<Stuff> `${(input) => ({ ...input })}` : { returnedObjProp: Stuff; }
177177
>obj.prop : <T>(strs: TemplateStringsArray, x: (input: T) => T) => { returnedObjProp: T; }
178178
>obj : { prop: <T>(strs: TemplateStringsArray, x: (input: T) => T) => { returnedObjProp: T; }; }
179179
>prop : <T>(strs: TemplateStringsArray, x: (input: T) => T) => { returnedObjProp: T; }
180180
>Stuff : Stuff
181181
>`${(input) => ({ ...input })}` : string
182-
>(input) => ({ ...input }) : (input: {}) => {}
183-
>input : {}
184-
>({ ...input }) : {}
185-
>{ ...input } : {}
186-
>input : {}
182+
>(input) => ({ ...input }) : (input: Stuff) => { x: number; y: string; z: boolean; }
183+
>input : Stuff
184+
>({ ...input }) : { x: number; y: string; z: boolean; }
185+
>{ ...input } : { x: number; y: string; z: boolean; }
186+
>input : Stuff
187187

188188
c.returnedObjProp.x;
189-
>c.returnedObjProp.x : any
190-
>c.returnedObjProp : {}
191-
>c : { returnedObjProp: {}; }
192-
>returnedObjProp : {}
193-
>x : any
189+
>c.returnedObjProp.x : number
190+
>c.returnedObjProp : Stuff
191+
>c : { returnedObjProp: Stuff; }
192+
>returnedObjProp : Stuff
193+
>x : number
194194

195195
c.returnedObjProp.y;
196-
>c.returnedObjProp.y : any
197-
>c.returnedObjProp : {}
198-
>c : { returnedObjProp: {}; }
199-
>returnedObjProp : {}
200-
>y : any
196+
>c.returnedObjProp.y : string
197+
>c.returnedObjProp : Stuff
198+
>c : { returnedObjProp: Stuff; }
199+
>returnedObjProp : Stuff
200+
>y : string
201201

202202
c.returnedObjProp.z;
203-
>c.returnedObjProp.z : any
204-
>c.returnedObjProp : {}
205-
>c : { returnedObjProp: {}; }
206-
>returnedObjProp : {}
207-
>z : any
203+
>c.returnedObjProp.z : boolean
204+
>c.returnedObjProp : Stuff
205+
>c : { returnedObjProp: Stuff; }
206+
>returnedObjProp : Stuff
207+
>z : boolean
208208

0 commit comments

Comments
 (0)