Files
sdk/tests
Kallen Tu 5dca2f3df6 [tests] Primary constructors - Tests new shorter syntax and updating old tests.
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>
2025-11-14 10:35:32 -08:00
..
2022-12-19 12:56:47 +00:00

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.