rsdn/nemerle — Issue #255: ICE when set property of attribute if attribute declared after it using
Author: VladD2
Created: 2012-01-26 04:00:06+00:00
State: open
Labels: Bug, Compiler

```nemerle
using System;
using System.Collections.Generic;
using System.Linq;

namespace Tests
{
class P
{
[SqlFunction("PI", ServerSideOnly = true)] // ICE: Not writable property
static void Main()
{
}
}

[SerializableAttribute]
[AttributeUsageAttribute(AttributeTargets.Method | AttributeTargets.Property, AllowMultiple = true, Inherited = false)]
public class SqlFunctionAttribute : Attribute
{
public SqlFunctionAttribute(string name)
{
Name = name;
}
public string Name { get; set; }
public bool ServerSideOnly { get; set; }
}
}
```