Skip to content

Commit e4211d8

Browse files
authored
Fixes #2066. Update Superinterface tests according to the current specification (#2067)
Update Superinterface tests according to the current specification
1 parent da1fae6 commit e4211d8

40 files changed

+793
-31
lines changed

Language/Classes/Superinterfaces/dynamic_type_t01.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
/// @assertion It is a compile-time error if the implements clause of a class C
66
/// specifies type dynamic as a superinterface.
7+
///
78
/// @description Checks that it is a compile-time error if dynamic is included
89
/// in the type list of a class's implements clause.
910
/// @author pagolubev
1011
11-
1212
class A implements dynamic {}
1313
// ^
1414
// [analyzer] unspecified

Language/Classes/Superinterfaces/dynamic_type_t02.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
/// @assertion It is a compile-time error if the implements clause of a class C
66
/// specifies type dynamic as a superinterface.
7+
///
78
/// @description Checks that it is a compile-time error if dynamic is included
89
/// in the type list of a class's implements clause.
910
/// @author rodionov
1011
11-
1212
abstract class I {}
1313
abstract class J {}
1414

Language/Classes/Superinterfaces/dynamic_type_t03.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
/// @assertion It is a compile-time error if the implements clause of a class C
66
/// specifies type dynamic as a superinterface.
7+
///
78
/// @description Checks that it is a compile-time error if dynamic is included
89
/// in the type list of a class's implements clause.
910
/// @author [email protected]

Language/Classes/Superinterfaces/implicit_interface_t01.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
/// @assertion It is a compile error if the implicit interface of a class
66
/// C includes an instance member m of type F and C declares or inherits a
77
/// corresponding instance member m of type F' if F' is not a subtype of F.
8+
///
89
/// @description Checks that it is a compile error if the type F'
910
/// of declared instance member m is not a subtype of F.
1011
/// @author ilya
1112
12-
1313
abstract class I {
1414
foo(var x);
1515
}

Language/Classes/Superinterfaces/implicit_interface_t02.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
/// @assertion It is a compile error if the implicit interface of a class
66
/// C includes an instance member m of type F and C declares or inherits a
77
/// corresponding instance member m of type F' if F' is not a subtype of F.
8+
///
89
/// @description Checks that it is a compile error if the type F' of
910
/// inherited instance member m is not a subtype of F.
1011
/// @author ilya
1112
12-
1313
abstract class I {
1414
foo(var x);
1515
}

Language/Classes/Superinterfaces/implicit_interface_t03.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
/// @assertion It is a compile error if the implicit interface of a class
66
/// C includes an instance member m of type F and C declares or inherits a
77
/// corresponding instance member m of type F' if F' is not a subtype of F.
8+
///
89
/// @description Checks that it is a compile error if the type F'
910
/// of declared instance member m is not a subtype of F. Test type aliases
1011
/// @author ilya

Language/Classes/Superinterfaces/itself_t01.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
/// @assertion It is a compile-time error if the interface of a class C is a
66
/// superinterface of itself.
7+
///
78
/// @description When a class name appears as a type or interface, that name
89
/// denotes the interface of the class.
910
/// Test checks that it is a compile-time error when a class's own name is
1011
/// included in its implements clause.
1112
/// @author rodionov
1213
13-
1414
abstract class I {}
1515

1616
class C implements I, C {}

Language/Classes/Superinterfaces/itself_t02.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
/// @assertion It is a compile-time error if the interface of a class C is a
66
/// superinterface of itself.
7+
///
78
/// @description When a class name appears as a type or interface, that name
89
/// denotes the interface of the class.
910
/// Test checks that it is a compile-time error when a class's own name is

Language/Classes/Superinterfaces/more_than_once_t01.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
/// @assertion It is a compile-time error if the implements clause of a class
66
/// C specifies a type T as a superinterface more than once.
7+
///
78
/// @description Checks that it is a compile-time error if the same type appears
89
/// more than once in the implements clause.
910
/// @author pagolubev
1011
11-
1212
abstract class I {}
1313
abstract class J {}
1414

Language/Classes/Superinterfaces/more_than_once_t02.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
/// @assertion It is a compile-time error if the implements clause of a class
66
/// C specifies a type T as a superinterface more than once.
7+
///
78
/// @description Checks that it is a compile-time error if the same type appears
89
/// more than once in the implements clause. Test type aliases
910
/// @Issue 45526

0 commit comments

Comments
 (0)