Skip to content

guard expression with variable shadowing brakes type guarantee #5094

@EliasDerHai

Description

@EliasDerHai

There is a bug regarding guard expressions that seems to occur in combination with variable shadowing

import gleam/option.{type Option, Some}
import gleeunit

pub fn main() -> Nil {
  gleeunit.main()
}

pub type Container {
  Container(x: Option(Int), y: Int)
}

pub fn guard_clause_shadowing_bug_test() {
  let x: Option(Int) = Some(999)

  case Some(42) {
    Some(x) if x < 0 -> Container(Some(x), 1)
    _ -> {
      // x is type Option(Int) but at runtime (js) Option is lost 
      // as such `42` is set where a Option(42) should be according to the Container type
      echo x
      Container(x:, y: 0)
    }
  }
}

Note that without the first branch - so simply

let Container(x:, y: _) = case x {
    _ -> {
      Container(x:, y: 0)
    }
  }

does not produce the bug!

  • gleam 1.13.0
  • target = "javascript"

gleam_log = trace output:

�[34mDEBUG�[0m �[1mdownload_deps�[0m�[2m:�[0m locking_directory �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleam.lock"
�[35mTRACE�[0m �[1mdownload_deps�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/gleam.toml"
�[34mDEBUG�[0m �[1mdownload_deps�[0m�[2m:�[0m reading_manifest_toml
�[35mTRACE�[0m �[1mdownload_deps�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/manifest.toml"
�[35mTRACE�[0m �[1mdownload_deps�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/packages.toml"
�[34mDEBUG�[0m �[1mdownload_deps�[0m�[2m:�[0m locking_directory �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/gleam-dev-erlang.lock"
�[34mDEBUG�[0m �[1mdownload_deps�[0m�[2m:�[0m locking_directory �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/gleam-dev-javascript.lock"
�[34mDEBUG�[0m �[1mdownload_deps�[0m�[2m:�[0m locking_directory �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/gleam-prod-erlang.lock"
�[34mDEBUG�[0m �[1mdownload_deps�[0m�[2m:�[0m locking_directory �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/gleam-prod-javascript.lock"
�[34mDEBUG�[0m �[1mdownload_deps�[0m�[2m:�[0m locking_directory �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/gleam-lsp-erlang.lock"
�[34mDEBUG�[0m �[1mdownload_deps�[0m�[2m:�[0m locking_directory �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/gleam-lsp-javascript.lock"
�[35mTRACE�[0m �[1mdownload_deps�[0m�[2m:�[0m writing_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/packages.toml"
�[35mTRACE�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/gleam.toml"
�[35mTRACE�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/gleam.toml"
�[35mTRACE�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/gleam.toml"
�[32m INFO�[0m Compiling packages
�[34mDEBUG�[0m locking_directory �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/gleam-dev-javascript.lock"
�[35mTRACE�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_version"
�[35mTRACE�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleam_stdlib/gleam.toml"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m gleam_source_files "/.../code/backend/reproduction/guard_bug/build/packages/gleam_stdlib/src"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m reading_directory �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleam_stdlib/src"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m reading_directory �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleam_stdlib/src/gleam"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]_meta"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]_meta"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]_meta"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m reading_directory �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleam_stdlib/src/gleam/dynamic"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]_meta"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]_meta"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]_meta"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]_meta"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]_meta"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]_meta"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/gleam@bit_array.cache_meta"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]_meta"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/gleam@bytes_tree.cache_meta"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]_meta"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]_meta"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]_meta"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]_meta"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/gleam@string_tree.cache_meta"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]_meta"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/gleam@[email protected]_meta"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m CacheFiles::modules_with_meta_files "/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_directory �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m module_to_load_from_cache �[3mmodule�[0m�[2m=�[0mgleam/order
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]_inline"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m module_to_load_from_cache �[3mmodule�[0m�[2m=�[0mgleam/float
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]_inline"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m module_to_load_from_cache �[3mmodule�[0m�[2m=�[0mgleam/int
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]_inline"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m module_to_load_from_cache �[3mmodule�[0m�[2m=�[0mgleam/option
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]_inline"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m module_to_load_from_cache �[3mmodule�[0m�[2m=�[0mgleam/dict
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]_inline"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m module_to_load_from_cache �[3mmodule�[0m�[2m=�[0mgleam/list
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]_inline"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m module_to_load_from_cache �[3mmodule�[0m�[2m=�[0mgleam/string_tree
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/gleam@string_tree.cache"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/gleam@string_tree.cache_inline"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m module_to_load_from_cache �[3mmodule�[0m�[2m=�[0mgleam/string
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]_inline"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m module_to_load_from_cache �[3mmodule�[0m�[2m=�[0mgleam/bit_array
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/gleam@bit_array.cache"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/gleam@bit_array.cache_inline"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m module_to_load_from_cache �[3mmodule�[0m�[2m=�[0mgleam/bool
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]_inline"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m module_to_load_from_cache �[3mmodule�[0m�[2m=�[0mgleam/bytes_tree
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/gleam@bytes_tree.cache"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/gleam@bytes_tree.cache_inline"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m module_to_load_from_cache �[3mmodule�[0m�[2m=�[0mgleam/dynamic
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]_inline"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m module_to_load_from_cache �[3mmodule�[0m�[2m=�[0mgleam/dynamic/decode
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/gleam@[email protected]"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/gleam@[email protected]_inline"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m module_to_load_from_cache �[3mmodule�[0m�[2m=�[0mgleam/function
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]_inline"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m module_to_load_from_cache �[3mmodule�[0m�[2m=�[0mgleam/io
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]_inline"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m module_to_load_from_cache �[3mmodule�[0m�[2m=�[0mgleam/pair
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]_inline"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m module_to_load_from_cache �[3mmodule�[0m�[2m=�[0mgleam/result
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]_inline"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m module_to_load_from_cache �[3mmodule�[0m�[2m=�[0mgleam/set
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]_inline"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m module_to_load_from_cache �[3mmodule�[0m�[2m=�[0mgleam/uri
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleam_stdlib/_gleam_artefacts/[email protected]_inline"
�[32m INFO�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m analysing_modules �[3mcount�[0m�[2m=�[0m0
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m performing_code_generation
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m copying_native_source_files
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_directory �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleam_stdlib/src"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m skipping_unchanged_native_file_unchanged �[3mfile�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleam_stdlib/src/[email protected]"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m skipping_unchanged_native_file_unchanged �[3mfile�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleam_stdlib/src/[email protected]"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m skipping_unchanged_native_file_unchanged �[3mfile�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleam_stdlib/src/dict.mjs"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m skipping_unchanged_native_file_unchanged �[3mfile�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleam_stdlib/src/[email protected]"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m skipping_unchanged_native_file_unchanged �[3mfile�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleam_stdlib/src/gleam@bytes_tree.erl"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m skipping_unchanged_native_file_unchanged �[3mfile�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleam_stdlib/src/[email protected]"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_directory �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleam_stdlib/src/gleam"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m skipping_unchanged_native_file_unchanged �[3mfile�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleam_stdlib/src/[email protected]"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m skipping_unchanged_native_file_unchanged �[3mfile�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleam_stdlib/src/gleam@bit_array.erl"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m skipping_unchanged_native_file_unchanged �[3mfile�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleam_stdlib/src/[email protected]"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m skipping_unchanged_native_file_unchanged �[3mfile�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleam_stdlib/src/[email protected]"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m skipping_unchanged_native_file_unchanged �[3mfile�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleam_stdlib/src/[email protected]"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m skipping_unchanged_native_file_unchanged �[3mfile�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleam_stdlib/src/[email protected]"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m skipping_unchanged_native_file_unchanged �[3mfile�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleam_stdlib/src/gleam@string_tree.erl"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m skipping_unchanged_native_file_unchanged �[3mfile�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleam_stdlib/src/gleam@[email protected]"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m skipping_unchanged_native_file_unchanged �[3mfile�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleam_stdlib/src/[email protected]"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m skipping_unchanged_native_file_unchanged �[3mfile�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleam_stdlib/src/[email protected]"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m skipping_unchanged_native_file_unchanged �[3mfile�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleam_stdlib/src/[email protected]"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m skipping_unchanged_native_file_unchanged �[3mfile�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleam_stdlib/src/[email protected]"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m skipping_unchanged_native_file_unchanged �[3mfile�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleam_stdlib/src/[email protected]"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m skipping_unchanged_native_file_unchanged �[3mfile�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleam_stdlib/src/[email protected]"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m skipping_unchanged_native_file_unchanged �[3mfile�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleam_stdlib/src/gleam_stdlib.erl"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m skipping_unchanged_native_file_unchanged �[3mfile�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleam_stdlib/src/gleam_stdlib.mjs"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleam_stdlib�[1m}�[0m�[2m:�[0m reading_directory �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleam_stdlib/src/gleam/dynamic"
�[35mTRACE�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleeunit/gleam.toml"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m gleam_source_files "/.../code/backend/reproduction/guard_bug/build/packages/gleeunit/src"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m reading_directory �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleeunit/src"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m reading_directory �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleeunit/src/gleeunit"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleeunit/_gleam_artefacts/gleeunit.cache_meta"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m reading_directory �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleeunit/src/gleeunit/internal"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleeunit/_gleam_artefacts/[email protected]_meta"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleeunit/_gleam_artefacts/gleeunit@[email protected]_meta"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleeunit/_gleam_artefacts/gleeunit@internal@gleam_panic.cache_meta"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m CacheFiles::modules_with_meta_files "/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleeunit/_gleam_artefacts"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m reading_directory �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleeunit/_gleam_artefacts"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m module_to_load_from_cache �[3mmodule�[0m�[2m=�[0mgleeunit
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleeunit/_gleam_artefacts/gleeunit.cache"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleeunit/_gleam_artefacts/gleeunit.cache_inline"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m module_to_load_from_cache �[3mmodule�[0m�[2m=�[0mgleeunit/internal/gleam_panic
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleeunit/_gleam_artefacts/gleeunit@internal@gleam_panic.cache"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleeunit/_gleam_artefacts/gleeunit@internal@gleam_panic.cache_inline"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m module_to_load_from_cache �[3mmodule�[0m�[2m=�[0mgleeunit/internal/reporting
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleeunit/_gleam_artefacts/gleeunit@[email protected]"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleeunit/_gleam_artefacts/gleeunit@[email protected]_inline"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m module_to_load_from_cache �[3mmodule�[0m�[2m=�[0mgleeunit/should
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleeunit/_gleam_artefacts/[email protected]"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/gleeunit/_gleam_artefacts/[email protected]_inline"
�[32m INFO�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m analysing_modules �[3mcount�[0m�[2m=�[0m0
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m performing_code_generation
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m copying_native_source_files
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m reading_directory �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleeunit/src"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m skipping_unchanged_native_file_unchanged �[3mfile�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleeunit/src/gleeunit_ffi.mjs"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m skipping_unchanged_native_file_unchanged �[3mfile�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleeunit/src/gleeunit@[email protected]"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m skipping_unchanged_native_file_unchanged �[3mfile�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleeunit/src/gleeunit_ffi.erl"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m reading_directory �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleeunit/src/gleeunit"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m skipping_unchanged_native_file_unchanged �[3mfile�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleeunit/src/gleeunit_progress.erl"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m skipping_unchanged_native_file_unchanged �[3mfile�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleeunit/src/[email protected]"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m skipping_unchanged_native_file_unchanged �[3mfile�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleeunit/src/gleeunit@internal@gleam_panic.erl"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m skipping_unchanged_native_file_unchanged �[3mfile�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleeunit/src/gleeunit.erl"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m reading_directory �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleeunit/src/gleeunit/internal"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m skipping_unchanged_native_file_unchanged �[3mfile�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleeunit/src/gleeunit/internal/gleeunit_gleam_panic_ffi.mjs"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mgleeunit�[1m}�[0m�[2m:�[0m skipping_unchanged_native_file_unchanged �[3mfile�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/packages/gleeunit/src/gleeunit/internal/gleeunit_gleam_panic_ffi.erl"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mguard_bug�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m gleam_source_files "/.../code/backend/reproduction/guard_bug/src"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mguard_bug�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m reading_directory �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/src"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mguard_bug�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/guard_bug/_gleam_artefacts/guard_bug.cache_meta"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mguard_bug�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m gleam_source_files "/.../code/backend/reproduction/guard_bug/test"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mguard_bug�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m reading_directory �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/test"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mguard_bug�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/guard_bug/_gleam_artefacts/guard_bug_test.cache_meta"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mguard_bug�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/test/guard_bug_test.gleam"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mguard_bug�[1m}�[0m�[2m:�[0m�[1mload�[0m�[2m:�[0m gleam_source_files "/.../code/backend/reproduction/guard_bug/dev"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mguard_bug�[1m}�[0m�[2m:�[0m CacheFiles::modules_with_meta_files "/.../code/backend/reproduction/guard_bug/build/dev/javascript/guard_bug/_gleam_artefacts"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mguard_bug�[1m}�[0m�[2m:�[0m reading_directory �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/guard_bug/_gleam_artefacts"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mguard_bug�[1m}�[0m�[2m:�[0m module_to_load_from_cache �[3mmodule�[0m�[2m=�[0mguard_bug
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mguard_bug�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/guard_bug/_gleam_artefacts/guard_bug.cache"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mguard_bug�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/guard_bug/_gleam_artefacts/guard_bug.cache_inline"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mguard_bug�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/guard_bug/_gleam_artefacts/guard_bug.cache_warnings"
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mguard_bug�[1m}�[0m�[2m:�[0m module_to_load_from_cache �[3mmodule�[0m�[2m=�[0mguard_bug_test
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mguard_bug�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/guard_bug/_gleam_artefacts/guard_bug_test.cache"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mguard_bug�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/guard_bug/_gleam_artefacts/guard_bug_test.cache_inline"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mguard_bug�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/guard_bug/_gleam_artefacts/guard_bug_test.cache_warnings"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mguard_bug�[1m}�[0m�[2m:�[0m reading_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/test/guard_bug_test.gleam"
warning: Redundant record
   ┌─ /.../code/backend/reproduction/guard_bug/test/guard_bug_test.gleam:15:8
   │
15 │   case Some(42) {
   │        ^^^^^^^^ You can remove this record wrapper

Instead of building a record and matching on it, you can match on its
contents directly.
A case expression can take multiple subjects separated by commas like this:

    case one_subject, another_subject {
      _, _ -> todo
    }

See: https://tour.gleam.run/flow-control/multiple-subjects/

�[32m INFO�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mguard_bug�[1m}�[0m�[2m:�[0m analysing_modules �[3mcount�[0m�[2m=�[0m0
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mguard_bug�[1m}�[0m�[2m:�[0m performing_code_generation
�[34mDEBUG�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mguard_bug�[1m}�[0m�[2m:�[0m copying_native_source_files
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mguard_bug�[1m}�[0m�[2m:�[0m reading_directory �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/src"
�[35mTRACE�[0m �[1mcompile�[0m�[1m{�[0m�[3mpackage�[0m�[2m=�[0mguard_bug�[1m}�[0m�[2m:�[0m reading_directory �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/test"
   Compiled in 0.03s
    Running guard_bug_test.main
�[35mTRACE�[0m writing_file �[3mpath�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/guard_bug/gleam.main.mjs"
�[35mTRACE�[0m command_exec �[3mprogram�[0m�[2m=�[0m"node" �[3margs�[0m�[2m=�[0m"/.../code/backend/reproduction/guard_bug/build/dev/javascript/guard_bug/gleam.main.mjs" �[3menv�[0m�[2m=�[0m[] �[3mcwd�[0m�[2m=�[0mNone
�[90mtest/guard_bug_test.gleam:20�[39m
42
�[32m.�[39m�[32m
1 passed, no failures�[39m

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions