Files
sdk/pkg/compiler/tool/kernel_visitor/test/test_classes.dart
T
Ahmed Ashour 85700570f6 Fix typos
Fixes #49241

TEST=ci

Change-Id: I6117bf816fc8c4613cce66927f952fef75632725
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/248120
Reviewed-by: Alexander Thomas <athom@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
Reviewed-by: Nicholas Shahan <nshahan@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2022-06-15 11:08:28 +00:00

64 lines
924 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.
// @dart = 2.10
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();
}