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

Issue 771673002: Add a test to test that substitutions are emitted for classes that are only used as type arguments. (Closed)

Created:
6 years ago by karlklose
Modified:
6 years ago
Reviewers:
floitsch
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add a test to test that substitutions are emitted for classes that are only used as type arguments. R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=42059

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -0 lines) Patch
A tests/language/type_argument_substitution_test.dart View 1 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
karlklose
6 years ago (2014-12-01 14:45:27 UTC) #1
floitsch
LGTM.
6 years ago (2014-12-01 15:57:30 UTC) #2
floitsch
https://codereview.chromium.org/771673002/diff/1/tests/language/type_argument_substitution_test.dart File tests/language/type_argument_substitution_test.dart (right): https://codereview.chromium.org/771673002/diff/1/tests/language/type_argument_substitution_test.dart#newcode20 tests/language/type_argument_substitution_test.dart:20: ? new X<B>() : 42; Make the right-hand side ...
6 years ago (2014-12-01 16:01:05 UTC) #3
karlklose
Committed patchset #2 (id:20001) manually as 42059 (presubmit successful).
6 years ago (2014-12-02 09:01:16 UTC) #4
karlklose
6 years ago (2014-12-02 09:01:33 UTC) #5
Message was sent while issue was closed.
https://codereview.chromium.org/771673002/diff/1/tests/language/type_argument...
File tests/language/type_argument_substitution_test.dart (right):

https://codereview.chromium.org/771673002/diff/1/tests/language/type_argument...
tests/language/type_argument_substitution_test.dart:20: ? new X<B>() : 42;
On 2014/12/01 16:01:05, floitsch wrote:
> Make the right-hand side something that could satisfy the is-check.
> Otherwise our type-propagator could constant fold the is-check away.

Done.

Powered by Google App Engine
This is Rietveld 408576698