Home
last modified time | relevance | path

Searched refs:Comparable (Results 1 – 25 of 171) sorted by relevance

1234567

/third_party/typescript/tests/baselines/reference/
DgenericConstraint2.errors.txt1 …1,7): error TS2420: Class 'ComparableString' incorrectly implements interface 'Comparable<string>'.
2 …Property 'comparer' is missing in type 'ComparableString' but required in type 'Comparable<string>…
3 …error TS2344: Type 'ComparableString' does not satisfy the constraint 'Comparable<ComparableString…
4 …Property 'comparer' is missing in type 'ComparableString' but required in type 'Comparable<Compara…
8 interface Comparable<T> {
12 function compare<T extends Comparable<T>>(x: T, y: T): number {
18 class ComparableString implements Comparable<string>{
20 !!! error TS2420: Class 'ComparableString' incorrectly implements interface 'Comparable<string>'.
21 …roperty 'comparer' is missing in type 'ComparableString' but required in type 'Comparable<string>'.
34 !!! error TS2344: Type 'ComparableString' does not satisfy the constraint 'Comparable<ComparableStr…
[all …]
DclassExtendsInterface.symbols2 interface Comparable {}
3 >Comparable : Symbol(Comparable, Decl(classExtendsInterface.ts, 0, 0))
5 class A extends Comparable {}
7 >Comparable : Symbol(Comparable, Decl(classExtendsInterface.ts, 0, 0))
9 class B implements Comparable {}
11 >Comparable : Symbol(Comparable, Decl(classExtendsInterface.ts, 0, 0))
DgenericConstraint2.symbols2 interface Comparable<T> {
3 >Comparable : Symbol(Comparable, Decl(genericConstraint2.ts, 0, 0))
7 >comparer : Symbol(Comparable.comparer, Decl(genericConstraint2.ts, 0, 25))
12 function compare<T extends Comparable<T>>(x: T, y: T): number {
15 >Comparable : Symbol(Comparable, Decl(genericConstraint2.ts, 0, 0))
30 >x.comparer : Symbol(Comparable.comparer, Decl(genericConstraint2.ts, 0, 25))
32 >comparer : Symbol(Comparable.comparer, Decl(genericConstraint2.ts, 0, 25))
36 class ComparableString implements Comparable<string>{
38 >Comparable : Symbol(Comparable, Decl(genericConstraint2.ts, 0, 0))
DmaxConstraints.symbols2 interface Comparable<T> {
3 >Comparable : Symbol(Comparable, Decl(maxConstraints.ts, 0, 0))
7 >compareTo : Symbol(Comparable.compareTo, Decl(maxConstraints.ts, 0, 25))
14 <T extends Comparable<T>>(x: T, y: T): T;
16 >Comparable : Symbol(Comparable, Decl(maxConstraints.ts, 0, 0))
29 >x.compareTo : Symbol(Comparable.compareTo, Decl(maxConstraints.ts, 0, 25))
31 >compareTo : Symbol(Comparable.compareTo, Decl(maxConstraints.ts, 0, 25))
DgenericAssignmentCompatWithInterfaces1.errors.txt1 …terfaces1.ts(12,23): error TS2322: Type 'A<number>' is not assignable to type 'Comparable<string>'.
8 Type 'A<number>' is not assignable to type 'Comparable<string>'.
11 Type 'A<number>' is not assignable to type 'Comparable<string>'.
14 Type 'A<number>' is not assignable to type 'Comparable<string>'.
18 interface Comparable<T> {
22 x: Comparable<T>;
27 class A<T> implements Comparable<T> { compareTo(other: T) { return 1; } }
31 !!! error TS2322: Type 'A<number>' is not assignable to type 'Comparable<string>'.
41 !!! error TS2322: Type 'A<number>' is not assignable to type 'Comparable<string>'.
48 !!! error TS2322: Type 'A<number>' is not assignable to type 'Comparable<string>'.
[all …]
DgenericAssignmentCompatWithInterfaces1.symbols2 interface Comparable<T> {
3 >Comparable : Symbol(Comparable, Decl(genericAssignmentCompatWithInterfaces1.ts, 0, 0))
7 >compareTo : Symbol(Comparable.compareTo, Decl(genericAssignmentCompatWithInterfaces1.ts, 0, 25))
15 x: Comparable<T>;
17 >Comparable : Symbol(Comparable, Decl(genericAssignmentCompatWithInterfaces1.ts, 0, 0))
29 class A<T> implements Comparable<T> { compareTo(other: T) { return 1; } }
32 >Comparable : Symbol(Comparable, Decl(genericAssignmentCompatWithInterfaces1.ts, 0, 0))
DclassExtendsInterface.errors.txt1 …ssExtendsInterface.ts(2,17): error TS2689: Cannot extend an interface 'Comparable'. Did you mean '…
6 interface Comparable {}
7 class A extends Comparable {}
9 !!! error TS2689: Cannot extend an interface 'Comparable'. Did you mean 'implements'?
10 class B implements Comparable {}
DmaxConstraints.types2 interface Comparable<T> {
8 <T extends Comparable<T>>(x: T, y: T): T;
14 >(x, y) => { return (x.compareTo(y) > 0) ? x : y } : <T extends Comparable<T>>(x: T, y: T) => T
30 >maxResult : Comparable<1 | 2>
31 >max2(1, 2) : Comparable<1 | 2>
DclassExtendsInterface.types2 interface Comparable {}
3 class A extends Comparable {}
5 >Comparable : any
7 class B implements Comparable {}
DmaxConstraints.errors.txt1 …error TS2345: Argument of type 'number' is not assignable to parameter of type 'Comparable<1 | 2>'.
5 interface Comparable<T> {
9 <T extends Comparable<T>>(x: T, y: T): T;
14 !!! error TS2345: Argument of type 'number' is not assignable to parameter of type 'Comparable<1 | …
DgenericConstraint2.types2 interface Comparable<T> {
8 function compare<T extends Comparable<T>>(x: T, y: T): number {
9 >compare : <T extends Comparable<T>>(x: T, y: T) => number
39 class ComparableString implements Comparable<string>{
69 >compare : <T extends Comparable<T>>(x: T, y: T) => number
DclassExtendsInterface.js2 interface Comparable {}
3 class A extends Comparable {}
4 class B implements Comparable {}
33 }(Comparable));
DprotoAssignment.errors.txt1 tests/cases/compiler/protoAssignment.ts(1,26): error TS2304: Cannot find name 'Comparable'.
5 interface Number extends Comparable<number> {
7 !!! error TS2304: Cannot find name 'Comparable'.
DgenericConstraint2.js2 interface Comparable<T> {
6 function compare<T extends Comparable<T>>(x: T, y: T): number {
12 class ComparableString implements Comparable<string>{
DgenericAssignmentCompatWithInterfaces1.js2 interface Comparable<T> {
6 x: Comparable<T>;
11 class A<T> implements Comparable<T> { compareTo(other: T) { return 1; } }
DgenericAssignmentCompatWithInterfaces1.types2 interface Comparable<T> {
8 x: Comparable<T>;
9 >x : Comparable<T>
15 class A<T> implements Comparable<T> { compareTo(other: T) { return 1; } }
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/util/
DCollectionUtilities.java274 Comparable ao = (Comparable) ai.next(); // these are ok, since the sizes are != 0 in containsSome()
275 Comparable bo = (Comparable) bi.next(); in containsSome()
280 ao = (Comparable) ai.next(); in containsSome()
283 bo = (Comparable) bi.next(); in containsSome()
327 Comparable ao = (Comparable) ai.next(); // these are ok, since the sizes are != 0 in containsAll()
328 Comparable bo = (Comparable) bi.next(); in containsAll()
334 bo = (Comparable) bi.next(); in containsAll()
335 ao = (Comparable) ai.next(); in containsAll()
338 ao = (Comparable) ai.next(); in containsAll()
573 public static <T extends Comparable> int compare(T a, T b) { in compare()
[all …]
/third_party/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/
DCollectionUtilities.java271 Comparable ao = (Comparable) ai.next(); // these are ok, since the sizes are != 0 in containsSome()
272 Comparable bo = (Comparable) bi.next(); in containsSome()
277 ao = (Comparable) ai.next(); in containsSome()
280 bo = (Comparable) bi.next(); in containsSome()
324 Comparable ao = (Comparable) ai.next(); // these are ok, since the sizes are != 0 in containsAll()
325 Comparable bo = (Comparable) bi.next(); in containsAll()
331 bo = (Comparable) bi.next(); in containsAll()
332 ao = (Comparable) ai.next(); in containsAll()
335 ao = (Comparable) ai.next(); in containsAll()
570 public static <T extends Comparable> int compare(T a, T b) { in compare()
[all …]
/third_party/libphonenumber/metadata/src/main/java/com/google/i18n/phonenumbers/metadata/table/
DAssignment.java31 public abstract class Assignment<T extends Comparable<T>> {
50 private static <T extends Comparable<T>> Assignment<T> create(Column<T> c, @Nullable Object v) { in create()
64 public static <T extends Comparable<T>> Assignment<T> of(Column<T> c, Object v) { in of()
69 public static <T extends Comparable<T>> Assignment<T> ofOptional(Column<T> c, Optional<?> v) { in ofOptional()
78 public static <T extends Comparable<T>> Assignment<T> unassign(Column<T> c) { in unassign()
DColumnGroup.java31 public abstract class ColumnGroup<K, T extends Comparable<T>> {
36 public static <K, T extends Comparable<T>> ColumnGroup<K, T> of( in of()
42 public static <T extends Comparable<T>> ColumnGroup<PhoneRegion, T> byRegion( in byRegion()
48 public static <T extends Comparable<T>> ColumnGroup<SimpleLanguageTag, T> byLanguage( in byLanguage()
/third_party/typescript/tests/cases/compiler/
DclassExtendsInterface.ts1 interface Comparable {} interface
2 class A extends Comparable {}
3 class B implements Comparable {}
DgenericConstraint2.ts1 interface Comparable<T> { interface
5 function compare<T extends Comparable<T>>(x: T, y: T): number {
11 class ComparableString implements Comparable<string>{
DgenericAssignmentCompatWithInterfaces1.ts1 interface Comparable<T> { interface
5 x: Comparable<T>;
10 class A<T> implements Comparable<T> { compareTo(other: T) { return 1; } }
DmaxConstraints.ts1 interface Comparable<T> { interface
5 <T extends Comparable<T>>(x: T, y: T): T;
/third_party/boost/libs/hana/test/_include/laws/
Dbase.hpp191 , Comparable = 1 << 4 enumerator
259 struct eq : integer<i, Policy::Comparable | Policy::Runtime> { };
262 struct ct_eq : integer<i, Policy::Comparable | Policy::Constant> { };
265 struct cx_eq : integer<i, Policy::Comparable | Policy::Constexpr> { };
278 : integer<i, Policy::Constant | Policy::Comparable | Policy::Orderable>
309 (p1 & (test::Policy::Comparable | test::Policy::Orderable)) &&
310 (p2 & (test::Policy::Comparable | test::Policy::Orderable)) &&
325 (p1 & (test::Policy::Comparable | test::Policy::Orderable)) &&
326 (p2 & (test::Policy::Comparable | test::Policy::Orderable)) &&

1234567