blob: fb6dffe1b60cc73efd0946594826a9889dfa9ee7 [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 It is a compile-time error if M is not the name of the
* immediately enclosing class.
* @description Checks that it's a compile-time error when M is the name of a
* function type alias available in the same scope.
* @author rodionov
*/
typedef foo();
class C {
factory foo() => throw "Should not reach here";
// ^^^
// [analyzer] unspecified
// [cfe] unspecified
}
main() {
new C();
// ^
// [cfe] unspecified
}