Ourpalm / ILRuntime

Pure C# IL Intepreter Runtime, which is fast and reliable for scripting requirement on enviorments, where jitting isn't possible.
Other
2.99k stars 655 forks source link

自动生成的CLR绑定代码有编译错误 #761

Closed sagasarate closed 1 year ago

sagasarate commented 1 year ago

最近把ILRuntime升级到了master最新版本,从新生成CLR绑定代码后出现了如下编译错误

Assets\Scripts\Generated\DOSSystem_CSmartStruct_Binding.cs(364,94): error CS1503: Argument 2: cannot convert from 'System.Collections.Generic.IList' to 'System.Collections.Generic.List'

看了下主要是RetriveInt32,RetriveInt64,RetriveFloat的mStack参数要求类型是List,但传入的类型是IList

sagasarate commented 1 year ago

已解决,自己乌龙了,更新完ILRuntime没有重启unity,unity的编辑器扩展代码不重启不更新的,导致还在用旧的生成代码