Files
sdk/pkg/compiler/test/inference/data/call_in_loop.dart
T
Mayank Patke 553ac951b3 [dart2js] Add indexable bits to powerset.
Change-Id: I5d4c0b4d15a05cfc30d87003785ca841c46b1a0f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/426583
Reviewed-by: Stephen Adams <sra@google.com>
2025-05-07 19:18:38 -07:00

27 lines
1.1 KiB
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.
/*member: Class.:[exact=Class|powerset={N}{O}{N}]*/
class Class<T> {
/*member: Class.method:[null|powerset={null}]*/
method() {
/*iterator: Container([exact=JSExtendableArray|powerset={I}{G}{M}], element: [empty|powerset=empty], length: 0, powerset: {I}{G}{M})*/
/*current: [exact=ArrayIterator|powerset={N}{O}{N}]*/
/*moveNext: [exact=ArrayIterator|powerset={N}{O}{N}]*/
for (var a in []) {
(T as dynamic) /*invoke: [exact=_Type|powerset={N}{O}{N}]*/ (a);
(Object as dynamic) /*invoke: [exact=_Type|powerset={N}{O}{N}]*/ ();
(this as dynamic) /*invoke: [exact=Class|powerset={N}{O}{N}]*/ ();
(1 as dynamic) /*invoke: [exact=JSUInt31|powerset={I}{O}{N}]*/ ();
}
}
}
/*member: main:[null|powerset={null}]*/
main() {
Class(). /*invoke: [exact=Class|powerset={N}{O}{N}]*/ method();
}