#1205. Local and global functions equality tests fixed
diff --git a/LanguageFeatures/Constructor-tear-offs/equality_A03_t05.dart b/LanguageFeatures/Constructor-tear-offs/equality_A02_t04.dart
similarity index 80%
rename from LanguageFeatures/Constructor-tear-offs/equality_A03_t05.dart
rename to LanguageFeatures/Constructor-tear-offs/equality_A02_t04.dart
index 251370b..9aeca7d 100644
--- a/LanguageFeatures/Constructor-tear-offs/equality_A03_t05.dart
+++ b/LanguageFeatures/Constructor-tear-offs/equality_A02_t04.dart
@@ -5,12 +5,11 @@
/// @assertion Test equality of function and methods tearoffs.
/// https://github.com/dart-lang/language/issues/1712
///
-/// @description Checks equality of instantiated local generic functions
+/// @description Checks equality of instantiated top level generic functions
/// @author sgrekhov@unipro.ru
// SharedOptions=--enable-experiment=constructor-tearoffs
-import '../../Language/Classes/Constructors/Generative_Constructors/implicit_superinitializer_t04.dart';
import "../../Utils/expect.dart";
typedef X Foo<X>(X x);
diff --git a/LanguageFeatures/Constructor-tear-offs/equality_A03_t01.dart b/LanguageFeatures/Constructor-tear-offs/equality_A03_t01.dart
index 8551496..5f4461e 100644
--- a/LanguageFeatures/Constructor-tear-offs/equality_A03_t01.dart
+++ b/LanguageFeatures/Constructor-tear-offs/equality_A03_t01.dart
@@ -4,22 +4,23 @@
/// @assertion Test equality of function and methods tearoffs.
///
-/// @description Checks equality of local non-generic functions
+/// @description Checks that the equality properties of any function object
+/// obtained by generic function instantiation is determined by the equality of
+/// the source function objects
/// @author sgrekhov@unipro.ru
+/// @issue 47317
// SharedOptions=--enable-experiment=constructor-tearoffs
import "../../Utils/expect.dart";
main() {
- int localFunction1() => 42;
- int localFunction2() => 42;
+ X localFunction<X>(X x) => x;
- var f1_1 = localFunction1;
- var f1_2 = localFunction1;
- var f2 = localFunction2;
+ var f1_1 = localFunction;
+ var f1_2 = localFunction;
+ var f2_1 = f1_1<int>;
+ var f2_2 = f1_2<int>;
- Expect.equals(f1_1, f1_2);
- Expect.identical(f1_1, f1_2);
- Expect.notEquals(f2, f1_2);
+ Expect.equals(f1_1 == f1_2, f2_1 == f2_2);
}