summary refs log tree commit diff stats
path: root/tests/compile
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-05-31 02:27:05 +0200
committerAraq <rumpf_a@web.de>2013-05-31 02:27:05 +0200
commit24955f83584de89d3222d409d499b01d42f4e83e (patch)
tree3c7b032cc991fb69d879e6862fa7f2c073d44846 /tests/compile
parent1c6ce881ecfa9b6a1ea68c278d7bda8f6c032fc4 (diff)
downloadNim-24955f83584de89d3222d409d499b01d42f4e83e.tar.gz
fixes #458
Diffstat (limited to 'tests/compile')
-rw-r--r--tests/compile/tvarious.nim8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/compile/tvarious.nim b/tests/compile/tvarious.nim
index 52dd46184..087233226 100644
--- a/tests/compile/tvarious.nim
+++ b/tests/compile/tvarious.nim
@@ -1,5 +1,8 @@
 # Test various aspects

 

+var x = (x: 42, y: (a: 8, z: 10))
+echo x.y
+

 import

   mvarious

 

@@ -31,7 +34,7 @@ var
 r.b.a.x = 0

 global = global + 1

 exportme()

-write(stdout, "Hallo wie heißt du? ")

+write(stdout, "Hallo wie heißt du? ")

 write(stdout, getPA().x)

 s = readLine(stdin)

 i = 0

@@ -39,5 +42,4 @@ while i < s.len:
   if s[i] == 'c': write(stdout, "'c' in deinem Namen gefunden\n")

   i = i + 1

 

-write(stdout, "Du heißt " & s)

-

+write(stdout, "Du heißt " & s)