blob: 9ffd8ea5f2a7b5f1cdfa064bcb7aa90147979f32 [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() {}