We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I used the "dynamic" and "enum" as follow: class DynamicEnum { enum TEST { t1 }
TEST _test; void Selected(dynamic param) { _test = param; } }
I got an error without useful info: error : 10(18,14): native.DynamicEnum.Selected(dynamic) UnityEngine.Debug:Log(Object) CSharpCompiler.UnityLogTextWriter:Log(String) (at Assets/ThridParty/mcs_ICodeCompiler/UnityLogTextWriter.cs:19) CSharpCompiler.SourceCodeBundle:.ctor(ScriptBundleLoader, IEnumerable1) (at Assets/ThridParty/mcs_ICodeCompiler/ScriptBundleLoader.cs:227) CSharpCompiler.ScriptBundleLoader:LoadAndWatchSourceBundle(IEnumerable1) (at Assets/ThridParty/mcs_ICodeCompiler/ScriptBundleLoader.cs:41)
1) (at Assets/ThridParty/mcs_ICodeCompiler/ScriptBundleLoader.cs:227) CSharpCompiler.ScriptBundleLoader:LoadAndWatchSourceBundle(IEnumerable
But if change the type of _test as "string", the error is disappeared
The text was updated successfully, but these errors were encountered:
Does your code work anywhere else ? How about Enum.Parse, usually you can not cast enum's directly, not in C# at least, Cheers,
Sorry, something went wrong.
No branches or pull requests
When I used the "dynamic" and "enum" as follow:
class DynamicEnum
{
enum TEST
{
t1
}
I got an error without useful info:
error : 10(18,14): native.DynamicEnum.Selected(dynamic)
UnityEngine.Debug:Log(Object)
CSharpCompiler.UnityLogTextWriter:Log(String) (at Assets/ThridParty/mcs_ICodeCompiler/UnityLogTextWriter.cs:19)
CSharpCompiler.SourceCodeBundle:.ctor(ScriptBundleLoader, IEnumerable
1) (at Assets/ThridParty/mcs_ICodeCompiler/ScriptBundleLoader.cs:227) CSharpCompiler.ScriptBundleLoader:LoadAndWatchSourceBundle(IEnumerable
1) (at Assets/ThridParty/mcs_ICodeCompiler/ScriptBundleLoader.cs:41)But if change the type of _test as "string", the error is disappeared
The text was updated successfully, but these errors were encountered: