summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0592-9.cs
blob: 857d369e41e97500c55748d5d854c6850429f8ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// CS0592: The attribute `SAttribute' is not valid on this declaration type. It is valid on `return' declarations only
// Line : 12

using System;

[AttributeUsage (AttributeTargets.ReturnValue)]
class SAttribute: Attribute {}

public class C
{
    int Prop {
        [param: S]
        set {
        }
    }
}