d74965e319
Change-Id: I6872ccd948f679e1e0b04b9f59bea833df11d5a2 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/277141 Reviewed-by: Chloe Stefantsova <cstefantsova@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
38 lines
675 B
Dart
38 lines
675 B
Dart
// Copyright (c) 2022, 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.
|
|
|
|
inline class Class1 {
|
|
final int field;
|
|
|
|
Class1(this.field);
|
|
}
|
|
|
|
inline class Class2 {
|
|
final int field;
|
|
|
|
Class2(int field) : this.field = field;
|
|
}
|
|
|
|
inline class Class3 {
|
|
final int field;
|
|
}
|
|
|
|
inline class Class4 {
|
|
final int field;
|
|
|
|
Class4(this.field, this.nonexisting);
|
|
}
|
|
|
|
inline class Class5 {
|
|
final int field;
|
|
|
|
Class5(this.field) : this.field = 42;
|
|
}
|
|
|
|
inline class Class6 {
|
|
final int field;
|
|
|
|
Class6(this.field) : this.nonexisting = 42;
|
|
}
|