properly fixed here: 
[https://github.com/nim-lang/Nim/pull/11822](https://github.com/nim-lang/Nim/pull/11822)
 nim has a real alias that works with any symbol #11822
    
    
    proc getLength(i: int): int = sizeof(i)
    proc getLength(s: string): int = s.len
    # const length = getLength # Error: cannot generate VM code for getLength
    length := getLength # works
    echo length("alias")
    
    
    Run

Reply via email to