b5a4844f35
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>
21 lines
491 B
Dart
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();
|
|
}
|