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
Enum.lua gets the type of variable TEnum at line 161 but TEnum is already a type if the Enum.TryParse(Type type, ...) methos variant is used. Therefore the exception at line 56 is always thrown.
Enum.lua
gets the type of variableTEnum
at line 161 butTEnum
is already a type if theEnum.TryParse(Type type, ...)
methos variant is used. Therefore the exception at line 56 is always thrown.Enum.IsDefined
errors with `String.lua:172: bad argument var arr = new[] { 1, 2, 3, 4 };语法的支持 #1 to 'find' (string expected got boolean)If the enum is defined in a different module, all of the above methods don't work anymore because the type parameter is nil.
Example:
With
PedModel
defined in a different module, it is always nil and the assertions fail.The text was updated successfully, but these errors were encountered: