@@ -261,4 +261,22 @@ function positiveIntersectionTest(x: { a: string } & { b: string }) {
261261>x : Symbol(x, Decl(inKeywordTypeguard.ts, 98, 34))
262262 }
263263}
264+ function negativeIntersectionTest() {
265+ >negativeIntersectionTest : Symbol(negativeIntersectionTest, Decl(inKeywordTypeguard.ts, 104, 1))
266+
267+ if ("ontouchstart" in window) {
268+ >window : Symbol(window, Decl(lib.dom.d.ts, --, --))
269+
270+ window.ontouchstart
271+ >window.ontouchstart : Symbol(ontouchstart, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --))
272+ >window : Symbol(window, Decl(lib.dom.d.ts, --, --))
273+ >ontouchstart : Symbol(ontouchstart, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --))
274+
275+ } else {
276+ window.ontouchstart
277+ >window.ontouchstart : Symbol(ontouchstart, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --))
278+ >window : Symbol(window, Decl(lib.dom.d.ts, --, --))
279+ >ontouchstart : Symbol(ontouchstart, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --))
280+ }
281+ }
264282
0 commit comments