From 0d59881d82bb579d993263a5a4138d67c8ab8ddb Mon Sep 17 00:00:00 2001 From: Andrew Morris Date: Fri, 21 Jul 2023 17:51:19 +1000 Subject: [PATCH] Document SWC bug --- inputs/failing/spuriousAssignmentBug.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/inputs/failing/spuriousAssignmentBug.ts b/inputs/failing/spuriousAssignmentBug.ts index 18f733b8..3a184c8a 100644 --- a/inputs/failing/spuriousAssignmentBug.ts +++ b/inputs/failing/spuriousAssignmentBug.ts @@ -1,3 +1,8 @@ +// This is an SWC bug. It appears to be fixed in the latest version, but the latest version also +// doesn't compile in stable rust. Hopefully this is also fixed in the latest stable version, we +// just need to figure out what that is. +// Related: https://github.com/swc-project/cli/issues/218. + export default function main() { return [3n < "asdf", 3n >= "asdf"]; }