maybe...Argument mismatch:userdata candidate is:
A,A,
From experimenting, it appears that Kaguya puts in metadata with a string of the type. In this case, A. This way it can check against the type to convert to, A, and convert to it safely if they match. However, this does not appear to be working correctly, since A is clearly equal to A, yet it says that there is an argument mismatch. Is this a problem with my code, or Kaguya itself?
I have (essentially) this code:
The
a1:equals(a2)
prints an error:From experimenting, it appears that Kaguya puts in metadata with a string of the type. In this case,
A
. This way it can check against the type to convert to,A
, and convert to it safely if they match. However, this does not appear to be working correctly, sinceA
is clearly equal toA
, yet it says that there is an argument mismatch. Is this a problem with my code, or Kaguya itself?