Remove invalid asserts on unsupported underlying enum type (dotnet/coreclr#9192)
authorJan Kotas <jkotas@microsoft.com>
Sun, 29 Jan 2017 03:54:57 +0000 (19:54 -0800)
committerGitHub <noreply@github.com>
Sun, 29 Jan 2017 03:54:57 +0000 (19:54 -0800)
commita5cef589605a3d7a2f14e9a2f374670a2a9ca17d
treea46e920994a7788824c4312f3b86dc78eedc6c81
parent8774dbff206ba7d47fef02d450120155daace866
Remove invalid asserts on unsupported underlying enum type (dotnet/coreclr#9192)

The underlying enum type can be floating point type or native integer for historic reasons.
However, not all framework methods support these special enum types. They should throw exception
for them instead of asserting.

Fix issue dotnet/coreclr#7670

Commit migrated from https://github.com/dotnet/coreclr/commit/fbe52109370516c19e47451040752305d5dc0fe0
src/coreclr/src/mscorlib/src/System/Enum.cs