blob: ece92665e1006d3bfb6edbd8f535d7acac83c51e [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.
// @dart = 2.9
/// @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>();
}