summary refs log tree commit diff stats
path: root/tests/int/tunsignedinc.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/int/tunsignedinc.nim')
-rw-r--r--tests/int/tunsignedinc.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/int/tunsignedinc.nim b/tests/int/tunsignedinc.nim
index 9d1a4bbb4..9392f1b74 100644
--- a/tests/int/tunsignedinc.nim
+++ b/tests/int/tunsignedinc.nim
@@ -32,3 +32,9 @@ block t4175:
   const j = 0u - 1u
   doAssert i == j
   doAssert j + 1u == 0u
+
+block: # https://forum.nim-lang.org/t/12465#76998
+  var a: int = 1
+  var x: uint8 = 1
+  a.inc(x)   # Error: type mismatch
+  doAssert a == 2