blob: 947f1e53955420c04894483ec2d16cc38bc3fe68 [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 a built-in type (int).
* @author iefremov
* @reviewer rodionov
* @compile-error
*/
import "../../../Utils/expect.dart";
typedef int integer;
main() {
try {
Expect.isFalse(null is integer);
} catch(x) {}
}