mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 01:14: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
20 lines
248 B
Nim
20 lines
248 B
Nim
discard """
|
|
targets: "c cpp js"
|
|
"""
|
|
|
|
import std/assertions
|
|
|
|
# bug #20227
|
|
type
|
|
Data = object
|
|
id: int
|
|
|
|
Test = distinct Data
|
|
|
|
Object = object
|
|
data: Test
|
|
|
|
|
|
var x: Object = Object(data: Test(Data(id: 12)))
|
|
doAssert Data(x.data).id == 12
|