[corlib] ModuleBuilder pseudo-token lookup needs to use references insteads of logica...
[mono.git] / mcs / class / Mono.CSharp / Test / Evaluator / TypesTest.cs
index 47aee14e4c57d9f357f359f3ce70ca1d1b1a5ec1..97f9e047e6d543afa711984aed41eac9e3260ecb 100644 (file)
@@ -125,5 +125,11 @@ namespace MonoTests.EvaluatorTest
                        object res = Evaluator.Evaluate ("attr.GetType().Name;");
                        Assert.AreEqual ("A", res);
                }
+
+               [Test]
+               public void EnumType ()
+               {
+                       Evaluator.Run ("public class TestClass { private TestEnum _te; public string Get() { return _te.ToString(); } } public enum TestEnum { First, Second }");
+               }
        }
 }
\ No newline at end of file