blob: 6684f0057fe328e1c1915ab4de6f8329c7b56a9d [file] [log] [blame]
/*
* Copyright (c) 2011, 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.
*/
/**
* @assertion final Future done
* The done Future completes with the same values as close, except for the
* following case:
* - The synchronous methods of EventSink were called, resulting in an error.
* If there is no active future (like from an addStream call), the done future
* will complete with that error
* @description Checks that returned value is a Future.
* @author ilya
*/
import "dart:async";
import "../../../Utils/expect.dart";
main() {
Expect.isTrue(new StreamController().done is Future);
}