blob: 9fd8a49c3717a9fc8d5e8e13c917724eb71b4e90 [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>();
}