c9e29fa85f
This propagates information about reported error to the caller of a shared type analysis. This is used to properly turn errors into invalid expressions/patterns, as is normally done in the CFE in face of errors. Change-Id: Ibb8adedccb8314fabfe18ecaa3559e32ad7267ca Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/286145 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Chloe Stefantsova <cstefantsova@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
10 lines
296 B
Dart
10 lines
296 B
Dart
// Copyright (c) 2023, 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.
|
|
|
|
method() {
|
|
var ([double v1] && [num v2]) = [42];
|
|
print(v1);
|
|
print(v2);
|
|
}
|