fixes #2473; cleanup of some tests

This commit is contained in:
Araq 2015-09-30 21:04:21 +02:00
commit 5a003532d0
6 changed files with 28 additions and 54 deletions

View file

@ -1,8 +1,10 @@
discard """
file: "tmemfiles2.nim"
disabled: true
output: '''Full read size: 20
Half read size: 10 Data: Hello'''
"""
# doesn't work on windows. fmReadWrite doesn't create a file.
import memfiles, os
var
mm, mm_full, mm_half: MemFile

View file

@ -0,0 +1,16 @@
discard """
msg: "abc xyz bb"
"""
# bug #2473
type
Test = tuple[a,b: string]
static:
var s:seq[Test] = @[(a:"a", b:"b")]
s[0] = (a:"aa", b:"bb")
var x: Test
x.a = "abc"
x.b = "xyz"
echo x.a, " ", x.b, " ", s[0].b

View file

@ -1,6 +1,6 @@
discard """
errormsg: "cannot evaluate at compile time: x"
line: 9
line: 7
"""
var x: array[100, char]