#1207. Constructor call tests added
diff --git a/LanguageFeatures/Enhanced-Enum/constructor_call_A01_t01.dart b/LanguageFeatures/Enhanced-Enum/constructor_call_A01_t01.dart
new file mode 100644
index 0000000..5508dd7
--- /dev/null
+++ b/LanguageFeatures/Enhanced-Enum/constructor_call_A01_t01.dart
@@ -0,0 +1,25 @@
+// Copyright (c) 2021, the Dart project authors. Please see the AUTHORS file
+// 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 It’s a compile time error to call any of enums constructors
+///
+/// @description Check that it’s a compile time error to call any of enums
+/// constructors
+/// @author sgrekhov@unipro.ru
+
+// SharedOptions=--enable-experiment=enhanced-enums
+
+enum E {
+ e1,
+ e2;
+
+ const E();
+}
+
+main() {
+ E e = const E();
+// ^
+// [analyzer] unspecified
+// [cfe] unspecified
+}
diff --git a/LanguageFeatures/Enhanced-Enum/constructor_call_A01_t02.dart b/LanguageFeatures/Enhanced-Enum/constructor_call_A01_t02.dart
new file mode 100644
index 0000000..067d069
--- /dev/null
+++ b/LanguageFeatures/Enhanced-Enum/constructor_call_A01_t02.dart
@@ -0,0 +1,30 @@
+// Copyright (c) 2021, the Dart project authors. Please see the AUTHORS file
+// 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 It’s a compile time error to call any of enums constructors
+///
+/// @description Check that it’s a compile time error to call any of enums
+/// constructors
+/// @author sgrekhov@unipro.ru
+
+// SharedOptions=--enable-experiment=enhanced-enums
+
+enum E {
+ e1(1),
+ e2.named(2, 3);
+
+ const E(int i);
+ const E.named(int i, int j) : this(i);
+}
+
+main() {
+ E e1 = const E(42);
+// ^
+// [analyzer] unspecified
+// [cfe] unspecified
+ E e2 = const E.named(1, 2);
+// ^
+// [analyzer] unspecified
+// [cfe] unspecified
+}
diff --git a/LanguageFeatures/Enhanced-Enum/constructor_call_A02_t01.dart b/LanguageFeatures/Enhanced-Enum/constructor_call_A02_t01.dart
new file mode 100644
index 0000000..427e0bf
--- /dev/null
+++ b/LanguageFeatures/Enhanced-Enum/constructor_call_A02_t01.dart
@@ -0,0 +1,30 @@
+// Copyright (c) 2021, the Dart project authors. Please see the AUTHORS file
+// 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 It’s a compile time error to call any of enums constructors
+///
+/// @description Check that it’s a compile time error to call any of enums
+/// constructors
+/// @author sgrekhov@unipro.ru
+
+// SharedOptions=--enable-experiment=enhanced-enums
+
+enum E {
+ e1(1),
+ e2.named(3),
+ e3(3);
+
+ const E(int i);
+ const E.named(int i) : this(i);
+
+ factory E.f(int i) => E.named(i);
+// ^^^^^^^
+// [analyzer] unspecified
+// [cfe] unspecified
+ E getInstance(int i) => E.f(i);
+}
+
+main() {
+ E.e1.getInstance(42);
+}
diff --git a/LanguageFeatures/Enhanced-Enum/constructor_call_A02_t02.dart b/LanguageFeatures/Enhanced-Enum/constructor_call_A02_t02.dart
new file mode 100644
index 0000000..27a60cc
--- /dev/null
+++ b/LanguageFeatures/Enhanced-Enum/constructor_call_A02_t02.dart
@@ -0,0 +1,29 @@
+// Copyright (c) 2021, the Dart project authors. Please see the AUTHORS file
+// 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 It’s a compile time error to call any of enums constructors
+///
+/// @description Check that it’s a compile time error to call any of enums
+/// constructors
+/// @author sgrekhov@unipro.ru
+
+// SharedOptions=--enable-experiment=enhanced-enums
+
+enum E {
+ e1(1),
+ e2.named(3),
+ e3(3);
+
+ const E(int i);
+ const E.named(int i) : this(i);
+
+ Function get getConstructor => E.named;
+// ^^^^^^^
+// [analyzer] unspecified
+// [cfe] unspecified
+}
+
+main() {
+ E.e1.getConstructor(42);
+}