| Index: test/codegen/expect/language/param_test.js
|
| diff --git a/test/codegen/expect/language/param_test.js b/test/codegen/expect/language/param_test.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e690de85524789f2601ecb261804958a6f8b3ab9
|
| --- /dev/null
|
| +++ b/test/codegen/expect/language/param_test.js
|
| @@ -0,0 +1,38 @@
|
| +dart_library.library('language/param_test', null, /* Imports */[
|
| + 'dart_sdk',
|
| + 'expect'
|
| +], function load__param_test(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 param_test = Object.create(null);
|
| + let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
|
| + param_test.Helper = class Helper extends core.Object {
|
| + static foo(i) {
|
| + let b = null;
|
| + b = dart.notNull(i) + 1;
|
| + return core.int._check(b);
|
| + }
|
| + };
|
| + dart.setSignature(param_test.Helper, {
|
| + statics: () => ({foo: dart.definiteFunctionType(core.int, [core.int])}),
|
| + names: ['foo']
|
| + });
|
| + param_test.ParamTest = class ParamTest extends core.Object {
|
| + static testMain() {
|
| + expect$.Expect.equals(2, param_test.Helper.foo(1));
|
| + }
|
| + };
|
| + dart.setSignature(param_test.ParamTest, {
|
| + statics: () => ({testMain: dart.definiteFunctionType(dart.dynamic, [])}),
|
| + names: ['testMain']
|
| + });
|
| + param_test.main = function() {
|
| + param_test.ParamTest.testMain();
|
| + };
|
| + dart.fn(param_test.main, VoidTodynamic());
|
| + // Exports:
|
| + exports.param_test = param_test;
|
| +});
|
|
|