mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-12 14:23:45 +00:00
#### Removes UnInit warnings when using `scanTuple` e.g. this would emit a warning ```nim import std/strscans proc main() = let (ok, number) = "123".scanTuple() ```  #### Error for wrong type now points to the passed in variable ```nim import std/strscans var str: string discard "123".scanf("$i", str) ``` it gave this warning before  now it returns 
12 lines
245 B
Nim
12 lines
245 B
Nim
discard """
|
|
cmd: "nim check $file"
|
|
"""
|
|
|
|
import std/strscans
|
|
|
|
|
|
block:
|
|
var strVar: string
|
|
discard "123".scanf("$i", strVar) #[tt.Error
|
|
^ type mismatch between pattern '$$i' (position: 1) and string var 'strVar']#
|