blob: 4922d49302082b3435639c23e514e6468a6effe8 [file] [log] [blame]
// Copyright (c) 2022, 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.
augment void topLevelMethod() {
augment super();
}
augment void topLevelMethodError() {
augment int local; // Error
augment; // Error
}
augment List<int> get topLevelProperty {
return [... augment super, augment super[0]];
}
augment void set topLevelProperty(List<int> value) {
augment super[0] = value[1];
augment super = value;
}
void injectedTopLevelMethod() {
augment super(); // Error
augment super; // Error
augment int local; // Error
augment; // Error
}
augment class Class {
augment void instanceMethod() {
augment super();
}
augment void instanceMethodErrors() {
augment int local; // Error
augment; // Error
}
augment int get instanceProperty {
augment super++;
--augment super;
return -augment super;
}
augment void set instanceProperty(int value) {
augment super = value;
}
void injectedInstanceMethod() {
augment super(); // Error
augment super; // Error
augment int local; // Error
augment; // Error
}
}