ugh, maybe broke git

This commit is contained in:
Araq 2011-04-01 15:07:16 +02:00
commit 4741e8f9a1
25 changed files with 587 additions and 172 deletions

View file

@ -0,0 +1,17 @@
discard """
output: '''x: 0 y: 0'''
"""
proc ToString*[T](x: T): string = return $x
type
TMyObj = object
x, y: int
proc `$`*(a: TMyObj): bool =
result = "x: " & a.x & " y: " & a.y
var a: TMyObj
echo toString(a)