Skip to content

Commit 899dbe4

Browse files
committed
Forward type arguments in one-shot interceptors.
The status change is unrelated. [email protected] Change-Id: Ic611ec7e9fa6b8e5dae9de7fc106fd839dd35bb6 Reviewed-on: https://dart-review.googlesource.com/50322 Reviewed-by: Stephen Adams <[email protected]> Reviewed-by: Sigmund Cherem <[email protected]>
1 parent 1fd3011 commit 899dbe4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

pkg/compiler/lib/src/js_emitter/interceptor_stub_generator.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,9 @@ class InterceptorStubGenerator {
392392
for (int i = 0; i < selector.argumentCount; i++) {
393393
parameterNames.add('a$i');
394394
}
395+
for (int i = 1; i <= selector.typeArgumentCount; i++) {
396+
parameterNames.add('\$T$i');
397+
}
395398
}
396399

397400
jsAst.Name invocationName = _namer.invocationName(selector);

tests/language_2/language_2_dart2js.status

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,6 +1115,7 @@ compile_time_constant_static5_test/23: CompileTimeError
11151115
conditional_rewrite_test: RuntimeError
11161116
config_import_corelib_test: CompileTimeError
11171117
config_import_test: RuntimeError
1118+
const_cast3_test: Crash # type 'TypeVariableType' is not a subtype of type 'InterfaceType' of 'base' where
11181119
const_dynamic_type_literal_test/02: MissingCompileTimeError
11191120
const_evaluation_test/01: RuntimeError
11201121
const_instance_field_test/01: MissingCompileTimeError

0 commit comments

Comments
 (0)