a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
26 lines
469 B
C#
26 lines
469 B
C#
// CS0579: The attribute `ConditionalAttributeTesting.SomeAttribute' cannot be applied multiple times
|
|
// Line: 12
|
|
|
|
using System;
|
|
using System.Diagnostics;
|
|
|
|
namespace ConditionalAttributeTesting
|
|
{
|
|
class MainClass
|
|
{
|
|
[Some ("Test")]
|
|
[Some ("Test2")]
|
|
public static void Test ()
|
|
{
|
|
}
|
|
}
|
|
|
|
[AttributeUsage (AttributeTargets.All)]
|
|
[Conditional ("NOT_DEFINED")]
|
|
public sealed class SomeAttribute : Attribute
|
|
{
|
|
public SomeAttribute (string someText)
|
|
{
|
|
}
|
|
}
|
|
} |