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

Unified Diff: test/codegen/expect/covariance.js

Issue 1988503002: Move generated files to gen/. (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Revise. Created 4 years, 7 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
« no previous file with comments | « test/codegen/expect/constructors.txt ('k') | test/codegen/expect/covariance.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/covariance.js
diff --git a/test/codegen/expect/covariance.js b/test/codegen/expect/covariance.js
deleted file mode 100644
index e26dee94850a17d1435d4a473a1ae2c603c56a4d..0000000000000000000000000000000000000000
--- a/test/codegen/expect/covariance.js
+++ /dev/null
@@ -1,51 +0,0 @@
-dart_library.library('covariance', null, /* Imports */[
- 'dart_sdk'
-], function(exports, dart_sdk) {
- 'use strict';
- const core = dart_sdk.core;
- const dart = dart_sdk.dart;
- const dartx = dart_sdk.dartx;
- const covariance = Object.create(null);
- const _t = Symbol('_t');
- covariance.Foo$ = dart.generic(T => {
- class Foo extends core.Object {
- new() {
- this[_t] = null;
- }
- add(t) {
- dart.as(t, T);
- this[_t] = t;
- }
- forEach(fn) {
- fn(this[_t]);
- }
- }
- dart.setSignature(Foo, {
- methods: () => ({
- add: [dart.dynamic, [T]],
- forEach: [dart.dynamic, [dart.functionType(dart.void, [T])]]
- })
- });
- return Foo;
- });
- covariance.Foo = covariance.Foo$();
- covariance.Bar = class Bar extends covariance.Foo$(core.int) {
- new() {
- super.new();
- }
- add(x) {
- core.print(`Bar.add got ${x}`);
- super.add(x);
- }
- };
- dart.setSignature(covariance.Bar, {
- methods: () => ({add: [dart.dynamic, [core.int]]})
- });
- covariance.main = function() {
- let foo = new covariance.Bar();
- foo.add('hi');
- };
- dart.fn(covariance.main);
- // Exports:
- exports.covariance = covariance;
-});
« no previous file with comments | « test/codegen/expect/constructors.txt ('k') | test/codegen/expect/covariance.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698