blob: 362fccf302ea8b36a6231d1305f01cf677f580aa [file] [log] [blame]
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2012, 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 test for legally self referencing function type alias.
import "package:expect/expect.dart";
typedef F(
typedef D C();
class D {
C foo() => throw "uncalled";
D bar() => throw "uncalled";
main() {
var f = (List x) {};
Expect.isTrue(f is F);
var g = (List<F> x) {};
Expect.isFalse(g is F);
var d = new D();
Expect.isTrue( is! C);
Expect.isTrue( is C);