5dca2f3df6
Tests the following: - `factory() => C();` is a factory constructor whose name is the name of the enclosing class, and not a method. - `factory` named and unnamed shorter syntax - `new` named and unnamed shorter syntax I've also updated the empty body test with an extra case and changed the comment of another test to remove the mention of in-body declaring constructors. Bug: https://github.com/dart-lang/sdk/issues/61687 Change-Id: I8416f413e44a8503168ed3fdf2262523ee1deabf Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/460882 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.