Remove redundant language block

Closes https://github.com/dart-lang/sdk/pull/46593
https://github.com/dart-lang/sdk/pull/46593

GitOrigin-RevId: a7d5667164a9da6c730b40311a47d73fce160f8a
Change-Id: I79b87e9a53accf5879a7650754874269d4cfa673
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/206602
Reviewed-by: Kevin Moore <kevmoo@google.com>
Commit-Queue: Kevin Moore <kevmoo@google.com>
This commit is contained in:
mnordine
2021-07-13 01:48:45 +00:00
committed by commit-bot@chromium.org
parent 8f11985c47
commit 408e4c2a1f
-45
View File
@@ -246,51 +246,6 @@ Updated the Linter to `1.7.0`, which includes changes that
[#46545]: https://github.com/dart-lang/sdk/issues/46545
[1]: https://dart.dev/faq#q-what-browsers-do-you-support-as-javascript-compilation-targets
### Language
* Add an unsigned shift right operator `>>>`. Pad with zeroes, ignoring the
sign bit. On the web platform `int.>>>` shifts the low 32 bits interpreted
as an unsigned integer, so `a >>> b` gives the same result as
`a.toUnsigned(32) >>> b` on the VM.
* Prior to Dart 2.14, metadata (annotations) were not permitted to be
specified with generic type arguments. This restriction is lifted in Dart
Dart 2.14.
```dart
class C<T> {
const C();
}
@C(); // Previously permitted.
@C<int>(); // Previously an error, now permitted.
```
* Prior to Dart 2.14, generic function types were not permitted as arguments
to generic classes or functions, nor to be used as generic bounds. This
restriction is lifted in Dart 2.14.
```dart
T wrapWithLogging<T>(T f) {
if (f is void Function<T>(T x)) {
return <S>(S x) {
print("Call: f<$S>($x)");
var r = f<S>(x);
print("Return: $x");
return r;
} as T;
} // More cases here
return f;
}
void foo<T>(T x) {
print("Foo!");
}
void main() {
// Previously an error, now permitted.
var f = wrapWithLogging<void Function<T>(T)>(foo);
f<int>(3);
}
```
## 2.13.4 - 2021-06-28
This is a patch release that fixes: