fixes #304
This commit is contained in:
parent
65319ba22d
commit
0761b449ed
3 changed files with 50 additions and 25 deletions
|
|
@ -25,3 +25,11 @@ var x = stdin.readline.split.map(parseInt).max
|
|||
echo x, " is the maximum!"
|
||||
echo "another number: ", takeParseInt(parseInt)
|
||||
|
||||
|
||||
type
|
||||
TFoo[a,b] = object
|
||||
lorem: a
|
||||
ipsum: b
|
||||
|
||||
proc bar[a,b](f: TFoo[a,b], x: a) = echo(x, " ", f.lorem, f.ipsum)
|
||||
proc bar[a,b](f: TFoo[a,b], x: b) = echo(x, " ", f.lorem, f.ipsum)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue