-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |