From 7adaf312aa82b14b7a8f89bd53871be562509090 Mon Sep 17 00:00:00 2001 From: ASDAlexander77 Date: Tue, 26 May 2020 17:46:03 +0100 Subject: [PATCH] removed <=> --- cpplib/core.h | 12 ------------ test/test.ts | 10 +++++----- 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/cpplib/core.h b/cpplib/core.h index e016bb1..b5e0d93 100644 --- a/cpplib/core.h +++ b/cpplib/core.h @@ -1065,18 +1065,6 @@ struct number return static_cast(n) >= value._value; } - template requires ArithmeticOrEnumOrNumber - friend int operator<=>(const number_t value, N n) - { - return value._value <=> static_cast(n); - } - - template requires ArithmeticOrEnum - friend bool operator<=>(N n, const number_t value) - { - return static_cast(n) <=> value._value; - } - js::string toString(); js::string toString(number_t radix); diff --git a/test/test.ts b/test/test.ts index 80534cd..797582e 100644 --- a/test/test.ts +++ b/test/test.ts @@ -1,5 +1,5 @@ -let i: number = 1; -let j: any = 1; - -const r = i == j; -console.log(r); \ No newline at end of file +for (let i = 0; i < 3; i++) { + console.log(i); + if (i == 0) continue; + break; + } \ No newline at end of file