blob: b121613eff415fb13781cbe89edd3a861d568b55 [file] [log] [blame]
// Copyright (c) 2015, 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 Evaluation of a property extraction i of the form super.m
/// proceeds as follows:
/// ...
/// Otherwise, i is a getter invocation. Let f be the result of looking up
/// getter m in Sdynamic with respect to L. The body of f is executed with this
/// bound to the current value of this. The value of i is the result returned
/// by the call to the getter function.
/// @description Check that the value of i is the result returned by the
/// call to the getter function. Superclass is defined in a library
/// @author sgrekhov@unipro.ru
import '../../../../Utils/expect.dart';
import 'getter_invocation_lib.dart';
class C extends A {
int get g => 20;
void test() {
var i = super.g;
Expect.equals(10, i);
}
}
main() {
C c = new C();
c.test();
}