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
I tried using a collection expression when setting the storage prefixes, but the Neo compiler does not support that properly, thus throwing a "Specified cast invalid" at runtime.
// Does NOT work:privatestaticreadonlybyte[]TreeByteLengthPrefix=[0x01,0x03];// Works:privatestaticreadonlybyte[]TreeByteLengthPrefix=newbyte[]{0x01,0x03};
I think it should either be supported or give a warning/error at compile time, as it was frustrating to debug.
PS: While looking in the C# Language Specification Support issue #819 , I could not find the collection expression support listed. I think collection expressions were introduced in C# 12.
The text was updated successfully, but these errors were encountered:
I tried using a collection expression when setting the storage prefixes, but the Neo compiler does not support that properly, thus throwing a "Specified cast invalid" at runtime.
I think it should either be supported or give a warning/error at compile time, as it was frustrating to debug.
PS: While looking in the C# Language Specification Support issue #819 , I could not find the collection expression support listed. I think collection expressions were introduced in C# 12.
The text was updated successfully, but these errors were encountered: