mirror of
https://github.com/dart-lang/sdk
synced 2024-09-19 14:43:32 +00:00
ad4d10a42c
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>
30 lines
766 B
Dart
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);
|
|
}
|
|
}
|