Bug 318119 (MONO75095) - [GMCS] Failure to find static, generic method
Summary: [GMCS] Failure to find static, generic method
Status: RESOLVED FIXED
Alias: MONO75095
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Major
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-30 09:46 UTC by Sam Kaufman
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:19:14 UTC


---- Reported by emrysk@gmail.com 2005-05-30 02:46:01 MST ----

Using GMCS, the following test case compiles but fails to run with Mono 1.1.7.

using System;
using System.IO;

class TestCase
{
	delegate void SomeDelegate(Stream s);
	
	static void Problem<T>(T o) where T: Stream
	{
		SomeDelegate d = delegate(Stream s)
		{
			Console.WriteLine(typeof(T) + " != " + s.GetType());
		};

		d(o);
	}

	static void Main()
	{
		Problem<FileStream>(File.OpenWrite("/tmp/apple"));
	}
}


I get this on stdout:

** ERROR **: file metadata.c: line 1790
(mono_metadata_parse_generic_param): assertion failed: (generic_context)
aborting...
Aborted



---- Additional Comments From miguel@ximian.com 2005-06-08 14:55:48 MST ----

This no longer happens with SVN


Unknown bug field "cf_op_sys_details" encountered while moving bug
   <cf_op_sys_details>Ubuntu Linux 5.04 (Hoary)</cf_op_sys_details>
Unknown operating system unknown. Setting to default OS "Other".