6fdaed9eba
Previously the tear-offs created for the origin constructors were not replaced with the tear-offs created for the patch constructors - as is normally done for the constructors themselves. This lead the tear-offs to refer to unlowered code, breaking dart2js. Closes https://github.com/dart-lang/sdk/issues/48776 Change-Id: I1cb09c07bb2ac7fffb81acd31547ee96e7ecdc64 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/242284 Reviewed-by: Chloe Stefantsova <cstefantsova@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
11 lines
357 B
Dart
11 lines
357 B
Dart
// Copyright (c) 2022, 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 https://github.com/dart-lang/sdk/issues/48776
|
|
|
|
main() {
|
|
/// BigInt.from is a patched constructor.
|
|
BigInt.from;
|
|
}
|