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

Issue 1939053002: Add test on dart2js static analysis of method type parameters. (Closed)

Created:
4 years, 7 months ago by eernst
Modified:
4 years, 7 months ago
CC:
reviews_dartlang.org, floitsch
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add unit test on dart2js static analysis of method type parameters. The new test is specifically for `dart2js --generic-method-syntax ..`, executed programmatically using 'memory_compiler.dart'. It verifies that each method type variable is treated as if it had been an alias for `dynamic` (so the static analysis allows almost all usages of these type variables, silently). Note that this behavior is unlikely to be available with any other tools, and even `dart2js` will behave differently when generic methods are implemented fully. Hence, the new test will only be useful as-is during a transitional period. R=johnniwinther@google.com Committed: https://github.com/dart-lang/sdk/commit/d55adbed81b02a4f59acffdfb4f8dad1b4bc2204

Patch Set 1 #

Total comments: 4

Patch Set 2 : Changed new test to "unittest" (running the compiler programmatically) #

Total comments: 2

Patch Set 3 : Review response #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -3 lines) Patch
A tests/compiler/dart2js/generic_method_type_usage_test.dart View 1 2 1 chunk +115 lines, -0 lines 0 comments Download
M tests/language/generic_functions_test.dart View 1 chunk +0 lines, -3 lines 0 comments Download
M tests/language/language.status View 2 chunks +2 lines, -0 lines 0 comments Download
M tests/language/language_analyzer2.status View 1 chunk +1 line, -0 lines 0 comments Download
M tests/language/language_dart2js.status View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
eernst
This CL adds a test which is only meaningful with `dart2js --generic-method-syntax ..`. It checks ...
4 years, 7 months ago (2016-05-02 14:31:39 UTC) #2
eernst
On 2016/05/02 14:31:39, eernst wrote: > This CL adds a test which is only meaningful ...
4 years, 7 months ago (2016-05-02 14:35:00 UTC) #3
Johnni Winther
https://codereview.chromium.org/1939053002/diff/1/tests/language/generic_method_type_usage_test.dart File tests/language/generic_method_type_usage_test.dart (right): https://codereview.chromium.org/1939053002/diff/1/tests/language/generic_method_type_usage_test.dart#newcode1 tests/language/generic_method_type_usage_test.dart:1: // Copyright (c) 2016, the Dart project authors. Please ...
4 years, 7 months ago (2016-05-03 09:02:46 UTC) #4
floitsch
https://codereview.chromium.org/1939053002/diff/1/tests/language/generic_method_type_usage_test.dart File tests/language/generic_method_type_usage_test.dart (right): https://codereview.chromium.org/1939053002/diff/1/tests/language/generic_method_type_usage_test.dart#newcode1 tests/language/generic_method_type_usage_test.dart:1: // Copyright (c) 2016, the Dart project authors. Please ...
4 years, 7 months ago (2016-05-03 10:52:46 UTC) #6
Johnni Winther
https://codereview.chromium.org/1939053002/diff/1/tests/language/generic_method_type_usage_test.dart File tests/language/generic_method_type_usage_test.dart (right): https://codereview.chromium.org/1939053002/diff/1/tests/language/generic_method_type_usage_test.dart#newcode1 tests/language/generic_method_type_usage_test.dart:1: // Copyright (c) 2016, the Dart project authors. Please ...
4 years, 7 months ago (2016-05-03 10:56:37 UTC) #7
eernst
tests/language/generic_method_type_usage_test.dart moved to tests/compiler/dart2js and changed to use 'memory_compiler.dart'. Test runs have failures, including fundamental ...
4 years, 7 months ago (2016-05-04 11:07:39 UTC) #8
Johnni Winther
lgtm https://codereview.chromium.org/1939053002/diff/20001/tests/compiler/dart2js/generic_method_type_usage_test.dart File tests/compiler/dart2js/generic_method_type_usage_test.dart (right): https://codereview.chromium.org/1939053002/diff/20001/tests/compiler/dart2js/generic_method_type_usage_test.dart#newcode23 tests/compiler/dart2js/generic_method_type_usage_test.dart:23: import "package:expect/expect.dart"; You could remove this import and ...
4 years, 7 months ago (2016-05-04 11:12:58 UTC) #9
eernst
Review response. Tests run successfully locally (corelib, language, several others), except `tools/test.py --checked --mode=release dart2js`, ...
4 years, 7 months ago (2016-05-04 12:15:11 UTC) #10
Johnni Winther
On 2016/05/04 12:15:11, eernst wrote: > Review response. > > Tests run successfully locally (corelib, ...
4 years, 7 months ago (2016-05-04 12:53:50 UTC) #11
eernst
Discussed the issue IRL. Building `dart` 1.17.0-edge.0f0b38dab3320ab4b6cf27ac6ffe18d55c2f295e (landed Friday afternoon) and retrying `tools/test.py --checked --report ...
4 years, 7 months ago (2016-05-04 13:00:48 UTC) #12
eernst
4 years, 7 months ago (2016-05-04 13:21:28 UTC) #15
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
d55adbed81b02a4f59acffdfb4f8dad1b4bc2204 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698