aa246f6588
Reduces the noise when disallowing implicit dynamic. Change-Id: I98b03cb675ecd4b9e7f4135efa274fb57eb87832 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/104164 Reviewed-by: Nicholas Shahan <nshahan@google.com> Commit-Queue: Nate Bosch <nbosch@google.com>
28 lines
478 B
Dart
28 lines
478 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.
|
|
|
|
void main() {
|
|
/*bl*/
|
|
Foo foo = Foo();
|
|
foo.foo();
|
|
/*nbb:0:1*/
|
|
}
|
|
|
|
class Foo {
|
|
foo() {
|
|
return /*bc:1*/ bar() + /*bc:2*/ baz /*nbc*/ ();
|
|
/*nbb:0:1*/
|
|
}
|
|
|
|
bar() {
|
|
return 42;
|
|
/*nbb:0:1*/
|
|
}
|
|
|
|
baz() {
|
|
return 42;
|
|
/*nbb:0:1*/
|
|
}
|
|
}
|