c0961ff71b
Tests the following: - A compile-time error occurs if a class, mixin class, enum, or extension type has a constant primary constructor which has a body part that has a body. - A compile-time error occurs if a mixin class declaration has a primary constructor which is not trivial, that is, it declares one or more parameters, or it has a body part that has an initializer list or a body. Spec changes: https://github.com/dart-lang/language/commit/e2cbe29ca23431b9d76faba4b5ead520709689cd https://github.com/dart-lang/language/commit/9d00e024647fea00993be9c111f52528f8510206 Bug: https://github.com/dart-lang/sdk/issues/61687 Change-Id: If19a96cc275d502b2bdaf3924c699b5a742a1557 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/492661 Reviewed-by: Erik Ernst <eernst@google.com> Commit-Queue: Kallen Tu <kallentu@google.com>
This directory contains tests of the language and core library implementations. For more information, see https://github.com/dart-lang/sdk/tree/main/docs/Testing.md.