summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0162-14.cs
blob: 72880f72beaede6efbd502aec7d3b186d0b08707 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// CS0162: Unreachable code detected
// Line: 12
// Compiler options: -warnaserror -warn:2

using System;

class E
{
   public void Method<T> () where T : class
   {
      if (default (T) != null)
         throw new ArgumentNullException ();
   }
}