summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0664-3.cs
blob: e78dcd9150b9e5375d90a835bc64a0d6e9381b65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// CS0664: Literal of type double cannot be implicitly converted to type `float'. Add suffix `f' to create a literal of this type
// Line: 13

using System;

public sealed class BoundAttribute : System.Attribute
{
	public float D;
}

class C
{
	[Bound (D = 300d)]
	double d2;
}