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:
authorMarek Safar <marek.safar@gmail.com>2009-07-08 13:34:22 +0400
committerMarek Safar <marek.safar@gmail.com>2009-07-08 13:34:22 +0400
commit7f8a5c92755187b5944c0a4132145fd50aae1c61 (patch)
treeb233359ae13d9ca6e7f7099c17f294413850c3bc /mcs/errors
parentb386732e3cf40a7761a9fc4a839f9375478f1f90 (diff)
New tests.
svn path=/trunk/mcs/; revision=137556
Diffstat (limited to 'mcs/errors')
-rw-r--r--mcs/errors/cs0246-18.cs11
-rw-r--r--mcs/errors/cs1644-14.cs11
2 files changed, 22 insertions, 0 deletions
diff --git a/mcs/errors/cs0246-18.cs b/mcs/errors/cs0246-18.cs
new file mode 100644
index 00000000000..077c4710fd1
--- /dev/null
+++ b/mcs/errors/cs0246-18.cs
@@ -0,0 +1,11 @@
+// CS0246: The type or namespace name `dynamic' could not be found. Are you missing a using directive or an assembly reference?
+// Line: 9
+// Compiler options: -langversion:ISO-2
+
+class C
+{
+ public static void Main ()
+ {
+ dynamic d = 9;
+ }
+}
diff --git a/mcs/errors/cs1644-14.cs b/mcs/errors/cs1644-14.cs
new file mode 100644
index 00000000000..dc7aaf66e76
--- /dev/null
+++ b/mcs/errors/cs1644-14.cs
@@ -0,0 +1,11 @@
+// CS1644: Feature `implicitly typed local variable' cannot be used because it is not part of the C# 2.0 language specification
+// Line: 9
+// Compiler options: -langversion:ISO-2
+
+class M
+{
+ public static void Main ()
+ {
+ var a = 1;
+ }
+}