8b1efb2b76
Many instance calls get turned into static calls in our AOT compiler. The typed data optimization pass accidentally tried to optimize all static calls instead of only devirtualized instance calls. Issue https://github.com/flutter/flutter/issues/35121 Change-Id: Ibe8a95ceed6abf5ff2608f076a98f55c40f43477 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107410 Commit-Queue: Martin Kustermann <kustermann@google.com> Reviewed-by: Alexander Markov <alexmarkov@google.com> Reviewed-by: Siva Annamalai <asiva@google.com>
16 lines
432 B
Dart
16 lines
432 B
Dart
// Copyright (c) 2019, 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.
|
|
|
|
// This is a regression test for
|
|
// https://github.com/flutter/flutter/issues/35121
|
|
|
|
class A {
|
|
static List<int> values = const [1, 2, 3];
|
|
static int get length => values.length;
|
|
}
|
|
|
|
main() {
|
|
print(A.length);
|
|
}
|