+2004-10-04 John Luke <john.luke@gmail.com>
+
+ * cs8205.cs: remove, same as cs1624
+ * cs8206.cs: fix yield syntax, and add line number, now passes
+ * cs8207.cs: remove, same as cs1623
+ * cs8208.cs: remove, same as cs1625
+ * cs8209.cs: remove, same as cs1631
+
2004-10-01 John Luke <john.luke@gmail.com>
* *.cs: fix some incorrect tests by either addding a Main method,
-// cs0029.cs: Cannot implicitly conver type 'Helper*' to 'Obsolete*'
+// cs0029.cs: Cannot implicitly convert type 'Helper*' to 'Obsolete*'
// Line: 18
// Compiler options: -unsafe
{
}
}
-}
\ No newline at end of file
+}
-// cs0029: cannot implicitly conver type `double' to `decimal'
+// cs0029: cannot implicitly convert type `double' to `decimal'
// Line: 7
class T {
+++ /dev/null
-// cs8205.cs: A method that contains a yield statement does have an incorrect return type
-// Line:
-using System;
-using System.Collections;
-class X {
- int Iterator ()
- {
- yield 1;
- }
-
- static void Main ()
- {
- }
-}
// cs8206.cs: Return not allowed in iterator method
-// Line:
+// Line: 11
using System.Collections;
class X {
IEnumerator MyEnumerator (int a)
{
if (a == 0)
- yield 1;
+ yield return 1;
else
return 2;
}
+++ /dev/null
-// cs8207.cs: out or ref are not allowed in an iterator method
-//
-using System;
-using System.Collections;
-
-class X {
-
- IEnumerator GetValue (int b, out int a)
- {
- yield 1;
- }
-
- static void Main ()
- {
- }
-}
+++ /dev/null
-// cs8208.cs: yield can not appear inside the finally clause.
-// Line: 10
-using System.Collections;
-class X {
-
- IEnumerator GetEnum ()
- {
- try {
- } finally {
- yield 1;
- }
- }
-
- static void Main ()
- {
- }
-}
+++ /dev/null
-// cs8209.cs: yield can not appear inside the catch clause.
-// Line: 10
-using System.Collections;
-class X {
-
- IEnumerator GetEnum ()
- {
- try {
- } catch {
- yield 1;
- }
- }
-
- static void Main ()
- {
- }
-}
}
if (scalar @{@status_items [($RESULT_UNEXPECTED_CORRECT_ERROR - 1)]} > 0) {
- print scalar @{@status_items [($RESULT_UNEXPECTED_CORRECT_ERROR - 1)]}, " fixed error report, remove it from expect-wrong-error or expect-no-error !\n";
+ print scalar @{@status_items [($RESULT_UNEXPECTED_CORRECT_ERROR - 1)]}, " fixed error report(s), remove it from expect-wrong-error or expect-no-error !\n";
print, print "\n" foreach @{@status_items [($RESULT_UNEXPECTED_CORRECT_ERROR - 1)]};
}
}
if (scalar @{@status_items [($RESULT_UNEXPECTED_NO_ERROR - 1)]} > 0) {
- print scalar @{@status_items [($RESULT_UNEXPECTED_NO_ERROR - 1)]}, " new missing error report !\n";
+ print scalar @{@status_items [($RESULT_UNEXPECTED_NO_ERROR - 1)]}, " new missing error report(s) !\n";
print, print "\n" foreach @{@status_items [($RESULT_UNEXPECTED_NO_ERROR - 1)]};
}
cs8202.cs
cs8203.cs
cs8204.cs
-cs8205.cs
-cs8206.cs
-cs8207.cs
-cs8208.cs
-cs8209.cs
cs8210.cs
cs8213.cs
cs8214.cs
cs8202.cs
cs8203.cs
cs8204.cs
-cs8205.cs
-cs8206.cs
-cs8207.cs
-cs8208.cs
-cs8209.cs
cs8210.cs
cs8213.cs
cs8214.cs