Skip to content

Commit

Permalink
new tests
Browse files Browse the repository at this point in the history
svn path=/trunk/mcs/; revision=41981
  • Loading branch information
marek-safar committed Mar 18, 2005
1 parent 00ec687 commit 6a1e4ec
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
21 changes: 21 additions & 0 deletions mcs/errors/cs0271.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// cs0271.cs: The property or indexer 'P.Prop' cannot be used in this context because the get accessor is inaccessible
// Line: 19

class P
{
public static int Prop
{
private get {
return 4;
}
set {}
}
}

public class C
{
public static int Main ()
{
return P.Prop;
}
}
21 changes: 21 additions & 0 deletions mcs/errors/cs0272.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// cs0272.cs: The property or indexer 'P.Prop' cannot be used in this context because the set accessor is inaccessible
// Line: 19

class P
{
public static int Prop
{
get {
return 4;
}
private set {}
}
}

public class C
{
public static void Main ()
{
P.Prop = 453422;
}
}
8 changes: 8 additions & 0 deletions mcs/errors/gcs1716.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// cs1716.cs: Do not use 'System.Runtime.CompilerServices.FixedBuffer' attribute. Use the 'fixed' field modifier instead
// Line: 6

public class C
{
[System.Runtime.CompilerServices.FixedBuffer (typeof (int), 1)]
public int i;
}
3 changes: 3 additions & 0 deletions mcs/errors/known-issues-gmcs
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,6 @@ cs2023.cs NO ERROR
cs3003-5.cs
gcs0080.cs
gcs1644-2.cs NO ERROR
cs0271.cs
cs0272.cs
gcs1716.cs NO ERROR

0 comments on commit 6a1e4ec

Please sign in to comment.