[Mono-bugs] [Bug 633037] System.Web.Mvc.ViewPage<dynamic> causes compiler exception when accessing Model methods or properties
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Aug 19 21:55:57 EDT 2010
https://bugzilla.novell.com/show_bug.cgi?id=633037
https://bugzilla.novell.com/show_bug.cgi?id=633037#c2
--- Comment #2 from Denis Lebedenko <denisv at post.skynet.lt> 2010-08-20 01:55:56 UTC ---
Here's a smaller example that in a way imitates ASP.NET MVC:
1. Create test.cs with the following code:
/* code starts */
class Class1
{
public int Method1() { return 1000; }
}
class Class2<T>
{
public T t;
}
class Class3 : Class2<dynamic>
{
public void Method2()
{
t.Method1();
}
}
class Program
{
public static void Main()
{
var c3 = new Class3();
c3.t = new Class1();
c3.Method2();
}
}
/* code ends */
2. dmcs test.cs
3. exception!
--
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.
More information about the mono-bugs
mailing list