Bug 21215

Summary: Internal NullReferenceException on invalid invocation of a params method
Product: [Mono] Compilers Reporter: Aaron Bockover [MSFT] <abock>
Component: C#Assignee: Marek Safar <masafa>
Severity: normal CC: mono-bugs+mono
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS   
Tags: Is this bug a regression?: ---
Last known good build:

Description Aaron Bockover [MSFT] 2014-07-09 18:44:05 UTC
In 3.6.0 (git a653694 Fri Jun 20 14:16:47 EDT 2014),

I get "error CS0584: Internal compiler error: Object reference not set to an instance of an object"


	class Entry
		static void Foo (string foo, params object [] moreFoo)

		static void Main (string [] args)
			Foo ();

When the params argument is removed from Foo, the compiler gives a correct error upon the invocation of Foo without the first argument. It NREs internally when params are present.
Comment 1 Marek Safar 2014-07-14 05:22:48 UTC
Fixed in master