Closed jdidion closed 3 years ago
The get function coerces to the first allowed type. Since Int can be coerced to String, it returns a String even when the value is an Int. So T_String has to come last.
get
Int
String
T_String
The
get
function coerces to the first allowed type. SinceInt
can be coerced toString
, it returns aString
even when the value is anInt
. SoT_String
has to come last.