Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(556)

Unified Diff: runtime/observatory/tests/service/evaluate_activation_in_method_class_other.dart

Issue 1854243002: VM: Evaluate-in-frame should happen in the scope of the method class, not the receiver class. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/observatory/tests/service/evaluate_activation_in_method_class_other.dart
diff --git a/runtime/observatory/tests/service/evaluate_activation_in_method_class_other.dart b/runtime/observatory/tests/service/evaluate_activation_in_method_class_other.dart
new file mode 100644
index 0000000000000000000000000000000000000000..3c9f6e1dbe88cd98908e5007696797154af8cba7
--- /dev/null
+++ b/runtime/observatory/tests/service/evaluate_activation_in_method_class_other.dart
@@ -0,0 +1,24 @@
+// 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';
+
+class Superclass {
+ var _instVar = 'Superclass';
+ var instVar = 'Superclass';
+ method() => 'Superclass';
+ static staticMethod() => 'Superclass';
+}
+
+class Klass extends Superclass {
+ var _instVar = 'Klass';
+ var instVar = 'Klass';
+ method() => 'Klass';
+ static staticMethod() => 'Klass';
+
+ test() {
+ var _local = 'Klass';
+ debugger();
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698