a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
21 lines
263 B
C#
21 lines
263 B
C#
// 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;
|
|
}
|
|
}
|