[Mono-list] mcs bails on a small typo....

Richard Torkar richard.torkar@htu.se
23 May 2002 13:57:45 +0200


--=-mAoxuZqkDkbvQvGJT9rL
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Filed as bug 25170 in bugzilla (mono/mcs)

Description of Problem:
When compiling the code which is attached to this bug report I get a
NullReferenceException...

Steps to reproduce the problem:
1. Compile the code which will be attached to the bug report shortly
2. mcs --target library Calc.cs

Actual Results:
mcs bails

Expected Results:
Should give a warning regarding the typo

How often does this happen? 
Every time..

Additional Information:
I use mono-0.11_baselabs-20020522

btw the typo is on line 11 (it says in instead of int...)

/Richard

--=-mAoxuZqkDkbvQvGJT9rL
Content-Disposition: attachment; filename=Calc.cs
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; name=Calc.cs; charset=ISO-8859-15


using System;

public class Calc
{
	public static int Add(int x, int y)
	{
		return x + y;
	}

	public static in Substract(int x, int y)
	{
		return x - y;
	}
}

--=-mAoxuZqkDkbvQvGJT9rL--