CHANGELOG entry for noSuchMethod change

Change-Id: Idf8ea6252aba97b4a29a3d0acaa530e8c0cb59eb
Reviewed-on: https://dart-review.googlesource.com/55843
Reviewed-by: Jenny Messerly <jmesserly@google.com>
This commit is contained in:
Leaf Petersen 2018-05-18 00:16:46 +00:00
parent d49af06ce0
commit a5d4195b0b

View file

@ -4,6 +4,31 @@
### Language
* Invocations of noSuchMethod receive default values for optional args.
* The following program used to print "No arguments passed", and now prints
"First argument is 3".
```dart
abstract class B {
void m([int x = 3]);
}
class A implements B {
noSuchMethod(Invocation i) {
if (i.positionalArguments.length == 0) {
print("No arguments passed");
} else {
print("First argument is ${i.positionalArguments[0]}");
}
}
}
void main() {
A().m();
}
```
#### Strong Mode
### Core library changes