a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
18 lines
246 B
C#
18 lines
246 B
C#
// CS1706: Anonymous methods and lambda expressions cannot be used in the current context
|
|
// Line: 13
|
|
|
|
using System;
|
|
|
|
delegate int TestDelegate();
|
|
|
|
class MyAttr : Attribute
|
|
{
|
|
public MyAttr (TestDelegate d) { }
|
|
}
|
|
|
|
[MyAttr (() => 1)]
|
|
class C
|
|
{
|
|
}
|
|
|