blob: 36d590ebb8c40e1bb3892686693bf96fb5d6efdf [file] [edit]
// 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.
set topLevel(value) {}
class Example {
set foo(value) {}
}
main() {
print(topLevel++);
// ^^^^^^^^
// [analyzer] COMPILE_TIME_ERROR.UNDEFINED_IDENTIFIER
// [cfe] Getter not found: 'topLevel'.
Example ex = new Example();
print(ex.foo++);
// ^^^
// [analyzer] COMPILE_TIME_ERROR.UNDEFINED_GETTER
// [cfe] The getter 'foo' isn't defined for the type 'Example'.
}