mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-16 08:04:20 +00:00
make run the default action of a test in tester
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
discard """
|
||||
action: compile
|
||||
"""
|
||||
|
||||
# Covariance is not type safe:
|
||||
|
||||
type
|
||||
@@ -14,4 +18,3 @@ proc bp(x: var TB) = x.b[high(x.b)] = -1
|
||||
var f = cast[proc (x: var TA) {.nimcall.}](bp)
|
||||
var a: TA
|
||||
f(a) # bp expects a TB, but gets a TA
|
||||
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
discard """
|
||||
output: "[Suite] object basic methods"
|
||||
"""
|
||||
|
||||
import unittest
|
||||
|
||||
type Obj = object
|
||||
|
||||
Reference in New Issue
Block a user