Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs1016.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 890c5cda0dbb72e2b5915d5f8aed590032ecd59f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// cs1016.cs: Named attribute argument expected
// Line: 19

using System;
using System.Runtime.CompilerServices;

class Attr: Attribute
{
    public Attr (int i) {}
    
    public string Arg {
        set {}
        get { return "a"; }
    }
}

public class E
{
    [Attr (Arg = "xxx", 3)]
    public void Method () {}
}