mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 21:50:11 +00:00
eaea9d58fe
This reverts commit 588fed0368
.
BUG=
Review URL: https://codereview.chromium.org/2403203002 .
22 lines
620 B
Dart
22 lines
620 B
Dart
// Copyright (c) 2013, 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.
|
|
|
|
part of dart.core;
|
|
|
|
/**
|
|
* The reserved word [:null:] denotes an object that is the sole instance of
|
|
* this class.
|
|
*
|
|
* It is a compile-time error for a class to attempt to extend or implement
|
|
* Null.
|
|
*/
|
|
class Null {
|
|
factory Null._uninstantiable() {
|
|
throw new UnsupportedError('class Null cannot be instantiated');
|
|
}
|
|
|
|
/** Returns the string `"null"`. */
|
|
String toString() => "null";
|
|
}
|