https://bugzilla.novell.com/show_bug.cgi?id=659044
https://bugzilla.novell.com/show_bug.cgi?id=659044#c0 Summary: 'dynamic' keyword works in Console, but not in Unit Test Classification: Mono Product: Mono: Runtime Version: 2.8.x Platform: 64bit OS/Version: Mac OS X 10.6 Status: NEW Severity: Critical Priority: P5 - None Component: misc AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.215 Safari/534.10 When I create a new Console project in MonoDevelop and add the following code it works when I run it as a Console app, but when I run the unit test it fails with a TypeLoadException: [TestFixture] public class MainClass { public static void Main (string[] args) { dynamic x = "Hello World"; Console.WriteLine (x); } [Test] public void X () { dynamic x = "Hello World"; Console.WriteLine (x); } } Reproducible: Always Steps to Reproduce: 1. Create a new Console project 2. Paste in the code 3. Run the program -- WORKS 4. Execute the unit test -- FAILS -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
