Files
sdk/tests/compiler/dart2js_extra/expression_loop_call_test.dart
T
Johnni Winther b5a4844f35 Add regression tests for [ClosureCallSiteTypeInformation] in loops.
Change-Id: I2c73bfa8ee59bfbc39abb618bd17fe09db28814b
Reviewed-on: https://dart-review.googlesource.com/21740
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Harry Terkelsen <het@google.com>
2017-11-20 10:45:37 +00:00

21 lines
491 B
Dart

// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/// Regression test for [ClosureCallSiteTypeInformation] in loops.
class Class<T> {
method() {
for (var a in []) {
(T)(); //# 01: ok
(Object)(); //# 02: ok
(this)(); //# 03: ok
(1)(); //# 04: ok
}
}
}
main() {
new Class().method();
}