blob: 4b9bcc11f524ff1311ca6fa268a41a8192c5cb0e [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 Type aliases are restricted to function types.
* @description Checks that it is impossible to introduce alias for an abstract class type.
* @author iefremov
* @reviewer rodionov
* @compile-error
*/
import "../../../Utils/expect.dart";
abstract class A {}
typedef A B;
main() {
try {
Expect.isFalse(null is B);
} catch(x) {}
}