If you change the "yes" procedure to return a integer as a example not work
    
    
    template `:=`(a, b): untyped {.dirty.} =
        let a = b
        a
    
    proc yes: int = 1
    
    if x := yes():
        echo x

test.nim(7, 6) Error: type mismatch: got <int> but expected 'bool'

Reply via email to