You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C:\Users\jver\Downloads\lua-5.2.4_Win64_bin\lua52.exe: System.NotSupportedException: System.Collections.Generic.KeyValuePair`2[System.Collections.Generic.KeyValuePair`2[System.Int32,System.Boolean],System.String] User-defined struct not support GetHashCode
stack traceback:
.\out.lua:10330: in function 'addToSet'
.\out.lua:10444: in function 'init'
.\out.lua:9783: in function 'MoveNext'
.\out.lua:10839: in function 'Count'
.\out.lua:19606: in function 'Main'
.\out.lua:19621: in main chunk
[C]: in function 'require'
...arp.lua\CSharp.lua.Launcher\bin\Debug\net7.0\DT\main.lua:1: in main chunk
[C]: in ?
The text was updated successfully, but these errors were encountered:
I started working on this and got struck on behavior I don't understand. Tuple returns a string representation of its content as the hash code. And some base types return non-integers as their hash code (#477).
joelverhagen
added a commit
to joelverhagen/FactorioTools
that referenced
this issue
Jan 4, 2024
I think this is confusing because from the user's perspective (the user of CSharp.Lua) a KVP is not user-defined.
Repro:
Error:
The text was updated successfully, but these errors were encountered: