blob: 0fcd5274fe2d8ea05ba88f6828d95e1fe385dd6e [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 If F is not a function type, the static type of i is Dynamic.
* Otherwise the static type of i is the declared return type of F.
* @description Checks that the static type of a method invocation is the declared return type of F.
* @static-clean
* @author msyabro
* @reviewer rodionov
*/
class C {
static int f1() {}
static bool f2() {}
static String f3() {}
static C f4() {}
}
main() {
int resultInt = C.f1();
bool resultBool = C.f2();
String resultString = C.f3();
C resultC = C.f4();
}