lots of small changes
This commit is contained in:
parent
c0c35839cc
commit
a5ecbf823f
85 changed files with 180 additions and 110 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import pkg8616 / scheduler
|
||||
|
||||
when isMainModule:
|
||||
when true:
|
||||
init()
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ type
|
|||
of false:
|
||||
region: float
|
||||
|
||||
when isMainModule:
|
||||
when true:
|
||||
let r = 1.5
|
||||
let a = TypeOne(animatedU: true,
|
||||
animated: false,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue