2
0

bug8.cs 247 B

1234567891011121314151617181920
  1. using System;
  2. //
  3. // The problem here is that `(Type)' is being recognized as a Property
  4. // but inside a Cast expression this is invalid.
  5. //
  6. class X {
  7. int Type {
  8. get {
  9. return 1;
  10. }
  11. }
  12. static void Main ()
  13. {
  14. Type t = (Type) null;
  15. }
  16. }