mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
* make more standard libraries work with `nimPreviewSlimSystem` * typo * part two * Delete specutils.nim * fixes more tests * more fixes * fixes tests * fixes three more tests * add formatfloat import * fix * last
26 lines
294 B
Nim
26 lines
294 B
Nim
discard """
|
|
exitcode: 1
|
|
outputsub: '''
|
|
tunittesttemplate.nim(20, 12): Check failed: a.b == 2
|
|
a.b was 0
|
|
[FAILED] 1
|
|
'''
|
|
"""
|
|
|
|
|
|
|
|
# bug #6736
|
|
import std/unittest
|
|
|
|
type
|
|
A = object
|
|
b: int
|
|
|
|
template t: untyped =
|
|
check(a.b == 2)
|
|
|
|
suite "1":
|
|
test "1":
|
|
var a = A(b: 0)
|
|
t()
|