lots of small changes

This commit is contained in:
Arne Döring 2018-12-05 19:03:01 +01:00 • committed by Araq
commit a5ecbf823f
85 changed files with 180 additions and 110 deletions

View file

@ -1,4 +1,4 @@
import pkg8616 / scheduler
when isMainModule:
when true:
init()

View file

@ -18,7 +18,7 @@ type
of false:
region: float
when isMainModule:
when true:
let r = 1.5
let a = TypeOne(animatedU: true,
animated: false,

View file

@ -15,7 +15,7 @@ type
proc mult(x:int, y:var int) =
y = 2 * x
when isMainModule:
when true:
var input = 1
var output = 0

View file

@ -1,5 +1,5 @@
discard """
output: '''false'''
output: "done generic smallobj asgn opt"
"""
# bug #5402
@ -23,4 +23,5 @@ proc newListOfContainers[T](): ListOfContainers[T] =
result.list = initDoublyLinkedList[Container[T]]()
let q = newListOfContainers[int64]()
echo q.contains(123)
if not q.contains(123):
echo "done generic smallobj asgn opt"

View file

@ -1,5 +1,5 @@
discard """
output: "done"
output: "done markerproc regression"
"""
type
@ -42,6 +42,6 @@ proc main =
let expected = $i & "some longer text here " & $i
if a[i].ver.string != expected:
quit "bug!"
echo "done"
echo "done markerproc regression"
main()

View file

@ -1,6 +1,8 @@
discard """
output: '''Subobject test called
5'''
output: '''
Subobject test called
5
'''
"""
type
@ -49,4 +51,3 @@ var a: SubObject
a.test()
echo a.t