Skip to content

Commit 84c7929

Browse files
lrhncommit-bot@chromium.org
authored andcommitted
Small fixes.
Fix typo in test, add @SInCE markers to new constructors. Change-Id: I31abbf41049a3d5820d82165ab16ce8357c79132 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/108722 Reviewed-by: Erik Ernst <[email protected]> Commit-Queue: Lasse R.H. Nielsen <[email protected]>
1 parent d16c0a1 commit 84c7929

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

sdk/lib/async/stream.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ abstract class Stream<T> {
118118
* The returned stream is effectively equivalent to one created by
119119
* `(() async* { yield value; } ())` or `Future<T>.value(value).asStream()`.
120120
*/
121+
@Since("2.5")
121122
factory Stream.value(T value) =>
122123
(_AsyncStreamController<T>(null, null, null, null)
123124
.._add(value)
@@ -148,6 +149,7 @@ abstract class Stream<T> {
148149
* `(() async* { throw error; } ())`, except that you can control the
149150
* stack trace as well.
150151
*/
152+
@Since("2.5")
151153
factory Stream.error(Object error, [StackTrace stackTrace]) =>
152154
(_AsyncStreamController<T>(null, null, null, null)
153155
.._addError(error, stackTrace)

tests/corelib_2/type_tostring_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import "package:expect/expect.dart";
1414

1515
void expectType(Type type, Pattern text) {
1616
var typeString = "$type";
17-
if (typeString.contains("minimized:")) {
17+
if (typeString.contains("minified:")) {
1818
return; // No checks for minimized types.
1919
}
2020
if (text is String) {

0 commit comments

Comments
 (0)