| Index: test/codegen/expect/language/is_operator_clash_test.js
|
| diff --git a/test/codegen/expect/language/is_operator_clash_test.js b/test/codegen/expect/language/is_operator_clash_test.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6f1784866e25e8ff23d6dc0364b804d42c884e76
|
| --- /dev/null
|
| +++ b/test/codegen/expect/language/is_operator_clash_test.js
|
| @@ -0,0 +1,54 @@
|
| +dart_library.library('language/is_operator_clash_test', null, /* Imports */[
|
| + 'dart_sdk',
|
| + 'expect'
|
| +], function load__is_operator_clash_test(exports, dart_sdk, expect) {
|
| + 'use strict';
|
| + const core = dart_sdk.core;
|
| + const _interceptors = dart_sdk._interceptors;
|
| + const dart = dart_sdk.dart;
|
| + const dartx = dart_sdk.dartx;
|
| + const expect$ = expect.expect;
|
| + const is_operator_clash_test = Object.create(null);
|
| + let JSArrayOfA = () => (JSArrayOfA = dart.constFn(_interceptors.JSArray$(is_operator_clash_test.A)))();
|
| + let intToint = () => (intToint = dart.constFn(dart.definiteFunctionType(core.int, [core.int])))();
|
| + let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
|
| + is_operator_clash_test.A = class A extends core.Object {};
|
| + is_operator_clash_test.$B = class $B extends is_operator_clash_test.A {};
|
| + is_operator_clash_test.C = class C extends core.Object {
|
| + new() {
|
| + this.isB = false;
|
| + this.$isB = false;
|
| + this.is$B = false;
|
| + this.is$$B = false;
|
| + this.$is$B = false;
|
| + this.isA = false;
|
| + this.$isA = false;
|
| + this.is$A = false;
|
| + this.is$$A = false;
|
| + this.$is$A = false;
|
| + }
|
| + };
|
| + is_operator_clash_test.C[dart.implements] = () => [is_operator_clash_test.$B];
|
| + is_operator_clash_test.inscrutable = function(x) {
|
| + return x == 0 ? 0 : (dart.notNull(x) | dart.notNull(is_operator_clash_test.inscrutable((dart.notNull(x) & dart.notNull(x) - 1) >>> 0))) >>> 0;
|
| + };
|
| + dart.fn(is_operator_clash_test.inscrutable, intToint());
|
| + is_operator_clash_test.main = function() {
|
| + let things = JSArrayOfA().of([new is_operator_clash_test.A(), new is_operator_clash_test.$B(), new is_operator_clash_test.C()]);
|
| + let a = things[dartx.get](is_operator_clash_test.inscrutable(0));
|
| + expect$.Expect.isTrue(is_operator_clash_test.A.is(a));
|
| + expect$.Expect.isFalse(is_operator_clash_test.$B.is(a));
|
| + expect$.Expect.isFalse(is_operator_clash_test.C.is(a));
|
| + let b = things[dartx.get](is_operator_clash_test.inscrutable(1));
|
| + expect$.Expect.isTrue(is_operator_clash_test.A.is(b));
|
| + expect$.Expect.isTrue(is_operator_clash_test.$B.is(b));
|
| + expect$.Expect.isFalse(is_operator_clash_test.C.is(b));
|
| + let c = things[dartx.get](is_operator_clash_test.inscrutable(2));
|
| + expect$.Expect.isTrue(is_operator_clash_test.A.is(c));
|
| + expect$.Expect.isTrue(is_operator_clash_test.$B.is(c));
|
| + expect$.Expect.isTrue(is_operator_clash_test.C.is(c));
|
| + };
|
| + dart.fn(is_operator_clash_test.main, VoidTodynamic());
|
| + // Exports:
|
| + exports.is_operator_clash_test = is_operator_clash_test;
|
| +});
|
|
|