dart-sdk/pkg/vm_service/test/evaluate_activation_in_method_class_other.dart
Ben Konyi ad4d10a42c [ package:vm_service ] Migrate Observatory service tests to package:vm_service (Pt 2)
See https://github.com/dart-lang/sdk/issues/45037

TEST=pkg/vm_service/test/*

Change-Id: I0632744fdea0da63a47d64299cbd1f96f45dcb3a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/186742
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2022-02-05 00:12:29 +00:00

30 lines
766 B
Dart

// Copyright (c) 2016, 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.
import 'dart:developer';
var topLevel = "OtherLibrary";
class Superclass2 {
var _instVar = 'Superclass2';
var instVar = 'Superclass2';
method() => 'Superclass2';
static staticMethod() => 'Superclass2';
suppress_warning() => _instVar;
}
class Superclass1 extends Superclass2 {
var _instVar = 'Superclass1';
var instVar = 'Superclass1';
method() => 'Superclass1';
static staticMethod() => 'Superclass1';
test() {
var _local = 'Superclass1';
debugger();
// Suppress unused variable warning.
print(_local);
}
}