Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1566)

Unified Diff: test/codegen/expect/language/type_variable_conflict2_test_none_multi.js

Issue 2128353002: Check in codegen test expectations. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/codegen/expect/language/type_variable_conflict2_test_none_multi.js
diff --git a/test/codegen/expect/language/type_variable_conflict2_test_none_multi.js b/test/codegen/expect/language/type_variable_conflict2_test_none_multi.js
new file mode 100644
index 0000000000000000000000000000000000000000..b360c75a1503e02c1d16634adf13cd4342939c85
--- /dev/null
+++ b/test/codegen/expect/language/type_variable_conflict2_test_none_multi.js
@@ -0,0 +1,38 @@
+dart_library.library('language/type_variable_conflict2_test_none_multi', null, /* Imports */[
+ 'dart_sdk',
+ 'expect'
+], function load__type_variable_conflict2_test_none_multi(exports, dart_sdk, expect) {
+ 'use strict';
+ const core = dart_sdk.core;
+ const dart = dart_sdk.dart;
+ const dartx = dart_sdk.dartx;
+ const expect$ = expect.expect;
+ const type_variable_conflict2_test_none_multi = Object.create(null);
+ let C = () => (C = dart.constFn(type_variable_conflict2_test_none_multi.C$()))();
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ let const$;
+ type_variable_conflict2_test_none_multi.C$ = dart.generic(T => {
+ const C = dart.callableClass(function C(...args) {
+ const self = this;
+ function call(...args) {
+ return self.call.apply(self, args);
+ }
+ call.__proto__ = this.__proto__;
+ call.new.apply(call, args);
+ return call;
+ }, class C extends core.Object {
+ noSuchMethod(im) {
+ expect$.Expect.equals(const$ || (const$ = dart.const(core.Symbol.new('T'))), im.memberName);
+ return 42;
+ }
+ });
+ dart.addTypeTests(C);
+ return C;
+ });
+ type_variable_conflict2_test_none_multi.C = C();
+ type_variable_conflict2_test_none_multi.main = function() {
+ };
+ dart.fn(type_variable_conflict2_test_none_multi.main, VoidTodynamic());
+ // Exports:
+ exports.type_variable_conflict2_test_none_multi = type_variable_conflict2_test_none_multi;
+});

Powered by Google App Engine
This is Rietveld 408576698