20 lines
274 B
C#
20 lines
274 B
C#
|
// CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression
|
||
|
// Line: 13
|
||
|
|
||
|
using System;
|
||
|
|
||
|
class MyAttribute : Attribute {
|
||
|
|
||
|
public MyAttribute (string s)
|
||
|
{
|
||
|
}
|
||
|
}
|
||
|
|
||
|
[My (null as string)]
|
||
|
class X {
|
||
|
|
||
|
static void Main ()
|
||
|
{
|
||
|
}
|
||
|
}
|