Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2002-02-21 21:58:38 +0300
committerMiguel de Icaza <miguel@gnome.org>2002-02-21 21:58:38 +0300
commit058103a484a13e6379b4c701f462c0d2019d6637 (patch)
tree3b3e3b447d5a6eb859fa1d93e6bd6411a2c9a08c /mcs/errors/cs0255.cs
parentd29348221933695c1256a0c8ee64c431a04fba6d (diff)
2002-02-21 Miguel de Icaza <miguel@ximian.com>
* expression.cs (Binary.ResolveOperator): Remove redundant MemberLookup pn parent type. Optimize union call, we do not need a union if the types are the same. (Unary.ResolveOperator): REmove redundant MemberLookup on parent type. Specialize the use of MemberLookup everywhere, instead of using the default settings. (StackAlloc): Implement stackalloc keyword. * cs-parser.jay: Add rule to parse stackalloc. * driver.cs: Handle /h, /help, /? Added two more tests, added an error test. svn path=/trunk/mcs/; revision=2579
Diffstat (limited to 'mcs/errors/cs0255.cs')
-rwxr-xr-xmcs/errors/cs0255.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/mcs/errors/cs0255.cs b/mcs/errors/cs0255.cs
new file mode 100755
index 00000000000..10e2045385e
--- /dev/null
+++ b/mcs/errors/cs0255.cs
@@ -0,0 +1,13 @@
+// cs0255.cs: Can not use stackalloc in finally or catch
+// Line: 10
+unsafe class X {
+ string s;
+
+ static void Main ()
+ {
+ try {
+ } catch {
+ char *ptr = stackalloc char [10U];
+}
+ }
+}