Closed kuche1 closed 1 month ago
!nim c
type limited_int = range[1..20]
var d: limited_int
doAssert d == 1, $d
97.75 Kb (100,096 bytes)
```cpp
#define NIM_INTBITS 64
#include "nimbase.h"
#include 2024-08-12T18:57:24
2024-08-12T18:57:24
93.71 Kb (95,960 bytes)
```cpp
#define NIM_INTBITS 64
#include "nimbase.h"
#include 2024-08-12T18:57:28
2024-08-12T18:57:28
91.67 Kb (93,872 bytes)
```cpp
#define NIM_INTBITS 64
#include "nimbase.h"
#include 2024-08-12T18:57:31
2024-08-12T18:57:32
91.68 Kb (93,880 bytes)
```cpp
#define NIM_INTBITS 64
#include "nimbase.h"
#include 2024-08-12T18:57:34
2024-08-12T18:57:35
96.16 Kb (98,472 bytes)
```cpp
#define NIM_INTBITS 64
#include "nimbase.h"
#include 2024-08-12T18:57:38
2024-08-12T18:57:39
91.80 Kb (94,000 bytes)
```cpp
#define NIM_INTBITS 64
#include "nimbase.h"
#include 2024-08-12T18:57:41
2024-08-12T18:57:41
91.53 Kb (93,728 bytes)
```cpp
#define NIM_INTBITS 64
#include "nimbase.h"
#include 2024-08-12T18:57:44
2024-08-12T18:57:44
86.58 Kb (88,656 bytes)
```cpp
#define NIM_INTBITS 64
#include "nimbase.h"
#include 2024-08-12T18:57:46
2024-08-12T18:57:46
11.4.0
14.0.0
20.4
2024-08-12T18:56:58Z
1
nim c --run -d:nimDebug -d:nimDebugDlOpen -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --verbosity:0 --hints:off --lineTrace:off --nimcache:/home/runner/work/Nim/Nim --out:/home/runner/work/Nim/Nim/temp /home/runner/work/Nim/Nim/temp.nim
:robot: Bug found in 25 minutes
bisecting 8
commits at 0
commits per second
Description
I'm able to put a 0 in a range that shouldn't allow this value
Nim Version
Nim Compiler Version 2.0.4 [Linux: amd64] Compiled at 2024-05-04 Copyright (c) 2006-2023 by Andreas Rumpf
git hash: 08d9e6af883be33239a88b36f6f5416e06a9ea84 active boot switches: -d:release
Current Output
Expected Output
Possible Solution
No response
Additional Information
No response