feat(compiler): Add support for the `instanceof` binary operator · angular/angular@72534e2
@@ -80,9 +80,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
8080type: Pipe,
8181args: [{ name: 'identity' }]
8282}] });
83+export class Bar {
84+}
8385export class MyApp {
8486foo = { bar: 'baz' };
8587number = 1;
88+bar = new Bar();
89+Bar = Bar;
8690static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MyApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
8791static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: MyApp, isStandalone: true, selector: "ng-component", ngImport: i0, template: `
8892 {{ 1 + 2 }}
@@ -95,6 +99,7 @@ export class MyApp {
9599 {{ void 'test' }}
96100 {{ (-1) ** 3 }}
97101 {{ 'bar' in foo }}
102+ {{ bar instanceof Bar }}
98103 <button (click)="number += 1"></button>
99104 <button (click)="number -= 1"></button>
100105 <button (click)="number *= 1"></button>
@@ -120,6 +125,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
120125 {{ void 'test' }}
121126 {{ (-1) ** 3 }}
122127 {{ 'bar' in foo }}
128+ {{ bar instanceof Bar }}
123129 <button (click)="number += 1"></button>
124130 <button (click)="number -= 1"></button>
125131 <button (click)="number *= 1"></button>
@@ -143,11 +149,15 @@ export declare class IdentityPipe {
143149 static ɵfac: i0.ɵɵFactoryDeclaration<IdentityPipe, never>;
144150static ɵpipe: i0.ɵɵPipeDeclaration<IdentityPipe, "identity", true>;
145151}
152+export declare class Bar {
153+}
146154export declare class MyApp {
147155foo: {
148156bar?: string;
149157};
150158 number: number;
159+ bar: Bar;
160+ Bar: typeof Bar;
151161static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
152162static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never, true, never>;
153163}