Home
last modified time | relevance | path

Searched refs:pigify (Results 1 – 4 of 4) sorted by relevance

/third_party/typescript/tests/baselines/reference/
DunionAndIntersectionInference1.js69 declare function pigify<T>(y: T & Bear): T & Pig;
72 pigify(mbp).oinks; // OK, mbp is treated as Pig
73 pigify(mbp).walks; // Ok, mbp is treated as Man
136 pigify(mbp).oinks; // OK, mbp is treated as Pig
137 pigify(mbp).walks; // Ok, mbp is treated as Man
DunionAndIntersectionInference1.types161 declare function pigify<T>(y: T & Bear): T & Pig;
162 >pigify : <T>(y: T & Bear) => T & Pig
168 pigify(mbp).oinks; // OK, mbp is treated as Pig
169 >pigify(mbp).oinks : boolean
170 >pigify(mbp) : Man & Pig
171 >pigify : <T>(y: T & Bear) => T & Pig
175 pigify(mbp).walks; // Ok, mbp is treated as Man
176 >pigify(mbp).walks : boolean
177 >pigify(mbp) : Man & Pig
178 >pigify : <T>(y: T & Bear) => T & Pig
DunionAndIntersectionInference1.symbols178 declare function pigify<T>(y: T & Bear): T & Pig;
179 >pigify : Symbol(pigify, Decl(unionAndIntersectionInference1.ts, 65, 1))
192 pigify(mbp).oinks; // OK, mbp is treated as Pig
193 >pigify(mbp).oinks : Symbol(Pig.oinks, Decl(unionAndIntersectionInference1.ts, 63, 15))
194 >pigify : Symbol(pigify, Decl(unionAndIntersectionInference1.ts, 65, 1))
198 pigify(mbp).walks; // Ok, mbp is treated as Man
199 >pigify(mbp).walks : Symbol(Man.walks, Decl(unionAndIntersectionInference1.ts, 55, 15))
200 >pigify : Symbol(pigify, Decl(unionAndIntersectionInference1.ts, 65, 1))
/third_party/typescript/tests/cases/conformance/types/typeRelationships/typeInference/
DunionAndIntersectionInference1.ts70 declare function pigify<T>(y: T & Bear): T & Pig; function
73 pigify(mbp).oinks; // OK, mbp is treated as Pig
74 pigify(mbp).walks; // Ok, mbp is treated as Man