You've already forked linux-packaging-mono
Imported Upstream version 5.10.0.47
Former-commit-id: d0813289fa2d35e1f8ed77530acb4fb1df441bc0
This commit is contained in:
parent
88ff76fe28
commit
e46a49ecf1
@@ -131,6 +131,18 @@ namespace MonoTests.EvaluatorTest
|
||||
{
|
||||
Evaluator.Run ("public class TestClass { private TestEnum _te; public string Get() { return _te.ToString(); } } public enum TestEnum { First, Second }");
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void EnumTypeWithOrderDependency ()
|
||||
{
|
||||
Evaluator.Run ("public class TestClass { public enum TestEnum { Val1, Val2, Val3 } public TestEnum test; public TestClass() { test = TestEnum.Val3; } }");
|
||||
object res = Evaluator.Evaluate ("new TestClass()");
|
||||
|
||||
var fields = res.GetType ().GetFields ();
|
||||
foreach (var field in fields) {
|
||||
Console.WriteLine ($"{field.Name} = {field.MemberType}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
Reference in New Issue
Block a user