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

Unified Diff: test/codegen_expected/language/constant_type_literal_test_01_multi.js

Issue 2209473002: Fix wrt analyzer tip (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 4 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_expected/language/constant_type_literal_test_01_multi.js
diff --git a/test/codegen_expected/language/constant_type_literal_test_01_multi.js b/test/codegen_expected/language/constant_type_literal_test_01_multi.js
index 0c6a6854ae66ffc3bb4d224622bd6d0fb857cb23..90f05aabeac6fcda8646e48428ac42a20e769db3 100644
--- a/test/codegen_expected/language/constant_type_literal_test_01_multi.js
+++ b/test/codegen_expected/language/constant_type_literal_test_01_multi.js
@@ -1 +1,30 @@
-//FAILED TO COMPILE
+dart_library.library('language/constant_type_literal_test_01_multi', null, /* Imports */[
+ 'dart_sdk'
+], function load__constant_type_literal_test_01_multi(exports, dart_sdk) {
+ 'use strict';
+ const core = dart_sdk.core;
+ const dart = dart_sdk.dart;
+ const dartx = dart_sdk.dartx;
+ const constant_type_literal_test_01_multi = Object.create(null);
+ let C = () => (C = dart.constFn(constant_type_literal_test_01_multi.C$()))();
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ constant_type_literal_test_01_multi.C$ = dart.generic(T => {
+ class C extends core.Object {
+ m() {
+ let lst = dart.constList([dart.wrapType(T)], core.Type);
+ }
+ }
+ dart.addTypeTests(C);
+ dart.setSignature(C, {
+ methods: () => ({m: dart.definiteFunctionType(dart.void, [])})
+ });
+ return C;
+ });
+ constant_type_literal_test_01_multi.C = C();
+ constant_type_literal_test_01_multi.main = function() {
+ new constant_type_literal_test_01_multi.C().m();
+ };
+ dart.fn(constant_type_literal_test_01_multi.main, VoidTodynamic());
+ // Exports:
+ exports.constant_type_literal_test_01_multi = constant_type_literal_test_01_multi;
+});
« no previous file with comments | « test/codegen_expected/language/const_types_test_15_multi.js ('k') | test/codegen_expected/language/cyclic_import_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698