not complaining but seeking to understand how the Nim compiler can be this intelligent case myvar.kind: of JArray: echo "it is an array" Error: not all cases are covered; missing: {JNull, JBool, JInt, JFloat, JString}