Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-483.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ba6b97f812113e33b28e6610922014ce5ba58cd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Compiler options: -r:test-483-lib.dll

using System;

public class Tests
{
	public static void Main ()
	{
		Bar bar = null;
		try { bar.clone (); } catch (NullReferenceException) {}
	}
}

class B : Bar
{
	public override object clone ()
	{
		return null;
	}
}