mirror of
https://github.com/dart-lang/sdk
synced 2024-09-23 12:08:53 +00:00
- Fix use of String operator + in core libraries.
Previously reviewed as part of https://chromiumcodereview.appspot.com/9690003 Review URL: https://chromiumcodereview.appspot.com//9730009 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5656 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
parent
7c43fbb9a3
commit
d402068134
|
@ -11,7 +11,7 @@
|
|||
*
|
||||
* Future<int> future = getFutureFromSomewhere();
|
||||
* future.then((value) {
|
||||
* print("I received the number " + value);
|
||||
* print("I received the number $value");
|
||||
* });
|
||||
*/
|
||||
interface Future<T> default FutureImpl<T> {
|
||||
|
|
|
@ -12,7 +12,7 @@ class AssertionError {
|
|||
static _throwNew(int assertionStart, int assertionEnd)
|
||||
native "AssertionError_throwNew";
|
||||
String toString() {
|
||||
return "'$url': Failed assertion: line $line pos $column: " +
|
||||
return "'$url': Failed assertion: line $line pos $column: "
|
||||
"'$failedAssertion' is not true.";
|
||||
}
|
||||
final String failedAssertion;
|
||||
|
@ -74,7 +74,7 @@ class StaticResolutionException implements Exception {
|
|||
"StaticResolutionException can only be allocated by the VM");
|
||||
}
|
||||
|
||||
String toString() => "Unresolved static method: url '$url' line $line " +
|
||||
String toString() => "Unresolved static method: url '$url' line $line "
|
||||
"pos $column\n$failedResolutionLine\n";
|
||||
|
||||
static _throwNew(int token_pos) native "StaticResolutionException_throwNew";
|
||||
|
|
Loading…
Reference in a new issue