From 629d7465a233bad7b3abd0956ea7a703221ab541 Mon Sep 17 00:00:00 2001 From: "Sergey G. Grekhov" Date: Thu, 21 Nov 2024 14:12:15 +0200 Subject: [PATCH] #2119. Update assertion texts in Wildcards tests (#2981) --- LanguageFeatures/Wildcards/super_parameters_A03_t01.dart | 5 +++-- LanguageFeatures/Wildcards/super_parameters_A03_t02.dart | 5 +++-- .../Wildcards/wildcards_do_not_shadow_A01_t01.dart | 2 +- .../Wildcards/wildcards_do_not_shadow_A01_t02.dart | 2 +- .../Wildcards/wildcards_do_not_shadow_A01_t03.dart | 2 +- .../Wildcards/wildcards_do_not_shadow_A01_t04.dart | 2 +- .../Wildcards/wildcards_do_not_shadow_A02_t01.dart | 2 +- .../Wildcards/wildcards_do_not_shadow_A02_t02.dart | 2 +- .../Wildcards/wildcards_do_not_shadow_A02_t03.dart | 2 +- 9 files changed, 13 insertions(+), 11 deletions(-) diff --git a/LanguageFeatures/Wildcards/super_parameters_A03_t01.dart b/LanguageFeatures/Wildcards/super_parameters_A03_t01.dart index e22445d482..8201b887fc 100644 --- a/LanguageFeatures/Wildcards/super_parameters_A03_t01.dart +++ b/LanguageFeatures/Wildcards/super_parameters_A03_t01.dart @@ -2,8 +2,9 @@ // 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. -/// @assertion Similarly to `this._` a `super._` does not introduce any -/// identifier into the scope of the initializer list. +/// @assertion Similarly to `this._`, and unlike for example `super.x`, a +/// `super._` does not introduce any identifier into the scope of the +/// initializer list. /// /// @description Checks that a `super._` does not introduce any identifier into /// the scope of the initializer list. diff --git a/LanguageFeatures/Wildcards/super_parameters_A03_t02.dart b/LanguageFeatures/Wildcards/super_parameters_A03_t02.dart index 29d453a884..d13f842b92 100644 --- a/LanguageFeatures/Wildcards/super_parameters_A03_t02.dart +++ b/LanguageFeatures/Wildcards/super_parameters_A03_t02.dart @@ -2,8 +2,9 @@ // 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. -/// @assertion Similarly to `this._` a `super._` does not introduce any -/// identifier into the scope of the initializer list. +/// @assertion Similarly to `this._`, and unlike for example `super.x`, a +/// `super._` does not introduce any identifier into the scope of the +/// initializer list. /// /// @description Checks that a `super._` does not introduce any identifier into /// the scope of the initializer list. diff --git a/LanguageFeatures/Wildcards/wildcards_do_not_shadow_A01_t01.dart b/LanguageFeatures/Wildcards/wildcards_do_not_shadow_A01_t01.dart index de2f36720e..590d3471f2 100644 --- a/LanguageFeatures/Wildcards/wildcards_do_not_shadow_A01_t01.dart +++ b/LanguageFeatures/Wildcards/wildcards_do_not_shadow_A01_t01.dart @@ -14,7 +14,7 @@ /// } /// } /// ``` -// This program is valid and assigns to the field, not the local. +/// This program is valid and assigns to the field, not the local. /// /// @description Checks that a local variable named `_` doesn't shadow a /// top-level variable named `_` but a class field does. diff --git a/LanguageFeatures/Wildcards/wildcards_do_not_shadow_A01_t02.dart b/LanguageFeatures/Wildcards/wildcards_do_not_shadow_A01_t02.dart index 002135010f..6480f617c9 100644 --- a/LanguageFeatures/Wildcards/wildcards_do_not_shadow_A01_t02.dart +++ b/LanguageFeatures/Wildcards/wildcards_do_not_shadow_A01_t02.dart @@ -14,7 +14,7 @@ /// } /// } /// ``` -// This program is valid and assigns to the field, not the local. +/// This program is valid and assigns to the field, not the local. /// /// @description Checks that a local variable named `_` doesn't shadow a /// top-level getter named `_` but a class field does. diff --git a/LanguageFeatures/Wildcards/wildcards_do_not_shadow_A01_t03.dart b/LanguageFeatures/Wildcards/wildcards_do_not_shadow_A01_t03.dart index 0c24ee215a..9e75f6e034 100644 --- a/LanguageFeatures/Wildcards/wildcards_do_not_shadow_A01_t03.dart +++ b/LanguageFeatures/Wildcards/wildcards_do_not_shadow_A01_t03.dart @@ -14,7 +14,7 @@ /// } /// } /// ``` -// This program is valid and assigns to the field, not the local. +/// This program is valid and assigns to the field, not the local. /// /// @description Checks that a local variable named `_` doesn't shadow a /// top-level function named `_` but a class field does. diff --git a/LanguageFeatures/Wildcards/wildcards_do_not_shadow_A01_t04.dart b/LanguageFeatures/Wildcards/wildcards_do_not_shadow_A01_t04.dart index 2f4e437bc1..b876e2551b 100644 --- a/LanguageFeatures/Wildcards/wildcards_do_not_shadow_A01_t04.dart +++ b/LanguageFeatures/Wildcards/wildcards_do_not_shadow_A01_t04.dart @@ -14,7 +14,7 @@ /// } /// } /// ``` -// This program is valid and assigns to the field, not the local. +/// This program is valid and assigns to the field, not the local. /// /// @description Checks that a local variable named `_` doesn't shadow a /// top-level setter named `_` but a class field does. diff --git a/LanguageFeatures/Wildcards/wildcards_do_not_shadow_A02_t01.dart b/LanguageFeatures/Wildcards/wildcards_do_not_shadow_A02_t01.dart index 9745224607..f36f4fd7ea 100644 --- a/LanguageFeatures/Wildcards/wildcards_do_not_shadow_A02_t01.dart +++ b/LanguageFeatures/Wildcards/wildcards_do_not_shadow_A02_t01.dart @@ -14,7 +14,7 @@ /// } /// } /// ``` -// This program is valid and assigns to the field, not the local. +/// This program is valid and assigns to the field, not the local. /// /// @description Checks that a top-level variable named `_` can be assigned to /// a local variable named `_`. diff --git a/LanguageFeatures/Wildcards/wildcards_do_not_shadow_A02_t02.dart b/LanguageFeatures/Wildcards/wildcards_do_not_shadow_A02_t02.dart index 3c74b30989..80ed285298 100644 --- a/LanguageFeatures/Wildcards/wildcards_do_not_shadow_A02_t02.dart +++ b/LanguageFeatures/Wildcards/wildcards_do_not_shadow_A02_t02.dart @@ -14,7 +14,7 @@ /// } /// } /// ``` -// This program is valid and assigns to the field, not the local. +/// This program is valid and assigns to the field, not the local. /// /// @description Checks that a top-level function named `_` can be assigned to /// a local variable named `_`. diff --git a/LanguageFeatures/Wildcards/wildcards_do_not_shadow_A02_t03.dart b/LanguageFeatures/Wildcards/wildcards_do_not_shadow_A02_t03.dart index 258ceba728..e99292c771 100644 --- a/LanguageFeatures/Wildcards/wildcards_do_not_shadow_A02_t03.dart +++ b/LanguageFeatures/Wildcards/wildcards_do_not_shadow_A02_t03.dart @@ -14,7 +14,7 @@ /// } /// } /// ``` -// This program is valid and assigns to the field, not the local. +/// This program is valid and assigns to the field, not the local. /// /// @description Checks that a type named `_` can be assigned to a local /// variable named `_`.