Skip to content

Commit

Permalink
removed <=>
Browse files Browse the repository at this point in the history
  • Loading branch information
ASDAlexander77 committed May 26, 2020
1 parent 5e16242 commit 7adaf31
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
12 changes: 0 additions & 12 deletions cpplib/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -1065,18 +1065,6 @@ struct number
return static_cast<V>(n) >= value._value;
}

template <typename N = void> requires ArithmeticOrEnumOrNumber<N>
friend int operator<=>(const number_t value, N n)
{
return value._value <=> static_cast<V>(n);
}

template <typename N = void> requires ArithmeticOrEnum<N>
friend bool operator<=>(N n, const number_t value)
{
return static_cast<V>(n) <=> value._value;
}

js::string toString();
js::string toString(number_t radix);

Expand Down
10 changes: 5 additions & 5 deletions test/test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
let i: number = 1;
let j: any = 1;

const r = i == j;
console.log(r);
for (let i = 0; i < 3; i++) {
console.log(i);
if (i == 0) continue;
break;
}

0 comments on commit 7adaf31

Please sign in to comment.