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