summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0221-9.cs
blob: 4814058bf0d50a09ed57c095a32e5f9084ef20e8 (plain)
1
2
3
4
5
6
7
8
9
// CS0221: Constant value `3.402823E+38' cannot be converted to a `ulong' (use `unchecked' syntax to override)
// Line: 6

class X {
	static void Main () {
		const float d = float.MaxValue;
		ulong b = (ulong) d;
	}
}