blob: c89d738b2fa2e34696f410ed1d25e647665f4ac3 [file] [log] [blame]
// Copyright (c) 2017, 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.
/*@testedFeatures=inference*/
library test;
// In the code below, there is a circularity between A.b and x.
class A {
var b = /*@ returnType=() ->* invalid-type */ () => x;
var c = /*@ returnType=() ->* invalid-type */ () => x;
}
var a = new A();
var x = /*@ returnType=invalid-type */ () => a. /*@target=A.b*/ b;
var y = /*@ returnType=() ->* () ->* invalid-type */ () => a. /*@target=A.c*/ c;
main() {}