summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0039.cs
blob: e41330bb03941d3e2e23faa08c05fe889c3eaff2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// CS0039: Cannot convert type `decimal' to `string' via a built-in conversion
// Line: 8
class A {
        public static void Main ()
        {
		decimal tryDec;
		tryDec = 1234.2345M;

		object a = tryDec as string;
        }
}