Files
sdk/pkg/front_end/testcases/inline_class/inline_class_declaration.dart
T
Johnni Winther 8e07d492dd [cfe] Support generic inline class constructors
Change-Id: Ibd12b14e1e8a1811734b4773c842e72a7fcb300c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/277684
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
2022-12-29 23:17:39 +00:00

18 lines
437 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.
mixin Mixin {}
inline class Class1 {
final int it;
Class1(this.it);
}
inline class Class2 = Object with Mixin;
inline class Class3<T> {
final List<T> it;
Class3(this.it);
}
method(Class1 c1, Class3<int> c3) {}