type Test = concept test type T = auto test.stuff(T) proc stuff[T](i: int, value: T): T = result = value proc testWithInt(t: Test) = discard t.stuff(123) let i = 123 testWithInt(i)
Standard input is empty
prog.nim(13, 12) Error: type mismatch: got (int) but expected one of: proc testWithInt[Test](t: Test)
Standard output is empty