projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New test
[mono.git]
/
mcs
/
errors
/
cs0133-4.cs
diff --git
a/mcs/errors/cs0133-4.cs
b/mcs/errors/cs0133-4.cs
index 094fec1d6ad6c5c951cf380c6f444aef96f1c449..40567aafcd5ad239d8af570c642974657cc7503d 100644
(file)
--- a/
mcs/errors/cs0133-4.cs
+++ b/
mcs/errors/cs0133-4.cs
@@
-1,7
+1,13
@@
-// cs0133-
4.cs: The expression being assigned to `Program.y
' must be constant
+// cs0133-
2.cs: The expression being assigned to `S.pathName
' must be constant
// Line: 12
// Line: 12
+// Compiler options: -unsafe
-class Program {
- int x;
- const int y = x;
+class C
+{
+ public static int i = 4;
+}
+
+public unsafe struct S
+{
+ private fixed char pathName [C.i];
}
}