summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0183-6.cs
blob: a94ec8d51ade4ac43ffb036f480b1f37219abff2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// CS0183: The given expression is always of the provided (`System.Enum') type
// Line: 13
// Compiler options: -warnaserror

using System;

enum E { Item };

class C
{
	static bool Check (E e)
	{
		return e is Enum;
	}
}