From 7559f96db0b484b03de5b8696f948a52cce3ab0b Mon Sep 17 00:00:00 2001 From: "Sergey G. Grekhov" Date: Mon, 25 Nov 2024 13:07:30 +0200 Subject: [PATCH] #2559. Fix wrong assertion text in augmenting_constructors_A18_*.dart (#2993) --- .../augmenting_constructors_A18_t01.dart | 3 ++- .../augmenting_constructors_A18_t01_lib.dart | 3 ++- .../augmenting_constructors_A18_t02.dart | 3 ++- .../augmenting_constructors_A18_t02_lib.dart | 3 ++- .../augmenting_constructors_A18_t03.dart | 3 ++- .../augmenting_constructors_A18_t03_lib.dart | 3 ++- .../augmenting_constructors_A18_t04.dart | 3 ++- .../augmenting_constructors_A18_t04_lib.dart | 3 ++- .../augmenting_constructors_A18_t05.dart | 3 ++- .../augmenting_constructors_A18_t05_lib.dart | 3 ++- .../augmenting_constructors_A18_t06.dart | 3 ++- .../augmenting_constructors_A18_t06_lib.dart | 3 ++- .../augmenting_constructors_A18_t07.dart | 3 ++- .../augmenting_constructors_A18_t07_lib.dart | 3 ++- 14 files changed, 28 insertions(+), 14 deletions(-) diff --git a/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t01.dart b/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t01.dart index 0fe584cd57..d57991a74d 100644 --- a/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t01.dart +++ b/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t01.dart @@ -5,7 +5,8 @@ /// @assertion Redirecting generative constructors /// ... /// It is a compile-time error if: -/// - The augmented factory constructor has a body, or it is redirecting. +/// - The augmented constructor has an initializer list or a body, or it has a +/// redirection. /// /// @description Checks that it is a compile-time error to declare an augmenting /// redirecting generative constructor if the augmented constructor has diff --git a/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t01_lib.dart b/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t01_lib.dart index c750081639..70c839ef7d 100644 --- a/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t01_lib.dart +++ b/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t01_lib.dart @@ -5,7 +5,8 @@ /// @assertion Redirecting generative constructors /// ... /// It is a compile-time error if: -/// - The augmented factory constructor has a body, or it is redirecting. +/// - The augmented constructor has an initializer list or a body, or it has a +/// redirection. /// /// @description Checks that it is a compile-time error to declare an augmenting /// redirecting generative constructor if the augmented constructor has diff --git a/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t02.dart b/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t02.dart index d67fe248da..ebc984afcf 100644 --- a/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t02.dart +++ b/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t02.dart @@ -5,7 +5,8 @@ /// @assertion Redirecting generative constructors /// ... /// It is a compile-time error if: -/// - The augmented factory constructor has a body, or it is redirecting. +/// - The augmented constructor has an initializer list or a body, or it has a +/// redirection. /// /// @description Checks that it is a compile-time error to declare an augmenting /// redirecting generative constructor if the augmented constructor has a diff --git a/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t02_lib.dart b/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t02_lib.dart index 9703ab7a24..abe1488504 100644 --- a/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t02_lib.dart +++ b/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t02_lib.dart @@ -5,7 +5,8 @@ /// @assertion Redirecting generative constructors /// ... /// It is a compile-time error if: -/// - The augmented factory constructor has a body, or it is redirecting. +/// - The augmented constructor has an initializer list or a body, or it has a +/// redirection. /// /// @description Checks that it is a compile-time error to declare an augmenting /// redirecting generative constructor if the augmented constructor has a diff --git a/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t03.dart b/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t03.dart index dc18b2e656..22eeb45227 100644 --- a/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t03.dart +++ b/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t03.dart @@ -5,7 +5,8 @@ /// @assertion Redirecting generative constructors /// ... /// It is a compile-time error if: -/// - The augmented factory constructor has a body, or it is redirecting. +/// - The augmented constructor has an initializer list or a body, or it has a +/// redirection. /// /// @description Checks that it is a compile-time error to declare an augmenting /// redirecting generative constructor if the augmented constructor has a super diff --git a/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t03_lib.dart b/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t03_lib.dart index 68ef5ee12e..11ede4a7ef 100644 --- a/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t03_lib.dart +++ b/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t03_lib.dart @@ -5,7 +5,8 @@ /// @assertion Redirecting generative constructors /// ... /// It is a compile-time error if: -/// - The augmented factory constructor has a body, or it is redirecting. +/// - The augmented constructor has an initializer list or a body, or it has a +/// redirection. /// /// @description Checks that it is a compile-time error to declare an augmenting /// redirecting generative constructor if the augmented constructor has a super diff --git a/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t04.dart b/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t04.dart index 9d68857f9f..5eb226d0a3 100644 --- a/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t04.dart +++ b/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t04.dart @@ -5,7 +5,8 @@ /// @assertion Redirecting generative constructors /// ... /// It is a compile-time error if: -/// - The augmented factory constructor has a body, or it is redirecting. +/// - The augmented constructor has an initializer list or a body, or it has a +/// redirection. /// /// @description Checks that it is not an error to declare an augmenting /// redirecting generative constructor more than once and the fully merged diff --git a/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t04_lib.dart b/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t04_lib.dart index d97801532c..64a71089a0 100644 --- a/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t04_lib.dart +++ b/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t04_lib.dart @@ -5,7 +5,8 @@ /// @assertion Redirecting generative constructors /// ... /// It is a compile-time error if: -/// - The augmented factory constructor has a body, or it is redirecting. +/// - The augmented constructor has an initializer list or a body, or it has a +/// redirection. /// /// @description Checks that it is a compile-time error to declare an augmenting /// redirecting generative constructor if the augmented constructor has a diff --git a/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t05.dart b/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t05.dart index 3a6ceddc5f..1b95430595 100644 --- a/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t05.dart +++ b/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t05.dart @@ -5,7 +5,8 @@ /// @assertion Redirecting generative constructors /// ... /// It is a compile-time error if: -/// - The augmented factory constructor has a body, or it is redirecting. +/// - The augmented constructor has an initializer list or a body, or it has a +/// redirection. /// /// @description Checks that it is a compile-time error if a merged constructor /// is cyclic. diff --git a/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t05_lib.dart b/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t05_lib.dart index f3faaf6720..11a3c10c6d 100644 --- a/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t05_lib.dart +++ b/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t05_lib.dart @@ -5,7 +5,8 @@ /// @assertion Redirecting generative constructors /// ... /// It is a compile-time error if: -/// - The augmented factory constructor has a body, or it is redirecting. +/// - The augmented constructor has an initializer list or a body, or it has a +/// redirection. /// /// @description Checks that it is a compile-time error if a merged constructor /// is cyclic. diff --git a/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t06.dart b/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t06.dart index 54cbff3eef..934a0d87d8 100644 --- a/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t06.dart +++ b/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t06.dart @@ -5,7 +5,8 @@ /// @assertion Redirecting generative constructors /// ... /// It is a compile-time error if: -/// - The augmented factory constructor has a body, or it is redirecting. +/// - The augmented constructor has an initializer list or a body, or it has a +/// redirection. /// /// @description Checks that it is a compile-time error to declare an augmenting /// redirecting generative constructor if an introductory constructor has a body diff --git a/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t06_lib.dart b/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t06_lib.dart index 61c176df21..655d42f7e2 100644 --- a/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t06_lib.dart +++ b/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t06_lib.dart @@ -5,7 +5,8 @@ /// @assertion Redirecting generative constructors /// ... /// It is a compile-time error if: -/// - The augmented factory constructor has a body, or it is redirecting. +/// - The augmented constructor has an initializer list or a body, or it has a +/// redirection. /// /// @description Checks that it is a compile-time error to declare an augmenting /// redirecting generative constructor if an introductory constructor has a body diff --git a/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t07.dart b/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t07.dart index 29af333351..70fc2bd4ee 100644 --- a/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t07.dart +++ b/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t07.dart @@ -5,7 +5,8 @@ /// @assertion Redirecting generative constructors /// ... /// It is a compile-time error if: -/// - The augmented factory constructor has a body, or it is redirecting. +/// - The augmented constructor has an initializer list or a body, or it has a +/// redirection. /// /// @description Checks that it is a compile-time error if a merged constructor /// is cyclic. diff --git a/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t07_lib.dart b/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t07_lib.dart index 4255a967bd..34238574cf 100644 --- a/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t07_lib.dart +++ b/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A18_t07_lib.dart @@ -5,7 +5,8 @@ /// @assertion Redirecting generative constructors /// ... /// It is a compile-time error if: -/// - The augmented factory constructor has a body, or it is redirecting. +/// - The augmented constructor has an initializer list or a body, or it has a +/// redirection. /// /// @description Checks that it is a compile-time error if a merged constructor /// is cyclic.