diff options
author | Bung <crc32@qq.com> | 2022-12-01 20:34:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-01 13:34:00 +0100 |
commit | 658b28dc5707601b39d9aad4b6bf79a9afff1e92 (patch) | |
tree | b8e10d4d1f2666c45c3b1dec23e7c03d5ba23be9 /tests/varres | |
parent | a70d3abd37819e7562f80f0c808788c3f5c62c55 (diff) | |
download | Nim-658b28dc5707601b39d9aad4b6bf79a9afff1e92.tar.gz |
tyInt tyUint fit target int bit width (#20829)
Diffstat (limited to 'tests/varres')
-rw-r--r-- | tests/varres/tprevent_forloopvar_mutations.nim | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/tests/varres/tprevent_forloopvar_mutations.nim b/tests/varres/tprevent_forloopvar_mutations.nim index 96bb208c2..aae23d8b1 100644 --- a/tests/varres/tprevent_forloopvar_mutations.nim +++ b/tests/varres/tprevent_forloopvar_mutations.nim @@ -1,14 +1,5 @@ discard """ errormsg: "type mismatch: got <int>" - nimout: '''tprevent_forloopvar_mutations.nim(16, 7) Error: type mismatch: got <int> -but expected one of: -proc inc[T: Ordinal](x: var T; y = 1) - first type mismatch at position: 1 - required type for x: var T: Ordinal - but expression 'i' is immutable, not 'var' - -expression: inc i -''' """ for i in 0..10: |