blob: 2d946d4b39ce63793127b730932c80222038bae8 [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 Constructs a map with the default implementation.
/// @description Checks that map can be created with key of function type.
/// @author msyabro
typedef void SomeFunction();
class A { }
main() {
Map<String, String> stringStringMap = new Map<String, String>();
Map<SomeFunction, String> funcStringMap = new Map<SomeFunction, String>();
Map<A, A> classClassMap = new Map<A, A>();
}