-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
Description
import typetraits
type A = object
type B = int
type C = A
let b = 1.B
let c = C()
echo b.type.name #B
echo c.type.name #AI expected either
echo b.type.name #B
echo c.type.name #Cor
echo b.type.name #int
echo c.type.name #AI would prefer the first result, since the second can be found out without the usage of typetraits with a is int etc (assuming this doesn't use typetraits).
Nim version: 0.18.0 win64