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:
authorRaja R Harinath <harinath@hurrynot.org>2005-06-03 15:40:37 +0400
committerRaja R Harinath <harinath@hurrynot.org>2005-06-03 15:40:37 +0400
commit4fc1fef50daa935e13a96abfc10005df50b89087 (patch)
treee31f31a3c94bbb68edbf3062d02f0bef472de103 /mcs/errors/cs0654.cs
parent0ccecdf948a15661566673c46d0f77cc85d82c83 (diff)
* mcs/ecore.cs (Expression.Resolve): Emit CS0654 error when -langversion:ISO-1.
* errors/cs0654.cs: New test. svn path=/trunk/mcs/; revision=45366
Diffstat (limited to 'mcs/errors/cs0654.cs')
-rw-r--r--mcs/errors/cs0654.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/mcs/errors/cs0654.cs b/mcs/errors/cs0654.cs
new file mode 100644
index 00000000000..23cdaa8348d
--- /dev/null
+++ b/mcs/errors/cs0654.cs
@@ -0,0 +1,11 @@
+// cs0654: Method `Test.foo()' is referenced without parentheses
+// Line: 9
+// Compiler options: -langversion:ISO-1
+
+class Test {
+ static int foo () { return 0; }
+ static void Main ()
+ {
+ int i = foo;
+ }
+}