34b5537c18
- Migrate the file being compiled to sound null safety. - Use sound null safety and the sound SDK outline to compile the .dill file used in this test. - Removed the assumption that test runs on an x64 processor. - Added a simple throw to echo the errors from running the compile. Change-Id: Iec6bda8c981c1e69603313e4d74f1eb491734b09 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/276801 Commit-Queue: Nicholas Shahan <nshahan@google.com> Reviewed-by: Srujan Gaddam <srujzs@google.com>
62 lines
907 B
Dart
62 lines
907 B
Dart
// Copyright (c) 2021, 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.
|
|
|
|
library info_visitor_test_classes;
|
|
|
|
// Test superclass value.
|
|
class A {
|
|
A();
|
|
|
|
getValue() {
|
|
return "Value";
|
|
}
|
|
}
|
|
|
|
// Test subclass calling "super".
|
|
class B extends A {
|
|
B();
|
|
|
|
testSuper() {
|
|
return super.getValue();
|
|
}
|
|
}
|
|
|
|
// Test subclass not calling "super".
|
|
class C extends B {
|
|
C();
|
|
|
|
@override
|
|
getValue() {
|
|
return "Value";
|
|
}
|
|
}
|
|
|
|
// Test class with mixins.
|
|
class Mix1 {}
|
|
|
|
class Mix2 {}
|
|
|
|
class D with Mix1, Mix2 {
|
|
D();
|
|
}
|
|
|
|
class F extends B with Mix1, Mix2 {
|
|
F();
|
|
}
|
|
|
|
// Test class with interface
|
|
class E implements A {
|
|
E();
|
|
|
|
@override
|
|
getValue() {
|
|
return "E Value";
|
|
}
|
|
}
|
|
|
|
// Test class with unoverridden superclass method
|
|
class G extends A {
|
|
G();
|
|
}
|