discard """
msg: '''ObjectTy(Sym(Model), RecList(Sym(name), Sym(password)))
BracketExpr(Sym(typeDesc), Sym(User))'''
"""
import strutils, macros

type
  Model = object of RootObj
  User = object of Model
    name : string
    password : string

macro testUser: expr =
  return newLit(User.getType.lispRepr)

macro testGeneric(T: typedesc[Model]): expr =
  return newLit(T.getType.lispRepr)

echo testUser
echo User.testGeneric
