diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b2238c8..12a81fb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - nim: [stable, 1.6.14, 1.4.8, 1.2.18] + nim: [stable, 1.6.16, 1.4.8, 1.2.18] steps: - uses: actions/checkout@v2 - uses: iffy/install-nim@v3 diff --git a/questionable/binding.nim b/questionable/binding.nim index bdd0ee1..3a68107 100644 --- a/questionable/binding.nim +++ b/questionable/binding.nim @@ -8,7 +8,7 @@ proc option[T](option: Option[T]): Option[T] = proc placeholder(T: type): T = discard -template bindLet(name, expression): bool = +template bindLet(name, expression): untyped = let evaluated = expression let option = evaluated.option type T = typeof(option.unsafeGet()) @@ -19,7 +19,7 @@ template bindLet(name, expression): bool = placeholder(T) option.isSome -template bindVar(name, expression): bool = +template bindVar(name, expression): untyped = let evaluated = expression let option = evaluated.option type T = typeof(option.unsafeGet())