diff options
author | Ravi Pratap M <ravi@mono-cvs.ximian.com> | 2001-09-02 19:37:11 +0400 |
---|---|---|
committer | Ravi Pratap M <ravi@mono-cvs.ximian.com> | 2001-09-02 19:37:11 +0400 |
commit | 3f3a2a5036fd4b7ad6928229f789cf9989845bcb (patch) | |
tree | 880fbeb59d905935f47c32e4e2efe73dca892a2d /mcs/errors/cs1019.cs | |
parent | e4eac5b64d3a9752bac46eaa387ceb4a23ab8c7a (diff) |
2001-09-02 Ravi Pratap <ravi@ximian.com>
* class.cs (Operator::CheckUnaryOperator): Correct error number used
to make it coincide with MS' number.
(Operator::CheckBinaryOperator): Ditto.
* ../errors/errors.txt : Remove error numbers added earlier.
* ../errors/cs1019.cs : Test case for error # 1019
* ../errros/cs1020.cs : Test case for error # 1020
* cs-parser.jay : Clean out commented cruft.
(dimension_separators, dimension_separator): Comment out. Ostensibly not
used anywhere - non-reducing rule.
(namespace_declarations): Non-reducing rule - comment out.
* enum.cs (Enum::AddEnum): Rename to AddEnumMember as I was getting confused
with TypeContainer::AddEnum.
* delegate.cs : New file for delegate handling classes.
(Delegate): Class for declaring delegates.
* makefile : Update.
* cs-parser.jay (delegate_declaration): Implement.
svn path=/trunk/mcs/; revision=696
Diffstat (limited to 'mcs/errors/cs1019.cs')
-rw-r--r-- | mcs/errors/cs1019.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/mcs/errors/cs1019.cs b/mcs/errors/cs1019.cs new file mode 100644 index 00000000000..4fe30f842f7 --- /dev/null +++ b/mcs/errors/cs1019.cs @@ -0,0 +1,27 @@ +// cs1019.cs : Overloadable unary operator expected +// Line : 18 + +public class MyClass { + + public int this[int ndx] + { + get { } + set { } + } + + public event EventHandler Click + { + add { } + remove { } + } + + public static MyClass operator/ (MyClass i) + { + + } + + public static implicit operator MyClass (Object o) + { + + } +} |