Unify naming convention for all 2.0 files
authorMarek Safar <marek.safar@gmail.com>
Wed, 5 Jan 2011 10:34:59 +0000 (10:34 +0000)
committerMarek Safar <marek.safar@gmail.com>
Wed, 5 Jan 2011 10:36:07 +0000 (10:36 +0000)
1102 files changed:
mcs/errors/CS0122-35-lib.cs [new file with mode: 0644]
mcs/errors/CS0315-2-lib.cs [new file with mode: 0644]
mcs/errors/CS0730-lib.cs [new file with mode: 0644]
mcs/errors/CS1685-2-lib.cs [new file with mode: 0644]
mcs/errors/CSFriendAssembly-lib.cs
mcs/errors/GCS0122-2-lib.cs [deleted file]
mcs/errors/GCS0315-2-lib.cs [deleted file]
mcs/errors/GCS0730-lib.cs [deleted file]
mcs/errors/GCS0733-lib.cs [deleted file]
mcs/errors/GCS1685-lib.cs [deleted file]
mcs/errors/Makefile
mcs/errors/cs0019-41.cs [new file with mode: 0644]
mcs/errors/cs0019-42.cs [new file with mode: 0644]
mcs/errors/cs0019-43.cs [new file with mode: 0644]
mcs/errors/cs0019-45.cs [new file with mode: 0644]
mcs/errors/cs0019-46.cs [new file with mode: 0644]
mcs/errors/cs0019-47.cs [new file with mode: 0644]
mcs/errors/cs0019-48.cs [new file with mode: 0644]
mcs/errors/cs0019-49.cs [new file with mode: 0644]
mcs/errors/cs0019-50.cs [new file with mode: 0644]
mcs/errors/cs0019-51.cs [new file with mode: 0644]
mcs/errors/cs0019-52.cs [new file with mode: 0644]
mcs/errors/cs0019-53.cs [new file with mode: 0644]
mcs/errors/cs0019-54.cs [new file with mode: 0755]
mcs/errors/cs0019-55.cs [new file with mode: 0644]
mcs/errors/cs0019-56.cs [new file with mode: 0644]
mcs/errors/cs0019-57.cs [new file with mode: 0644]
mcs/errors/cs0019-58.cs [new file with mode: 0644]
mcs/errors/cs0019-59.cs [new file with mode: 0644]
mcs/errors/cs0019-60.cs [new file with mode: 0644]
mcs/errors/cs0019-61.cs [new file with mode: 0644]
mcs/errors/cs0019-62.cs [new file with mode: 0644]
mcs/errors/cs0021-3.cs [new file with mode: 0644]
mcs/errors/cs0029-15.cs [new file with mode: 0644]
mcs/errors/cs0029-16.cs [new file with mode: 0644]
mcs/errors/cs0029-17.cs [new file with mode: 0755]
mcs/errors/cs0029-18.cs [new file with mode: 0644]
mcs/errors/cs0029-19.cs [new file with mode: 0644]
mcs/errors/cs0029-20.cs [new file with mode: 0644]
mcs/errors/cs0029-21.cs [new file with mode: 0644]
mcs/errors/cs0029-22.cs [new file with mode: 0644]
mcs/errors/cs0029-23.cs [new file with mode: 0644]
mcs/errors/cs0029-24.cs [new file with mode: 0644]
mcs/errors/cs0029-25.cs [new file with mode: 0644]
mcs/errors/cs0030-12.cs [new file with mode: 0644]
mcs/errors/cs0030-13.cs [new file with mode: 0755]
mcs/errors/cs0030-14.cs [new file with mode: 0644]
mcs/errors/cs0031-5.cs [new file with mode: 0644]
mcs/errors/cs0037-10.cs [new file with mode: 0644]
mcs/errors/cs0051-2.cs [new file with mode: 0644]
mcs/errors/cs0060-6.cs [new file with mode: 0644]
mcs/errors/cs0060-7.cs [new file with mode: 0644]
mcs/errors/cs0060-8.cs [new file with mode: 0644]
mcs/errors/cs0065-2.cs [new file with mode: 0644]
mcs/errors/cs0069-2.cs [new file with mode: 0644]
mcs/errors/cs0080.cs [new file with mode: 0644]
mcs/errors/cs0081-2.cs [new file with mode: 0644]
mcs/errors/cs0081-3.cs [new file with mode: 0644]
mcs/errors/cs0081.cs [new file with mode: 0644]
mcs/errors/cs0100-2.cs [new file with mode: 0644]
mcs/errors/cs0102-18.cs [new file with mode: 0644]
mcs/errors/cs0103-10.cs [new file with mode: 0644]
mcs/errors/cs0103-11.cs [new file with mode: 0644]
mcs/errors/cs0103-7.cs [new file with mode: 0644]
mcs/errors/cs0103-8.cs [new file with mode: 0644]
mcs/errors/cs0103-9.cs [new file with mode: 0644]
mcs/errors/cs0108-16.cs [new file with mode: 0644]
mcs/errors/cs0108-17.cs [new file with mode: 0644]
mcs/errors/cs0109-10.cs [new file with mode: 0644]
mcs/errors/cs0109-9.cs [new file with mode: 0644]
mcs/errors/cs0111-21.cs [new file with mode: 0644]
mcs/errors/cs0111-22.cs [new file with mode: 0644]
mcs/errors/cs0111-23.cs [new file with mode: 0644]
mcs/errors/cs0111-24.cs [new file with mode: 0644]
mcs/errors/cs0111-25.cs [new file with mode: 0644]
mcs/errors/cs0111-26.cs [new file with mode: 0644]
mcs/errors/cs0111-4.cs [new file with mode: 0644]
mcs/errors/cs0111-8.cs [new file with mode: 0644]
mcs/errors/cs0117-2.cs [new file with mode: 0644]
mcs/errors/cs0117.cs [new file with mode: 0644]
mcs/errors/cs0118-10.cs [new file with mode: 0644]
mcs/errors/cs0119-11.cs [new file with mode: 0644]
mcs/errors/cs0119-2.cs [new file with mode: 0644]
mcs/errors/cs0119.cs [new file with mode: 0644]
mcs/errors/cs0121-16.cs [new file with mode: 0644]
mcs/errors/cs0121-17.cs [new file with mode: 0644]
mcs/errors/cs0121-18.cs [new file with mode: 0644]
mcs/errors/cs0122-34.cs [new file with mode: 0644]
mcs/errors/cs0122-35.cs [new file with mode: 0644]
mcs/errors/cs0133-4.cs [new file with mode: 0644]
mcs/errors/cs0136-16.cs [new file with mode: 0644]
mcs/errors/cs0136-17.cs [new file with mode: 0644]
mcs/errors/cs0136-3.cs [new file with mode: 0644]
mcs/errors/cs0146-6.cs [new file with mode: 0644]
mcs/errors/cs0162-13.cs [new file with mode: 0644]
mcs/errors/cs0162-14.cs [new file with mode: 0644]
mcs/errors/cs0171-4.cs [new file with mode: 0644]
mcs/errors/cs0173-3.cs [new file with mode: 0644]
mcs/errors/cs0177-9.cs [new file with mode: 0644]
mcs/errors/cs0183-3.cs [new file with mode: 0644]
mcs/errors/cs0183-4.cs [new file with mode: 0644]
mcs/errors/cs0184-10.cs [new file with mode: 0644]
mcs/errors/cs0184-11.cs [new file with mode: 0644]
mcs/errors/cs0184-8.cs [new file with mode: 0644]
mcs/errors/cs0184-9.cs [new file with mode: 0644]
mcs/errors/cs0200-3.cs [new file with mode: 0644]
mcs/errors/cs0201-5.cs [new file with mode: 0644]
mcs/errors/cs0201-6.cs [new file with mode: 0644]
mcs/errors/cs0202-2.cs [new file with mode: 0644]
mcs/errors/cs0206-3.cs [new file with mode: 0644]
mcs/errors/cs0208-10.cs [new file with mode: 0644]
mcs/errors/cs0208-11.cs [new file with mode: 0644]
mcs/errors/cs0208-12.cs [new file with mode: 0644]
mcs/errors/cs0208-13.cs [new file with mode: 0644]
mcs/errors/cs0208-14.cs [new file with mode: 0644]
mcs/errors/cs0214-15.cs [new file with mode: 0644]
mcs/errors/cs0246-23.cs [new file with mode: 0644]
mcs/errors/cs0246-24.cs [new file with mode: 0644]
mcs/errors/cs0246-25.cs [new file with mode: 0644]
mcs/errors/cs0246-26.cs [new file with mode: 0644]
mcs/errors/cs0246-27.cs [new file with mode: 0644]
mcs/errors/cs0246-28.cs [new file with mode: 0644]
mcs/errors/cs0264-2.cs [new file with mode: 0644]
mcs/errors/cs0264.cs [new file with mode: 0644]
mcs/errors/cs0265.cs [new file with mode: 0644]
mcs/errors/cs0266-20.cs [new file with mode: 0644]
mcs/errors/cs0266-21.cs [new file with mode: 0644]
mcs/errors/cs0266-22.cs [new file with mode: 0644]
mcs/errors/cs0266-23.cs [new file with mode: 0644]
mcs/errors/cs0266-24.cs [new file with mode: 0644]
mcs/errors/cs0266-5.cs [new file with mode: 0644]
mcs/errors/cs0267-3.cs [new file with mode: 0644]
mcs/errors/cs0271-2.cs [new file with mode: 0644]
mcs/errors/cs0272-3.cs [new file with mode: 0644]
mcs/errors/cs0281.cs [new file with mode: 0644]
mcs/errors/cs0304.cs [new file with mode: 0644]
mcs/errors/cs0305-2.cs [new file with mode: 0644]
mcs/errors/cs0305-3.cs [new file with mode: 0644]
mcs/errors/cs0305-4.cs [new file with mode: 0644]
mcs/errors/cs0305-5.cs [new file with mode: 0644]
mcs/errors/cs0305-6.cs [new file with mode: 0644]
mcs/errors/cs0305-7.cs [new file with mode: 0644]
mcs/errors/cs0305.cs [new file with mode: 0644]
mcs/errors/cs0306-2.cs [new file with mode: 0644]
mcs/errors/cs0306-3.cs [new file with mode: 0644]
mcs/errors/cs0306.cs [new file with mode: 0644]
mcs/errors/cs0307-2.cs [new file with mode: 0644]
mcs/errors/cs0307-3.cs [new file with mode: 0644]
mcs/errors/cs0307-4.cs [new file with mode: 0644]
mcs/errors/cs0307-5.cs [new file with mode: 0644]
mcs/errors/cs0307-6.cs [new file with mode: 0644]
mcs/errors/cs0307.cs [new file with mode: 0644]
mcs/errors/cs0308-2.cs [new file with mode: 0644]
mcs/errors/cs0308-3.cs [new file with mode: 0644]
mcs/errors/cs0308-4.cs [new file with mode: 0644]
mcs/errors/cs0308-5.cs [new file with mode: 0644]
mcs/errors/cs0308-6.cs [new file with mode: 0644]
mcs/errors/cs0308-7.cs [new file with mode: 0644]
mcs/errors/cs0308.cs [new file with mode: 0644]
mcs/errors/cs0310-2.cs [new file with mode: 0644]
mcs/errors/cs0310-3.cs [new file with mode: 0644]
mcs/errors/cs0310-4.cs [new file with mode: 0644]
mcs/errors/cs0310-5.cs [new file with mode: 0644]
mcs/errors/cs0310.cs [new file with mode: 0644]
mcs/errors/cs0311-2.cs [new file with mode: 0644]
mcs/errors/cs0311-3.cs [new file with mode: 0644]
mcs/errors/cs0311-4.cs [new file with mode: 0644]
mcs/errors/cs0311-5.cs [new file with mode: 0644]
mcs/errors/cs0311.cs [new file with mode: 0644]
mcs/errors/cs0313.cs [new file with mode: 0644]
mcs/errors/cs0314-2.cs [new file with mode: 0644]
mcs/errors/cs0314.cs [new file with mode: 0644]
mcs/errors/cs0315-2.cs [new file with mode: 0644]
mcs/errors/cs0315-3.cs [new file with mode: 0644]
mcs/errors/cs0315.cs [new file with mode: 0644]
mcs/errors/cs0401.cs [new file with mode: 0644]
mcs/errors/cs0402-2.cs [new file with mode: 0644]
mcs/errors/cs0402.cs [new file with mode: 0644]
mcs/errors/cs0403-2.cs [new file with mode: 0644]
mcs/errors/cs0403-3.cs [new file with mode: 0644]
mcs/errors/cs0403.cs [new file with mode: 0644]
mcs/errors/cs0404.cs [new file with mode: 0644]
mcs/errors/cs0405.cs [new file with mode: 0644]
mcs/errors/cs0406-2.cs [new file with mode: 0644]
mcs/errors/cs0406.cs [new file with mode: 0644]
mcs/errors/cs0409.cs [new file with mode: 0644]
mcs/errors/cs0411-10.cs [new file with mode: 0644]
mcs/errors/cs0411-11.cs [new file with mode: 0644]
mcs/errors/cs0411-12.cs [new file with mode: 0644]
mcs/errors/cs0411-13.cs [new file with mode: 0644]
mcs/errors/cs0411-14.cs [new file with mode: 0644]
mcs/errors/cs0411-15.cs [new file with mode: 0644]
mcs/errors/cs0411-16.cs [new file with mode: 0644]
mcs/errors/cs0411-17.cs [new file with mode: 0644]
mcs/errors/cs0411-2.cs [new file with mode: 0644]
mcs/errors/cs0411-3.cs [new file with mode: 0644]
mcs/errors/cs0411-5.cs [new file with mode: 0644]
mcs/errors/cs0411-6.cs [new file with mode: 0644]
mcs/errors/cs0411-7.cs [new file with mode: 0644]
mcs/errors/cs0411-8.cs [new file with mode: 0644]
mcs/errors/cs0411-9.cs [new file with mode: 0644]
mcs/errors/cs0411.cs [new file with mode: 0644]
mcs/errors/cs0412-2.cs [new file with mode: 0644]
mcs/errors/cs0412-3.cs [new file with mode: 0644]
mcs/errors/cs0412.cs [new file with mode: 0644]
mcs/errors/cs0413-2.cs [new file with mode: 0644]
mcs/errors/cs0413.cs [new file with mode: 0644]
mcs/errors/cs0414.cs [new file with mode: 0644]
mcs/errors/cs0416-2.cs [new file with mode: 0644]
mcs/errors/cs0416-3.cs [new file with mode: 0644]
mcs/errors/cs0416.cs [new file with mode: 0644]
mcs/errors/cs0417.cs [new file with mode: 0644]
mcs/errors/cs0425-2.cs [new file with mode: 0644]
mcs/errors/cs0425-3.cs [new file with mode: 0644]
mcs/errors/cs0425-4.cs [new file with mode: 0644]
mcs/errors/cs0425-5.cs [new file with mode: 0644]
mcs/errors/cs0425.cs [new file with mode: 0644]
mcs/errors/cs0428-3.cs [new file with mode: 0644]
mcs/errors/cs0449-2.cs [new file with mode: 0644]
mcs/errors/cs0449-3.cs [new file with mode: 0644]
mcs/errors/cs0449.cs [new file with mode: 0644]
mcs/errors/cs0450-2.cs [new file with mode: 0644]
mcs/errors/cs0450.cs [new file with mode: 0644]
mcs/errors/cs0451.cs [new file with mode: 0644]
mcs/errors/cs0452-2.cs [new file with mode: 0644]
mcs/errors/cs0452-3.cs [new file with mode: 0644]
mcs/errors/cs0452-4.cs [new file with mode: 0644]
mcs/errors/cs0452.cs [new file with mode: 0644]
mcs/errors/cs0453-2.cs [new file with mode: 0644]
mcs/errors/cs0453-3.cs [new file with mode: 0644]
mcs/errors/cs0453-4.cs [new file with mode: 0644]
mcs/errors/cs0453-5.cs [new file with mode: 0644]
mcs/errors/cs0453.cs [new file with mode: 0644]
mcs/errors/cs0454.cs [new file with mode: 0644]
mcs/errors/cs0455-2.cs [new file with mode: 0644]
mcs/errors/cs0455-3.cs [new file with mode: 0644]
mcs/errors/cs0455-4.cs [new file with mode: 0644]
mcs/errors/cs0455-5.cs [new file with mode: 0644]
mcs/errors/cs0455.cs [new file with mode: 0644]
mcs/errors/cs0456.cs [new file with mode: 0644]
mcs/errors/cs0458-10.cs [new file with mode: 0644]
mcs/errors/cs0458-11.cs [new file with mode: 0644]
mcs/errors/cs0458-12.cs [new file with mode: 0644]
mcs/errors/cs0458-13.cs [new file with mode: 0644]
mcs/errors/cs0458-2.cs [new file with mode: 0644]
mcs/errors/cs0458-3.cs [new file with mode: 0644]
mcs/errors/cs0458-4.cs [new file with mode: 0644]
mcs/errors/cs0458-5.cs [new file with mode: 0644]
mcs/errors/cs0458-6.cs [new file with mode: 0644]
mcs/errors/cs0458-7.cs [new file with mode: 0644]
mcs/errors/cs0458-8.cs [new file with mode: 0644]
mcs/errors/cs0458-9.cs [new file with mode: 0644]
mcs/errors/cs0458.cs [new file with mode: 0644]
mcs/errors/cs0460-2.cs [new file with mode: 0644]
mcs/errors/cs0460.cs [new file with mode: 0644]
mcs/errors/cs0464-2.cs [new file with mode: 0644]
mcs/errors/cs0464-3.cs [new file with mode: 0644]
mcs/errors/cs0464.cs [new file with mode: 0644]
mcs/errors/cs0472-2.cs [new file with mode: 0644]
mcs/errors/cs0472-3.cs [new file with mode: 0644]
mcs/errors/cs0472-4.cs [new file with mode: 0644]
mcs/errors/cs0472.cs [new file with mode: 0644]
mcs/errors/cs0501-4.cs [new file with mode: 0644]
mcs/errors/cs0508-2.cs [new file with mode: 0644]
mcs/errors/cs0508-3.cs [new file with mode: 0644]
mcs/errors/cs0508-4.cs [new file with mode: 0644]
mcs/errors/cs0515-2.cs [new file with mode: 0644]
mcs/errors/cs0523-2.cs [new file with mode: 0644]
mcs/errors/cs0523-3.cs [new file with mode: 0644]
mcs/errors/cs0523-4.cs [new file with mode: 0644]
mcs/errors/cs0523-5.cs [new file with mode: 0644]
mcs/errors/cs0523-6.cs [new file with mode: 0644]
mcs/errors/cs0555-2.cs [new file with mode: 0644]
mcs/errors/cs0612-4.cs [new file with mode: 0644]
mcs/errors/cs0612-5.cs [new file with mode: 0644]
mcs/errors/cs0619-55.cs [new file with mode: 0644]
mcs/errors/cs0633-5.cs [new file with mode: 0644]
mcs/errors/cs0663-6.cs [new file with mode: 0644]
mcs/errors/cs0677-3.cs [new file with mode: 0644]
mcs/errors/cs0677-4.cs [new file with mode: 0644]
mcs/errors/cs0689.cs [new file with mode: 0644]
mcs/errors/cs0692.cs [new file with mode: 0644]
mcs/errors/cs0693-2.cs [new file with mode: 0644]
mcs/errors/cs0693-3.cs [new file with mode: 0644]
mcs/errors/cs0693.cs [new file with mode: 0644]
mcs/errors/cs0694.cs [new file with mode: 0644]
mcs/errors/cs0695-2.cs [new file with mode: 0644]
mcs/errors/cs0695-3.cs [new file with mode: 0644]
mcs/errors/cs0695-4.cs [new file with mode: 0644]
mcs/errors/cs0695.cs [new file with mode: 0644]
mcs/errors/cs0698.cs [new file with mode: 0644]
mcs/errors/cs0699-2.cs [new file with mode: 0644]
mcs/errors/cs0699.cs [new file with mode: 0644]
mcs/errors/cs0701-2.cs [new file with mode: 0644]
mcs/errors/cs0701-3.cs [new file with mode: 0644]
mcs/errors/cs0701.cs [new file with mode: 0644]
mcs/errors/cs0702-2.cs [new file with mode: 0644]
mcs/errors/cs0702-3.cs [new file with mode: 0644]
mcs/errors/cs0702.cs [new file with mode: 0644]
mcs/errors/cs0703-2.cs [new file with mode: 0644]
mcs/errors/cs0703-3.cs [new file with mode: 0644]
mcs/errors/cs0703.cs [new file with mode: 0644]
mcs/errors/cs0704.cs [new file with mode: 0644]
mcs/errors/cs0706.cs [new file with mode: 0644]
mcs/errors/cs0717.cs [new file with mode: 0644]
mcs/errors/cs0718.cs [new file with mode: 0644]
mcs/errors/cs0721-2.cs [new file with mode: 0644]
mcs/errors/cs0723-3.cs [new file with mode: 0644]
mcs/errors/cs0729.cs [new file with mode: 0644]
mcs/errors/cs0730.cs [new file with mode: 0644]
mcs/errors/cs0735-2.cs [new file with mode: 0644]
mcs/errors/cs0735.cs [new file with mode: 0644]
mcs/errors/cs0739.cs [new file with mode: 0644]
mcs/errors/cs0746.cs [new file with mode: 0644]
mcs/errors/cs0747-2.cs [new file with mode: 0644]
mcs/errors/cs0747.cs [new file with mode: 0644]
mcs/errors/cs0748.cs [new file with mode: 0644]
mcs/errors/cs0755.cs [new file with mode: 0644]
mcs/errors/cs0818.cs [new file with mode: 0644]
mcs/errors/cs0820.cs [new file with mode: 0644]
mcs/errors/cs0821.cs [new file with mode: 0644]
mcs/errors/cs0822.cs [new file with mode: 0644]
mcs/errors/cs0825-2.cs [new file with mode: 0644]
mcs/errors/cs0825-3.cs [new file with mode: 0644]
mcs/errors/cs0825.cs [new file with mode: 0644]
mcs/errors/cs0826-2.cs [new file with mode: 0644]
mcs/errors/cs0826-3.cs [new file with mode: 0644]
mcs/errors/cs0826-4.cs [new file with mode: 0644]
mcs/errors/cs0826-5.cs [new file with mode: 0644]
mcs/errors/cs0826-6.cs [new file with mode: 0644]
mcs/errors/cs0826-7.cs [new file with mode: 0644]
mcs/errors/cs0826-8.cs [new file with mode: 0644]
mcs/errors/cs0826.cs [new file with mode: 0644]
mcs/errors/cs0828-2.cs [new file with mode: 0644]
mcs/errors/cs0828-3.cs [new file with mode: 0644]
mcs/errors/cs0828-4.cs [new file with mode: 0644]
mcs/errors/cs0828-5.cs [new file with mode: 0644]
mcs/errors/cs0828-6.cs [new file with mode: 0644]
mcs/errors/cs0828.cs [new file with mode: 0644]
mcs/errors/cs0831-2.cs [new file with mode: 0644]
mcs/errors/cs0831-3.cs [new file with mode: 0644]
mcs/errors/cs0831.cs [new file with mode: 0644]
mcs/errors/cs0832-2.cs [new file with mode: 0644]
mcs/errors/cs0832-3.cs [new file with mode: 0644]
mcs/errors/cs0832-4.cs [new file with mode: 0644]
mcs/errors/cs0832.cs [new file with mode: 0644]
mcs/errors/cs0833.cs [new file with mode: 0644]
mcs/errors/cs0834-2.cs [new file with mode: 0644]
mcs/errors/cs0834.cs [new file with mode: 0644]
mcs/errors/cs0835.cs [new file with mode: 0644]
mcs/errors/cs0836.cs [new file with mode: 0644]
mcs/errors/cs0837-2.cs [new file with mode: 0644]
mcs/errors/cs0838.cs [new file with mode: 0644]
mcs/errors/cs0840.cs [new file with mode: 0644]
mcs/errors/cs0841-4.cs [new file with mode: 0644]
mcs/errors/cs0842.cs [new file with mode: 0644]
mcs/errors/cs0845.cs [new file with mode: 0644]
mcs/errors/cs0853.cs [new file with mode: 0644]
mcs/errors/cs0854-2.cs [new file with mode: 0644]
mcs/errors/cs0854.cs [new file with mode: 0644]
mcs/errors/cs1058-1.cs [new file with mode: 0644]
mcs/errors/cs1058-2.cs [new file with mode: 0644]
mcs/errors/cs1061-4.cs [new file with mode: 0644]
mcs/errors/cs1061-5.cs [new file with mode: 0644]
mcs/errors/cs1061-6.cs [new file with mode: 0644]
mcs/errors/cs1061-7.cs [new file with mode: 0644]
mcs/errors/cs1061-8.cs [new file with mode: 0644]
mcs/errors/cs1061-9.cs [new file with mode: 0644]
mcs/errors/cs1067.cs [new file with mode: 0644]
mcs/errors/cs1100.cs [new file with mode: 0644]
mcs/errors/cs1101.cs [new file with mode: 0644]
mcs/errors/cs1102.cs [new file with mode: 0644]
mcs/errors/cs1103.cs [new file with mode: 0644]
mcs/errors/cs1104.cs [new file with mode: 0644]
mcs/errors/cs1105.cs [new file with mode: 0644]
mcs/errors/cs1106-2.cs [new file with mode: 0644]
mcs/errors/cs1106.cs [new file with mode: 0644]
mcs/errors/cs1109.cs [new file with mode: 0644]
mcs/errors/cs1110.cs [new file with mode: 0644]
mcs/errors/cs1112-2.cs [new file with mode: 0644]
mcs/errors/cs1112-3.cs [new file with mode: 0644]
mcs/errors/cs1112.cs [new file with mode: 0644]
mcs/errors/cs1113-2.cs [new file with mode: 0644]
mcs/errors/cs1113.cs [new file with mode: 0644]
mcs/errors/cs1501-6.cs [new file with mode: 0644]
mcs/errors/cs1501-7.cs [new file with mode: 0644]
mcs/errors/cs1501-8.cs [new file with mode: 0644]
mcs/errors/cs1501-9.cs [new file with mode: 0644]
mcs/errors/cs1502-12.cs [new file with mode: 0644]
mcs/errors/cs1502-13.cs [new file with mode: 0644]
mcs/errors/cs1502-14.cs [new file with mode: 0644]
mcs/errors/cs1503-12.cs [new file with mode: 0644]
mcs/errors/cs1503-13.cs [new file with mode: 0644]
mcs/errors/cs1521-4.cs [new file with mode: 0644]
mcs/errors/cs1525-32.cs [new file with mode: 0644]
mcs/errors/cs1525-33.cs [new file with mode: 0644]
mcs/errors/cs1525-34.cs [new file with mode: 0644]
mcs/errors/cs1547-10.cs [new file with mode: 0644]
mcs/errors/cs1547-11.cs [new file with mode: 0644]
mcs/errors/cs1547-12.cs [new file with mode: 0644]
mcs/errors/cs1579-4.cs [new file with mode: 0644]
mcs/errors/cs1593-3.cs [new file with mode: 0644]
mcs/errors/cs1624-4.cs [new file with mode: 0644]
mcs/errors/cs1640.cs [new file with mode: 0644]
mcs/errors/cs1642.cs [new file with mode: 0644]
mcs/errors/cs1644-15.cs [new file with mode: 0644]
mcs/errors/cs1644-16.cs [new file with mode: 0644]
mcs/errors/cs1644-17.cs [new file with mode: 0644]
mcs/errors/cs1644-18.cs [new file with mode: 0644]
mcs/errors/cs1644-19.cs [new file with mode: 0644]
mcs/errors/cs1644-20.cs [new file with mode: 0644]
mcs/errors/cs1644-21.cs [new file with mode: 0644]
mcs/errors/cs1644-22.cs [new file with mode: 0644]
mcs/errors/cs1644-23.cs [new file with mode: 0644]
mcs/errors/cs1644-24.cs [new file with mode: 0644]
mcs/errors/cs1644-25.cs [new file with mode: 0644]
mcs/errors/cs1644-26.cs [new file with mode: 0644]
mcs/errors/cs1644-27.cs [new file with mode: 0644]
mcs/errors/cs1644-28.cs [new file with mode: 0644]
mcs/errors/cs1644-29.cs [new file with mode: 0644]
mcs/errors/cs1644-30.cs [new file with mode: 0644]
mcs/errors/cs1644-31.cs [new file with mode: 0644]
mcs/errors/cs1660-3.cs [new file with mode: 0644]
mcs/errors/cs1661-2.cs [new file with mode: 0644]
mcs/errors/cs1662-2.cs [new file with mode: 0644]
mcs/errors/cs1663.cs [new file with mode: 0644]
mcs/errors/cs1664.cs [new file with mode: 0644]
mcs/errors/cs1665.cs [new file with mode: 0644]
mcs/errors/cs1666.cs [new file with mode: 0644]
mcs/errors/cs1675.cs [new file with mode: 0644]
mcs/errors/cs1676-2.cs [new file with mode: 0644]
mcs/errors/cs1677-2.cs [new file with mode: 0644]
mcs/errors/cs1685-2.cs [new file with mode: 0644]
mcs/errors/cs1686-6.cs [new file with mode: 0644]
mcs/errors/cs1689.cs [new file with mode: 0644]
mcs/errors/cs1700.cs [new file with mode: 0644]
mcs/errors/cs1708.cs [new file with mode: 0644]
mcs/errors/cs1716.cs [new file with mode: 0644]
mcs/errors/cs1718-3.cs [new file with mode: 0644]
mcs/errors/cs1720-2.cs [new file with mode: 0644]
mcs/errors/cs1720-3.cs [new file with mode: 0644]
mcs/errors/cs1724.cs [new file with mode: 0644]
mcs/errors/cs1726-2.cs [new file with mode: 0644]
mcs/errors/cs1726.cs [new file with mode: 0644]
mcs/errors/cs1728-2.cs [new file with mode: 0644]
mcs/errors/cs1728.cs [new file with mode: 0644]
mcs/errors/cs1744-2.cs [new file with mode: 0644]
mcs/errors/cs1745-2.cs [new file with mode: 0644]
mcs/errors/cs1750-3.cs [new file with mode: 0644]
mcs/errors/cs1770.cs [new file with mode: 0644]
mcs/errors/cs1908-2.cs [new file with mode: 0644]
mcs/errors/cs1908-3.cs [new file with mode: 0644]
mcs/errors/cs1908-4.cs [new file with mode: 0644]
mcs/errors/cs1908.cs [new file with mode: 0644]
mcs/errors/cs1909-2.cs [new file with mode: 0644]
mcs/errors/cs1909.cs [new file with mode: 0644]
mcs/errors/cs1910-2.cs [new file with mode: 0644]
mcs/errors/cs1910.cs [new file with mode: 0644]
mcs/errors/cs1912.cs [new file with mode: 0644]
mcs/errors/cs1913-2.cs [new file with mode: 0644]
mcs/errors/cs1913.cs [new file with mode: 0644]
mcs/errors/cs1914.cs [new file with mode: 0644]
mcs/errors/cs1918.cs [new file with mode: 0644]
mcs/errors/cs1920.cs [new file with mode: 0644]
mcs/errors/cs1922-2.cs [new file with mode: 0644]
mcs/errors/cs1922.cs [new file with mode: 0644]
mcs/errors/cs1925.cs [new file with mode: 0644]
mcs/errors/cs1928-2.cs [new file with mode: 0644]
mcs/errors/cs1928-3.cs [new file with mode: 0644]
mcs/errors/cs1928.cs [new file with mode: 0644]
mcs/errors/cs1929.cs [new file with mode: 0644]
mcs/errors/cs1930-2.cs [new file with mode: 0644]
mcs/errors/cs1930.cs [new file with mode: 0644]
mcs/errors/cs1931-2.cs [new file with mode: 0644]
mcs/errors/cs1931-3.cs [new file with mode: 0644]
mcs/errors/cs1931-4.cs [new file with mode: 0644]
mcs/errors/cs1931.cs [new file with mode: 0644]
mcs/errors/cs1932-2.cs [new file with mode: 0644]
mcs/errors/cs1932.cs [new file with mode: 0644]
mcs/errors/cs1935-2.cs [new file with mode: 0644]
mcs/errors/cs1935.cs [new file with mode: 0644]
mcs/errors/cs1936.cs [new file with mode: 0644]
mcs/errors/cs1939.cs [new file with mode: 0644]
mcs/errors/cs1940.cs [new file with mode: 0644]
mcs/errors/cs1942-2.cs [new file with mode: 0644]
mcs/errors/cs1942.cs [new file with mode: 0644]
mcs/errors/cs1943.cs [new file with mode: 0644]
mcs/errors/cs1944-2.cs [new file with mode: 0644]
mcs/errors/cs1944-3.cs [new file with mode: 0644]
mcs/errors/cs1944-4.cs [new file with mode: 0644]
mcs/errors/cs1944-5.cs [new file with mode: 0644]
mcs/errors/cs1944-6.cs [new file with mode: 0644]
mcs/errors/cs1944-7.cs [new file with mode: 0644]
mcs/errors/cs1944.cs [new file with mode: 0644]
mcs/errors/cs1945.cs [new file with mode: 0644]
mcs/errors/cs1946.cs [new file with mode: 0644]
mcs/errors/cs1947.cs [new file with mode: 0644]
mcs/errors/cs1948-2.cs [new file with mode: 0644]
mcs/errors/cs1948.cs [new file with mode: 0644]
mcs/errors/cs1950.cs [new file with mode: 0644]
mcs/errors/cs1951-2.cs [new file with mode: 0644]
mcs/errors/cs1951.cs [new file with mode: 0644]
mcs/errors/cs1952.cs [new file with mode: 0644]
mcs/errors/cs1953.cs [new file with mode: 0644]
mcs/errors/cs1954.cs [new file with mode: 0644]
mcs/errors/cs1959-2.cs [new file with mode: 0644]
mcs/errors/cs1959.cs [new file with mode: 0644]
mcs/errors/cs1960-2.cs [new file with mode: 0644]
mcs/errors/cs1960.cs [new file with mode: 0644]
mcs/errors/cs1961-10.cs [new file with mode: 0644]
mcs/errors/cs1961-11.cs [new file with mode: 0644]
mcs/errors/cs1961-12.cs [new file with mode: 0644]
mcs/errors/cs1961-13.cs [new file with mode: 0644]
mcs/errors/cs1961-14.cs [new file with mode: 0644]
mcs/errors/cs1961-15.cs [new file with mode: 0644]
mcs/errors/cs1961-16.cs [new file with mode: 0644]
mcs/errors/cs1961-17.cs [new file with mode: 0644]
mcs/errors/cs1961-18.cs [new file with mode: 0644]
mcs/errors/cs1961-19.cs [new file with mode: 0644]
mcs/errors/cs1961-2.cs [new file with mode: 0644]
mcs/errors/cs1961-20.cs [new file with mode: 0644]
mcs/errors/cs1961-21.cs [new file with mode: 0644]
mcs/errors/cs1961-22.cs [new file with mode: 0644]
mcs/errors/cs1961-23.cs [new file with mode: 0644]
mcs/errors/cs1961-24.cs [new file with mode: 0644]
mcs/errors/cs1961-25.cs [new file with mode: 0644]
mcs/errors/cs1961-26.cs [new file with mode: 0644]
mcs/errors/cs1961-27.cs [new file with mode: 0644]
mcs/errors/cs1961-28.cs [new file with mode: 0644]
mcs/errors/cs1961-29.cs [new file with mode: 0644]
mcs/errors/cs1961-3.cs [new file with mode: 0644]
mcs/errors/cs1961-30.cs [new file with mode: 0644]
mcs/errors/cs1961-31.cs [new file with mode: 0644]
mcs/errors/cs1961-32.cs [new file with mode: 0644]
mcs/errors/cs1961-33.cs [new file with mode: 0644]
mcs/errors/cs1961-34.cs [new file with mode: 0644]
mcs/errors/cs1961-35.cs [new file with mode: 0644]
mcs/errors/cs1961-36.cs [new file with mode: 0644]
mcs/errors/cs1961-37.cs [new file with mode: 0644]
mcs/errors/cs1961-38.cs [new file with mode: 0644]
mcs/errors/cs1961-39.cs [new file with mode: 0644]
mcs/errors/cs1961-4.cs [new file with mode: 0644]
mcs/errors/cs1961-5.cs [new file with mode: 0644]
mcs/errors/cs1961-6.cs [new file with mode: 0644]
mcs/errors/cs1961-7.cs [new file with mode: 0644]
mcs/errors/cs1961-8.cs [new file with mode: 0644]
mcs/errors/cs1961-9.cs [new file with mode: 0644]
mcs/errors/cs1961.cs [new file with mode: 0644]
mcs/errors/cs3001-10.cs [new file with mode: 0644]
mcs/errors/cs3002-11.cs [new file with mode: 0644]
mcs/errors/cs3003-8.cs [new file with mode: 0644]
mcs/errors/cs3005-26.cs [new file with mode: 0644]
mcs/errors/cs3009-4.cs [new file with mode: 0644]
mcs/errors/cs3019-4.cs [new file with mode: 0644]
mcs/errors/cs3024-2.cs [new file with mode: 0644]
mcs/errors/cs3024.cs [new file with mode: 0644]
mcs/errors/gcs0019-10.cs [deleted file]
mcs/errors/gcs0019-11.cs [deleted file]
mcs/errors/gcs0019-12.cs [deleted file]
mcs/errors/gcs0019-13.cs [deleted file]
mcs/errors/gcs0019-14.cs [deleted file]
mcs/errors/gcs0019-15.cs [deleted file]
mcs/errors/gcs0019-16.cs [deleted file]
mcs/errors/gcs0019-17.cs [deleted file]
mcs/errors/gcs0019-18.cs [deleted file]
mcs/errors/gcs0019-19.cs [deleted file]
mcs/errors/gcs0019-2.cs [deleted file]
mcs/errors/gcs0019-20.cs [deleted file]
mcs/errors/gcs0019-21.cs [deleted file]
mcs/errors/gcs0019-22.cs [deleted file]
mcs/errors/gcs0019-3.cs [deleted file]
mcs/errors/gcs0019-5.cs [deleted file]
mcs/errors/gcs0019-6.cs [deleted file]
mcs/errors/gcs0019-7.cs [deleted file]
mcs/errors/gcs0019-8.cs [deleted file]
mcs/errors/gcs0019-9.cs [deleted file]
mcs/errors/gcs0019.cs [deleted file]
mcs/errors/gcs0021.cs [deleted file]
mcs/errors/gcs0029-10.cs [deleted file]
mcs/errors/gcs0029-11.cs [deleted file]
mcs/errors/gcs0029-2.cs [deleted file]
mcs/errors/gcs0029-3.cs [deleted file]
mcs/errors/gcs0029-4.cs [deleted file]
mcs/errors/gcs0029-5.cs [deleted file]
mcs/errors/gcs0029-6.cs [deleted file]
mcs/errors/gcs0029-7.cs [deleted file]
mcs/errors/gcs0029-8.cs [deleted file]
mcs/errors/gcs0029-9.cs [deleted file]
mcs/errors/gcs0029.cs [deleted file]
mcs/errors/gcs0030-2.cs [deleted file]
mcs/errors/gcs0030-3.cs [deleted file]
mcs/errors/gcs0030.cs [deleted file]
mcs/errors/gcs0031.cs [deleted file]
mcs/errors/gcs0037-2.cs [deleted file]
mcs/errors/gcs0051.cs [deleted file]
mcs/errors/gcs0060-2.cs [deleted file]
mcs/errors/gcs0060-3.cs [deleted file]
mcs/errors/gcs0060.cs [deleted file]
mcs/errors/gcs0065.cs [deleted file]
mcs/errors/gcs0069.cs [deleted file]
mcs/errors/gcs0080.cs [deleted file]
mcs/errors/gcs0081-2.cs [deleted file]
mcs/errors/gcs0081-3.cs [deleted file]
mcs/errors/gcs0081.cs [deleted file]
mcs/errors/gcs0100.cs [deleted file]
mcs/errors/gcs0102.cs [deleted file]
mcs/errors/gcs0103-2.cs [deleted file]
mcs/errors/gcs0103-3.cs [deleted file]
mcs/errors/gcs0103-4.cs [deleted file]
mcs/errors/gcs0103-5.cs [deleted file]
mcs/errors/gcs0103.cs [deleted file]
mcs/errors/gcs0108-2.cs [deleted file]
mcs/errors/gcs0108.cs [deleted file]
mcs/errors/gcs0109-2.cs [deleted file]
mcs/errors/gcs0109.cs [deleted file]
mcs/errors/gcs0111-2.cs [deleted file]
mcs/errors/gcs0111-3.cs [deleted file]
mcs/errors/gcs0111-4.cs [deleted file]
mcs/errors/gcs0111-5.cs [deleted file]
mcs/errors/gcs0111-6.cs [deleted file]
mcs/errors/gcs0111-7.cs [deleted file]
mcs/errors/gcs0111-8.cs [deleted file]
mcs/errors/gcs0111.cs [deleted file]
mcs/errors/gcs0117-2.cs [deleted file]
mcs/errors/gcs0117.cs [deleted file]
mcs/errors/gcs0118.cs [deleted file]
mcs/errors/gcs0119-2.cs [deleted file]
mcs/errors/gcs0119-3.cs [deleted file]
mcs/errors/gcs0119.cs [deleted file]
mcs/errors/gcs0121-2.cs [deleted file]
mcs/errors/gcs0121-3.cs [deleted file]
mcs/errors/gcs0121.cs [deleted file]
mcs/errors/gcs0122-2.cs [deleted file]
mcs/errors/gcs0122.cs [deleted file]
mcs/errors/gcs0133-2.cs [deleted file]
mcs/errors/gcs0136-2.cs [deleted file]
mcs/errors/gcs0136-3.cs [deleted file]
mcs/errors/gcs0136.cs [deleted file]
mcs/errors/gcs0146.cs [deleted file]
mcs/errors/gcs0162-2.cs [deleted file]
mcs/errors/gcs0162.cs [deleted file]
mcs/errors/gcs0171.cs [deleted file]
mcs/errors/gcs0173.cs [deleted file]
mcs/errors/gcs0177.cs [deleted file]
mcs/errors/gcs0183-2.cs [deleted file]
mcs/errors/gcs0183.cs [deleted file]
mcs/errors/gcs0184-2.cs [deleted file]
mcs/errors/gcs0184-3.cs [deleted file]
mcs/errors/gcs0184-4.cs [deleted file]
mcs/errors/gcs0184.cs [deleted file]
mcs/errors/gcs0200.cs [deleted file]
mcs/errors/gcs0201-2.cs [deleted file]
mcs/errors/gcs0201.cs [deleted file]
mcs/errors/gcs0202.cs [deleted file]
mcs/errors/gcs0206.cs [deleted file]
mcs/errors/gcs0208-2.cs [deleted file]
mcs/errors/gcs0208-3.cs [deleted file]
mcs/errors/gcs0208-4.cs [deleted file]
mcs/errors/gcs0208-5.cs [deleted file]
mcs/errors/gcs0208.cs [deleted file]
mcs/errors/gcs0214.cs [deleted file]
mcs/errors/gcs0246-3.cs [deleted file]
mcs/errors/gcs0246-4.cs [deleted file]
mcs/errors/gcs0246-5.cs [deleted file]
mcs/errors/gcs0246-6.cs [deleted file]
mcs/errors/gcs0246-8.cs [deleted file]
mcs/errors/gcs0246.cs [deleted file]
mcs/errors/gcs0264-2.cs [deleted file]
mcs/errors/gcs0264.cs [deleted file]
mcs/errors/gcs0265.cs [deleted file]
mcs/errors/gcs0266-2.cs [deleted file]
mcs/errors/gcs0266-3.cs [deleted file]
mcs/errors/gcs0266-4.cs [deleted file]
mcs/errors/gcs0266-5.cs [deleted file]
mcs/errors/gcs0266-6.cs [deleted file]
mcs/errors/gcs0266.cs [deleted file]
mcs/errors/gcs0267.cs [deleted file]
mcs/errors/gcs0271.cs [deleted file]
mcs/errors/gcs0272.cs [deleted file]
mcs/errors/gcs0281.cs [deleted file]
mcs/errors/gcs0304.cs [deleted file]
mcs/errors/gcs0305-2.cs [deleted file]
mcs/errors/gcs0305-3.cs [deleted file]
mcs/errors/gcs0305-4.cs [deleted file]
mcs/errors/gcs0305-5.cs [deleted file]
mcs/errors/gcs0305-6.cs [deleted file]
mcs/errors/gcs0305-7.cs [deleted file]
mcs/errors/gcs0305.cs [deleted file]
mcs/errors/gcs0306-2.cs [deleted file]
mcs/errors/gcs0306-3.cs [deleted file]
mcs/errors/gcs0306.cs [deleted file]
mcs/errors/gcs0307-2.cs [deleted file]
mcs/errors/gcs0307-3.cs [deleted file]
mcs/errors/gcs0307-4.cs [deleted file]
mcs/errors/gcs0307-5.cs [deleted file]
mcs/errors/gcs0307-6.cs [deleted file]
mcs/errors/gcs0307.cs [deleted file]
mcs/errors/gcs0308-2.cs [deleted file]
mcs/errors/gcs0308-3.cs [deleted file]
mcs/errors/gcs0308-4.cs [deleted file]
mcs/errors/gcs0308-5.cs [deleted file]
mcs/errors/gcs0308-6.cs [deleted file]
mcs/errors/gcs0308-7.cs [deleted file]
mcs/errors/gcs0308.cs [deleted file]
mcs/errors/gcs0310-2.cs [deleted file]
mcs/errors/gcs0310-3.cs [deleted file]
mcs/errors/gcs0310-4.cs [deleted file]
mcs/errors/gcs0310-5.cs [deleted file]
mcs/errors/gcs0310.cs [deleted file]
mcs/errors/gcs0311-2.cs [deleted file]
mcs/errors/gcs0311-3.cs [deleted file]
mcs/errors/gcs0311-4.cs [deleted file]
mcs/errors/gcs0311-5.cs [deleted file]
mcs/errors/gcs0311.cs [deleted file]
mcs/errors/gcs0313.cs [deleted file]
mcs/errors/gcs0314-2.cs [deleted file]
mcs/errors/gcs0314.cs [deleted file]
mcs/errors/gcs0315-2.cs [deleted file]
mcs/errors/gcs0315-3.cs [deleted file]
mcs/errors/gcs0315.cs [deleted file]
mcs/errors/gcs0401.cs [deleted file]
mcs/errors/gcs0402-2.cs [deleted file]
mcs/errors/gcs0402.cs [deleted file]
mcs/errors/gcs0403-2.cs [deleted file]
mcs/errors/gcs0403-3.cs [deleted file]
mcs/errors/gcs0403.cs [deleted file]
mcs/errors/gcs0404.cs [deleted file]
mcs/errors/gcs0405.cs [deleted file]
mcs/errors/gcs0406-2.cs [deleted file]
mcs/errors/gcs0406.cs [deleted file]
mcs/errors/gcs0409.cs [deleted file]
mcs/errors/gcs0411-10.cs [deleted file]
mcs/errors/gcs0411-11.cs [deleted file]
mcs/errors/gcs0411-12.cs [deleted file]
mcs/errors/gcs0411-13.cs [deleted file]
mcs/errors/gcs0411-14.cs [deleted file]
mcs/errors/gcs0411-15.cs [deleted file]
mcs/errors/gcs0411-16.cs [deleted file]
mcs/errors/gcs0411-17.cs [deleted file]
mcs/errors/gcs0411-2.cs [deleted file]
mcs/errors/gcs0411-3.cs [deleted file]
mcs/errors/gcs0411-5.cs [deleted file]
mcs/errors/gcs0411-6.cs [deleted file]
mcs/errors/gcs0411-7.cs [deleted file]
mcs/errors/gcs0411-8.cs [deleted file]
mcs/errors/gcs0411-9.cs [deleted file]
mcs/errors/gcs0411.cs [deleted file]
mcs/errors/gcs0412-2.cs [deleted file]
mcs/errors/gcs0412-3.cs [deleted file]
mcs/errors/gcs0412.cs [deleted file]
mcs/errors/gcs0413-2.cs [deleted file]
mcs/errors/gcs0413.cs [deleted file]
mcs/errors/gcs0414.cs [deleted file]
mcs/errors/gcs0416-2.cs [deleted file]
mcs/errors/gcs0416-3.cs [deleted file]
mcs/errors/gcs0416.cs [deleted file]
mcs/errors/gcs0417.cs [deleted file]
mcs/errors/gcs0425-2.cs [deleted file]
mcs/errors/gcs0425-3.cs [deleted file]
mcs/errors/gcs0425-4.cs [deleted file]
mcs/errors/gcs0425-5.cs [deleted file]
mcs/errors/gcs0425.cs [deleted file]
mcs/errors/gcs0428.cs [deleted file]
mcs/errors/gcs0449-2.cs [deleted file]
mcs/errors/gcs0449-3.cs [deleted file]
mcs/errors/gcs0449.cs [deleted file]
mcs/errors/gcs0450-2.cs [deleted file]
mcs/errors/gcs0450.cs [deleted file]
mcs/errors/gcs0451.cs [deleted file]
mcs/errors/gcs0452-2.cs [deleted file]
mcs/errors/gcs0452-3.cs [deleted file]
mcs/errors/gcs0452-4.cs [deleted file]
mcs/errors/gcs0452.cs [deleted file]
mcs/errors/gcs0453-2.cs [deleted file]
mcs/errors/gcs0453-3.cs [deleted file]
mcs/errors/gcs0453-4.cs [deleted file]
mcs/errors/gcs0453-5.cs [deleted file]
mcs/errors/gcs0453.cs [deleted file]
mcs/errors/gcs0454.cs [deleted file]
mcs/errors/gcs0455-2.cs [deleted file]
mcs/errors/gcs0455-3.cs [deleted file]
mcs/errors/gcs0455-4.cs [deleted file]
mcs/errors/gcs0455-5.cs [deleted file]
mcs/errors/gcs0455.cs [deleted file]
mcs/errors/gcs0456.cs [deleted file]
mcs/errors/gcs0458-10.cs [deleted file]
mcs/errors/gcs0458-11.cs [deleted file]
mcs/errors/gcs0458-12.cs [deleted file]
mcs/errors/gcs0458-13.cs [deleted file]
mcs/errors/gcs0458-2.cs [deleted file]
mcs/errors/gcs0458-3.cs [deleted file]
mcs/errors/gcs0458-4.cs [deleted file]
mcs/errors/gcs0458-5.cs [deleted file]
mcs/errors/gcs0458-6.cs [deleted file]
mcs/errors/gcs0458-7.cs [deleted file]
mcs/errors/gcs0458-8.cs [deleted file]
mcs/errors/gcs0458-9.cs [deleted file]
mcs/errors/gcs0458.cs [deleted file]
mcs/errors/gcs0460-2.cs [deleted file]
mcs/errors/gcs0460.cs [deleted file]
mcs/errors/gcs0464-2.cs [deleted file]
mcs/errors/gcs0464-3.cs [deleted file]
mcs/errors/gcs0464.cs [deleted file]
mcs/errors/gcs0472-2.cs [deleted file]
mcs/errors/gcs0472-3.cs [deleted file]
mcs/errors/gcs0472-4.cs [deleted file]
mcs/errors/gcs0472.cs [deleted file]
mcs/errors/gcs0501.cs [deleted file]
mcs/errors/gcs0508-2.cs [deleted file]
mcs/errors/gcs0508-3.cs [deleted file]
mcs/errors/gcs0508.cs [deleted file]
mcs/errors/gcs0515.cs [deleted file]
mcs/errors/gcs0523-2.cs [deleted file]
mcs/errors/gcs0523-3.cs [deleted file]
mcs/errors/gcs0523-4.cs [deleted file]
mcs/errors/gcs0523-5.cs [deleted file]
mcs/errors/gcs0523.cs [deleted file]
mcs/errors/gcs0555.cs [deleted file]
mcs/errors/gcs0612-2.cs [deleted file]
mcs/errors/gcs0612.cs [deleted file]
mcs/errors/gcs0619.cs [deleted file]
mcs/errors/gcs0633-4.cs [deleted file]
mcs/errors/gcs0663.cs [deleted file]
mcs/errors/gcs0677-2.cs [deleted file]
mcs/errors/gcs0677.cs [deleted file]
mcs/errors/gcs0689.cs [deleted file]
mcs/errors/gcs0692.cs [deleted file]
mcs/errors/gcs0693-2.cs [deleted file]
mcs/errors/gcs0693-3.cs [deleted file]
mcs/errors/gcs0693.cs [deleted file]
mcs/errors/gcs0694.cs [deleted file]
mcs/errors/gcs0695-2.cs [deleted file]
mcs/errors/gcs0695-3.cs [deleted file]
mcs/errors/gcs0695-4.cs [deleted file]
mcs/errors/gcs0695.cs [deleted file]
mcs/errors/gcs0698.cs [deleted file]
mcs/errors/gcs0699-2.cs [deleted file]
mcs/errors/gcs0699.cs [deleted file]
mcs/errors/gcs0701-2.cs [deleted file]
mcs/errors/gcs0701.cs [deleted file]
mcs/errors/gcs0702-2.cs [deleted file]
mcs/errors/gcs0702-3.cs [deleted file]
mcs/errors/gcs0702.cs [deleted file]
mcs/errors/gcs0703-2.cs [deleted file]
mcs/errors/gcs0703-3.cs [deleted file]
mcs/errors/gcs0703.cs [deleted file]
mcs/errors/gcs0704.cs [deleted file]
mcs/errors/gcs0706.cs [deleted file]
mcs/errors/gcs0717.cs [deleted file]
mcs/errors/gcs0718.cs [deleted file]
mcs/errors/gcs0721.cs [deleted file]
mcs/errors/gcs0723.cs [deleted file]
mcs/errors/gcs0729.cs [deleted file]
mcs/errors/gcs0730.cs [deleted file]
mcs/errors/gcs0735-2.cs [deleted file]
mcs/errors/gcs0735.cs [deleted file]
mcs/errors/gcs0739.cs [deleted file]
mcs/errors/gcs0746.cs [deleted file]
mcs/errors/gcs0747-2.cs [deleted file]
mcs/errors/gcs0747.cs [deleted file]
mcs/errors/gcs0748.cs [deleted file]
mcs/errors/gcs0755.cs [deleted file]
mcs/errors/gcs0818.cs [deleted file]
mcs/errors/gcs0820.cs [deleted file]
mcs/errors/gcs0821.cs [deleted file]
mcs/errors/gcs0822.cs [deleted file]
mcs/errors/gcs0825-2.cs [deleted file]
mcs/errors/gcs0825-3.cs [deleted file]
mcs/errors/gcs0825.cs [deleted file]
mcs/errors/gcs0826-2.cs [deleted file]
mcs/errors/gcs0826-3.cs [deleted file]
mcs/errors/gcs0826-4.cs [deleted file]
mcs/errors/gcs0826-5.cs [deleted file]
mcs/errors/gcs0826-6.cs [deleted file]
mcs/errors/gcs0826-7.cs [deleted file]
mcs/errors/gcs0826-8.cs [deleted file]
mcs/errors/gcs0826.cs [deleted file]
mcs/errors/gcs0828-2.cs [deleted file]
mcs/errors/gcs0828-3.cs [deleted file]
mcs/errors/gcs0828-4.cs [deleted file]
mcs/errors/gcs0828-5.cs [deleted file]
mcs/errors/gcs0828-6.cs [deleted file]
mcs/errors/gcs0828.cs [deleted file]
mcs/errors/gcs0831-2.cs [deleted file]
mcs/errors/gcs0831-3.cs [deleted file]
mcs/errors/gcs0831.cs [deleted file]
mcs/errors/gcs0832-2.cs [deleted file]
mcs/errors/gcs0832-3.cs [deleted file]
mcs/errors/gcs0832-4.cs [deleted file]
mcs/errors/gcs0832.cs [deleted file]
mcs/errors/gcs0833.cs [deleted file]
mcs/errors/gcs0834-2.cs [deleted file]
mcs/errors/gcs0834.cs [deleted file]
mcs/errors/gcs0835.cs [deleted file]
mcs/errors/gcs0836.cs [deleted file]
mcs/errors/gcs0837.cs [deleted file]
mcs/errors/gcs0838.cs [deleted file]
mcs/errors/gcs0840.cs [deleted file]
mcs/errors/gcs0841.cs [deleted file]
mcs/errors/gcs0842.cs [deleted file]
mcs/errors/gcs0845.cs [deleted file]
mcs/errors/gcs0853.cs [deleted file]
mcs/errors/gcs0854-2.cs [deleted file]
mcs/errors/gcs0854.cs [deleted file]
mcs/errors/gcs1058-1.cs [deleted file]
mcs/errors/gcs1058-2.cs [deleted file]
mcs/errors/gcs1061-2.cs [deleted file]
mcs/errors/gcs1061-3.cs [deleted file]
mcs/errors/gcs1061-4.cs [deleted file]
mcs/errors/gcs1061-5.cs [deleted file]
mcs/errors/gcs1061-6.cs [deleted file]
mcs/errors/gcs1061.cs [deleted file]
mcs/errors/gcs1067.cs [deleted file]
mcs/errors/gcs1100.cs [deleted file]
mcs/errors/gcs1101.cs [deleted file]
mcs/errors/gcs1102.cs [deleted file]
mcs/errors/gcs1103.cs [deleted file]
mcs/errors/gcs1104.cs [deleted file]
mcs/errors/gcs1105.cs [deleted file]
mcs/errors/gcs1106-2.cs [deleted file]
mcs/errors/gcs1106.cs [deleted file]
mcs/errors/gcs1109.cs [deleted file]
mcs/errors/gcs1110.cs [deleted file]
mcs/errors/gcs1112-2.cs [deleted file]
mcs/errors/gcs1112-3.cs [deleted file]
mcs/errors/gcs1112.cs [deleted file]
mcs/errors/gcs1113-2.cs [deleted file]
mcs/errors/gcs1113.cs [deleted file]
mcs/errors/gcs1501-2.cs [deleted file]
mcs/errors/gcs1501-3.cs [deleted file]
mcs/errors/gcs1501-4.cs [deleted file]
mcs/errors/gcs1501.cs [deleted file]
mcs/errors/gcs1502-2.cs [deleted file]
mcs/errors/gcs1502-3.cs [deleted file]
mcs/errors/gcs1502.cs [deleted file]
mcs/errors/gcs1503-4.cs [deleted file]
mcs/errors/gcs1503.cs [deleted file]
mcs/errors/gcs1521.cs [deleted file]
mcs/errors/gcs1525-2.cs [deleted file]
mcs/errors/gcs1525-4.cs [deleted file]
mcs/errors/gcs1525.cs [deleted file]
mcs/errors/gcs1547-2.cs [deleted file]
mcs/errors/gcs1547-3.cs [deleted file]
mcs/errors/gcs1547.cs [deleted file]
mcs/errors/gcs1579.cs [deleted file]
mcs/errors/gcs1593.cs [deleted file]
mcs/errors/gcs1624.cs [deleted file]
mcs/errors/gcs1640.cs [deleted file]
mcs/errors/gcs1642.cs [deleted file]
mcs/errors/gcs1644-10.cs [deleted file]
mcs/errors/gcs1644-11.cs [deleted file]
mcs/errors/gcs1644-12.cs [deleted file]
mcs/errors/gcs1644-13.cs [deleted file]
mcs/errors/gcs1644-14.cs [deleted file]
mcs/errors/gcs1644-15.cs [deleted file]
mcs/errors/gcs1644-16.cs [deleted file]
mcs/errors/gcs1644-17.cs [deleted file]
mcs/errors/gcs1644-2.cs [deleted file]
mcs/errors/gcs1644-3.cs [deleted file]
mcs/errors/gcs1644-4.cs [deleted file]
mcs/errors/gcs1644-5.cs [deleted file]
mcs/errors/gcs1644-6.cs [deleted file]
mcs/errors/gcs1644-7.cs [deleted file]
mcs/errors/gcs1644-8.cs [deleted file]
mcs/errors/gcs1644-9.cs [deleted file]
mcs/errors/gcs1644.cs [deleted file]
mcs/errors/gcs1660.cs [deleted file]
mcs/errors/gcs1661.cs [deleted file]
mcs/errors/gcs1662-2.cs [deleted file]
mcs/errors/gcs1663.cs [deleted file]
mcs/errors/gcs1664.cs [deleted file]
mcs/errors/gcs1665.cs [deleted file]
mcs/errors/gcs1666.cs [deleted file]
mcs/errors/gcs1675.cs [deleted file]
mcs/errors/gcs1676.cs [deleted file]
mcs/errors/gcs1677.cs [deleted file]
mcs/errors/gcs1685.cs [deleted file]
mcs/errors/gcs1686.cs [deleted file]
mcs/errors/gcs1689.cs [deleted file]
mcs/errors/gcs1700.cs [deleted file]
mcs/errors/gcs1708.cs [deleted file]
mcs/errors/gcs1716.cs [deleted file]
mcs/errors/gcs1718.cs [deleted file]
mcs/errors/gcs1720-2.cs [deleted file]
mcs/errors/gcs1720.cs [deleted file]
mcs/errors/gcs1724.cs [deleted file]
mcs/errors/gcs1726-2.cs [deleted file]
mcs/errors/gcs1726.cs [deleted file]
mcs/errors/gcs1728-2.cs [deleted file]
mcs/errors/gcs1728.cs [deleted file]
mcs/errors/gcs1744.cs [deleted file]
mcs/errors/gcs1745.cs [deleted file]
mcs/errors/gcs1750.cs [deleted file]
mcs/errors/gcs1770.cs [deleted file]
mcs/errors/gcs1908-2.cs [deleted file]
mcs/errors/gcs1908-3.cs [deleted file]
mcs/errors/gcs1908-4.cs [deleted file]
mcs/errors/gcs1908.cs [deleted file]
mcs/errors/gcs1909-2.cs [deleted file]
mcs/errors/gcs1909.cs [deleted file]
mcs/errors/gcs1910-2.cs [deleted file]
mcs/errors/gcs1910.cs [deleted file]
mcs/errors/gcs1912.cs [deleted file]
mcs/errors/gcs1913-2.cs [deleted file]
mcs/errors/gcs1913.cs [deleted file]
mcs/errors/gcs1914.cs [deleted file]
mcs/errors/gcs1918.cs [deleted file]
mcs/errors/gcs1920.cs [deleted file]
mcs/errors/gcs1922-2.cs [deleted file]
mcs/errors/gcs1922.cs [deleted file]
mcs/errors/gcs1925.cs [deleted file]
mcs/errors/gcs1928-2.cs [deleted file]
mcs/errors/gcs1928-3.cs [deleted file]
mcs/errors/gcs1928.cs [deleted file]
mcs/errors/gcs1929.cs [deleted file]
mcs/errors/gcs1930-2.cs [deleted file]
mcs/errors/gcs1930.cs [deleted file]
mcs/errors/gcs1931-2.cs [deleted file]
mcs/errors/gcs1931-3.cs [deleted file]
mcs/errors/gcs1931-4.cs [deleted file]
mcs/errors/gcs1931.cs [deleted file]
mcs/errors/gcs1932-2.cs [deleted file]
mcs/errors/gcs1932.cs [deleted file]
mcs/errors/gcs1935-2.cs [deleted file]
mcs/errors/gcs1935.cs [deleted file]
mcs/errors/gcs1936.cs [deleted file]
mcs/errors/gcs1939.cs [deleted file]
mcs/errors/gcs1940.cs [deleted file]
mcs/errors/gcs1942-2.cs [deleted file]
mcs/errors/gcs1942.cs [deleted file]
mcs/errors/gcs1943.cs [deleted file]
mcs/errors/gcs1944-2.cs [deleted file]
mcs/errors/gcs1944-3.cs [deleted file]
mcs/errors/gcs1944-4.cs [deleted file]
mcs/errors/gcs1944-5.cs [deleted file]
mcs/errors/gcs1944-6.cs [deleted file]
mcs/errors/gcs1944-7.cs [deleted file]
mcs/errors/gcs1944.cs [deleted file]
mcs/errors/gcs1945.cs [deleted file]
mcs/errors/gcs1946.cs [deleted file]
mcs/errors/gcs1947.cs [deleted file]
mcs/errors/gcs1948-2.cs [deleted file]
mcs/errors/gcs1948.cs [deleted file]
mcs/errors/gcs1950.cs [deleted file]
mcs/errors/gcs1951-2.cs [deleted file]
mcs/errors/gcs1951.cs [deleted file]
mcs/errors/gcs1952.cs [deleted file]
mcs/errors/gcs1953.cs [deleted file]
mcs/errors/gcs1954.cs [deleted file]
mcs/errors/gcs1959-2.cs [deleted file]
mcs/errors/gcs1959.cs [deleted file]
mcs/errors/gcs1960-2.cs [deleted file]
mcs/errors/gcs1960.cs [deleted file]
mcs/errors/gcs1961-10.cs [deleted file]
mcs/errors/gcs1961-11.cs [deleted file]
mcs/errors/gcs1961-12.cs [deleted file]
mcs/errors/gcs1961-13.cs [deleted file]
mcs/errors/gcs1961-14.cs [deleted file]
mcs/errors/gcs1961-15.cs [deleted file]
mcs/errors/gcs1961-16.cs [deleted file]
mcs/errors/gcs1961-17.cs [deleted file]
mcs/errors/gcs1961-18.cs [deleted file]
mcs/errors/gcs1961-19.cs [deleted file]
mcs/errors/gcs1961-2.cs [deleted file]
mcs/errors/gcs1961-20.cs [deleted file]
mcs/errors/gcs1961-21.cs [deleted file]
mcs/errors/gcs1961-22.cs [deleted file]
mcs/errors/gcs1961-23.cs [deleted file]
mcs/errors/gcs1961-24.cs [deleted file]
mcs/errors/gcs1961-25.cs [deleted file]
mcs/errors/gcs1961-26.cs [deleted file]
mcs/errors/gcs1961-27.cs [deleted file]
mcs/errors/gcs1961-28.cs [deleted file]
mcs/errors/gcs1961-29.cs [deleted file]
mcs/errors/gcs1961-3.cs [deleted file]
mcs/errors/gcs1961-30.cs [deleted file]
mcs/errors/gcs1961-31.cs [deleted file]
mcs/errors/gcs1961-32.cs [deleted file]
mcs/errors/gcs1961-33.cs [deleted file]
mcs/errors/gcs1961-34.cs [deleted file]
mcs/errors/gcs1961-35.cs [deleted file]
mcs/errors/gcs1961-36.cs [deleted file]
mcs/errors/gcs1961-37.cs [deleted file]
mcs/errors/gcs1961-38.cs [deleted file]
mcs/errors/gcs1961-39.cs [deleted file]
mcs/errors/gcs1961-4.cs [deleted file]
mcs/errors/gcs1961-5.cs [deleted file]
mcs/errors/gcs1961-6.cs [deleted file]
mcs/errors/gcs1961-7.cs [deleted file]
mcs/errors/gcs1961-8.cs [deleted file]
mcs/errors/gcs1961-9.cs [deleted file]
mcs/errors/gcs1961.cs [deleted file]
mcs/errors/gcs3001.cs [deleted file]
mcs/errors/gcs3002.cs [deleted file]
mcs/errors/gcs3003.cs [deleted file]
mcs/errors/gcs3005.cs [deleted file]
mcs/errors/gcs3009.cs [deleted file]
mcs/errors/gcs3019.cs [deleted file]
mcs/errors/gcs3024-2.cs [deleted file]
mcs/errors/gcs3024.cs [deleted file]
mcs/errors/known-issues-dmcs
mcs/errors/known-issues-gmcs

diff --git a/mcs/errors/CS0122-35-lib.cs b/mcs/errors/CS0122-35-lib.cs
new file mode 100644 (file)
index 0000000..e229117
--- /dev/null
@@ -0,0 +1,5 @@
+class Test<A>
+{
+       public void Foo<V> (V v, V w)
+       { }
+}
diff --git a/mcs/errors/CS0315-2-lib.cs b/mcs/errors/CS0315-2-lib.cs
new file mode 100644 (file)
index 0000000..7c1d475
--- /dev/null
@@ -0,0 +1,10 @@
+public class A<T> where T : A<T>.N1<T>
+{
+       public class N1<U>
+       {
+       }
+       
+       public void Foo (N1<int> arg)
+       {
+       }
+}
diff --git a/mcs/errors/CS0730-lib.cs b/mcs/errors/CS0730-lib.cs
new file mode 100644 (file)
index 0000000..5d3b8b0
--- /dev/null
@@ -0,0 +1,6 @@
+public class C
+{
+       public class CC
+       {
+       }
+}
\ No newline at end of file
diff --git a/mcs/errors/CS1685-2-lib.cs b/mcs/errors/CS1685-2-lib.cs
new file mode 100644 (file)
index 0000000..c195887
--- /dev/null
@@ -0,0 +1,8 @@
+// Compiler options: -noconfig
+
+namespace System.Runtime.CompilerServices
+{
+       public class ExtensionAttribute : System.Attribute
+       {
+       }
+}
index 2b9634f4c5b482fd20c64e678530bef8fb209fd2..0cb989b07fece403ca56330335b38f27775b4afa 100644 (file)
@@ -2,10 +2,8 @@ using System;
 using System.Reflection;
 using System.Runtime.CompilerServices;
 
-#if NET_2_0
-
 [assembly: AssemblyKeyFile ("InternalsVisibleTest.snk")]
-[assembly: InternalsVisibleTo ("gcs0281, PublicKey=0024000004800000940000000602000000240000525341310004000011000000e39d99616f48cf7d6d59f345e485e713e89b8b1265a31b1a393e9894ee3fbddaf382dcaf4083dc31ee7a40a2a25c69c6d019fba9f37ec17fd680e4f6fe3b5305f71ae9e494e3501d92508c2e98ca1e22991a217aa8ce259c9882ffdfff4fbc6fa5e6660a8ff951cd94ed011e5633651b64e8f4522519b6ec84921ee22e4840e8")]
+[assembly: InternalsVisibleTo ("cs0281, PublicKey=0024000004800000940000000602000000240000525341310004000011000000e39d99616f48cf7d6d59f345e485e713e89b8b1265a31b1a393e9894ee3fbddaf382dcaf4083dc31ee7a40a2a25c69c6d019fba9f37ec17fd680e4f6fe3b5305f71ae9e494e3501d92508c2e98ca1e22991a217aa8ce259c9882ffdfff4fbc6fa5e6660a8ff951cd94ed011e5633651b64e8f4522519b6ec84921ee22e4840e8")]
 
 public class FriendClass
 {
@@ -14,5 +12,3 @@ public class FriendClass
        }
 }
 
-#endif
-
diff --git a/mcs/errors/GCS0122-2-lib.cs b/mcs/errors/GCS0122-2-lib.cs
deleted file mode 100644 (file)
index e229117..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-class Test<A>
-{
-       public void Foo<V> (V v, V w)
-       { }
-}
diff --git a/mcs/errors/GCS0315-2-lib.cs b/mcs/errors/GCS0315-2-lib.cs
deleted file mode 100644 (file)
index 7c1d475..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-public class A<T> where T : A<T>.N1<T>
-{
-       public class N1<U>
-       {
-       }
-       
-       public void Foo (N1<int> arg)
-       {
-       }
-}
diff --git a/mcs/errors/GCS0730-lib.cs b/mcs/errors/GCS0730-lib.cs
deleted file mode 100644 (file)
index 5d3b8b0..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-public class C
-{
-       public class CC
-       {
-       }
-}
\ No newline at end of file
diff --git a/mcs/errors/GCS0733-lib.cs b/mcs/errors/GCS0733-lib.cs
deleted file mode 100644 (file)
index 131d5ec..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-public class C<T>
-{
-       T t;
-}
diff --git a/mcs/errors/GCS1685-lib.cs b/mcs/errors/GCS1685-lib.cs
deleted file mode 100644 (file)
index c195887..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// Compiler options: -noconfig
-
-namespace System.Runtime.CompilerServices
-{
-       public class ExtensionAttribute : System.Attribute
-       {
-       }
-}
index 444b4d79d584169a254e505ef9bd46f71403a185..53b3a0928e3772accd71bca360ed641a77df20b9 100644 (file)
@@ -21,19 +21,17 @@ DISTFILES = \
 
 TEST_SUPPORT_FILES = \
        CS0012-lib.dll CS0012-2-lib.dll CS0012-3-lib.dll CS0012-4-lib.dll CS0012-5-lib.dll CS0012-6-lib.dll CS0012-9-lib.dll CS0012-10-lib.dll \
-       CS0103-2-lib.dll CS0118-2-lib.dll CS0122-10-lib.dll CS0122-14-lib.dll CS0122-15-lib.dll CS0122-19-lib.dll CS0143-lib.dll CS0144-3-lib.dll \
-       CS0205-3-lib.dll \
-       CS0229-3-lib.dll CS0229-4-lib.dll \
+       CS0103-2-lib.dll CS0118-2-lib.dll CS0122-10-lib.dll CS0122-14-lib.dll CS0122-15-lib.dll CS0122-19-lib.dll CS0122-35-lib.dll CS0143-lib.dll CS0144-3-lib.dll \
+       CS0205-3-lib.dll CS0229-3-lib.dll CS0229-4-lib.dll \
+       CS0315-2-lib.dll \
        CS0433-lib.dll CS0433-2-lib.dll \
        CS0534-3-lib.dll CS0534-4-lib.dll CS0534-6-lib.dll CS0571-3-lib.dll CS0571-5-lib.dll CS0571-6-lib.dll \
        CS0612-2-lib.dll CS0618-2-lib.dll CS0619-8-lib.dll CS0619-17-lib.dll CS0619-32-lib.dll CS0619-33-lib.dll CS0619-36-lib.dll CS0619-42-lib.dll \
        CS0619-43-lib.dll CS1546-lib.dll CS0619-51-lib.dll CS1509-module.dll CS1681-2-lib.dll \
+       CS0730-lib.dll \
        CS1542-lib.dll CS1577-lib.dll \
+       CS1685-2-lib.dll \
        CS2015-lib.dll CS3005-16-lib.dll CS3013-module.dll CSExternAlias-lib.dll \
-       GCS0122-2-lib.dll \
-       GCS0315-2-lib.dll \
-       GCS0730-lib.dll GCS0733-lib.dll \
-       GCS1685-lib.dll \
        CSFriendAssembly-lib.dll
 
 # mention all targets
diff --git a/mcs/errors/cs0019-41.cs b/mcs/errors/cs0019-41.cs
new file mode 100644 (file)
index 0000000..b7f686e
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0019: Operator `??' cannot be applied to operands of type `int' and `int'
+// Line: 8
+class X
+{
+       static void Main ()
+       {
+               int a = 5;
+               int b = a ?? 3;
+       }
+}
diff --git a/mcs/errors/cs0019-42.cs b/mcs/errors/cs0019-42.cs
new file mode 100644 (file)
index 0000000..e36bed4
--- /dev/null
@@ -0,0 +1,14 @@
+// CS0019: Operator `==' cannot be applied to operands of type `T' and `T'
+// Line: 5
+public class TestClass<T>
+{
+       public bool Check (T x, T y) { return x == y; }
+}
+
+public class X
+{
+       static void Main ()
+       { }
+}
+
+
diff --git a/mcs/errors/cs0019-43.cs b/mcs/errors/cs0019-43.cs
new file mode 100644 (file)
index 0000000..a1b8dbd
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0019: Operator `&&' cannot be applied to operands of type `bool?' and `bool?'
+// Line: 10
+using System;
+
+class X
+{
+       static void Main ()
+       {
+               bool? a = false, b = false;
+               Console.WriteLine (a && b);
+       }
+}
diff --git a/mcs/errors/cs0019-45.cs b/mcs/errors/cs0019-45.cs
new file mode 100644 (file)
index 0000000..be91523
--- /dev/null
@@ -0,0 +1,15 @@
+// CS0019: Operator `==' cannot be applied to operands of type `method group' and `null'
+// Line: 8
+
+public class C
+{
+       public static void Main ()
+       {
+               bool a = DelegateMethod == null;
+       }
+
+       static int DelegateMethod(bool b)
+       {
+               return 3;
+       }       
+}
diff --git a/mcs/errors/cs0019-46.cs b/mcs/errors/cs0019-46.cs
new file mode 100644 (file)
index 0000000..3924c53
--- /dev/null
@@ -0,0 +1,15 @@
+// CS0019: Operator `==' cannot be applied to operands of type `method group' and `method group'
+// Line: 8
+
+public class C
+{
+       public static void Main ()
+       {
+               bool a = DelegateMethod == DelegateMethod;
+       }
+
+       static int DelegateMethod(bool b)
+       {
+               return 3;
+       }       
+}
diff --git a/mcs/errors/cs0019-47.cs b/mcs/errors/cs0019-47.cs
new file mode 100644 (file)
index 0000000..e583c04
--- /dev/null
@@ -0,0 +1,9 @@
+// CS0019: Operator `??' cannot be applied to operands of type `null' and `anonymous method' 
+// Line: 8
+
+delegate void D ();
+
+class F
+{
+       D d = null ?? delegate { };
+}
diff --git a/mcs/errors/cs0019-48.cs b/mcs/errors/cs0019-48.cs
new file mode 100644 (file)
index 0000000..83c6d2e
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0019: Operator `??' cannot be applied to operands of type `T' and `T' 
+// Line: 8
+
+class F
+{
+       T Bar<T> (T t)
+       {
+               return t ?? default(T);
+       }
+}
diff --git a/mcs/errors/cs0019-49.cs b/mcs/errors/cs0019-49.cs
new file mode 100644 (file)
index 0000000..4915f42
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0019: Operator `!=' cannot be applied to operands of type `ulong?' and `int' 
+// Line: 8
+
+class C
+{
+       static void Test (ulong? x, int y)
+       {
+               if (x != y)
+               {
+               }
+       }
+}
diff --git a/mcs/errors/cs0019-50.cs b/mcs/errors/cs0019-50.cs
new file mode 100644 (file)
index 0000000..844bf0e
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0019: Operator `==' cannot be applied to operands of type `object' and `V'
+// Line: 9
+
+public class C<V>
+{
+       public bool TryGet (V v)
+       {
+               object tmp = null;
+               return tmp == v;
+       }
+}
diff --git a/mcs/errors/cs0019-51.cs b/mcs/errors/cs0019-51.cs
new file mode 100644 (file)
index 0000000..8dd9e93
--- /dev/null
@@ -0,0 +1,15 @@
+// CS0019: Operator `+' cannot be applied to operands of type `null' and `MyTypeImplicitOnly?'
+// Line: 13
+
+struct MyTypeImplicitOnly
+{
+}
+
+class C
+{
+       static void Main ()
+       {
+               MyTypeImplicitOnly? mt = null;
+               mt = null + mt;
+       }
+}
diff --git a/mcs/errors/cs0019-52.cs b/mcs/errors/cs0019-52.cs
new file mode 100644 (file)
index 0000000..06da5a8
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0019: Operator `??' cannot be applied to operands of type `null' and `bool'
+// Line: 8
+
+class Program
+{
+       static void Main()
+       {
+               object s = null ?? true;
+       }
+}
diff --git a/mcs/errors/cs0019-53.cs b/mcs/errors/cs0019-53.cs
new file mode 100644 (file)
index 0000000..05ba050
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0019: Operator `??' cannot be applied to operands of type `null' and `method group'
+// Line: 8
+
+class C
+{
+       delegate void D ();
+
+       static void Main ()
+       {
+               D d = null ?? Main;
+       }
+}
diff --git a/mcs/errors/cs0019-54.cs b/mcs/errors/cs0019-54.cs
new file mode 100755 (executable)
index 0000000..2e2f520
--- /dev/null
@@ -0,0 +1,13 @@
+// CS0019: Operator `==' cannot be applied to operands of type `A.D' and `anonymous method'
+// Line: 11
+
+class A
+{
+       delegate void D ();
+
+       static void Main ()
+       {
+               D d = null;
+               bool r = d == (() => { });
+       }
+}
diff --git a/mcs/errors/cs0019-55.cs b/mcs/errors/cs0019-55.cs
new file mode 100644 (file)
index 0000000..18163fa
--- /dev/null
@@ -0,0 +1,28 @@
+// CS0019: Operator `==' cannot be applied to operands of type `A' and `int?'
+// Line: 22
+
+class A
+{
+       public static bool operator == (A a, int b)
+       {
+               return false;
+       }
+       
+       public static bool operator != (A a, int b)
+       {
+               return false;
+       }
+}
+
+class C
+{
+       public static void Main ()
+       {
+               A a = new A ();
+               object b = a == Id;
+       }
+       
+       static int? Id {
+               get { return 1; }
+       }
+}
diff --git a/mcs/errors/cs0019-56.cs b/mcs/errors/cs0019-56.cs
new file mode 100644 (file)
index 0000000..ab3a191
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0019: Operator `+' cannot be applied to operands of type `Program' and `Program'
+// Line: 8
+
+public class Program
+{
+       static void Main ()
+       {
+               Program b = default (Program) + default (Program);
+       }
+}
diff --git a/mcs/errors/cs0019-57.cs b/mcs/errors/cs0019-57.cs
new file mode 100644 (file)
index 0000000..ee648e6
--- /dev/null
@@ -0,0 +1,14 @@
+// CS0019: Operator `==' cannot be applied to operands of type `T' and `U'
+// Line: 12
+
+interface I
+{
+}
+
+class Program
+{
+       bool Test<T, U> (T t, U u) where T : I where U : I
+       {
+               return t == u;
+       }
+}
diff --git a/mcs/errors/cs0019-58.cs b/mcs/errors/cs0019-58.cs
new file mode 100644 (file)
index 0000000..c5ce6fc
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0019: Operator `&=' cannot be applied to operands of type `bool' and `byte?'
+// Line: 10
+
+public class Test
+{
+       public static void Main()
+       {
+               bool b = false;
+               byte? b2 = 0;
+               b &= b2;
+       }
+}
diff --git a/mcs/errors/cs0019-59.cs b/mcs/errors/cs0019-59.cs
new file mode 100644 (file)
index 0000000..72a7a20
--- /dev/null
@@ -0,0 +1,24 @@
+// CS0019: Operator `^' cannot be applied to operands of type `S2' and `float'
+// Line: 9
+
+public class Test
+{
+       public static void Main()
+       {
+               S2 s2 = new S2 ();
+               int r = s2 ^ 5.04f;
+       }
+}
+
+struct S2
+{
+       public static int operator ^ (double? p1, S2 s2)
+       {
+               return 1;
+       }
+       
+       public static implicit operator int? (S2 s1)
+       { 
+               return int.MinValue;
+       }
+}
diff --git a/mcs/errors/cs0019-60.cs b/mcs/errors/cs0019-60.cs
new file mode 100644 (file)
index 0000000..c103e33
--- /dev/null
@@ -0,0 +1,25 @@
+// CS0019: Operator `>' cannot be applied to operands of type `S' and `S?'
+// Line: 9
+
+public class Test
+{
+       public static void Main ()
+       {
+               S a = new S ();
+               S? b = null;
+               string res = a > b;
+       }
+}
+
+struct S
+{
+       public static string operator > (S a, S b)
+       { 
+               return ">";
+       }
+       
+       public static string operator < (S a, S b)
+       { 
+               return "<";
+       }
+}
diff --git a/mcs/errors/cs0019-61.cs b/mcs/errors/cs0019-61.cs
new file mode 100644 (file)
index 0000000..d94fadd
--- /dev/null
@@ -0,0 +1,17 @@
+// CS0019: Operator `==' cannot be applied to operands of type `S?' and `int'
+// Line: 15
+
+struct S
+{
+       public static bool operator != (S s, int a) { return true; }
+       public static bool operator == (S s, int a) { return false; }
+}
+
+public class C
+{
+       public static void Main ()
+       {
+               S? s;
+               var b = s == 1;
+       }
+}
diff --git a/mcs/errors/cs0019-62.cs b/mcs/errors/cs0019-62.cs
new file mode 100644 (file)
index 0000000..b1f7cf9
--- /dev/null
@@ -0,0 +1,17 @@
+// CS0019: Operator `==' cannot be applied to operands of type `int' and `S?'
+// Line: 15
+
+struct S
+{
+       public static bool operator !=(int a, S s) { return true; }
+       public static bool operator ==(int a, S s) { return false; }
+}
+
+public class C
+{
+       public static void Main ()
+       {
+               S? s;
+               var b = 1 == s;
+       }
+}
diff --git a/mcs/errors/cs0021-3.cs b/mcs/errors/cs0021-3.cs
new file mode 100644 (file)
index 0000000..0c2ff6b
--- /dev/null
@@ -0,0 +1,8 @@
+// CS0021: Cannot apply indexing with [] to an expression of type `G'
+// Line: 5
+public class Foo<G> {
+    public static void Bar() {
+        int i = default(G)[0];
+    }
+}
+
diff --git a/mcs/errors/cs0029-15.cs b/mcs/errors/cs0029-15.cs
new file mode 100644 (file)
index 0000000..99de675
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0029: Cannot implicitly convert type `anonymous type' to `bool'
+// Line: 10
+
+
+public class Test
+{
+       static void Main ()
+       {
+               var o = new { Value = 1 };
+               bool b = o;
+       }
+}
diff --git a/mcs/errors/cs0029-16.cs b/mcs/errors/cs0029-16.cs
new file mode 100644 (file)
index 0000000..a1a04fe
--- /dev/null
@@ -0,0 +1,25 @@
+// CS0029: Cannot implicitly convert type `string' to `int'
+// Line: 28
+
+
+delegate string funcs (string s);
+delegate int funci (int i);
+
+class X
+{
+       static void Foo (funci fi)
+       {
+       }
+       
+       static void Foo (funcs fs)
+       {
+       }
+
+       static void Main ()
+       {
+               Foo (x => {
+                       int a = "a";
+                       return 2;
+               });
+       }
+}
\ No newline at end of file
diff --git a/mcs/errors/cs0029-17.cs b/mcs/errors/cs0029-17.cs
new file mode 100755 (executable)
index 0000000..a36e493
--- /dev/null
@@ -0,0 +1,14 @@
+// CS0029: Cannot implicitly convert type `T[]' to `I[]'
+// Line: 12
+
+interface I
+{
+}
+
+class C
+{
+       static void Foo<T> (T [] t) where T : I
+       {
+               I [] i = t;
+       }
+}
diff --git a/mcs/errors/cs0029-18.cs b/mcs/errors/cs0029-18.cs
new file mode 100644 (file)
index 0000000..92f2b0f
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0029: Cannot implicitly convert type `T' to `int*'
+// Line: 8
+// Compiler options: -unsafe
+
+class T
+{
+       static unsafe void Main ()
+       {
+               int* a = default (T);
+       }
+}
diff --git a/mcs/errors/cs0029-19.cs b/mcs/errors/cs0029-19.cs
new file mode 100644 (file)
index 0000000..fa42f04
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0029: Cannot implicitly convert type `T2' to `T1'
+// Line: 8
+
+class Test
+{
+       static void Foo<T1, T2> (T1 t1, T2 t2)
+       {
+               T1 a = default (T2);
+       }
+}
diff --git a/mcs/errors/cs0029-20.cs b/mcs/errors/cs0029-20.cs
new file mode 100644 (file)
index 0000000..8d987c9
--- /dev/null
@@ -0,0 +1,15 @@
+// CS0029: Cannot implicitly convert type `A<int>.B<long>' to `A<long>.B<long>'
+// Line: 14
+
+class A<T>
+{
+       public class B<U>
+       {
+       }
+}
+
+class Test
+{
+       static A<int>.B<long> a;
+       static A<long>.B<long> b = a;
+}
diff --git a/mcs/errors/cs0029-21.cs b/mcs/errors/cs0029-21.cs
new file mode 100644 (file)
index 0000000..b6d3c34
--- /dev/null
@@ -0,0 +1,16 @@
+// CS0029: Cannot implicitly convert type `T' to `EventHandler'
+// Line: 14
+
+using System;
+
+public delegate void EventHandler (int i, int j);
+
+public class Button {
+
+       public event EventHandler Click;
+
+       public void Connect<T> () where T : class
+       {
+               Click += default (T);
+       }
+}
diff --git a/mcs/errors/cs0029-22.cs b/mcs/errors/cs0029-22.cs
new file mode 100644 (file)
index 0000000..91c67b4
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0029: Cannot implicitly convert type `T' to `int*'
+// Line : 8
+// Compiler options: -unsafe
+
+class T {
+       static unsafe void Main ()
+       {
+               int *a = default(T);
+       }
+}
diff --git a/mcs/errors/cs0029-23.cs b/mcs/errors/cs0029-23.cs
new file mode 100644 (file)
index 0000000..1102d2a
--- /dev/null
@@ -0,0 +1,9 @@
+// CS0029: Cannot implicitly convert type `bool' to `int'
+// Line : 7
+
+class T {
+       static int Main ()
+       {
+               int a = default(bool);
+       }
+}
diff --git a/mcs/errors/cs0029-24.cs b/mcs/errors/cs0029-24.cs
new file mode 100644 (file)
index 0000000..4cd79a4
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0029: Cannot implicitly convert type `T' to `int*'
+// Line : 8
+// Compiler options: -unsafe
+
+class T {
+       static unsafe int Main ()
+       {
+               int *a = default(T);
+       }
+}
diff --git a/mcs/errors/cs0029-25.cs b/mcs/errors/cs0029-25.cs
new file mode 100644 (file)
index 0000000..2fad061
--- /dev/null
@@ -0,0 +1,17 @@
+// CS0029: Cannot implicitly convert type `Bar<long>' to `Foo<int>'
+// Line: 15
+class Foo<T>
+{
+}
+
+class Bar<T> : Foo<T>
+{
+}
+
+class X
+{
+       static void Main ()
+       {
+               Foo<int> foo = new Bar<long> ();
+       }
+}
diff --git a/mcs/errors/cs0030-12.cs b/mcs/errors/cs0030-12.cs
new file mode 100644 (file)
index 0000000..c2d6b6f
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0030: Cannot convert type `X' to `S'
+// Line: 10
+
+struct S {
+}
+
+class X {
+       static void Main ()
+       {
+               S s = (S)default(X);
+       }
+}
diff --git a/mcs/errors/cs0030-13.cs b/mcs/errors/cs0030-13.cs
new file mode 100755 (executable)
index 0000000..b35e8eb
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0030: Cannot convert type `T[,]' to `System.Collections.Generic.IEnumerable<T>'
+// Line: 10
+
+using System.Collections.Generic;
+
+class C
+{
+       IEnumerable<T> Foo<T> (T [,] a)
+       {
+               return (IEnumerable<T>) a;
+       }
+}
diff --git a/mcs/errors/cs0030-14.cs b/mcs/errors/cs0030-14.cs
new file mode 100644 (file)
index 0000000..99ca9da
--- /dev/null
@@ -0,0 +1,16 @@
+// CS0030: Cannot convert type `T' to `X'
+// Line: 8
+class Foo<T>
+       where T : System.ICloneable
+{
+       public X Test (T t)
+       {
+               return (X) t;
+       }
+}
+
+class X
+{
+       static void Main ()
+       { }
+}
diff --git a/mcs/errors/cs0031-5.cs b/mcs/errors/cs0031-5.cs
new file mode 100644 (file)
index 0000000..29f01f2
--- /dev/null
@@ -0,0 +1,9 @@
+// cs0031-5.cs: Constant value `200000000000' cannot be converted to a `int'
+// Line: 7
+// Compiler options: -unsafe
+
+public unsafe struct C
+{
+    private fixed long test_1 [200000000000];
+}
+
diff --git a/mcs/errors/cs0037-10.cs b/mcs/errors/cs0037-10.cs
new file mode 100644 (file)
index 0000000..56639c2
--- /dev/null
@@ -0,0 +1,21 @@
+// CS0037: Cannot convert null to `bool' because it is a value type
+// Line: 19
+
+
+using System;
+
+class TestA
+{
+       public string Select (Func<TestA, bool> f)
+       {
+               return "";
+       }
+}
+
+public class C
+{
+       static void Main ()
+       {
+               string foo = from a in new TestA () select null;
+       }
+}
diff --git a/mcs/errors/cs0051-2.cs b/mcs/errors/cs0051-2.cs
new file mode 100644 (file)
index 0000000..a6324dd
--- /dev/null
@@ -0,0 +1,8 @@
+// CS0051: Inconsistent accessibility: parameter type `C.S?[][]' is less accessible than method `C.Foo(C.S?[][])'
+// Line: 7
+
+public class C
+{
+       struct S {}
+       public void Foo (S?[][] o) {}
+}
diff --git a/mcs/errors/cs0060-6.cs b/mcs/errors/cs0060-6.cs
new file mode 100644 (file)
index 0000000..cd6430b
--- /dev/null
@@ -0,0 +1,15 @@
+// CS0060: Inconsistent accessibility: base class `A<C>.B' is less accessible than class `D'
+// Line: 13
+
+public class A<T>
+{
+       public class B {}
+}
+
+internal class C : A<C>
+{
+}
+
+public class D : C.B
+{
+}
diff --git a/mcs/errors/cs0060-7.cs b/mcs/errors/cs0060-7.cs
new file mode 100644 (file)
index 0000000..bf9f047
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0060: Inconsistent accessibility: base class `Foo<Bar.Baz>' is less accessible than class `Bar'
+// Line: 7
+
+public class Foo<K> {
+}
+
+public class Bar : Foo<Bar.Baz> {
+       private class Baz {
+       }
+}
diff --git a/mcs/errors/cs0060-8.cs b/mcs/errors/cs0060-8.cs
new file mode 100644 (file)
index 0000000..44735de
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0060: Inconsistent accessibility: base class `Foo<Bar.Baz>' is less accessible than class `Bar'
+// Line: 7
+
+public class Foo<K> {
+}
+
+public class Bar : Foo<Bar.Baz> {
+       internal class Baz {
+       }
+}
diff --git a/mcs/errors/cs0065-2.cs b/mcs/errors/cs0065-2.cs
new file mode 100644 (file)
index 0000000..efb7243
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0065: `EventClass<T>.handler': event property must have both add and remove accessors
+// Line: 10
+
+using System;
+
+public delegate void EventHandler (object sender, EventArgs e);
+
+public class EventClass<T>
+{
+       event EventHandler handler { add {} }
+}
+
diff --git a/mcs/errors/cs0069-2.cs b/mcs/errors/cs0069-2.cs
new file mode 100644 (file)
index 0000000..b7ba89c
--- /dev/null
@@ -0,0 +1,14 @@
+// CS0069: Event in interface cannot have add or remove accessors
+// Line: 11
+
+using System;
+
+public delegate void FooHandler ();
+
+interface IBar<T>
+{
+       event FooHandler OnFoo {
+               remove { }
+       }
+}
+
diff --git a/mcs/errors/cs0080.cs b/mcs/errors/cs0080.cs
new file mode 100644 (file)
index 0000000..3c1bf8a
--- /dev/null
@@ -0,0 +1,12 @@
+// cs0080.cs: Constraints are not allowed on non-generic declarations
+// Line: 5
+
+using System.Collections;
+class Dingus where T : IEnumerable {
+}
+
+class D {
+       static void Main ()
+       {
+       }
+}
diff --git a/mcs/errors/cs0081-2.cs b/mcs/errors/cs0081-2.cs
new file mode 100644 (file)
index 0000000..73c537f
--- /dev/null
@@ -0,0 +1,9 @@
+// gcs0081-2.cs: Type parameter declaration must be an identifier not a type
+// Line: 6
+
+class D
+{
+       public void Foo<int>()
+       {
+       }
+}
diff --git a/mcs/errors/cs0081-3.cs b/mcs/errors/cs0081-3.cs
new file mode 100644 (file)
index 0000000..6a86cf1
--- /dev/null
@@ -0,0 +1,10 @@
+// gcs0081.cs: Type parameter declaration must be an identifier not a type
+// Line: 4
+
+partial class A<T, bool>
+{
+}
+
+partial class A<T, O>
+{
+}
diff --git a/mcs/errors/cs0081.cs b/mcs/errors/cs0081.cs
new file mode 100644 (file)
index 0000000..9b03345
--- /dev/null
@@ -0,0 +1,6 @@
+// gcs0081.cs: Type parameter declaration must be an identifier not a type
+// Line: 4
+
+class D<string>
+{
+}
diff --git a/mcs/errors/cs0100-2.cs b/mcs/errors/cs0100-2.cs
new file mode 100644 (file)
index 0000000..9da2049
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0100: The parameter name `a' is a duplicate
+// Line: 10
+
+using System;
+
+class C
+{
+       static void Main ()
+       {
+               Func<int, int, int> l = (a, a) => 1;
+       }
+}
diff --git a/mcs/errors/cs0102-18.cs b/mcs/errors/cs0102-18.cs
new file mode 100644 (file)
index 0000000..2cb23f3
--- /dev/null
@@ -0,0 +1,10 @@
+// gcs0102.cs: The type `X<T>' already contains a definition for `T'
+// Line: 11
+
+class X <T> {
+       int T;
+}
+
+class W {
+       static void Main () {}
+}
diff --git a/mcs/errors/cs0103-10.cs b/mcs/errors/cs0103-10.cs
new file mode 100644 (file)
index 0000000..c73714e
--- /dev/null
@@ -0,0 +1,14 @@
+// CS0103: The name `b' does not exist in the current context
+// Line: 11
+
+using System.Linq;
+
+class C
+{
+       public static void Main ()
+       {
+               var e = from a in "abcd"
+                       join b in "defg" on b equals "g"
+                       select a;
+       }
+}
diff --git a/mcs/errors/cs0103-11.cs b/mcs/errors/cs0103-11.cs
new file mode 100644 (file)
index 0000000..6d20187
--- /dev/null
@@ -0,0 +1,16 @@
+// CS0103: The name `a1' does not exist in the current context
+// Line: 11
+
+using System.Linq;
+
+class C
+{
+       public static void Main ()
+       {
+               var e = 
+                       from a1 in "abcd"
+                       select a1;
+               
+               a1 = null;
+       }
+}
diff --git a/mcs/errors/cs0103-7.cs b/mcs/errors/cs0103-7.cs
new file mode 100644 (file)
index 0000000..af83bbf
--- /dev/null
@@ -0,0 +1,13 @@
+// CS0103: The name `Console' does not exist in the current context
+// Line: 10
+
+
+class C
+{
+       delegate void WithOutParam (string value);
+
+       static void Main() 
+       {
+               WithOutParam o = (s) => Console.WriteLine();
+       }
+}
diff --git a/mcs/errors/cs0103-8.cs b/mcs/errors/cs0103-8.cs
new file mode 100644 (file)
index 0000000..fe20a3b
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0103: The name `Value' does not exist in the current context
+// Line: 9
+
+
+public class Test
+{
+       static void Main ()
+       {
+               var v = new { Field = Value };
+       }
+}
diff --git a/mcs/errors/cs0103-9.cs b/mcs/errors/cs0103-9.cs
new file mode 100644 (file)
index 0000000..80ced48
--- /dev/null
@@ -0,0 +1,14 @@
+// CS0103: The name `a' does not exist in the current context
+// Line: 11
+
+using System.Linq;
+
+class C
+{
+       public static void Main ()
+       {
+               var e = from a in "abcd"
+                       join b in "defg" on "a" equals a
+                       select a;
+       }
+}
diff --git a/mcs/errors/cs0108-16.cs b/mcs/errors/cs0108-16.cs
new file mode 100644 (file)
index 0000000..c541541
--- /dev/null
@@ -0,0 +1,17 @@
+// CS0108: `BaseConcrete.InnerDerived<T>()' hides inherited member `BaseGeneric<string>.InnerDerived'. Use the new keyword if hiding was intended
+// Line: 14
+// Compiler options: -warn:2 -warnaserror
+
+class BaseGeneric<T>
+{
+       public class InnerDerived
+       {
+       }
+}
+
+class BaseConcrete : BaseGeneric<string>
+{
+       public void InnerDerived<T> ()
+       {
+       }
+}
diff --git a/mcs/errors/cs0108-17.cs b/mcs/errors/cs0108-17.cs
new file mode 100644 (file)
index 0000000..345ba7f
--- /dev/null
@@ -0,0 +1,13 @@
+// CS0108: `Derived.Action<U>' hides inherited member `Base.Action<U>'. Use the new keyword if hiding was intended
+// Line: 12
+// Compiler options: -warnaserror
+
+public abstract class Base
+{
+       public delegate void Action<U> (U val);
+}
+
+public class Derived : Base
+{
+       public delegate void Action<U> (U i);
+}
diff --git a/mcs/errors/cs0109-10.cs b/mcs/errors/cs0109-10.cs
new file mode 100644 (file)
index 0000000..4cd7fea
--- /dev/null
@@ -0,0 +1,13 @@
+// CS0109: The member `Derived<U>.Action' does not hide an inherited member. The new keyword is not required
+// Line: 12
+// Compiler options: -warnaserror -warn:4
+
+public abstract class Base
+{
+       public delegate void Action<U>(U val);
+}
+
+public class Derived<U> : Base
+{
+       new internal Action<U> Action;
+}
diff --git a/mcs/errors/cs0109-9.cs b/mcs/errors/cs0109-9.cs
new file mode 100644 (file)
index 0000000..fef7758
--- /dev/null
@@ -0,0 +1,13 @@
+// CS0109: The member `Derived.Action<T,U>' does not hide an inherited member. The new keyword is not required
+// Line: 12
+// Compiler options: -warnaserror -warn:4
+
+public abstract class Base
+{
+       public delegate void Action<U> (U val);
+}
+
+public class Derived : Base
+{
+       public new delegate void Action<T, U> (U val);
+}
diff --git a/mcs/errors/cs0111-21.cs b/mcs/errors/cs0111-21.cs
new file mode 100644 (file)
index 0000000..edaec4b
--- /dev/null
@@ -0,0 +1,18 @@
+// CS0111: A member `Dictionary<K,V>.Add(V)' is already defined. Rename this member or use different parameter types
+// Line: 14
+
+using System;
+using System.Collections.Generic;
+
+public class Dictionary<K,V>
+{
+       public void Add (V key)
+       {
+               throw new InvalidOperationException ();
+       }
+
+       public void Add (V value)
+       {
+               throw new InvalidOperationException ();
+       }
+}
diff --git a/mcs/errors/cs0111-22.cs b/mcs/errors/cs0111-22.cs
new file mode 100644 (file)
index 0000000..4c72093
--- /dev/null
@@ -0,0 +1,13 @@
+// CS0111: A member `Blah.I.M<U>(int)' is already defined. Rename this member or use different parameter types
+// Line : 12
+
+public interface I
+{
+    void M<T> (int i);
+}
+
+public class Blah: I
+{
+        void I.M<T> (int i) {}
+        void I.M<U> (int i) {}
+}
diff --git a/mcs/errors/cs0111-23.cs b/mcs/errors/cs0111-23.cs
new file mode 100644 (file)
index 0000000..6d91d31
--- /dev/null
@@ -0,0 +1,13 @@
+// CS0111: A member `C.Foo<U>(U)' is already defined. Rename this member or use different parameter types
+// Line : 12
+
+public class C
+{
+       void Foo<T> (T i)
+       {
+       }
+       
+       void Foo<U> (U i)
+       {
+       }
+}
diff --git a/mcs/errors/cs0111-24.cs b/mcs/errors/cs0111-24.cs
new file mode 100644 (file)
index 0000000..a30f9d9
--- /dev/null
@@ -0,0 +1,22 @@
+// CS0111: A member `MyClass.IMyInterface<System.String>.Prop' is already defined. Rename this member or use different parameter types
+// Line: 18
+
+using System;
+
+interface IMyInterface<T>
+{
+       bool Prop { set; }
+}
+
+public class MyClass: IMyInterface<string>
+{
+       bool IMyInterface<string>.Prop
+       {
+               set {}
+       }
+
+       bool IMyInterface<System.String>.Prop
+       {
+               set {}
+       }
+}
diff --git a/mcs/errors/cs0111-25.cs b/mcs/errors/cs0111-25.cs
new file mode 100644 (file)
index 0000000..98a96af
--- /dev/null
@@ -0,0 +1,13 @@
+// CS0111: A member `C.I<int>.Prop' is already defined. Rename this member or use different parameter types
+// Line: 12
+
+interface I<T>
+{
+       T Prop { get; set; }
+}
+
+class C : I<int>
+{
+       int I<int>.Prop { get; set; }
+       int I<int>.Prop { get; set; }
+}
diff --git a/mcs/errors/cs0111-26.cs b/mcs/errors/cs0111-26.cs
new file mode 100644 (file)
index 0000000..04831b6
--- /dev/null
@@ -0,0 +1,14 @@
+// CS0111: A member `Blah.I.M<X>()' is already defined. Rename this member or use different parameter types
+// Line : 12
+
+public interface I
+{
+    void M<X> ();
+}
+
+public class Blah: I
+{
+        void I.M<X> () {}
+        void I.M<X> () {}
+}
+
diff --git a/mcs/errors/cs0111-4.cs b/mcs/errors/cs0111-4.cs
new file mode 100644 (file)
index 0000000..906e6df
--- /dev/null
@@ -0,0 +1,17 @@
+// CS0111: A member `C.Foo<U>(U)' is already defined. Rename this member or use different parameter types
+// Line : 12
+
+public class C
+{
+       void Foo (int i)
+       {
+       }
+       
+       void Foo<T> (T i)
+       {
+       }
+       
+       void Foo<U> (U i)
+       {
+       }
+}
diff --git a/mcs/errors/cs0111-8.cs b/mcs/errors/cs0111-8.cs
new file mode 100644 (file)
index 0000000..dd2195a
--- /dev/null
@@ -0,0 +1,17 @@
+// CS0111: A member `C.Foo<U>(G<U>)' is already defined. Rename this member or use different parameter types
+// Line : 14
+
+class G<T>
+{
+}
+
+public class C
+{
+       void Foo<T> (G<T> g)
+       {
+       }
+       
+       void Foo<U> (G<U> u)
+       {
+       }
+}
diff --git a/mcs/errors/cs0117-2.cs b/mcs/errors/cs0117-2.cs
new file mode 100644 (file)
index 0000000..775ba25
--- /dev/null
@@ -0,0 +1,17 @@
+// CS0117: `Data' does not contain a definition for `Count'
+// Line: 15
+
+
+using System;
+
+class Data
+{
+}
+
+public class Test
+{
+       static void Main ()
+       {
+               var c = new Data { Count = 10 };
+       }
+}
diff --git a/mcs/errors/cs0117.cs b/mcs/errors/cs0117.cs
new file mode 100644 (file)
index 0000000..dd5b345
--- /dev/null
@@ -0,0 +1,21 @@
+// CS0117: `A' does not contain a definition for `Method'
+// Line: 8
+
+public class E : A
+{
+       void Test ()
+       {
+               base.Method ();
+       }
+}
+
+static class S
+{
+       public static void Method (this A a)
+       {
+       }
+}
+
+public class A
+{
+}
\ No newline at end of file
diff --git a/mcs/errors/cs0118-10.cs b/mcs/errors/cs0118-10.cs
new file mode 100644 (file)
index 0000000..ed6c2c5
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0118: `N' is a `namespace' but a `type' was expected
+// Line: 8
+
+namespace N
+{
+}
+
+public class C<T>  where T : N
+{
+}
\ No newline at end of file
diff --git a/mcs/errors/cs0119-11.cs b/mcs/errors/cs0119-11.cs
new file mode 100644 (file)
index 0000000..b65a34c
--- /dev/null
@@ -0,0 +1,17 @@
+// CS0119: Expression denotes a `type parameter', where a `variable', `value' or `type' was expected
+// Line: 15
+
+class A
+{
+       public class T
+       {
+       }
+}
+
+class B<T> : A
+{
+       void Foo ()
+       {
+               T.Equals (null, null);
+       }
+}
diff --git a/mcs/errors/cs0119-2.cs b/mcs/errors/cs0119-2.cs
new file mode 100644 (file)
index 0000000..5d67a55
--- /dev/null
@@ -0,0 +1,14 @@
+// CS0119: Expression denotes a `type', where a `variable' or `value' was expected
+// Line: 12
+public class Foo<T>
+{
+}
+class X
+{
+       static void Main ()
+       {
+               Foo<X> = new Foo<X> ();
+       }
+}
diff --git a/mcs/errors/cs0119.cs b/mcs/errors/cs0119.cs
new file mode 100644 (file)
index 0000000..156d53b
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0119: Expression denotes a `type parameter', where a `variable', `value' or `type' was expected
+// Line: 8
+
+class C
+{
+       static void Foo<T> ()
+       {
+               T.ToString ();
+       }
+}
diff --git a/mcs/errors/cs0121-16.cs b/mcs/errors/cs0121-16.cs
new file mode 100644 (file)
index 0000000..e7cc5f3
--- /dev/null
@@ -0,0 +1,25 @@
+// CS0121: The call is ambiguous between the following methods or properties: `Foo<int,int>.Test(int)' and `Foo<int,int>.Test(int)'
+// Line: 23
+using System;
+
+public class Foo<T,U>
+{
+       public void Test (T index)
+       {
+               Console.WriteLine ("Test 1: {0}", index);
+       }
+
+       public void Test (U index)
+       {
+               Console.WriteLine ("Test 2: {0}", index);
+       }
+}
+
+class X
+{
+       static void Main ()
+       {
+               Foo<int,int> foo = new Foo<int,int> ();
+               foo.Test (3);
+       }
+}
diff --git a/mcs/errors/cs0121-17.cs b/mcs/errors/cs0121-17.cs
new file mode 100644 (file)
index 0000000..a537f31
--- /dev/null
@@ -0,0 +1,25 @@
+// CS0121: The call is ambiguous between the following methods or properties: `Test.Foo<int,int>(int, System.Linq.Expressions.Expression<System.Func<int,int>>)' and `Test.Foo<int,int>(int, System.Func<int,int>)'
+// Line: 22
+
+using System;
+using System.Linq;
+using System.Linq.Expressions;
+
+class Test
+{
+       static int Foo<T, R> (T t, Expression<Func<T, R>> e)
+       {
+               return 5;
+       }
+       
+       static int Foo<T, R> (T t, Func<T, R> e)
+       {
+               return 0;
+       }
+
+       static void Main ()
+       {
+               Foo (1, i => i);
+       }
+}
+
diff --git a/mcs/errors/cs0121-18.cs b/mcs/errors/cs0121-18.cs
new file mode 100644 (file)
index 0000000..f8e20c1
--- /dev/null
@@ -0,0 +1,27 @@
+// CS0122: The call is ambiguous between the following methods or properties: `Test.Foo(IIn<string>)' and `Test.Foo(IIn<Test>)'
+// Line: 23
+// Compiler options: -langversion:future
+
+interface IIn<in T>
+{
+}
+
+class Test
+{
+
+       static void Foo (IIn<string> f)
+       {
+       }
+
+       static void Foo (IIn<Test> f)
+       {
+       }
+
+       public static int Main ()
+       {
+               IIn<object> test = null;
+               Foo (test);
+
+               return 0;
+       }
+}
diff --git a/mcs/errors/cs0122-34.cs b/mcs/errors/cs0122-34.cs
new file mode 100644 (file)
index 0000000..41a825c
--- /dev/null
@@ -0,0 +1,21 @@
+// CS0122: `Foo.Print(this string)' is inaccessible due to its protection level
+// Line: 19
+
+
+using System;
+
+static class Foo
+{
+       static void Print (this string s)
+       {
+       }
+}
+
+static class Program
+{
+       static void Main(string[] args)
+       {
+               string s = "Hello, world";
+               Foo.Print(s);
+       }
+}
\ No newline at end of file
diff --git a/mcs/errors/cs0122-35.cs b/mcs/errors/cs0122-35.cs
new file mode 100644 (file)
index 0000000..16a7d1c
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0122: `Test<float>' is inaccessible due to its protection level
+// Line: 8
+// Compiler options: -r:GCS0122-35-lib.dll
+
+class X
+{
+       static void Main ()
+       {
+               Test<float> test = new Test<float> ();
+       }
+}
+
diff --git a/mcs/errors/cs0133-4.cs b/mcs/errors/cs0133-4.cs
new file mode 100644 (file)
index 0000000..40567aa
--- /dev/null
@@ -0,0 +1,13 @@
+// cs0133-2.cs: The expression being assigned to `S.pathName' must be constant
+// Line: 12
+// Compiler options: -unsafe
+
+class C
+{
+    public static int i = 4;
+}
+
+public unsafe struct S
+{
+    private fixed char pathName [C.i];
+}
diff --git a/mcs/errors/cs0136-16.cs b/mcs/errors/cs0136-16.cs
new file mode 100644 (file)
index 0000000..cc28afe
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0136: A local variable named `v' cannot be declared in this scope because it would give a different meaning to `v', which is already used in a `parent or current' scope to denote something else
+// Line: 13
+
+using System.Linq;
+
+public class Test
+{
+       public static void Main ()
+       {
+               var l = from v in "abcd" select (v => v);
+       }
+}
diff --git a/mcs/errors/cs0136-17.cs b/mcs/errors/cs0136-17.cs
new file mode 100644 (file)
index 0000000..ecc3103
--- /dev/null
@@ -0,0 +1,13 @@
+// CS0136: A local variable named `v' cannot be declared in this scope because it would give a different meaning to `v', which is already used in a `child' scope to denote something else
+// Line: 11
+
+using System.Linq;
+
+class C
+{
+       public static void Main ()
+       {
+               var l = from v in "abcd" select v;
+               int v;
+       }
+}
diff --git a/mcs/errors/cs0136-3.cs b/mcs/errors/cs0136-3.cs
new file mode 100644 (file)
index 0000000..21ee277
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0136: A local variable named `i' cannot be declared in this scope because it would give a different meaning to `i', which is already used in a `parent or current' scope to denote something else
+// Line: 10
+
+using System;
+
+class T
+{
+       public void Foo (int i)
+       {
+               Action<int> v = x => { int i = 9; };
+       }
+}
diff --git a/mcs/errors/cs0146-6.cs b/mcs/errors/cs0146-6.cs
new file mode 100644 (file)
index 0000000..0a164db
--- /dev/null
@@ -0,0 +1,15 @@
+// CS0146: Circular base class dependency involving `B<T>' and `A<float>'
+// Line: 8
+
+class A<T> : B<int>
+{
+}
+
+class B<T> : A<float>
+{ }
+
+class X
+{
+       static void Main ()
+       { }
+}
diff --git a/mcs/errors/cs0162-13.cs b/mcs/errors/cs0162-13.cs
new file mode 100644 (file)
index 0000000..f4e8ad6
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0162: Unreachable code detected
+// Line: 10
+// Compiler options: -warnaserror -warn:2
+
+class C
+{
+       static int Main () 
+       {
+               while (!new bool {});
+               return 1;
+       }
+}
diff --git a/mcs/errors/cs0162-14.cs b/mcs/errors/cs0162-14.cs
new file mode 100644 (file)
index 0000000..72880f7
--- /dev/null
@@ -0,0 +1,14 @@
+// CS0162: Unreachable code detected
+// Line: 12
+// Compiler options: -warnaserror -warn:2
+
+using System;
+
+class E
+{
+   public void Method<T> () where T : class
+   {
+      if (default (T) != null)
+         throw new ArgumentNullException ();
+   }
+}
diff --git a/mcs/errors/cs0171-4.cs b/mcs/errors/cs0171-4.cs
new file mode 100644 (file)
index 0000000..f6127ab
--- /dev/null
@@ -0,0 +1,16 @@
+// CS0171: Field `S<TKey>.key' must be fully assigned before control leaves the constructor
+// Line: 13
+
+public struct S<TKey> {
+       private TKey key;
+
+       public TKey Key {
+               get { return key; }
+               private set { key = value; }
+       }
+               
+       public S (TKey key)
+       {
+               Key = key;
+       }
+}
diff --git a/mcs/errors/cs0173-3.cs b/mcs/errors/cs0173-3.cs
new file mode 100644 (file)
index 0000000..f75e271
--- /dev/null
@@ -0,0 +1,13 @@
+// CS0173: Type of conditional expression cannot be determined because there is no implicit conversion between `anonymous method' and `anonymous method'
+// Line: 11
+
+using System;
+
+class Test
+{
+       public static void Main ()
+       {
+               bool descending = false;
+               Comparison<int> comp = descending ? ((e1, e2) => e2 < e1) : ((e1, e2) => e1 < e2);
+       }
+}
diff --git a/mcs/errors/cs0177-9.cs b/mcs/errors/cs0177-9.cs
new file mode 100644 (file)
index 0000000..91dde9c
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0177: The out parameter `output' must be assigned to before control leaves the current method
+// Line: 10
+
+class Test
+{
+       delegate T Creator<T> ();
+
+       static bool TryAction<T> (Creator<T> creator, out T output) where T : struct
+       {
+               return false;
+       }
+}
diff --git a/mcs/errors/cs0183-3.cs b/mcs/errors/cs0183-3.cs
new file mode 100644 (file)
index 0000000..9f00a58
--- /dev/null
@@ -0,0 +1,13 @@
+// CS0183: The given expression is always of the provided (`int?') type
+// Line: 10
+// Compiler options: -warnaserror -warn:1
+
+class X
+{
+       public void Foo ()
+       {
+               int? x = null;
+               if (x is int?) {
+               }
+       }
+}
diff --git a/mcs/errors/cs0183-4.cs b/mcs/errors/cs0183-4.cs
new file mode 100644 (file)
index 0000000..8af4d90
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0183: The given expression is always of the provided (`T') type
+// Line: 10
+// Compiler options: -warnaserror -warn:1
+
+class X
+{
+       static bool Foo<T> () where T : struct
+       {
+               T o = default (T);
+               return o is T;
+       }
+}
diff --git a/mcs/errors/cs0184-10.cs b/mcs/errors/cs0184-10.cs
new file mode 100644 (file)
index 0000000..a27c85f
--- /dev/null
@@ -0,0 +1,13 @@
+// CS0184: The given expression is never of the provided (`int') type
+// Line: 10
+// Compiler options: -warnaserror -warn:1
+
+class X
+{
+       public void Foo<T> () where T : class
+       {
+               T t = default (T);
+               if (t is int) {
+               }
+       }
+}
diff --git a/mcs/errors/cs0184-11.cs b/mcs/errors/cs0184-11.cs
new file mode 100644 (file)
index 0000000..6bfda8a
--- /dev/null
@@ -0,0 +1,16 @@
+// CS0184: The given expression is never of the provided (`bool') type
+// Line: 13
+// Compiler options: -warnaserror -warn:1
+
+using System;
+
+class X
+{
+       void Foo ()
+       {
+               int? i = null;
+               
+               if (i is bool) {
+               }
+       }
+}
diff --git a/mcs/errors/cs0184-8.cs b/mcs/errors/cs0184-8.cs
new file mode 100644 (file)
index 0000000..13a8e48
--- /dev/null
@@ -0,0 +1,16 @@
+// CS0184: The given expression is never of the provided (`bool?') type
+// Line: 13
+// Compiler options: -warnaserror -warn:1
+
+using System;
+
+class X
+{
+       void Foo ()
+       {
+               int? i = null;
+               
+               if (i is bool?) {
+               }
+       }
+}
diff --git a/mcs/errors/cs0184-9.cs b/mcs/errors/cs0184-9.cs
new file mode 100644 (file)
index 0000000..6c45e4e
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0184: The given expression is never of the provided (`T') type
+// Line: 9
+// Compiler options: -warnaserror -warn:1
+
+class X<T> where T : class
+{
+       static void Foo ()
+       {
+               if (1 is T) {
+               }
+       }
+}
diff --git a/mcs/errors/cs0200-3.cs b/mcs/errors/cs0200-3.cs
new file mode 100644 (file)
index 0000000..0af8e83
--- /dev/null
@@ -0,0 +1,18 @@
+// CS0200: Property or indexer `A.Counter' cannot be assigned to (it is read-only)
+// Line: 9
+
+class Program
+{
+       static void Main()
+       {
+               A a = new A();
+               a.Counter++;
+       }
+}
+
+class A {
+       private int? _counter;
+       public int? Counter {
+               get { return _counter; }
+       }
+}
diff --git a/mcs/errors/cs0201-5.cs b/mcs/errors/cs0201-5.cs
new file mode 100644 (file)
index 0000000..308488d
--- /dev/null
@@ -0,0 +1,13 @@
+// CS0201: Only assignment, call, increment, decrement, and new object expressions can be used as a statement
+// Line: 10
+
+class TestClass
+{
+       delegate void test_delegate (int arg);
+
+       public TestClass ()
+       {
+               test_delegate D = (b) => "a";
+       }
+}
+
diff --git a/mcs/errors/cs0201-6.cs b/mcs/errors/cs0201-6.cs
new file mode 100644 (file)
index 0000000..4849689
--- /dev/null
@@ -0,0 +1,15 @@
+// CS0201: Only assignment, call, increment, decrement, and new object expressions can be used as a statement
+// Line: 13
+
+class C<T>
+{
+       static T Test ()
+       {
+               return default (T);
+       }
+       
+       public static void Main ()
+       {
+               Test ().Foo;
+       }
+}
diff --git a/mcs/errors/cs0202-2.cs b/mcs/errors/cs0202-2.cs
new file mode 100644 (file)
index 0000000..bdd9a9e
--- /dev/null
@@ -0,0 +1,18 @@
+// CS0202: foreach statement requires that the return type `System.Collections.Generic.IEnumerable<string>' of `Test.GetEnumerator()' must have a suitable public MoveNext method and public Current property
+// Line: 10
+using System;
+using System.Collections.Generic;
+
+class Test {
+        static void Main ()
+        {
+                Test obj = new Test ();
+                foreach (string s in obj) {
+                }
+        }
+
+        public IEnumerable<string> GetEnumerator ()
+        {
+               return null;
+        }
+}
diff --git a/mcs/errors/cs0206-3.cs b/mcs/errors/cs0206-3.cs
new file mode 100644 (file)
index 0000000..805577b
--- /dev/null
@@ -0,0 +1,16 @@
+// CS0206: A property, indexer or dynamic member access may not be passed as `ref' or `out' parameter
+// Line: 14
+
+class C
+{
+       static void Foo (ref object o)
+       {
+       }
+       
+       public static void Main ()
+       {
+               var v = new { Foo = "Bar" };
+               
+               Foo (ref v.Foo);
+       }
+}
diff --git a/mcs/errors/cs0208-10.cs b/mcs/errors/cs0208-10.cs
new file mode 100644 (file)
index 0000000..1c5e807
--- /dev/null
@@ -0,0 +1,14 @@
+// gcs0208.cs: Cannot take the address of, get the size of, or declare a pointer to a managed type `X<A>'
+// Line: 12
+// Compiler options: -unsafe
+
+class X <Y> {
+}
+
+unsafe class A {
+
+       static void Main ()
+       {
+               int size = sizeof (X<A>);
+       }
+}
diff --git a/mcs/errors/cs0208-11.cs b/mcs/errors/cs0208-11.cs
new file mode 100644 (file)
index 0000000..bcd4d04
--- /dev/null
@@ -0,0 +1,13 @@
+// cs0208-2.cs : Cannot take the address of, get the size of, or declare a pointer to a managed type `Splay<T>.Node'
+// Line: 9
+// Compiler options: /unsafe
+
+public class Splay<T>
+{
+  unsafe private struct Node
+  {
+    private Node *            parent;
+    private T                 data;
+  } 
+}
+
diff --git a/mcs/errors/cs0208-12.cs b/mcs/errors/cs0208-12.cs
new file mode 100644 (file)
index 0000000..9f7bcc1
--- /dev/null
@@ -0,0 +1,13 @@
+// cs0208-3.cs : Cannot take the address of, get the size of, or declare a pointer to a managed type `Splay<T>.Node'
+// Line: 10
+// Compiler options: /unsafe
+// Similar code to #75772, but without field of type T.
+
+public class Splay<T>
+{
+  unsafe private struct Node
+  {
+    private Node *            parent;
+  } 
+}
+
diff --git a/mcs/errors/cs0208-13.cs b/mcs/errors/cs0208-13.cs
new file mode 100644 (file)
index 0000000..08ab214
--- /dev/null
@@ -0,0 +1,14 @@
+// cs0208-4.cs : Cannot take the address of, get the size of, or declare a pointer to a managed type `Splay<T>.Node'
+// Line: 10
+// Compiler options: /unsafe
+// similar one to #75772 but using a class instead of a struct.
+
+public class Splay<T>
+{
+  unsafe private class Node
+  {
+    private Node *            parent;
+    private T                 data;
+  } 
+}
+
diff --git a/mcs/errors/cs0208-14.cs b/mcs/errors/cs0208-14.cs
new file mode 100644 (file)
index 0000000..a284001
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type `T'
+// Line: 8
+
+class X
+{
+       public static void Foo<T> (T t)
+       {
+               object o = sizeof (T);
+       }
+}
diff --git a/mcs/errors/cs0214-15.cs b/mcs/errors/cs0214-15.cs
new file mode 100644 (file)
index 0000000..462ca7a
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0214: Pointers and fixed size buffers may only be used in an unsafe context
+// Line: 9
+// Compiler options: -unsafe
+
+public class aClass
+{
+       public struct foo_t
+       {
+               public fixed char b[16];
+       }
+}
diff --git a/mcs/errors/cs0246-23.cs b/mcs/errors/cs0246-23.cs
new file mode 100644 (file)
index 0000000..453843e
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0246: The type or namespace name `var' could not be found. Are you missing a using directive or an assembly reference?
+// Line: 8
+
+
+class X
+{
+       public X ()
+       {
+               var? u = i;
+       }
+}
diff --git a/mcs/errors/cs0246-24.cs b/mcs/errors/cs0246-24.cs
new file mode 100644 (file)
index 0000000..bd7ea63
--- /dev/null
@@ -0,0 +1,14 @@
+// CS0246: The type or namespace name `TypeMe' could not be found. Are you missing a using directive or an assembly reference?
+// Line: 12
+
+class C
+{
+       static void Foo<T> (int i)
+       {
+       }
+
+       public static void Main ()
+       {
+               Foo<TypeMe> (1);
+       }
+}
diff --git a/mcs/errors/cs0246-25.cs b/mcs/errors/cs0246-25.cs
new file mode 100644 (file)
index 0000000..1050967
--- /dev/null
@@ -0,0 +1,7 @@
+// CS0246: The type or namespace name `X' could not be found. Are you missing a using directive or an assembly reference?
+// Line: 4
+
+class A<T> where T : X
+{
+       public class X {}
+}
diff --git a/mcs/errors/cs0246-26.cs b/mcs/errors/cs0246-26.cs
new file mode 100644 (file)
index 0000000..5411c54
--- /dev/null
@@ -0,0 +1,18 @@
+// CS0246: The type or namespace name `M' could not be found. Are you missing a using directive or an assembly reference?
+// Line: 11
+
+interface I<T>
+{
+       void G<TT> ();
+}
+
+class C
+{
+       void I<M>.G<M> ()
+       {
+       }
+       
+       public static void Main ()
+       {
+       }
+}
diff --git a/mcs/errors/cs0246-27.cs b/mcs/errors/cs0246-27.cs
new file mode 100644 (file)
index 0000000..775a3da
--- /dev/null
@@ -0,0 +1,7 @@
+// CS0246: The type or namespace name `NotExist' could not be found. Are you missing a using directive or an assembly reference?
+// Line: 6
+
+class X
+{
+       NotExist<float> foo;
+}
diff --git a/mcs/errors/cs0246-28.cs b/mcs/errors/cs0246-28.cs
new file mode 100644 (file)
index 0000000..016d1c9
--- /dev/null
@@ -0,0 +1,9 @@
+// gcs0246-8.cs: The type or namespace name `B' could not be found. Are you missing a using directive or an assembly reference?
+// Line: 4
+
+class A : C<B>
+{
+  class B {}
+}
+interface C<X> {}
diff --git a/mcs/errors/cs0264-2.cs b/mcs/errors/cs0264-2.cs
new file mode 100644 (file)
index 0000000..e1f7916
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0264: Partial declarations of `A<T,O>' must have the same type parameter names in the same order
+// Line: 8
+
+partial class A<T, bool>
+{
+}
+
+partial class A<T, O>
+{
+}
diff --git a/mcs/errors/cs0264.cs b/mcs/errors/cs0264.cs
new file mode 100644 (file)
index 0000000..d7c0672
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0264: Partial declarations of `Partial<U>' must have the same type parameter names in the same order
+// Line: 4
+
+partial class Partial<T>
+{
+}
+
+partial class Partial<U>
+{
+}
diff --git a/mcs/errors/cs0265.cs b/mcs/errors/cs0265.cs
new file mode 100644 (file)
index 0000000..8446095
--- /dev/null
@@ -0,0 +1,10 @@
+// gcs0265.cs: Partial declarations of `Partial<T>' have inconsistent constraints for type parameter `T'
+// Line: 4
+
+partial class Partial<T> where T: class, new()
+{
+}
+
+partial class Partial<T> where T : new ()
+{
+}
diff --git a/mcs/errors/cs0266-20.cs b/mcs/errors/cs0266-20.cs
new file mode 100644 (file)
index 0000000..a5befbe
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0266: Cannot implicitly convert type `bool?' to `bool'. An explicit conversion exists (are you missing a cast?)
+// Line: 9
+
+class X
+{
+       static void Main ()
+       {
+               bool? a = true;
+               int? b = a ? 3 : 4;
+       }
+}
diff --git a/mcs/errors/cs0266-21.cs b/mcs/errors/cs0266-21.cs
new file mode 100644 (file)
index 0000000..d1bda2e
--- /dev/null
@@ -0,0 +1,18 @@
+// CS0266: Cannot implicitly convert type `I' to `C'. An explicit conversion exists (are you missing a cast?)
+// Line: 16
+
+interface I
+{
+}
+
+struct C : I
+{
+}
+
+class X
+{
+       static void Main (string[] args)
+       {
+               C c = default (I);
+       }
+}
diff --git a/mcs/errors/cs0266-22.cs b/mcs/errors/cs0266-22.cs
new file mode 100644 (file)
index 0000000..7e979e2
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0266: Cannot implicitly convert type `bool?' to `bool'. An explicit conversion exists (are you missing a cast?)
+// Line: 9
+
+class X
+{
+       static void Main ()
+       {
+               bool? a = true;
+               bool b = a & a;
+       }
+}
diff --git a/mcs/errors/cs0266-23.cs b/mcs/errors/cs0266-23.cs
new file mode 100644 (file)
index 0000000..f10be25
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0266: Cannot implicitly convert type `object' to `bool'. An explicit conversion exists (are you missing a cast?)
+// Line: 9
+
+class X
+{
+       static void Main ()
+       {
+               object o = true;
+               bool b = (o ?? string.Empty);
+       }
+}
diff --git a/mcs/errors/cs0266-24.cs b/mcs/errors/cs0266-24.cs
new file mode 100644 (file)
index 0000000..efa355d
--- /dev/null
@@ -0,0 +1,22 @@
+// CS0266: Cannot implicitly convert type `System.Collections.Generic.IList<int>' to `Hoge<System.Collections.Generic.IList<int>>'. An explicit conversion exists (are you missing a cast?)
+// Line: 20
+
+using System;
+using System.Collections.Generic;
+
+public class Hoge<T>
+{
+       public static implicit operator Hoge<T> (T value)
+       {
+               return null;
+       }
+}
+
+public class Test
+{
+       static void Main ()
+       {
+               IList<int> x = new List<int> ();
+               Hoge<IList<int>> hoge = x;
+       }
+}
diff --git a/mcs/errors/cs0266-5.cs b/mcs/errors/cs0266-5.cs
new file mode 100644 (file)
index 0000000..93eeca1
--- /dev/null
@@ -0,0 +1,20 @@
+// CS0266: Cannot implicitly convert type `S?' to `A'. An explicit conversion exists (are you missing a cast?)
+// Line: 9
+
+struct S
+{
+       public static int Main ()
+       {
+               S? s = null;
+               A a = s;
+               return 0;
+       }
+}
+
+struct A
+{
+       public static implicit operator A (S x)
+       {
+               return new A ();
+       }
+}
diff --git a/mcs/errors/cs0267-3.cs b/mcs/errors/cs0267-3.cs
new file mode 100644 (file)
index 0000000..2e408a7
--- /dev/null
@@ -0,0 +1,9 @@
+// CS0267: The `partial' modifier can be used only immediately before `class', `struct', `interface', or `void' keyword
+// Line: 6
+
+public partial class C
+{
+       partial virtual void Foo ()
+       {
+       }
+}
diff --git a/mcs/errors/cs0271-2.cs b/mcs/errors/cs0271-2.cs
new file mode 100644 (file)
index 0000000..f01ea5e
--- /dev/null
@@ -0,0 +1,19 @@
+// CS0271: The property or indexer `Test.A.B' cannot be used in this context because the get accessor is inaccessible
+// Line: 17
+
+using System;
+
+public class Test
+{
+       private class A
+       {
+               public string B { protected get; set; }
+       }
+       
+       static void Main ()
+       {
+               A a = new A ();
+               a.B = "foo";
+               string b = a.B;
+       }
+}
diff --git a/mcs/errors/cs0272-3.cs b/mcs/errors/cs0272-3.cs
new file mode 100644 (file)
index 0000000..b8bdb5d
--- /dev/null
@@ -0,0 +1,18 @@
+// CS0272: The property or indexer `Test.A.B' cannot be used in this context because the set accessor is inaccessible
+// Line: 16
+
+using System;
+
+public class Test
+{
+       private class A
+       {
+               public string B { get; private set; }
+       }
+       
+       static void Main ()
+       {
+               A a = new A ();
+               a.B = "Foo";
+       }
+}
diff --git a/mcs/errors/cs0281.cs b/mcs/errors/cs0281.cs
new file mode 100644 (file)
index 0000000..494833f
--- /dev/null
@@ -0,0 +1,14 @@
+// CS0281: Friend access was granted to `cs0281, PublicKeyToken=27576a8182a18822', but the output assembly is named `cs0281, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. Try adding a reference to `cs0281, PublicKeyToken=27576a8182a18822' or change the output assembly name to match it
+// Line: 0
+// Compiler options: -r:CSFriendAssembly-lib.dll
+
+using System;
+
+public class Test
+{
+       static void Main ()
+       {
+               FriendClass.MyMethod ();
+       }
+}
+
diff --git a/mcs/errors/cs0304.cs b/mcs/errors/cs0304.cs
new file mode 100644 (file)
index 0000000..2760b2c
--- /dev/null
@@ -0,0 +1,17 @@
+// CS0304: Cannot create an instance of the variable type `T' because it does not have the new() constraint
+// Line: 8
+
+public class Foo<T>
+{
+       public T Create ()
+       {
+               return new T ();
+       }
+}
+
+class X
+{
+       static void Main ()
+       {
+       }
+}
diff --git a/mcs/errors/cs0305-2.cs b/mcs/errors/cs0305-2.cs
new file mode 100644 (file)
index 0000000..2bdeeac
--- /dev/null
@@ -0,0 +1,16 @@
+// CS0305: Using the generic type `Stack<T>' requires `1' type argument(s)
+// Line: 11
+
+class Stack<T> {
+}
+
+class Test {
+}
+
+class T {
+       Stack<Test,Test> a;
+
+       static void Main()
+       {
+       }
+}
diff --git a/mcs/errors/cs0305-3.cs b/mcs/errors/cs0305-3.cs
new file mode 100644 (file)
index 0000000..693c191
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0305: Using the generic type `Stack<T>' requires `1' type argument(s)
+// Line: 9
+
+class Stack<T>
+{ }
+
+class X
+{
+       Stack stack;
+}
diff --git a/mcs/errors/cs0305-4.cs b/mcs/errors/cs0305-4.cs
new file mode 100644 (file)
index 0000000..2697abe
--- /dev/null
@@ -0,0 +1,14 @@
+// CS0305: Using the generic type `A.B<T>' requires `1' type argument(s)
+// Line: 12
+
+class A 
+{
+       class B<T> 
+       { 
+       }
+       
+       static void Main() 
+       {
+               B b = new B<A>();
+       }
+}
diff --git a/mcs/errors/cs0305-5.cs b/mcs/errors/cs0305-5.cs
new file mode 100644 (file)
index 0000000..2d572cf
--- /dev/null
@@ -0,0 +1,16 @@
+// CS0305: Using the generic method `C.Test<T,Y>(C.Func<T>)' requires `2' type argument(s)
+// Line: 14
+
+public class C
+{
+       public delegate int Func<T> (T t);
+       
+       public static void Test<T, Y> (Func<T> f)
+       {
+       }
+
+       public static void Main ()
+       {
+               Test<int> (delegate (int i) { return i; });
+       }
+}
diff --git a/mcs/errors/cs0305-6.cs b/mcs/errors/cs0305-6.cs
new file mode 100644 (file)
index 0000000..8e37f48
--- /dev/null
@@ -0,0 +1,9 @@
+// CS0305: Using the generic type `System.Collections.Generic.List<T>' requires `1' type argument(s)
+// Line: 8
+
+using System.Collections.Generic;
+
+class X
+{
+       List<int,long> list;
+}
diff --git a/mcs/errors/cs0305-7.cs b/mcs/errors/cs0305-7.cs
new file mode 100644 (file)
index 0000000..5efc023
--- /dev/null
@@ -0,0 +1,19 @@
+// CS0305: Using the generic method `X.G<T>()' requires `1' type argument(s)
+// Line: 17
+
+using System;
+
+delegate int E ();
+
+class X
+{
+       public static T G<T> ()
+       {
+               throw new ArgumentException ();
+       }
+
+       static void Main ()
+       {
+               E e2 = new E (G);
+       }
+}
diff --git a/mcs/errors/cs0305.cs b/mcs/errors/cs0305.cs
new file mode 100644 (file)
index 0000000..5aa69a5
--- /dev/null
@@ -0,0 +1,20 @@
+// CS0305: Using the generic type `N1.A<T>' requires `1' type argument(s)
+// Line: 12
+namespace N1
+{
+       class A<T>
+       {
+       }
+}
+
+namespace N3
+{
+       using W = N1.A;
+
+       class X
+       {
+               static void Main ()
+               {
+               }
+       }
+}
diff --git a/mcs/errors/cs0306-2.cs b/mcs/errors/cs0306-2.cs
new file mode 100644 (file)
index 0000000..0101a64
--- /dev/null
@@ -0,0 +1,14 @@
+// CS0306: The type `int*' may not be used as a type argument
+// Line: 11
+// Compiler options: -unsafe
+
+using System.Linq;
+
+public class C
+{
+       public static unsafe void Main ()
+       {
+               var e = from int* a in "aaa"
+                               select a;
+       }
+}
diff --git a/mcs/errors/cs0306-3.cs b/mcs/errors/cs0306-3.cs
new file mode 100644 (file)
index 0000000..c84537b
--- /dev/null
@@ -0,0 +1,8 @@
+// CS0306: The type `System.ArgIterator' may not be used as a type argument
+// Line: 6
+
+class G<T> {}
+
+class C : G<System.ArgIterator>
+{
+}
diff --git a/mcs/errors/cs0306.cs b/mcs/errors/cs0306.cs
new file mode 100644 (file)
index 0000000..b440453
--- /dev/null
@@ -0,0 +1,9 @@
+// gcs0306.cs: The type `char*' may not be used as a type argument
+// Line: 9
+// Compiler options: -unsafe
+
+class F<U> {}
+unsafe class O {
+       F<char *> f;
+       static void Main () {}
+}
diff --git a/mcs/errors/cs0307-2.cs b/mcs/errors/cs0307-2.cs
new file mode 100644 (file)
index 0000000..dcabfe8
--- /dev/null
@@ -0,0 +1,17 @@
+// CS0307: The namespace `N.M' cannot be used with type arguments
+// Line: 15
+
+namespace N
+{
+       namespace M
+       {
+       }
+}
+
+class Test
+{
+       static void Main ()
+       {
+               var a = N.M<int> ();
+       }
+}
diff --git a/mcs/errors/cs0307-3.cs b/mcs/errors/cs0307-3.cs
new file mode 100644 (file)
index 0000000..137528f
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0307: The variable `a' cannot be used with type arguments
+// Line: 9
+
+public class Tests
+{
+       public static void Test (int a)
+       {
+               a<int> ();
+       }
+}
diff --git a/mcs/errors/cs0307-4.cs b/mcs/errors/cs0307-4.cs
new file mode 100644 (file)
index 0000000..d4c70bd
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0307: The variable `d' cannot be used with type arguments
+// Line: 9
+
+public class Tests
+{
+       public static void Main ()
+       {
+               var d = 0;
+               d<int> ();
+       }
+}
diff --git a/mcs/errors/cs0307-5.cs b/mcs/errors/cs0307-5.cs
new file mode 100644 (file)
index 0000000..6fa38ba
--- /dev/null
@@ -0,0 +1,18 @@
+// CS0307: The property `Test<T,U>.Value' cannot be used with type arguments
+// Line: 16
+
+class Test<T, U>
+{
+       public object Value {
+               get { return null; }
+       }
+
+       public class B
+       {
+               public B (object arg)
+               {
+               }
+               
+               public static B Default = new B (Value<U>.Default);
+       }
+}
diff --git a/mcs/errors/cs0307-6.cs b/mcs/errors/cs0307-6.cs
new file mode 100644 (file)
index 0000000..00d7c26
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0307: The variable `a' cannot be used with type arguments
+// Line: 9
+
+public class Tests
+{
+       public static void Test<a> ()
+       {
+               a<int> ();
+       }
+}
diff --git a/mcs/errors/cs0307.cs b/mcs/errors/cs0307.cs
new file mode 100644 (file)
index 0000000..d73dec8
--- /dev/null
@@ -0,0 +1,21 @@
+// CS0307: The property `B.Get' cannot be used with type arguments
+// Line: 14
+public class B
+{
+       public virtual int Get {
+               get { return 3; }
+       }
+}
+
+public class A : B
+{
+       public override int Get {
+               get {
+                       return base.Get<int>;
+               }
+       }
+
+       public static void Main ()
+       {
+       }
+}
diff --git a/mcs/errors/cs0308-2.cs b/mcs/errors/cs0308-2.cs
new file mode 100644 (file)
index 0000000..2979fcf
--- /dev/null
@@ -0,0 +1,14 @@
+// CS0308: The non-generic type `NamingContext' cannot be used with the type arguments
+// Line: 6
+
+class Program
+{
+       static NamingContext<int> Lookup ()
+       {
+               return null;
+       }
+}
+
+class NamingContext
+{
+}
\ No newline at end of file
diff --git a/mcs/errors/cs0308-3.cs b/mcs/errors/cs0308-3.cs
new file mode 100644 (file)
index 0000000..140d3af
--- /dev/null
@@ -0,0 +1,9 @@
+// CS0308: The non-generic type `System.DateTime' cannot be used with the type arguments
+// Line: 8
+
+using System;
+
+class X
+{
+       DateTime<int> now;
+}
diff --git a/mcs/errors/cs0308-4.cs b/mcs/errors/cs0308-4.cs
new file mode 100644 (file)
index 0000000..e96039a
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0308: The non-generic type `Stack' cannot be used with the type arguments
+// Line: 9
+
+class Stack
+{ }
+
+class X
+{
+       Stack<float> stack;
+}
diff --git a/mcs/errors/cs0308-5.cs b/mcs/errors/cs0308-5.cs
new file mode 100644 (file)
index 0000000..41106df
--- /dev/null
@@ -0,0 +1,14 @@
+// CS0308: The non-generic method `X.Foo()' cannot be used with the type arguments
+// Line: 12
+
+class X
+{
+       public void Foo ()
+       {
+       }
+       
+       void Test ()
+       {
+               Foo<int> ();
+       }
+}
diff --git a/mcs/errors/cs0308-6.cs b/mcs/errors/cs0308-6.cs
new file mode 100644 (file)
index 0000000..81b4ac3
--- /dev/null
@@ -0,0 +1,21 @@
+// CS0308: The non-generic type `BaseGeneric<T>.InnerDerived' cannot be used with the type arguments
+// Line: 19
+
+class BaseGeneric<T>
+{
+       public class InnerDerived
+       {
+       }
+}
+
+class BaseConcrete : BaseGeneric<string>
+{
+}
+
+class Program
+{
+    static void Main ()
+    {
+        new BaseConcrete.InnerDerived<int>();
+    }
+}
diff --git a/mcs/errors/cs0308-7.cs b/mcs/errors/cs0308-7.cs
new file mode 100644 (file)
index 0000000..bdcb6c2
--- /dev/null
@@ -0,0 +1,18 @@
+// CS0308: The non-generic type `Foo' cannot be used with the type arguments
+// Line: 16
+
+public class Foo
+{
+       public string Test<T> ()
+       {
+               return null;
+       }
+}
+
+public static class Driver
+{
+       static object UseBrokenType ()
+       {
+               return Foo<int> ().Test ();
+       }
+}
diff --git a/mcs/errors/cs0308.cs b/mcs/errors/cs0308.cs
new file mode 100644 (file)
index 0000000..de8daf1
--- /dev/null
@@ -0,0 +1,19 @@
+// CS0308: The non-generic type `N1.A' cannot be used with the type arguments
+// Line: 11
+namespace N1
+{
+       class A
+       { }
+}
+
+namespace N3
+{
+       using W = N1.A<int>;
+
+       class X
+       {
+               static void Main ()
+               {
+               }
+       }
+}
diff --git a/mcs/errors/cs0310-2.cs b/mcs/errors/cs0310-2.cs
new file mode 100644 (file)
index 0000000..f553c5b
--- /dev/null
@@ -0,0 +1,21 @@
+// CS0310: The type `A' must have a public parameterless constructor in order to use it as parameter `T' in the generic type or method `Foo<T>'
+// Line: 20
+
+public class Foo<T>
+       where T : new ()
+{
+}
+
+class A
+{
+       private A ()
+       { }
+}
+
+class X
+{
+       static void Main ()
+       {
+               object o = new Foo<A> ();
+       }
+}
diff --git a/mcs/errors/cs0310-3.cs b/mcs/errors/cs0310-3.cs
new file mode 100644 (file)
index 0000000..472a74c
--- /dev/null
@@ -0,0 +1,22 @@
+// CS0310: The type `A' must have a public parameterless constructor in order to use it as parameter `T' in the generic type or method `Foo<T>'
+// Line: 18
+
+public class Foo<T>
+       where T : new ()
+{
+}
+
+abstract class A
+{
+       public A ()
+       { }
+}
+
+class X
+{
+       Foo<A> foo;
+
+       static void Main ()
+       {
+       }
+}
diff --git a/mcs/errors/cs0310-4.cs b/mcs/errors/cs0310-4.cs
new file mode 100644 (file)
index 0000000..d1e6e35
--- /dev/null
@@ -0,0 +1,18 @@
+// CS0310: The type `Foo' must have a public parameterless constructor in order to use it as parameter `a' in the generic type or method `C<a>'
+// Line: 14
+class C <a> where a : new () {
+}
+
+class Foo {
+  public Foo (int x) { }
+}
+
+class X
+{
+        static void Main ()
+        {
+          C<Foo> x;
+        }
+}
+
diff --git a/mcs/errors/cs0310-5.cs b/mcs/errors/cs0310-5.cs
new file mode 100644 (file)
index 0000000..90a4cd6
--- /dev/null
@@ -0,0 +1,15 @@
+// CS0310: The type `string' must have a public parameterless constructor in order to use it as parameter `T' in the generic type or method `Program.Ret<T>()'
+// Line: 10
+
+public static class Program
+{
+       static void Main ()
+       {
+               Ret<string> ();
+       }
+
+       static T Ret<T> () where T : new ()
+       {
+               return new T ();
+       }
+} 
diff --git a/mcs/errors/cs0310.cs b/mcs/errors/cs0310.cs
new file mode 100644 (file)
index 0000000..aa72169
--- /dev/null
@@ -0,0 +1,22 @@
+// CS0310: The type `A' must have a public parameterless constructor in order to use it as parameter `T' in the generic type or method `Foo<T>'
+// Line: 18
+
+public class Foo<T>
+       where T : new ()
+{
+}
+
+class A
+{
+       private A ()
+       { }
+}
+
+class X
+{
+       Foo<A> foo;
+
+       static void Main ()
+       {
+       }
+}
diff --git a/mcs/errors/cs0311-2.cs b/mcs/errors/cs0311-2.cs
new file mode 100644 (file)
index 0000000..664b4fe
--- /dev/null
@@ -0,0 +1,25 @@
+// CS031: The type `B' cannot be used as type parameter `T' in the generic type or method `Foo<T>'. There is no implicit reference conversion from `B' to `I'
+// Line: 21
+
+public class Foo<T>
+       where T : A, I
+{
+}
+
+public interface I
+{ }
+
+public class A
+{ }
+
+public class B : A
+{ }
+
+class X
+{
+       Foo<B> foo;
+
+       static void Main ()
+       {
+       }
+}
diff --git a/mcs/errors/cs0311-3.cs b/mcs/errors/cs0311-3.cs
new file mode 100644 (file)
index 0000000..06bb4b0
--- /dev/null
@@ -0,0 +1,39 @@
+// CS0311: The type `B' cannot be used as type parameter `T' in the generic type or method `Foo<T>'. There is no implicit reference conversion from `B' to `A'
+// Line: 35
+using System;
+
+public class Foo<T>
+       where T : A
+{
+       public void Test (T t)
+       {
+               Console.WriteLine (t);
+               Console.WriteLine (t.GetType ());
+               t.Hello ();
+       }
+}
+
+public class A
+{
+       public void Hello ()
+       {
+               Console.WriteLine ("Hello World");
+       }
+}
+
+public class B
+{
+       public static implicit operator A (B b)
+       {
+               return new A ();
+       }
+}
+
+class X
+{
+       Foo<B> b;
+
+       static void Main ()
+       {
+       }
+}
diff --git a/mcs/errors/cs0311-4.cs b/mcs/errors/cs0311-4.cs
new file mode 100644 (file)
index 0000000..3a47beb
--- /dev/null
@@ -0,0 +1,6 @@
+// CS0311: The type `B<int>' cannot be used as type parameter `X' in the generic type or method `C<X>'. There is no implicit reference conversion from `B<int>' to `D<B<int>>'
+// Line: 3
+class A : C<B<int>> {}
+class B<X> {}
+interface C<X> where X : D<X> {}
+interface D<X> {}
diff --git a/mcs/errors/cs0311-5.cs b/mcs/errors/cs0311-5.cs
new file mode 100644 (file)
index 0000000..6876a98
--- /dev/null
@@ -0,0 +1,18 @@
+// CS0311: The type `object' cannot be used as type parameter `U' in the generic type or method `G<C>.Method<U>()'. There is no implicit reference conversion from `object' to `C'
+// Line: 9
+
+public class C
+{
+       public static void Main ()
+       {
+               var mc = new G<C> ();
+               mc.Method<object> ();
+       }
+}
+
+public class G<T> where T : C
+{
+       public void Method<U> () where U : T
+       {
+       }
+}
diff --git a/mcs/errors/cs0311.cs b/mcs/errors/cs0311.cs
new file mode 100644 (file)
index 0000000..6ce17f5
--- /dev/null
@@ -0,0 +1,24 @@
+// CS0311: The type `B' cannot be used as type parameter `T' in the generic type or method `Foo<T>'. There is no implicit reference conversion from `B' to `A'
+// Line: 19
+
+public class Foo<T>
+       where T : A
+{
+}
+
+public class A
+{
+}
+
+public class B
+{
+}
+
+class X
+{
+       Foo<B> foo;
+
+       static void Main ()
+       {
+       }
+}
diff --git a/mcs/errors/cs0313.cs b/mcs/errors/cs0313.cs
new file mode 100644 (file)
index 0000000..17fe7bc
--- /dev/null
@@ -0,0 +1,18 @@
+// CS0313: The type `S?' cannot be used as type parameter `T' in the generic type or method `S.Foo<T>(T)'. The nullable type `S?' never satisfies interface constraint
+// Line: 16
+
+interface I
+{
+}
+
+struct S : I
+{
+       static void Foo<T> (T t) where T : I
+       {
+       }
+
+       static void Test (S? s)
+       {
+               Foo (s);
+       }
+}
diff --git a/mcs/errors/cs0314-2.cs b/mcs/errors/cs0314-2.cs
new file mode 100644 (file)
index 0000000..504053e
--- /dev/null
@@ -0,0 +1,30 @@
+// CS0314: The type `T' cannot be used as type parameter `T' in the generic type or method `IB<K,T>'. There is no boxing or type parameter conversion from `T' to `System.IDisposable'
+// Line: 20
+
+public interface IA<K> 
+       where K : System.IComparable, System.IComparable<K>
+{
+}
+
+public class A<K> : IA<K> 
+       where K : System.IComparable, System.IComparable<K>
+{
+}
+
+public interface IB<K,T> 
+       where T : System.IDisposable
+{
+} 
+
+public class B<K,T> : IB<K,T> 
+       where T : B<K,T>.Element, new() 
+       where K : System.IComparable, System.IComparable<K>
+{
+       public abstract class Element : A<K>
+       {
+       }
+}
+
+
+
+
diff --git a/mcs/errors/cs0314.cs b/mcs/errors/cs0314.cs
new file mode 100644 (file)
index 0000000..b2a9f85
--- /dev/null
@@ -0,0 +1,21 @@
+// CS0314: The type `U' cannot be used as type parameter `T' in the generic type or method `A<T>'. There is no boxing or type parameter conversion from `U' to `System.IComparable'
+// Line: 13
+
+using System;
+
+class A<T>
+       where T: IComparable
+{
+}
+
+class B<U,V>
+       where V: A<U>
+{
+}
+
+class Driver
+{
+       public static void Main ()
+       {
+       }
+}
diff --git a/mcs/errors/cs0315-2.cs b/mcs/errors/cs0315-2.cs
new file mode 100644 (file)
index 0000000..70e2c3d
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0315: The type `ushort' cannot be used as type parameter `T' in the generic type or method `A<T>'. There is no boxing conversion from `ushort' to `A<ushort>.N1<ushort>'
+// Line: 9
+// Compiler options: -r:CS0315-2-lib.dll
+
+public class Test
+{
+       public static void Main ()
+       {
+               A<ushort>.N1<ushort> a = null;
+       }
+}
diff --git a/mcs/errors/cs0315-3.cs b/mcs/errors/cs0315-3.cs
new file mode 100644 (file)
index 0000000..80ab3db
--- /dev/null
@@ -0,0 +1,21 @@
+// CS0315: The type `int' cannot be used as type parameter `U' in the generic type or method `A<int?>.Test<U>()'. There is no boxing conversion from `int' to `int?'
+// Line: 19
+
+class A<T>
+{
+       public static void Test<U> () where U : T
+       {
+       }
+}
+
+class B : A<int?>
+{
+}
+
+class Program
+{
+       public static void Main ()
+       {
+               B.Test<int> ();
+       }
+}
diff --git a/mcs/errors/cs0315.cs b/mcs/errors/cs0315.cs
new file mode 100644 (file)
index 0000000..3ed8e1e
--- /dev/null
@@ -0,0 +1,9 @@
+// CS0315: The type `int' cannot be used as type parameter `TEventArgs' in the generic type or method `System.EventHandler<TEventArgs>'. There is no boxing conversion from `int' to `System.EventArgs'
+// Line: 5
+
+class X {
+       System.EventHandler <int> x;
+       static void Main () {}
+}
+
+
diff --git a/mcs/errors/cs0401.cs b/mcs/errors/cs0401.cs
new file mode 100644 (file)
index 0000000..ac95556
--- /dev/null
@@ -0,0 +1,6 @@
+// CS0401: The `new()' constraint must be the last constraint specified
+// Line: 4
+
+class Foo<T> where T : new (), new ()
+{
+}
diff --git a/mcs/errors/cs0402-2.cs b/mcs/errors/cs0402-2.cs
new file mode 100644 (file)
index 0000000..3df4df7
--- /dev/null
@@ -0,0 +1,10 @@
+// gcs0402-2.cs: `C.Main<T,U>()': an entry point cannot be generic or in a generic type
+// Line: 7
+// Compiler options: -warnaserror -warn:4
+
+class C
+{
+    public static void Main<T, U> ()
+    {
+    }
+}
\ No newline at end of file
diff --git a/mcs/errors/cs0402.cs b/mcs/errors/cs0402.cs
new file mode 100644 (file)
index 0000000..a2edbfa
--- /dev/null
@@ -0,0 +1,10 @@
+// gcs0402.cs: `TestClass<T>.Main()': an entry point cannot be generic or in a generic type
+// Line: 7
+// Compiler options: -warnaserror -warn:4
+
+class TestClass<T>
+{
+    public static void Main ()
+    {
+    }
+}
\ No newline at end of file
diff --git a/mcs/errors/cs0403-2.cs b/mcs/errors/cs0403-2.cs
new file mode 100644 (file)
index 0000000..984bf82
--- /dev/null
@@ -0,0 +1,13 @@
+// CS0403: Cannot convert null to the type parameter `T' because it could be a value type. Consider using `default (T)' instead
+// Line: 8
+
+struct S
+{
+       public void Foo<T> () where T : struct
+       {
+               T t = null;
+       }
+
+       static void Main ()
+       { }
+}
diff --git a/mcs/errors/cs0403-3.cs b/mcs/errors/cs0403-3.cs
new file mode 100644 (file)
index 0000000..552e3df
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0403: Cannot convert null to the type parameter `T' because it could be a value type. Consider using `default (T)' instead
+// Line: 8
+
+class X
+{
+       public static T CreateMethod<T> ()
+       {
+               return (T)null;
+       }
+}
diff --git a/mcs/errors/cs0403.cs b/mcs/errors/cs0403.cs
new file mode 100644 (file)
index 0000000..3e73bc7
--- /dev/null
@@ -0,0 +1,15 @@
+// CS0403: Cannot convert null to the type parameter `T' because it could be a value type. Consider using `default (T)' instead
+// Line: 7
+class Test<T>
+{
+       public T Null ()
+       {
+               return null;
+       }
+}
+
+class X
+{
+       static void Main ()
+       { }
+}
diff --git a/mcs/errors/cs0404.cs b/mcs/errors/cs0404.cs
new file mode 100644 (file)
index 0000000..4b935d3
--- /dev/null
@@ -0,0 +1,8 @@
+// CS0404: '<' unexpected: attributes cannot be generic
+// Line: 3
+[Test<T>]
+class X
+{
+       static void Main ()
+       { }
+}
diff --git a/mcs/errors/cs0405.cs b/mcs/errors/cs0405.cs
new file mode 100644 (file)
index 0000000..7a362e6
--- /dev/null
@@ -0,0 +1,9 @@
+// gcs0405.cs: Duplicate constraint `I' for type parameter `T'
+// Line: 8
+
+interface I { }
+
+class Foo<T>
+       where T : I, I
+{
+}
diff --git a/mcs/errors/cs0406-2.cs b/mcs/errors/cs0406-2.cs
new file mode 100644 (file)
index 0000000..47aa66c
--- /dev/null
@@ -0,0 +1,9 @@
+// CS0406: The class type constraint `A' must be listed before any other constraints. Consider moving type constraint to the beginning of the constraint list
+// Line: 7
+
+class A { }
+interface I { }
+
+class Foo<T> where T : I, A
+{
+}
diff --git a/mcs/errors/cs0406.cs b/mcs/errors/cs0406.cs
new file mode 100644 (file)
index 0000000..1d54a25
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0406: The class type constraint `B' must be listed before any other constraints. Consider moving type constraint to the beginning of the constraint list
+// Line: 8
+
+class A { }
+class B { }
+
+class Foo<T>
+       where T : A, B
+{
+}
diff --git a/mcs/errors/cs0409.cs b/mcs/errors/cs0409.cs
new file mode 100644 (file)
index 0000000..c6aca26
--- /dev/null
@@ -0,0 +1,6 @@
+// gcs0409.cs: A constraint clause has already been specified for type parameter `U'
+// Line: 7
+
+class C<T, U> where U: class, new() where U: new()
+{
+}
diff --git a/mcs/errors/cs0411-10.cs b/mcs/errors/cs0411-10.cs
new file mode 100644 (file)
index 0000000..fe7f3ec
--- /dev/null
@@ -0,0 +1,16 @@
+// CS0411: The type arguments for method `C.Foo<T>(T)' cannot be inferred from the usage. Try specifying the type arguments explicitly
+// Line: 14
+// Compiler options: -unsafe
+
+class C
+{
+       static void Foo<T> (T t)
+       {
+       }
+
+       unsafe static void Test ()
+       {
+               int* i = null;
+               Foo (i);
+       }
+}
diff --git a/mcs/errors/cs0411-11.cs b/mcs/errors/cs0411-11.cs
new file mode 100644 (file)
index 0000000..12f8721
--- /dev/null
@@ -0,0 +1,19 @@
+// CS0411: The type arguments for method `C.Foo<T>(I<T>)' cannot be inferred from the usage. Try specifying the type arguments explicitly
+// Line: 17
+
+interface I<T>
+{
+}
+
+class C : I<long>, I<int>
+{
+       static void Foo<T> (I<T> i)
+       {
+       }
+
+       static void Main ()
+       {
+               C c = new C ();
+               Foo (c);
+       }
+}
diff --git a/mcs/errors/cs0411-12.cs b/mcs/errors/cs0411-12.cs
new file mode 100644 (file)
index 0000000..a03e2fb
--- /dev/null
@@ -0,0 +1,17 @@
+// CS0411: The type arguments for method `Foo<U>.DoSomething<U>(System.Func<U,U>)' cannot be inferred from the usage. Try specifying the type arguments explicitly
+// Line: 15
+
+using System;
+
+public class Foo<T>
+{
+       public void DoSomething<U> (Func<U, T> valueExpression) { }
+}
+
+public class Bar
+{
+       protected void DoAnything<T, U> (U value)
+       {
+               new Foo<U> ().DoSomething (value);
+       }
+}
diff --git a/mcs/errors/cs0411-13.cs b/mcs/errors/cs0411-13.cs
new file mode 100644 (file)
index 0000000..2bf576a
--- /dev/null
@@ -0,0 +1,14 @@
+// CS0411: The type arguments for method `C.Foo<T>(T[], T[])' cannot be inferred from the usage. Try specifying the type arguments explicitly
+// Line: 12
+
+class C
+{
+       public static void Foo<T> (T[] t1, T[] t2)
+       {
+       }
+       
+       public static void Main ()
+       {
+               Foo (new int[0], new byte[0]);
+       }
+}
diff --git a/mcs/errors/cs0411-14.cs b/mcs/errors/cs0411-14.cs
new file mode 100644 (file)
index 0000000..565c5a5
--- /dev/null
@@ -0,0 +1,16 @@
+// CS0411: The type arguments for method `C.Foo<T>(ref T, ref T)' cannot be inferred from the usage. Try specifying the type arguments explicitly
+// Line: 14
+
+class C
+{
+       public static void Foo<T> (ref T t1, ref T t2)
+       {
+       }
+       
+       public static void Main ()
+       {
+               string s = "a";
+               object o = null;
+               Foo (ref s, ref o);
+       }
+}
diff --git a/mcs/errors/cs0411-15.cs b/mcs/errors/cs0411-15.cs
new file mode 100644 (file)
index 0000000..cc5fddb
--- /dev/null
@@ -0,0 +1,21 @@
+// CS0411: The type arguments for method `C.Foo<T>(IFoo<T>, IFoo<T>)' cannot be inferred from the usage. Try specifying the type arguments explicitly
+// Line: 18
+// Compiler options: -langversion:future 
+
+interface IFoo<in T>
+{
+}
+
+class C
+{
+       public static void Foo<T> (IFoo<T> e1, IFoo<T> e2)
+       {
+       }
+       
+       public static void Main ()
+       {
+               IFoo<int> a = null;
+               IFoo<object> b = null;
+               Foo (a, b);
+       }
+}
diff --git a/mcs/errors/cs0411-16.cs b/mcs/errors/cs0411-16.cs
new file mode 100644 (file)
index 0000000..57b7cc1
--- /dev/null
@@ -0,0 +1,16 @@
+// CS0411: The type arguments for method `M.Foo<T>(System.Func<T>)' cannot be inferred from the usage. Try specifying the type arguments explicitly
+// Line: 14
+
+using System;
+
+class M
+{
+       static void Foo<T> (Func<T> t)
+       {
+       }
+       
+       public static void Main ()
+       {
+               Foo (delegate { throw new Exception("foo"); });
+       }
+}
diff --git a/mcs/errors/cs0411-17.cs b/mcs/errors/cs0411-17.cs
new file mode 100644 (file)
index 0000000..a0f37af
--- /dev/null
@@ -0,0 +1,20 @@
+// CS0411: The type arguments for method `C.Test<T>(System.Func<T>)' cannot be inferred from the usage. Try specifying the type arguments explicitly
+// Line: 14
+
+using System;
+
+interface IB
+{
+}
+
+class C
+{
+       public static void Main ()
+       {
+               Test (() => { if (true) return (C) null; return (IB) null; });
+       }
+       
+       static void Test<T> (Func<T> f)
+       {
+       }
+}
diff --git a/mcs/errors/cs0411-2.cs b/mcs/errors/cs0411-2.cs
new file mode 100644 (file)
index 0000000..449a414
--- /dev/null
@@ -0,0 +1,18 @@
+// CS0411: The type arguments for method `Test<float>.Foo<V,W>(V, V)' cannot be inferred from the usage. Try specifying the type arguments explicitly
+// Line: 15
+
+class Test<A>
+{
+       public void Foo<V,W> (V v, V w)
+       { }
+}
+
+class X
+{
+       static void Main ()
+       {
+               Test<float> test = new Test<float> ();
+               test.Foo (8, 9);
+       }
+}
+
diff --git a/mcs/errors/cs0411-3.cs b/mcs/errors/cs0411-3.cs
new file mode 100644 (file)
index 0000000..04c2de6
--- /dev/null
@@ -0,0 +1,14 @@
+// CS0411: The type arguments for method `C.Foo<T>(T)' cannot be inferred from the usage. Try specifying the type arguments explicitly
+// Line: 12
+
+class C
+{
+       static void X ()
+       {
+       }
+       
+       static void Foo<T> (T t)
+       {
+               Foo(X ());
+       }
+}
diff --git a/mcs/errors/cs0411-5.cs b/mcs/errors/cs0411-5.cs
new file mode 100644 (file)
index 0000000..cdcf405
--- /dev/null
@@ -0,0 +1,25 @@
+// CS0411: The type arguments for method `Hello.World<U>(IFoo<U>)' cannot be inferred from the usage. Try specifying the type arguments explicitly
+// Line: 16
+public interface IFoo<T>
+{ }
+
+public class Foo : IFoo<int>, IFoo<string>
+{ }
+
+public class Hello
+{
+       public void World<U> (IFoo<U> foo)
+       { }
+
+       public void Test (Foo foo)
+       {
+               World (foo);
+       }
+}
+
+class X
+{
+       static void Main ()
+       {
+       }
+}
diff --git a/mcs/errors/cs0411-6.cs b/mcs/errors/cs0411-6.cs
new file mode 100644 (file)
index 0000000..c6e7ffd
--- /dev/null
@@ -0,0 +1,25 @@
+// CS0411: The type arguments for method `Hello.World<U>(U, IFoo<U>)' cannot be inferred from the usage. Try specifying the type arguments explicitly
+// Line: 16
+public interface IFoo<T>
+{ }
+
+public class Foo : IFoo<int>, IFoo<string>
+{ }
+
+public class Hello
+{
+       public void World<U> (U u, IFoo<U> foo)
+       { }
+
+       public void Test (Foo foo)
+       {
+               World ("Canada", foo);
+       }
+}
+
+class X
+{
+       static void Main ()
+       {
+       }
+}
diff --git a/mcs/errors/cs0411-7.cs b/mcs/errors/cs0411-7.cs
new file mode 100644 (file)
index 0000000..c22648e
--- /dev/null
@@ -0,0 +1,22 @@
+// CS0411: The type arguments for method `C.Foo<T>(T, System.Collections.Generic.Comparer<T>)' cannot be inferred from the usage. Try specifying the type arguments explicitly
+// Line: 20
+
+using System;
+using System.Collections.Generic;
+
+public class C
+{
+       static void Foo<T>(T t, Comparer<T> tc)
+       {
+       }
+       
+       static int Compare (int a, int b)
+       {
+               return -1;
+       }
+       
+       public static void Main ()
+       {
+               Foo (1, Compare);
+       }
+}
diff --git a/mcs/errors/cs0411-8.cs b/mcs/errors/cs0411-8.cs
new file mode 100644 (file)
index 0000000..e72b36e
--- /dev/null
@@ -0,0 +1,18 @@
+// CS0411: The type arguments for method `C.Test<TR,TA>(C.Func<TR,TA>, C.Func<TR,TA>)' cannot be inferred from the usage. Try specifying the type arguments explicitly
+// Line: 16
+
+
+public class C
+{
+       public delegate T1 Func<T1, T2> (T2 t);
+       
+       public static TR Test<TR, TA> (Func<TR, TA> f, Func<TR, TA> f2)
+       {
+               return default (TR);
+       }
+       
+       public static void Main()
+       {
+               int s = Test (delegate (int i) { return 0; }, delegate (int i) { return "a"; });
+       }
+}
\ No newline at end of file
diff --git a/mcs/errors/cs0411-9.cs b/mcs/errors/cs0411-9.cs
new file mode 100644 (file)
index 0000000..063036e
--- /dev/null
@@ -0,0 +1,18 @@
+// CS0411: The type arguments for method `Test.Foo<A>(D<A>)' cannot be inferred from the usage. Try specifying the type arguments explicitly
+// Line: 15
+
+delegate void D<T> (T t);
+
+class Test
+{
+       public static D<A> Foo<A> (D<A> a)
+       {
+               return null;
+       }
+       
+       public static void Main ()
+       {
+               Foo (delegate {});
+       }
+}
+
diff --git a/mcs/errors/cs0411.cs b/mcs/errors/cs0411.cs
new file mode 100644 (file)
index 0000000..3394e81
--- /dev/null
@@ -0,0 +1,18 @@
+// CS0411: The type arguments for method `Test<float>.Foo<V>(V, V)' cannot be inferred from the usage. Try specifying the type arguments explicitly
+// Line: 15
+
+class Test<A>
+{
+       public void Foo<V> (V v, V w)
+       { }
+}
+
+class X
+{
+       static void Main ()
+       {
+               Test<float> test = new Test<float> ();
+               test.Foo (8, "Hello World");
+       }
+}
+
diff --git a/mcs/errors/cs0412-2.cs b/mcs/errors/cs0412-2.cs
new file mode 100644 (file)
index 0000000..058629f
--- /dev/null
@@ -0,0 +1,9 @@
+// CS0412: The type parameter name `T' is the same as local variable or parameter name
+// Line: 8
+
+using System;
+
+interface I
+{
+       T Foo<T>(IComparable T);
+}
diff --git a/mcs/errors/cs0412-3.cs b/mcs/errors/cs0412-3.cs
new file mode 100644 (file)
index 0000000..78b473c
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0412: The type parameter name `T' is the same as local variable or parameter name
+// Line: 8
+
+class C
+{
+       public void Foo<T> (int value)
+       {
+               int T;
+       }
+}
diff --git a/mcs/errors/cs0412.cs b/mcs/errors/cs0412.cs
new file mode 100644 (file)
index 0000000..7e94245
--- /dev/null
@@ -0,0 +1,9 @@
+// CS0412: The type parameter name `T' is the same as local variable or parameter name
+// Line: 6
+
+class C
+{
+       public void Foo<T> (string T)
+       {
+       }
+}
diff --git a/mcs/errors/cs0413-2.cs b/mcs/errors/cs0413-2.cs
new file mode 100644 (file)
index 0000000..1bd6105
--- /dev/null
@@ -0,0 +1,18 @@
+// CS0413: The `as' operator cannot be used with a non-reference type parameter `T'. Consider adding `class' or a reference type constraint
+// Line: 8
+
+public class SomeClass {
+}
+
+public class Foo<T> where T : struct {
+       public T Do (object o) { return o as T; }
+}
+
+class Driver {
+       static void Main ()
+       {
+               Foo<SomeClass> f = new Foo<SomeClass> ();
+               f.Do ("something");
+       }
+}
+
diff --git a/mcs/errors/cs0413.cs b/mcs/errors/cs0413.cs
new file mode 100644 (file)
index 0000000..8cfae6a
--- /dev/null
@@ -0,0 +1,17 @@
+// CS0413: The `as' operator cannot be used with a non-reference type parameter `T'. Consider adding `class' or a reference type constraint
+// Line: 7
+
+public class SomeClass {}
+
+public class Foo<T>  {
+       public T Do (object o) { return o as T; }
+}
+
+class Driver {
+       static void Main ()
+       {
+               Foo<SomeClass> f = new Foo<SomeClass> ();
+               f.Do ("something");
+       }
+}
+
diff --git a/mcs/errors/cs0414.cs b/mcs/errors/cs0414.cs
new file mode 100644 (file)
index 0000000..0bd9d7f
--- /dev/null
@@ -0,0 +1,11 @@
+// cs0414.cs: The private field `X.i' is assigned but its value is never used
+// Line: 6
+// Compiler options: -warnaserror -warn:3
+
+class X {
+       int i = 3;
+       
+       public void Y ()
+       {
+       }
+}
diff --git a/mcs/errors/cs0416-2.cs b/mcs/errors/cs0416-2.cs
new file mode 100644 (file)
index 0000000..95a637b
--- /dev/null
@@ -0,0 +1,32 @@
+// CS0416: `N.C<T>': an attribute argument cannot use type parameters
+// Line: 15
+
+using System;
+
+public class TestAttribute : Attribute
+{
+    object type;
+
+    public object Type
+    {
+        get
+        {
+            return type;
+        }
+        set
+        {
+            type = value;
+        }
+    }
+}
+
+namespace N
+{
+    class C<T>
+    {
+        [Test(Type=typeof(C<T>))]
+        public void Foo()
+        {
+        }
+    }
+}
\ No newline at end of file
diff --git a/mcs/errors/cs0416-3.cs b/mcs/errors/cs0416-3.cs
new file mode 100644 (file)
index 0000000..b6eed9b
--- /dev/null
@@ -0,0 +1,22 @@
+// CS0416: `C<T>.N': an attribute argument cannot use type parameters
+// Line: 17
+
+using System;
+
+public class TestAttribute : Attribute
+{
+       public TestAttribute(Type type)
+       {
+       }
+}
+
+class C<T>
+{
+       class N
+       {
+               [Test(typeof(N))]
+               public static void Foo()
+               {
+               }
+       }
+}
diff --git a/mcs/errors/cs0416.cs b/mcs/errors/cs0416.cs
new file mode 100644 (file)
index 0000000..a56ac6f
--- /dev/null
@@ -0,0 +1,19 @@
+// CS0416: `C<T>': an attribute argument cannot use type parameters
+// Line: 15
+
+using System;
+
+public class TestAttribute : Attribute
+{
+    public TestAttribute(Type type)
+    {
+    }
+}
+
+class C<T>
+{
+    [Test(typeof(C<T>))]
+    public static void Foo()
+    {
+    }
+}
\ No newline at end of file
diff --git a/mcs/errors/cs0417.cs b/mcs/errors/cs0417.cs
new file mode 100644 (file)
index 0000000..2396ef6
--- /dev/null
@@ -0,0 +1,18 @@
+// CS0417.cs: `T': cannot provide arguments when creating an instance of a variable type
+// Line: 9
+
+public class Foo<T>
+       where T : new ()
+{
+       public T Create ()
+       {
+               return new T (8);
+       }
+}
+
+class X
+{
+       static void Main ()
+       {
+       }
+}
diff --git a/mcs/errors/cs0425-2.cs b/mcs/errors/cs0425-2.cs
new file mode 100644 (file)
index 0000000..ac5904c
--- /dev/null
@@ -0,0 +1,20 @@
+// CS0425: The constraints for type parameter `V' of method `Foo<T>.Test<V>()' must match the constraints for type parameter `U' of interface method `IFoo<T>.Test<U>()'. Consider using an explicit interface implementation instead
+// Line: 13
+interface IFoo<T>
+{
+       void Test<U> ()
+               where U : T;
+}
+
+class Foo<T> : IFoo<T>
+{
+       public void Test<V> ()
+               where V :X
+       { }
+}
+
+class X
+{
+       static void Main ()
+       { }
+}
diff --git a/mcs/errors/cs0425-3.cs b/mcs/errors/cs0425-3.cs
new file mode 100644 (file)
index 0000000..a76fa8d
--- /dev/null
@@ -0,0 +1,14 @@
+// CS0425: The constraints for type parameter `T' of method `C.Foo<T>()' must match the constraints for type parameter `T' of interface method `I.Foo<T>()'. Consider using an explicit interface implementation instead
+// Line: 11
+
+interface I
+{
+       void Foo<T> ();
+}
+
+class C : I
+{
+       public void Foo<T> () where T : struct
+       {
+       }
+}
diff --git a/mcs/errors/cs0425-4.cs b/mcs/errors/cs0425-4.cs
new file mode 100644 (file)
index 0000000..6fa481d
--- /dev/null
@@ -0,0 +1,22 @@
+// CS0425: The constraints for type parameter `T' of method `Test.Baz.Method<T,V>()' must match the constraints for type parameter `T' of interface method `Test.IBar.Method<T,V>()'. Consider using an explicit interface implementation instead
+// Line: 18
+namespace Test
+{
+    using System;
+
+    public interface IFoo
+    {
+    }
+
+    public interface IBar
+    {
+        void Method<T, V>() where T : IFoo where V : T;
+    }
+
+    public class Baz : IBar
+    {
+        public void Method<T, V>() where T : IBar where V : T
+        {
+        }
+    }
+}
diff --git a/mcs/errors/cs0425-5.cs b/mcs/errors/cs0425-5.cs
new file mode 100644 (file)
index 0000000..ca372d7
--- /dev/null
@@ -0,0 +1,14 @@
+// CS0425: The constraints for type parameter `V' of method `Foo<T,X>.Test<V>()' must match the constraints for type parameter `U' of interface method `IFoo<T>.Test<U>()'. Consider using an explicit interface implementation instead
+// Line: 11
+
+interface IFoo<T>
+{
+       void Test<U> () where U : T;
+}
+
+class Foo<T, X> : IFoo<T>
+{
+       public void Test<V> () where V : X
+       {
+       }
+}
diff --git a/mcs/errors/cs0425.cs b/mcs/errors/cs0425.cs
new file mode 100644 (file)
index 0000000..ef0c413
--- /dev/null
@@ -0,0 +1,19 @@
+// CS0425: The constraints for type parameter `V' of method `Foo<T>.Test<V>()' must match the constraints for type parameter `U' of interface method `IFoo<T>.Test<U>()'. Consider using an explicit interface implementation instead
+// Line: 12
+interface IFoo<T>
+{
+       void Test<U> ()
+               where U : T;
+}
+
+class Foo<T> : IFoo<T>
+{
+       public void Test<V> ()
+       { }
+}
+
+class X
+{
+       static void Main ()
+       { }
+}
diff --git a/mcs/errors/cs0428-3.cs b/mcs/errors/cs0428-3.cs
new file mode 100644 (file)
index 0000000..61b788e
--- /dev/null
@@ -0,0 +1,13 @@
+// CS0428: Cannot convert method group `Count' to non-delegate type `int'. Consider using parentheses to invoke the method
+// Line: 11
+
+using System.Linq;
+
+public class A
+{
+       public A ()
+       {
+               string [] test = new string [5];
+               A [] array = new A [test.Count];
+       }
+}
diff --git a/mcs/errors/cs0449-2.cs b/mcs/errors/cs0449-2.cs
new file mode 100644 (file)
index 0000000..6ed5fb8
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0449: The `class' or `struct' constraint must be the first constraint specified
+// Line: 8
+
+public interface I
+{
+}
+
+public class C<T> where T : I, class
+{
+}
\ No newline at end of file
diff --git a/mcs/errors/cs0449-3.cs b/mcs/errors/cs0449-3.cs
new file mode 100644 (file)
index 0000000..c23a624
--- /dev/null
@@ -0,0 +1,9 @@
+// CS0449: The `class' or `struct' constraint must be the first constraint specified
+// Line: 6
+
+public class C<T>
+{
+      public void Foo<T>() where T : class, struct 
+      {
+      }
+}
\ No newline at end of file
diff --git a/mcs/errors/cs0449.cs b/mcs/errors/cs0449.cs
new file mode 100644 (file)
index 0000000..13d9259
--- /dev/null
@@ -0,0 +1,7 @@
+// CS0449: The `class' or `struct' constraint must be the first constraint specified
+// Line: 6
+
+interface I
+{
+       void Foo<T> () where T : class, struct;
+}
diff --git a/mcs/errors/cs0450-2.cs b/mcs/errors/cs0450-2.cs
new file mode 100644 (file)
index 0000000..7c4947e
--- /dev/null
@@ -0,0 +1,8 @@
+// CS0450: `A<bool,int>': cannot specify both a constraint class and the `class' or `struct' constraint
+// Line: 8
+
+class A<T, U>
+{
+}
+
+delegate void Test<T>() where T : struct, A<bool, int>;
diff --git a/mcs/errors/cs0450.cs b/mcs/errors/cs0450.cs
new file mode 100644 (file)
index 0000000..d19bfb8
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0450: `A': cannot specify both a constraint class and the `class' or `struct' constraint
+// Line: 8
+
+class A
+{
+}
+
+class B<T> where T : class, A
+{
+}
diff --git a/mcs/errors/cs0451.cs b/mcs/errors/cs0451.cs
new file mode 100644 (file)
index 0000000..c56634b
--- /dev/null
@@ -0,0 +1,9 @@
+// CS0451: The `new()' constraint cannot be used with the `struct' constraint
+// Line: 6
+
+class C
+{
+       public static void Foo<T>() where T : struct, new ()
+       {
+       }
+}
diff --git a/mcs/errors/cs0452-2.cs b/mcs/errors/cs0452-2.cs
new file mode 100644 (file)
index 0000000..0b4be0e
--- /dev/null
@@ -0,0 +1,16 @@
+// CS0452: The type `int' must be a reference type in order to use it as type parameter `T' in the generic type or method `Foo.Test<T>(ref T)'
+// Line: 14
+public class Foo
+{
+       public static void Test<T> (ref T t)
+               where T : class
+       { }
+}
+
+public class C {
+       public static void Main ()
+       {
+               int i = 0;
+               Foo.Test<int> (ref i);
+       }
+}
diff --git a/mcs/errors/cs0452-3.cs b/mcs/errors/cs0452-3.cs
new file mode 100644 (file)
index 0000000..f6fbe43
--- /dev/null
@@ -0,0 +1,26 @@
+// CS0452: The type `int' must be a reference type in order to use it as type parameter `T' in the generic type or method `TestClass<T>'
+// Line: 23
+using System;
+
+public class TestClass<T> where T : class
+{
+       static public T meth()
+       {
+               return null;
+       }
+
+       static public T Value;
+}                      
+       
+public class Test
+{
+       public Test()
+       {
+       }
+               
+       static public void Main()
+       {
+               int i = TestClass<int>.meth();
+               Console.WriteLine (i);
+       }
+}
diff --git a/mcs/errors/cs0452-4.cs b/mcs/errors/cs0452-4.cs
new file mode 100644 (file)
index 0000000..cd944dc
--- /dev/null
@@ -0,0 +1,26 @@
+// CS0452: The type `int' must be a reference type in order to use it as type parameter `T' in the generic type or method `TestClass<T>'
+// Line: 23
+using System;
+
+public class TestClass<T> where T : class
+{
+       static public T meth()
+       {
+               return null;
+       }
+
+       static public T Value;
+}                      
+       
+public class Test
+{
+       public Test()
+       {
+       }
+               
+       static public void Main()
+       {
+               int j = TestClass<int>.Value;
+               Console.WriteLine (j);
+       }
+}
diff --git a/mcs/errors/cs0452.cs b/mcs/errors/cs0452.cs
new file mode 100644 (file)
index 0000000..b6a8006
--- /dev/null
@@ -0,0 +1,16 @@
+// CS0452: The type `Foo' must be a reference type in order to use it as type parameter `T' in the generic type or method `MyObject<T>'
+// Line: 13
+public class MyObject<T>
+       where T : class
+{ }
+
+struct Foo
+{ }
+
+class X
+{
+       MyObject<Foo> foo;
+
+       static void Main ()
+       { }
+}
diff --git a/mcs/errors/cs0453-2.cs b/mcs/errors/cs0453-2.cs
new file mode 100644 (file)
index 0000000..01daa0d
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0453: The type `Foo' must be a non-nullable value type in order to use it as type parameter `T' in the generic type or method `System.Nullable<T>'
+// Line: 10
+public class Foo
+{ }
+
+class X
+{
+       static void Main ()
+       {
+               Foo? foo = new Foo ();
+       }
+}
diff --git a/mcs/errors/cs0453-3.cs b/mcs/errors/cs0453-3.cs
new file mode 100644 (file)
index 0000000..d5eda52
--- /dev/null
@@ -0,0 +1,16 @@
+// CS0453: The type `Bar?' must be a non-nullable value type in order to use it as type parameter `T' in the generic type or method `Foo<T>'
+// Line: 14
+public class Foo<T>
+       where T : struct
+{ }
+
+public struct Bar
+{ }
+
+class X
+{
+       static void Main ()
+       {
+               Foo<Bar?> foo;
+       }
+}
diff --git a/mcs/errors/cs0453-4.cs b/mcs/errors/cs0453-4.cs
new file mode 100644 (file)
index 0000000..4e3d16d
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0453: The type `T' must be a non-nullable value type in order to use it as type parameter `T' in the generic type or method `System.Nullable<T>'
+// Line: 14
+
+using System;
+
+public static class Nullable_Test {
+       public static int Compare<T> (Nullable<T> left)
+       {
+               return 0;
+       }
+}
\ No newline at end of file
diff --git a/mcs/errors/cs0453-5.cs b/mcs/errors/cs0453-5.cs
new file mode 100644 (file)
index 0000000..9a89cff
--- /dev/null
@@ -0,0 +1,24 @@
+// CS0453: The type `B.M' must be a non-nullable value type in order to use it as type parameter `T' in the generic type or method `Foo.Test_2<T>(this T)'
+// Line: 20
+
+
+using System;
+
+public static class Foo
+{
+       public static string Test_2<T> (this T s) where T : struct
+       {
+               return null;
+       }
+}
+
+namespace B
+{
+       public class M
+       {
+               public static void Main ()
+               {
+                       new M().Test_2();
+               }
+       }
+}
\ No newline at end of file
diff --git a/mcs/errors/cs0453.cs b/mcs/errors/cs0453.cs
new file mode 100644 (file)
index 0000000..016d95e
--- /dev/null
@@ -0,0 +1,13 @@
+// CS0453: The type `X' must be a non-nullable value type in order to use it as type parameter `T' in the generic type or method `MyValue<T>'
+// Line: 10
+public class MyValue<T>
+       where T : struct
+{ }
+
+class X
+{
+       MyValue<X> x;
+
+       static void Main ()
+       { }
+}
diff --git a/mcs/errors/cs0454.cs b/mcs/errors/cs0454.cs
new file mode 100644 (file)
index 0000000..386c875
--- /dev/null
@@ -0,0 +1,14 @@
+// CS0454: Circular constraint dependency involving `T' and `U'
+// Line: 7
+using System;
+
+class Foo<T,U>
+       where T : U
+       where U : T
+{ }
+
+class X
+{
+       static void Main ()
+       { }
+}
diff --git a/mcs/errors/cs0455-2.cs b/mcs/errors/cs0455-2.cs
new file mode 100644 (file)
index 0000000..5bbf56f
--- /dev/null
@@ -0,0 +1,15 @@
+// CS0455: Type parameter `V' inherits conflicting constraints `B' and `A'
+// Line: 13
+
+class A
+{ }
+
+class B
+{ }
+
+class Foo<T,U, V>
+       where T : A
+       where U : B
+       where V : U, T
+{
+}
diff --git a/mcs/errors/cs0455-3.cs b/mcs/errors/cs0455-3.cs
new file mode 100644 (file)
index 0000000..fe08835
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0455: Type parameter `T' inherits conflicting constraints `System.ValueType' and `Test'
+// Line: 8
+
+class Test
+{ }
+
+class Foo<T,U>
+       where T : struct, U
+       where U : Test
+{ }
diff --git a/mcs/errors/cs0455-4.cs b/mcs/errors/cs0455-4.cs
new file mode 100644 (file)
index 0000000..b27656d
--- /dev/null
@@ -0,0 +1,14 @@
+// CS0455: Type parameter `Y' inherits conflicting constraints `long' and `long?'
+// Line: 11
+
+abstract class A<T1, T2>
+{
+       public abstract void Foo<U> () where U : T1, T2;
+}
+
+class B : A<long, long?>
+{
+       public override void Foo<Y> ()
+       {
+       }
+}
diff --git a/mcs/errors/cs0455-5.cs b/mcs/errors/cs0455-5.cs
new file mode 100644 (file)
index 0000000..3844f9d
--- /dev/null
@@ -0,0 +1,14 @@
+// CS0455: Type parameter `Y' inherits conflicting constraints `class' and `long'
+// Line: 11
+
+abstract class A<T>
+{
+       public abstract void Foo<U> () where U : class, T;
+}
+
+class B : A<long>
+{
+       public override void Foo<Y> ()
+       {
+       }
+}
diff --git a/mcs/errors/cs0455.cs b/mcs/errors/cs0455.cs
new file mode 100644 (file)
index 0000000..e957adf
--- /dev/null
@@ -0,0 +1,13 @@
+// CS0455: Type parameter `T' inherits conflicting constraints `Test' and `World'
+// Line: 11
+
+class Test
+{ }
+
+class World
+{ }
+
+class Foo<T,U>
+       where T : Test, U
+       where U : World
+{ }
diff --git a/mcs/errors/cs0456.cs b/mcs/errors/cs0456.cs
new file mode 100644 (file)
index 0000000..ee3394a
--- /dev/null
@@ -0,0 +1,14 @@
+// CS0456: Type parameter `U' has the `struct' constraint, so it cannot be used as a constraint for `T'
+// Line: 7
+using System;
+
+class Foo<T,U>
+       where T : U
+       where U : struct
+{ }
+
+class X
+{
+       static void Main ()
+       { }
+}
diff --git a/mcs/errors/cs0458-10.cs b/mcs/errors/cs0458-10.cs
new file mode 100644 (file)
index 0000000..e334822
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0458: The result of the expression is always `null' of type `bool?' 
+// Line: 8
+// Compiler options: -warnaserror -warn:2
+
+class C
+{
+       static void Foo()
+       {
+               bool? b = false | null;
+       }
+}
diff --git a/mcs/errors/cs0458-11.cs b/mcs/errors/cs0458-11.cs
new file mode 100644 (file)
index 0000000..26f8e0c
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0458: The result of the expression is always `null' of type `ulong?'
+// Line: 10
+// Compiler options: -warnaserror -warn:2
+
+class C
+{
+       static void Foo()
+       {
+               ulong a = 100;
+               var res = a << null;
+       }
+}
diff --git a/mcs/errors/cs0458-12.cs b/mcs/errors/cs0458-12.cs
new file mode 100644 (file)
index 0000000..fbc17fa
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0458: The result of the expression is always `null' of type `int?'
+// Line: 9
+// Compiler options: -warnaserror -warn:2
+
+class C
+{
+       static void Foo()
+       {
+               var res = null >> 2;
+       }
+}
diff --git a/mcs/errors/cs0458-13.cs b/mcs/errors/cs0458-13.cs
new file mode 100644 (file)
index 0000000..7246847
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0458: The result of the expression is always `null' of type `int?'
+// Line: 9
+// Compiler options: -warnaserror -warn:2
+
+class C
+{
+       static void Foo()
+       {
+               var res = null << 2;
+       }
+}
diff --git a/mcs/errors/cs0458-2.cs b/mcs/errors/cs0458-2.cs
new file mode 100644 (file)
index 0000000..3d96384
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0458: The result of the expression is always `null' of type `int?'
+// Line: 8
+// Compiler options: -warnaserror -warn:2
+
+public class MainClass
+{
+       public static void Main()
+       {
+               object d = (int?)null as int?;
+       }
+}
+
diff --git a/mcs/errors/cs0458-3.cs b/mcs/errors/cs0458-3.cs
new file mode 100644 (file)
index 0000000..ee41ef3
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0458: The result of the expression is always `null' of type `int?' 
+// Line: 8
+// Compiler options: -warnaserror -warn:2
+
+class C
+{
+       static void Main ()
+       {
+               int? i = 2;
+               i *= null;
+       }
+}
diff --git a/mcs/errors/cs0458-4.cs b/mcs/errors/cs0458-4.cs
new file mode 100644 (file)
index 0000000..37be80a
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0458: The result of the expression is always `null' of type `int?' 
+// Line: 8
+// Compiler options: -warnaserror -warn:2
+
+class C
+{
+       static void Main ()
+       {
+               ushort us = 22;
+               int? r = us << null;
+       }
+}
diff --git a/mcs/errors/cs0458-5.cs b/mcs/errors/cs0458-5.cs
new file mode 100644 (file)
index 0000000..9f2251d
--- /dev/null
@@ -0,0 +1,17 @@
+// CS0458: The result of the expression is always `null' of type `E?'
+// Line: 15
+// Compiler options: -warnaserror -warn:2
+
+enum E
+{
+       V
+}
+
+public class C
+{
+       public static void Main ()
+       {
+               E e = E.V;
+               object o = e + null;
+       }
+}
diff --git a/mcs/errors/cs0458-6.cs b/mcs/errors/cs0458-6.cs
new file mode 100644 (file)
index 0000000..34556b5
--- /dev/null
@@ -0,0 +1,17 @@
+// CS0458: The result of the expression is always `null' of type `int?'
+// Line: 15
+// Compiler options: -warnaserror -warn:2
+
+enum E
+{
+       V
+}
+
+public class C
+{
+       public static void Main ()
+       {
+               E e = E.V;
+               object o = null - e;
+       }
+}
diff --git a/mcs/errors/cs0458-7.cs b/mcs/errors/cs0458-7.cs
new file mode 100644 (file)
index 0000000..0935e36
--- /dev/null
@@ -0,0 +1,19 @@
+// CS0472: The result of the expression is always `null' of type `MyEnum?'
+// Line: 17
+// Compiler options: -warnaserror -warn:2
+
+using System;
+
+enum MyEnum
+{
+       Value_1
+}
+
+class C
+{
+       public static void Main ()
+       {
+               var d = MyEnum.Value_1;
+               var x = d & null;
+       }
+}
diff --git a/mcs/errors/cs0458-8.cs b/mcs/errors/cs0458-8.cs
new file mode 100644 (file)
index 0000000..e945f5e
--- /dev/null
@@ -0,0 +1,17 @@
+// CS0458: The result of the expression is always `null' of type `E?'
+// Line: 15
+// Compiler options: -warnaserror -warn:2
+
+enum E
+{
+       V
+}
+
+public class C
+{
+       public static void Main ()
+       {
+               E e = E.V;
+               object o = null + e;
+       }
+}
diff --git a/mcs/errors/cs0458-9.cs b/mcs/errors/cs0458-9.cs
new file mode 100644 (file)
index 0000000..1e77f7c
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0458: The result of the expression is always `null' of type `int?'
+// Line: 9
+// Compiler options: -warnaserror -warn:2
+
+public class C
+{
+       public static void Main ()
+       {
+               b = (null & 0) != null;
+       }
+}
diff --git a/mcs/errors/cs0458.cs b/mcs/errors/cs0458.cs
new file mode 100644 (file)
index 0000000..d504a58
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0458: The result of the expression is always `null' of type `bool?' 
+// Line: 8
+// Compiler options: -warnaserror -warn:2
+
+class C
+{
+       static void Foo()
+       {
+               bool? b = null as bool?;
+       }
+}
diff --git a/mcs/errors/cs0460-2.cs b/mcs/errors/cs0460-2.cs
new file mode 100644 (file)
index 0000000..cd93d2b
--- /dev/null
@@ -0,0 +1,14 @@
+// CS0460: `C.Test<T>()': Cannot specify constraints for overrides and explicit interface implementation methods
+// Line: 11
+
+abstract class A
+{
+       protected abstract int Test<T>() where T : class;
+}
+
+class C : A
+{
+       protected override int Test<T>() where T : new()
+       {
+       }
+}
diff --git a/mcs/errors/cs0460.cs b/mcs/errors/cs0460.cs
new file mode 100644 (file)
index 0000000..8b60dbf
--- /dev/null
@@ -0,0 +1,14 @@
+// CS0460: `C.I.Test<C>()': Cannot specify constraints for overrides and explicit interface implementation methods
+// Line: 11
+
+interface I
+{
+       void Test<T>() where T : new ();
+}
+
+class C : I
+{
+       void I.Test<C>() where C : class
+       {
+       }
+}
diff --git a/mcs/errors/cs0464-2.cs b/mcs/errors/cs0464-2.cs
new file mode 100644 (file)
index 0000000..4009b38
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0464: The result of comparing type `int?' with null is always `false'
+// Line: 9
+// Compiler options: -warnaserror -warn:2
+
+public class X
+{
+       public static bool Compute (int? x)
+       {
+               return x >= null;
+       }
+}
diff --git a/mcs/errors/cs0464-3.cs b/mcs/errors/cs0464-3.cs
new file mode 100644 (file)
index 0000000..5c4632b
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0464: The result of comparing type `int?' with null is always `false'
+// Line: 9
+// Compiler options: -warnaserror -warn:2
+
+public class X
+{
+       public static bool Compute ()
+       {
+               return null >= null;
+       }
+}
diff --git a/mcs/errors/cs0464.cs b/mcs/errors/cs0464.cs
new file mode 100644 (file)
index 0000000..b6ae396
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0464: The result of comparing type `int' with null is always `false'
+// Line: 9
+// Compiler options: -warnaserror -warn:2
+
+public class X
+{
+       public static bool Compute (int x)
+       {
+               return x < null;
+       }
+}
diff --git a/mcs/errors/cs0472-2.cs b/mcs/errors/cs0472-2.cs
new file mode 100644 (file)
index 0000000..22f70e5
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0472: The result of comparing value type `int' with null is `false'
+// Line: 8
+// Compiler options: -warnaserror -warn:2
+
+public class X {
+       public static bool Compute (int x)
+       {
+               return x == null;
+       }
+}
diff --git a/mcs/errors/cs0472-3.cs b/mcs/errors/cs0472-3.cs
new file mode 100644 (file)
index 0000000..71f146c
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0472: The result of comparing value type `int' with null is `true'
+// Line: 9
+// Compiler options: -warnaserror -warn:2
+
+public class X
+{
+       public static void Compute (int x)
+       {
+               if (true && x != null)
+                       return;
+       }
+}
diff --git a/mcs/errors/cs0472-4.cs b/mcs/errors/cs0472-4.cs
new file mode 100644 (file)
index 0000000..22f9435
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0472: The result of comparing value type `int' with null is `false'
+// Line: 9
+// Compiler options: -warnaserror -warn:2
+
+class C
+{
+       public static void Main ()
+       {
+               System.Console.WriteLine(5 == (long?)null);
+       }
+}
diff --git a/mcs/errors/cs0472.cs b/mcs/errors/cs0472.cs
new file mode 100644 (file)
index 0000000..f76a1bc
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0472: The result of comparing value type `int' with null is `true'
+// Line: 8
+// Compiler options: -warnaserror -warn:2
+
+public class X {
+       public static bool Compute (int x)
+       {
+               return x != null;
+       }
+}
diff --git a/mcs/errors/cs0501-4.cs b/mcs/errors/cs0501-4.cs
new file mode 100644 (file)
index 0000000..0cd885c
--- /dev/null
@@ -0,0 +1,7 @@
+// CS0501: `X.Mine.get' must have a body because it is not marked abstract, extern, or partial
+// Line: 6
+
+class X
+{
+       public int Mine { get; set {} }
+}
diff --git a/mcs/errors/cs0508-2.cs b/mcs/errors/cs0508-2.cs
new file mode 100644 (file)
index 0000000..f963ccf
--- /dev/null
@@ -0,0 +1,15 @@
+// CS0508: `A<T>.B.getT()': return type must be `A<T>.B' to match overridden member `A<A<T>.B>.getT()'
+// Line: 10
+
+abstract class A<T>
+{
+       public abstract T getT ();
+
+       public class B : A<B>
+       {
+               public override B getT ()
+               {
+                       throw new System.Exception ("The method or operation is not implemented.");
+               }
+       }
+}
diff --git a/mcs/errors/cs0508-3.cs b/mcs/errors/cs0508-3.cs
new file mode 100644 (file)
index 0000000..b30e7b7
--- /dev/null
@@ -0,0 +1,15 @@
+// CS0508: `A<T>.B<H>.Test()': return type must be `A<T>.B<H>' to match overridden member `A<A<T>.B<H>>.Test()'
+// Line: 10
+
+abstract class A<T>
+{
+       public abstract T Test ();
+
+       public class B<H> : A<B<H>>
+       {
+               public override B<H> Test ()
+               {
+                       return this;
+               }
+       }
+}
diff --git a/mcs/errors/cs0508-4.cs b/mcs/errors/cs0508-4.cs
new file mode 100644 (file)
index 0000000..9a15529
--- /dev/null
@@ -0,0 +1,15 @@
+// CS0508: `A<T>.B.getT()': return type must be `A<T>.B' to match overridden member `A<A<T>.B>.getT()'
+// Line: 10
+
+abstract class A<T>
+{
+       public abstract T getT ();
+
+       public class B : A<B>
+       {
+               public override B getT ()
+               {
+                       return default (B);
+               }
+       }
+}
diff --git a/mcs/errors/cs0515-2.cs b/mcs/errors/cs0515-2.cs
new file mode 100644 (file)
index 0000000..c45a9ae
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0515: `N.G<T>.G()': static constructor cannot have an access modifier
+// Line: 7
+
+namespace N
+{
+       class G<T> {
+               public static G ()
+               {
+               }
+       }
+}
diff --git a/mcs/errors/cs0523-2.cs b/mcs/errors/cs0523-2.cs
new file mode 100644 (file)
index 0000000..e5605e4
--- /dev/null
@@ -0,0 +1,7 @@
+// CS0523: Struct member `A.a' of type `A?' causes a cycle in the struct layout
+// Line: 6
+
+struct A
+{
+       static A? a;
+}
diff --git a/mcs/errors/cs0523-3.cs b/mcs/errors/cs0523-3.cs
new file mode 100644 (file)
index 0000000..1ee8ecc
--- /dev/null
@@ -0,0 +1,7 @@
+// CS0523: Struct member `S<T>.s' of type `S<T[]>' causes a cycle in the struct layout
+// Line: 6
+
+struct S<T>
+{
+       static S<T[]> s;
+}
diff --git a/mcs/errors/cs0523-4.cs b/mcs/errors/cs0523-4.cs
new file mode 100644 (file)
index 0000000..0ee0fce
--- /dev/null
@@ -0,0 +1,7 @@
+// CS0523: Struct member `S<T>.s' of type `S<int>' causes a cycle in the struct layout
+// Line: 6
+
+struct S<T>
+{
+       S<int> s;
+}
diff --git a/mcs/errors/cs0523-5.cs b/mcs/errors/cs0523-5.cs
new file mode 100644 (file)
index 0000000..63ca1e8
--- /dev/null
@@ -0,0 +1,15 @@
+// CS0523: Struct member `Foo.Handle' of type `Handle<Foo>' causes a cycle in the struct layout
+// Line: 13
+// NOTE: Not detected by csc only by runtime loader
+
+using System;
+
+struct Handle<T>
+{
+       public IntPtr Value;
+}
+
+struct Foo
+{
+       public readonly Handle<Foo> Handle;
+}
diff --git a/mcs/errors/cs0523-6.cs b/mcs/errors/cs0523-6.cs
new file mode 100644 (file)
index 0000000..67412c8
--- /dev/null
@@ -0,0 +1,7 @@
+// CS0523: Struct member `A<T>.a' of type `A<T>' causes a cycle in the struct layout
+// Line: 6
+
+struct A<T>
+{
+       A<T> a;
+}
diff --git a/mcs/errors/cs0555-2.cs b/mcs/errors/cs0555-2.cs
new file mode 100644 (file)
index 0000000..b82722b
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0555: User-defined operator cannot take an object of the enclosing type and convert to an object of the enclosing type
+// Line: 6
+
+struct S
+{
+       public static implicit operator S (S? s)
+       {
+               return new S ();
+       }
+}
diff --git a/mcs/errors/cs0612-4.cs b/mcs/errors/cs0612-4.cs
new file mode 100644 (file)
index 0000000..6c7a42a
--- /dev/null
@@ -0,0 +1,26 @@
+// CS0612: `O1' is obsolete
+// Line: 23
+// Compiler options: -warnaserror
+
+using System;
+
+[Obsolete]
+class O1
+{
+}
+
+#pragma warning disable 612
+class A
+{
+       public virtual void Foo<T> () where T : O1
+       {
+       }
+}
+#pragma warning restore 612
+
+class B : A
+{
+       public override void Foo<U> ()
+       {
+       }
+}
diff --git a/mcs/errors/cs0612-5.cs b/mcs/errors/cs0612-5.cs
new file mode 100644 (file)
index 0000000..9098776
--- /dev/null
@@ -0,0 +1,26 @@
+// CS0612: `O2' is obsolete
+// Line: 23
+// Compiler options: -warnaserror
+
+using System;
+
+[Obsolete]
+interface O2
+{
+}
+
+#pragma warning disable 612
+class A
+{
+       public virtual void Foo<T> () where T : O2
+       {
+       }
+}
+#pragma warning restore 612
+
+class B : A
+{
+       public override void Foo<U> ()
+       {
+       }
+}
diff --git a/mcs/errors/cs0619-55.cs b/mcs/errors/cs0619-55.cs
new file mode 100644 (file)
index 0000000..c4abd6a
--- /dev/null
@@ -0,0 +1,17 @@
+// CS0619: `ObsoleteInterface<T>' is obsolete: `'
+// Line: 15
+
+using System;
+
+[Obsolete("", true)]
+interface ObsoleteInterface<T>
+{
+}
+
+class C
+{
+       public static void Main ()
+       {
+               var v = typeof (ObsoleteInterface<>);
+       }
+}
diff --git a/mcs/errors/cs0633-5.cs b/mcs/errors/cs0633-5.cs
new file mode 100644 (file)
index 0000000..c4bd468
--- /dev/null
@@ -0,0 +1,7 @@
+// gcs0633-4.cs: The argument to the `System.Diagnostics.ConditionalAttribute' attribute must be a valid identifier
+// Line: 6
+
+using System.Diagnostics;
+
+[Conditional("DEBUG+2")]
+public class Test: System.Attribute {}
diff --git a/mcs/errors/cs0663-6.cs b/mcs/errors/cs0663-6.cs
new file mode 100644 (file)
index 0000000..44b3cc3
--- /dev/null
@@ -0,0 +1,14 @@
+// CS0633: Overloaded method `C.Foo(string)' cannot differ on use of parameter modifiers only
+// Line: 11
+
+
+public static class C
+{
+       static  void Foo (this string eType)
+       {
+       }
+       
+       static  void Foo (string value)
+       {
+       }
+}
diff --git a/mcs/errors/cs0677-3.cs b/mcs/errors/cs0677-3.cs
new file mode 100644 (file)
index 0000000..2949f2a
--- /dev/null
@@ -0,0 +1,7 @@
+// CS0677: `C<T>.t': A volatile field cannot be of the type `T'
+// Line: 8
+
+public class C<T>
+{
+       volatile T t;
+}
diff --git a/mcs/errors/cs0677-4.cs b/mcs/errors/cs0677-4.cs
new file mode 100644 (file)
index 0000000..190ab80
--- /dev/null
@@ -0,0 +1,7 @@
+// CS0677: `C<T>.t': A volatile field cannot be of the type `T'
+// Line: 8
+
+public class C<T>  where T : struct
+{
+       volatile T t;
+}
diff --git a/mcs/errors/cs0689.cs b/mcs/errors/cs0689.cs
new file mode 100644 (file)
index 0000000..0ae5030
--- /dev/null
@@ -0,0 +1,4 @@
+// CS0689: `Stack<T>': Cannot derive from type parameter `T'
+// Line: 4
+
+class Stack<T> : T { }
diff --git a/mcs/errors/cs0692.cs b/mcs/errors/cs0692.cs
new file mode 100644 (file)
index 0000000..805aa5d
--- /dev/null
@@ -0,0 +1,5 @@
+// gcs0692.cs: Duplicate type parameter `A'
+// Line: 4
+
+class X <A,A> {
+}
diff --git a/mcs/errors/cs0693-2.cs b/mcs/errors/cs0693-2.cs
new file mode 100644 (file)
index 0000000..7ebe4ab
--- /dev/null
@@ -0,0 +1,13 @@
+// CS0693: Type parameter `T' has the same name as the type parameter from outer type `R<U>.A<T>'
+// Line: 9
+// Compiler options: -warnaserror -warn:3
+
+class R<U>
+{
+       class A<T>
+       {
+               struct I<T>
+               {
+               }
+       }
+}
diff --git a/mcs/errors/cs0693-3.cs b/mcs/errors/cs0693-3.cs
new file mode 100644 (file)
index 0000000..c24d387
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0693: Type parameter `T' has the same name as the type parameter from outer type `C<T>'
+// Line: 7
+// Compiler options: -warnaserror -warn:3
+
+class C<T>
+{
+       void Foo<T> (T t)
+       {
+       }
+}
diff --git a/mcs/errors/cs0693.cs b/mcs/errors/cs0693.cs
new file mode 100644 (file)
index 0000000..d2f6a67
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0693: Type parameter `T' has the same name as the type parameter from outer type `A<T>'
+// Line: 7
+// Compiler options: -warnaserror -warn:3
+
+class A<T>
+{
+    interface I<T>
+    {
+    }
+}
\ No newline at end of file
diff --git a/mcs/errors/cs0694.cs b/mcs/errors/cs0694.cs
new file mode 100644 (file)
index 0000000..7751c21
--- /dev/null
@@ -0,0 +1,12 @@
+// gcs0694.cs: Type parameter `Y' has same name as containing type, or method
+// Line: 4
+
+class Y <Y> {
+}
+
+class Test
+{
+       static void Main ()
+       { }
+}
+
diff --git a/mcs/errors/cs0695-2.cs b/mcs/errors/cs0695-2.cs
new file mode 100644 (file)
index 0000000..791967c
--- /dev/null
@@ -0,0 +1,8 @@
+// CS0695: `A<X,Y,Z>' cannot implement both `I<X>' and `I<A<Y,Y,Z>>' because they may unify for some type parameter substitutions
+// Line: 7
+
+interface I<X>
+{ }
+
+class A<X,Y,Z> : I<X>, I<A<Y,Y,Z>>
+{ }
diff --git a/mcs/errors/cs0695-3.cs b/mcs/errors/cs0695-3.cs
new file mode 100644 (file)
index 0000000..d352d99
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0695: `C<X,Y>' cannot implement both `I<X>' and `I<K<Y>>' because they may unify for some type parameter substitutions
+// Line: 10
+
+interface I<X>
+{ }
+
+interface K<X>
+{ }
+
+class C<X,Y> : I<X>, I<K<Y>>
+{ }
diff --git a/mcs/errors/cs0695-4.cs b/mcs/errors/cs0695-4.cs
new file mode 100644 (file)
index 0000000..fdefb0e
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0695: `C<X,Y>' cannot implement both `I<K<Y>>' and `I<X>' because they may unify for some type parameter substitutions
+// Line: 10
+
+interface I<X>
+{ }
+
+interface K<X>
+{ }
+
+class C<X,Y> : I<K<Y>>, I<X>
+{ }
diff --git a/mcs/errors/cs0695.cs b/mcs/errors/cs0695.cs
new file mode 100644 (file)
index 0000000..d181402
--- /dev/null
@@ -0,0 +1,8 @@
+// CS0695: `A<X,Y>' cannot implement both `I<X>' and `I<Y>' because they may unify for some type parameter substitutions
+// Line: 7
+
+interface I<X>
+{ }
+
+class A<X,Y> : I<X>, I<Y>
+{ }
diff --git a/mcs/errors/cs0698.cs b/mcs/errors/cs0698.cs
new file mode 100644 (file)
index 0000000..c640be7
--- /dev/null
@@ -0,0 +1,13 @@
+// cs0698.cs: A generic type cannot derive from `System.Attribute' because it is an attribute class
+// Line: 6
+
+using System;
+
+class Stack<T> : Attribute
+{ }
+
+class X
+{
+       static void Main ()
+       { }
+}
diff --git a/mcs/errors/cs0699-2.cs b/mcs/errors/cs0699-2.cs
new file mode 100644 (file)
index 0000000..136769e
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0699: `I<T>': A constraint references nonexistent type parameter `U'
+// Line: 8
+
+partial interface I<T>
+{
+}
+
+partial interface I<T> where U : class
+{
+}
diff --git a/mcs/errors/cs0699.cs b/mcs/errors/cs0699.cs
new file mode 100644 (file)
index 0000000..93c45ca
--- /dev/null
@@ -0,0 +1,7 @@
+// CS0699: `Test<T>()': A constraint references nonexistent type parameter `U'
+// Line: 6
+
+interface I
+{
+       void Test<T>() where U : class;
+}
diff --git a/mcs/errors/cs0701-2.cs b/mcs/errors/cs0701-2.cs
new file mode 100644 (file)
index 0000000..4075c2e
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0701: `S' is not a valid constraint. A constraint must be an interface, a non-sealed class or a type parameter
+// Line: 8
+
+struct S
+{
+}
+
+class Foo<T> where T : S
+{
+}
diff --git a/mcs/errors/cs0701-3.cs b/mcs/errors/cs0701-3.cs
new file mode 100644 (file)
index 0000000..73e7e7f
--- /dev/null
@@ -0,0 +1,6 @@
+// CS0701: `string' is not a valid constraint. A constraint must be an interface, a non-sealed class or a type parameter
+// Line: 4
+
+class Foo<T> where T : string
+{
+}
diff --git a/mcs/errors/cs0701.cs b/mcs/errors/cs0701.cs
new file mode 100644 (file)
index 0000000..f7c3fcb
--- /dev/null
@@ -0,0 +1,8 @@
+// CS0701: `A' is not a valid constraint. A constraint must be an interface, a non-sealed class or a type parameter
+// Line: 6
+
+sealed class A { }
+
+class Foo<T> where T : A
+{
+}
diff --git a/mcs/errors/cs0702-2.cs b/mcs/errors/cs0702-2.cs
new file mode 100644 (file)
index 0000000..81d68f3
--- /dev/null
@@ -0,0 +1,9 @@
+// CS0702: A constraint cannot be special class `object'
+// Line: 8
+
+using System;
+
+class Foo<T>
+       where T : object
+{
+}
diff --git a/mcs/errors/cs0702-3.cs b/mcs/errors/cs0702-3.cs
new file mode 100644 (file)
index 0000000..3bba715
--- /dev/null
@@ -0,0 +1,8 @@
+// CS0702: A constraint cannot be special class `System.MulticastDelegate'
+// Line: 6
+
+using System;
+
+class C<T> where T : MulticastDelegate
+{
+}
diff --git a/mcs/errors/cs0702.cs b/mcs/errors/cs0702.cs
new file mode 100644 (file)
index 0000000..409b41a
--- /dev/null
@@ -0,0 +1,9 @@
+// CS0702: A constraint cannot be special class `System.Array'
+// Line: 8
+
+using System;
+
+class Foo<T>
+       where T : Array
+{
+}
diff --git a/mcs/errors/cs0703-2.cs b/mcs/errors/cs0703-2.cs
new file mode 100644 (file)
index 0000000..e07b673
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0703: Inconsistent accessibility: constraint type `A.B<T>.C' is less accessible than `A.B<T>'
+// Line: 6
+
+public class A
+{
+       protected internal class B<T> where T : B<T>.C
+       {
+               internal class C
+               {
+               }
+       }
+}
diff --git a/mcs/errors/cs0703-3.cs b/mcs/errors/cs0703-3.cs
new file mode 100644 (file)
index 0000000..72e78e1
--- /dev/null
@@ -0,0 +1,13 @@
+// CS0703: Inconsistent accessibility: constraint type `C.I' is less accessible than `C.Foo<T>()'
+// Line: 10
+
+public class C
+{
+       interface I
+       {
+       }
+
+       public void Foo<T>()  where T : I
+       {
+       }
+}
diff --git a/mcs/errors/cs0703.cs b/mcs/errors/cs0703.cs
new file mode 100644 (file)
index 0000000..38ddadf
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0703: Inconsistent accessibility: constraint type `I' is less accessible than `C<T>'
+// Line: 8
+
+interface I
+{
+}
+
+public class C<T>  where T : I
+{
+}
\ No newline at end of file
diff --git a/mcs/errors/cs0704.cs b/mcs/errors/cs0704.cs
new file mode 100644 (file)
index 0000000..58ee413
--- /dev/null
@@ -0,0 +1,7 @@
+// CS0704: A nested type cannot be specified through a type parameter `T' 
+// Line: 6
+
+class G<T>
+{
+       T.A x;
+}
diff --git a/mcs/errors/cs0706.cs b/mcs/errors/cs0706.cs
new file mode 100644 (file)
index 0000000..7ed5719
--- /dev/null
@@ -0,0 +1,6 @@
+// CS0706: Invalid constraint type `string[]'
+// Line: 4
+
+public class C<T>  where T : string[]
+{
+}
diff --git a/mcs/errors/cs0717.cs b/mcs/errors/cs0717.cs
new file mode 100644 (file)
index 0000000..b7d06d1
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0717: `S' is not a valid constraint. Static classes cannot be used as constraints
+// Line: 8
+
+static class S
+{
+}
+
+class Foo<T> where T : S
+{
+}
diff --git a/mcs/errors/cs0718.cs b/mcs/errors/cs0718.cs
new file mode 100644 (file)
index 0000000..828b251
--- /dev/null
@@ -0,0 +1,15 @@
+// CS0718: `S': static classes cannot be used as generic arguments
+// Line: 14
+
+static class S
+{
+}
+
+class C<T>
+{
+}
+
+class Test
+{
+       C<S> foo;
+}
\ No newline at end of file
diff --git a/mcs/errors/cs0721-2.cs b/mcs/errors/cs0721-2.cs
new file mode 100644 (file)
index 0000000..73f31fc
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0721: `C': static types cannot be used as parameters
+// Line: 6
+
+
+static class C
+{
+       static void Foo (this C c)
+       {
+       }
+}
diff --git a/mcs/errors/cs0723-3.cs b/mcs/errors/cs0723-3.cs
new file mode 100644 (file)
index 0000000..df218c9
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0723: `C<T>.t': cannot declare variables of static types
+// Line: 10
+
+static class S<T>
+{
+}
+
+public class C<T>
+{
+       S<T> t;
+}
\ No newline at end of file
diff --git a/mcs/errors/cs0729.cs b/mcs/errors/cs0729.cs
new file mode 100644 (file)
index 0000000..73a1f10
--- /dev/null
@@ -0,0 +1,11 @@
+// gcs0729.cs: Cannot forward type `C' because it is defined in this assembly
+// Line: 7
+
+using System;
+using System.Runtime.CompilerServices;
+
+[assembly: TypeForwardedTo(typeof (C))]
+
+class C
+{
+}
\ No newline at end of file
diff --git a/mcs/errors/cs0730.cs b/mcs/errors/cs0730.cs
new file mode 100644 (file)
index 0000000..54b3ada
--- /dev/null
@@ -0,0 +1,8 @@
+// CS0730: Cannot forward type `C.CC' because it is a nested type
+// Line: 8
+// Compiler options: -r:CS0730-lib.dll
+
+using System;
+using System.Runtime.CompilerServices;
+
+[assembly: TypeForwardedTo(typeof (C.CC))]
diff --git a/mcs/errors/cs0735-2.cs b/mcs/errors/cs0735-2.cs
new file mode 100644 (file)
index 0000000..6d3a77a
--- /dev/null
@@ -0,0 +1,7 @@
+// gcs0735-2.cs: Invalid type specified as an argument for TypeForwardedTo attribute
+// Line: 7
+
+using System;
+using System.Runtime.CompilerServices;
+
+[assembly: TypeForwardedTo(typeof (int[]))]
\ No newline at end of file
diff --git a/mcs/errors/cs0735.cs b/mcs/errors/cs0735.cs
new file mode 100644 (file)
index 0000000..103f62c
--- /dev/null
@@ -0,0 +1,7 @@
+// gcs0735.cs: Invalid type specified as an argument for TypeForwardedTo attribute
+// Line: 7
+
+using System;
+using System.Runtime.CompilerServices;
+
+[assembly: TypeForwardedTo((Type)null)]
\ No newline at end of file
diff --git a/mcs/errors/cs0739.cs b/mcs/errors/cs0739.cs
new file mode 100644 (file)
index 0000000..f282645
--- /dev/null
@@ -0,0 +1,8 @@
+// CS0739: A duplicate type forward of type `int'
+// Line: 8
+
+using System;
+using System.Runtime.CompilerServices;
+
+[assembly: TypeForwardedTo(typeof (int))]
+[assembly: TypeForwardedTo(typeof (int))]
diff --git a/mcs/errors/cs0746.cs b/mcs/errors/cs0746.cs
new file mode 100644 (file)
index 0000000..bb60df2
--- /dev/null
@@ -0,0 +1,13 @@
+// CS0746: Invalid anonymous type member declarator. Anonymous type members must be a member assignment, simple name or member access expression
+// Line: 16
+
+
+using System;
+
+public class Test
+{
+       static void Main ()
+       {
+               var c = new { new Test () };
+       }
+}
diff --git a/mcs/errors/cs0747-2.cs b/mcs/errors/cs0747-2.cs
new file mode 100644 (file)
index 0000000..0feae9d
--- /dev/null
@@ -0,0 +1,18 @@
+// CS0747: Inconsistent `object initializer' member declaration
+// Line: 16
+
+
+using System;
+using System.Collections;
+
+class Data
+{
+}
+
+public class Test
+{
+       static void Main ()
+       {
+               var c = new ArrayList { Count = 1, 1 };
+       }
+}
diff --git a/mcs/errors/cs0747.cs b/mcs/errors/cs0747.cs
new file mode 100644 (file)
index 0000000..f5085d3
--- /dev/null
@@ -0,0 +1,18 @@
+// CS0747: Inconsistent `collection initializer' member declaration
+// Line: 16
+
+
+using System;
+using System.Collections;
+
+class Data
+{
+}
+
+public class Test
+{
+       static void Main ()
+       {
+               var c = new ArrayList { 1, Count = 1 };
+       }
+}
diff --git a/mcs/errors/cs0748.cs b/mcs/errors/cs0748.cs
new file mode 100644 (file)
index 0000000..e7db9d2
--- /dev/null
@@ -0,0 +1,13 @@
+// CS0748: All lambda parameters must be typed either explicitly or implicitly
+// Line: 11
+
+
+public class C
+{
+       delegate void E ();
+       
+       public static void Main ()
+       {
+               e = (ref int E, v) => {};
+       }
+}
diff --git a/mcs/errors/cs0755.cs b/mcs/errors/cs0755.cs
new file mode 100644 (file)
index 0000000..66c48f3
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0755: A partial method declaration and partial method implementation must be both an extension method or neither
+// Line: 11
+
+
+public static partial class C
+{
+       static partial void Foo (this string eType)
+       {
+       }
+       
+       static partial void Foo (string value);
+}
diff --git a/mcs/errors/cs0818.cs b/mcs/errors/cs0818.cs
new file mode 100644 (file)
index 0000000..607373f
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0818: An implicitly typed local variable declarator must include an initializer
+// Line: 9
+
+
+public class Test
+{
+       static void Main ()
+       {
+               var v;
+       }
+}
+
diff --git a/mcs/errors/cs0820.cs b/mcs/errors/cs0820.cs
new file mode 100644 (file)
index 0000000..c825cb3
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0820: An implicitly typed local variable declarator cannot use an array initializer
+// Line: 9
+
+
+public class Test
+{
+       static void Main ()
+       {
+               var v = { 0 };
+       }
+}
+
diff --git a/mcs/errors/cs0821.cs b/mcs/errors/cs0821.cs
new file mode 100644 (file)
index 0000000..ba4c381
--- /dev/null
@@ -0,0 +1,24 @@
+// CS0821: A fixed statement cannot use an implicitly typed local variable
+// Line: 9
+// Compiler options: -unsafe
+
+public class Point
+{
+       public int X;
+       public int Y;
+}
+
+public class Test
+{
+       unsafe static void Main ()
+       {
+               Point p = new Point ();
+               p.X = 42;
+               p.Y = 16;
+               
+               fixed (var x = &p.X)
+               {
+               }
+       }
+}
+
diff --git a/mcs/errors/cs0822.cs b/mcs/errors/cs0822.cs
new file mode 100644 (file)
index 0000000..023ac1c
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0822: An implicitly typed local variable cannot be a constant
+// Line: 9
+
+
+public class Test
+{
+       static void Main ()
+       {
+               const var v = 0;
+       }
+}
+
diff --git a/mcs/errors/cs0825-2.cs b/mcs/errors/cs0825-2.cs
new file mode 100644 (file)
index 0000000..f9c6128
--- /dev/null
@@ -0,0 +1,9 @@
+// CS0825: The contextual keyword `var' may only appear within a local variable declaration
+// Line: 9
+
+
+public class Test
+{
+       event var v;
+}
+
diff --git a/mcs/errors/cs0825-3.cs b/mcs/errors/cs0825-3.cs
new file mode 100644 (file)
index 0000000..5177d4f
--- /dev/null
@@ -0,0 +1,9 @@
+// CS0825: The contextual keyword `var' may only appear within a local variable declaration
+// Line: 9
+
+
+public class Test
+{
+       const var v = 9;
+}
+
diff --git a/mcs/errors/cs0825.cs b/mcs/errors/cs0825.cs
new file mode 100644 (file)
index 0000000..3ba1d72
--- /dev/null
@@ -0,0 +1,9 @@
+// CS0825: The contextual keyword `var' may only appear within a local variable declaration
+// Line: 9
+
+
+public class Test
+{
+       var v = "a";
+}
+
diff --git a/mcs/errors/cs0826-2.cs b/mcs/errors/cs0826-2.cs
new file mode 100644 (file)
index 0000000..52562a3
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0826: The type of an implicitly typed array cannot be inferred from the initializer. Try specifying array type explicitly
+// Line: 9
+
+
+public class Test
+{
+       static void Main ()
+       {
+               var e = new[] { null };
+       }
+}
+
diff --git a/mcs/errors/cs0826-3.cs b/mcs/errors/cs0826-3.cs
new file mode 100644 (file)
index 0000000..bf07fdc
--- /dev/null
@@ -0,0 +1,16 @@
+// CS0826: The type of an implicitly typed array cannot be inferred from the initializer. Try specifying array type explicitly
+// Line: 13
+
+
+public class Test
+{
+       static void TestMethod ()
+       {
+       }
+       
+       static void Main ()
+       {
+               var e = new[] { TestMethod () };
+       }
+}
+
diff --git a/mcs/errors/cs0826-4.cs b/mcs/errors/cs0826-4.cs
new file mode 100644 (file)
index 0000000..f9461d0
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0826: The type of an implicitly typed array cannot be inferred from the initializer. Try specifying array type explicitly
+// Line: 9
+
+
+public class Test
+{
+       static void Main ()
+       {
+               var e = new[,,,] { 1, 2 }; 
+       }
+}
+
diff --git a/mcs/errors/cs0826-5.cs b/mcs/errors/cs0826-5.cs
new file mode 100644 (file)
index 0000000..caf1154
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0826: The type of an implicitly typed array cannot be inferred from the initializer. Try specifying array type explicitly
+// Line: 9
+
+
+public class Test
+{
+       static void Main ()
+       {
+               var e = new[] { delegate {} };
+       }
+}
+
diff --git a/mcs/errors/cs0826-6.cs b/mcs/errors/cs0826-6.cs
new file mode 100644 (file)
index 0000000..16c50b2
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0826: The type of an implicitly typed array cannot be inferred from the initializer. Try specifying array type explicitly
+// Line: 8
+
+public class Test
+{
+       static void Main ()
+       {
+               var e = new[] { 1, "a" };
+       }
+}
+
diff --git a/mcs/errors/cs0826-7.cs b/mcs/errors/cs0826-7.cs
new file mode 100644 (file)
index 0000000..bd74191
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0826: The type of an implicitly typed array cannot be inferred from the initializer. Try specifying array type explicitly
+// Line: 8
+
+public class Test
+{
+       static void Main ()
+       {
+               var e = new[] { 1, null };
+       }
+}
+
diff --git a/mcs/errors/cs0826-8.cs b/mcs/errors/cs0826-8.cs
new file mode 100644 (file)
index 0000000..1beedda
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0826: The type of an implicitly typed array cannot be inferred from the initializer. Try specifying array type explicitly
+// Line: 8
+
+public class Test
+{
+       static void Main ()
+       {
+               var e = new[] { Main };
+       }
+}
+
diff --git a/mcs/errors/cs0826.cs b/mcs/errors/cs0826.cs
new file mode 100644 (file)
index 0000000..00c07e2
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0826: The type of an implicitly typed array cannot be inferred from the initializer. Try specifying array type explicitly
+// Line: 9
+
+
+public class Test
+{
+       static void Main ()
+       {
+               var e = new[] { };
+       }
+}
+
diff --git a/mcs/errors/cs0828-2.cs b/mcs/errors/cs0828-2.cs
new file mode 100644 (file)
index 0000000..3c8db77
--- /dev/null
@@ -0,0 +1,16 @@
+// CS0828: An anonymous type property `Value' cannot be initialized with `int*'
+// Line: 9
+// Compiler options: -unsafe
+
+public unsafe class Test
+{
+       static int* Error ()
+       {
+               return (int*)0;
+       }
+       
+       static void Main ()
+       {
+               var v = new { Value = Error () };
+       }
+}
diff --git a/mcs/errors/cs0828-3.cs b/mcs/errors/cs0828-3.cs
new file mode 100644 (file)
index 0000000..018ff92
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0828: An anonymous type property `Value' cannot be initialized with `anonymous method'
+// Line: 9
+
+
+public class Test
+{
+       static void Main ()
+       {
+               var v = new { Value = delegate () { return 1; } };
+       }
+}
diff --git a/mcs/errors/cs0828-4.cs b/mcs/errors/cs0828-4.cs
new file mode 100644 (file)
index 0000000..f2a8ffe
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0828: An anonymous type property `Value' cannot be initialized with `lambda expression'
+// Line: 9
+
+
+public class Test
+{
+       static void Main ()
+       {
+               var v = new { Value = i => 1 };
+       }
+}
diff --git a/mcs/errors/cs0828-5.cs b/mcs/errors/cs0828-5.cs
new file mode 100644 (file)
index 0000000..70bb786
--- /dev/null
@@ -0,0 +1,15 @@
+// CS0828: An anonymous type property `Value' cannot be initialized with `void'
+// Line: 13
+
+
+public class Test
+{
+       static void Error ()
+       {
+       }
+       
+       static void Main ()
+       {
+               var v = new { Value = Error () };
+       }
+}
diff --git a/mcs/errors/cs0828-6.cs b/mcs/errors/cs0828-6.cs
new file mode 100644 (file)
index 0000000..360c32b
--- /dev/null
@@ -0,0 +1,14 @@
+// CS0828: An anonymous type property `Value' cannot be initialized with `method group'
+// Line: 12
+
+public class Test
+{
+       static void Error ()
+       {
+       }
+       
+       static void Main ()
+       {
+               var v = new { Value = Error };
+       }
+}
diff --git a/mcs/errors/cs0828.cs b/mcs/errors/cs0828.cs
new file mode 100644 (file)
index 0000000..a555560
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0828: An anonymous type property `Value' cannot be initialized with `null'
+// Line: 9
+
+
+public class Test
+{
+       static void Main ()
+       {
+               int A = 9;
+               var v1 = new { A, Value = null };
+       }
+}
diff --git a/mcs/errors/cs0831-2.cs b/mcs/errors/cs0831-2.cs
new file mode 100644 (file)
index 0000000..ed0f351
--- /dev/null
@@ -0,0 +1,22 @@
+// CS0831:  An expression tree may not contain a base access
+// Line: 14
+
+using System;
+using System.Linq.Expressions;
+
+class B
+{
+       protected bool Core {
+               get {
+                       return true;
+               }
+       }
+}
+
+class C : B
+{
+       public void Test ()
+       {
+               Expression<Func<bool>> e = () => base.Core;
+       }
+}
diff --git a/mcs/errors/cs0831-3.cs b/mcs/errors/cs0831-3.cs
new file mode 100644 (file)
index 0000000..171ce9c
--- /dev/null
@@ -0,0 +1,22 @@
+// CS0831: An expression tree may not contain a base access
+// Line: 20
+
+using System;
+using System.Linq.Expressions;
+
+class B
+{
+       protected B this [int i] {
+               get {
+                       return null;
+               }
+       }
+}
+
+class C : B
+{
+       public void Test ()
+       {
+               Expression<Func<B>> e = () => base [8];
+       }
+}
diff --git a/mcs/errors/cs0831.cs b/mcs/errors/cs0831.cs
new file mode 100644 (file)
index 0000000..2dbb547
--- /dev/null
@@ -0,0 +1,21 @@
+// CS0831: An expression tree may not contain a base access
+// Line: 14
+
+using System;
+using System.Linq.Expressions;
+
+class B
+{
+       protected int Core ()
+       {
+               return 4;
+       }
+}
+
+class C : B
+{
+       public void Test ()
+       {
+               Expression<Func<int>> e = () => base.Core ();
+       }
+}
diff --git a/mcs/errors/cs0832-2.cs b/mcs/errors/cs0832-2.cs
new file mode 100644 (file)
index 0000000..2d04348
--- /dev/null
@@ -0,0 +1,15 @@
+// CS0832: An expression tree cannot contain an assignment operator
+// Line: 13
+
+using System;
+using System.Linq.Expressions;
+
+class C
+{
+       delegate void D (string s);
+       
+       public static void Main ()
+       {
+               Expression<D> e = (a) => a = "a";
+       }
+}
diff --git a/mcs/errors/cs0832-3.cs b/mcs/errors/cs0832-3.cs
new file mode 100644 (file)
index 0000000..0203b08
--- /dev/null
@@ -0,0 +1,13 @@
+// CS0832: An expression tree cannot contain an assignment operator
+// Line: 11
+
+using System;
+using System.Linq.Expressions;
+
+class C
+{
+       public static void Main ()
+       {
+               Expression<Func<int, int>> e = (a) => --a;
+       }
+}
diff --git a/mcs/errors/cs0832-4.cs b/mcs/errors/cs0832-4.cs
new file mode 100644 (file)
index 0000000..cf0f6ae
--- /dev/null
@@ -0,0 +1,25 @@
+// CS0832: An expression tree cannot contain an assignment operator
+// Line: 19
+
+using System;
+using System.Linq.Expressions;
+
+public delegate void EventHandler (int i, int j);
+
+public class Button
+{
+       public event EventHandler Click;
+}
+
+public class Blah
+{
+       public static void Main ()
+       {
+               Button b = new Button ();
+               Expression<Action> e = () => b.Click += new EventHandler (Button1_Click);
+       }
+
+       public static void Button1_Click (int i, int j)
+       {
+       }
+}
diff --git a/mcs/errors/cs0832.cs b/mcs/errors/cs0832.cs
new file mode 100644 (file)
index 0000000..2d04348
--- /dev/null
@@ -0,0 +1,15 @@
+// CS0832: An expression tree cannot contain an assignment operator
+// Line: 13
+
+using System;
+using System.Linq.Expressions;
+
+class C
+{
+       delegate void D (string s);
+       
+       public static void Main ()
+       {
+               Expression<D> e = (a) => a = "a";
+       }
+}
diff --git a/mcs/errors/cs0833.cs b/mcs/errors/cs0833.cs
new file mode 100644 (file)
index 0000000..e678ab4
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0833: `Value': An anonymous type cannot have multiple properties with the same name
+// Line: 9
+
+
+public class Test
+{
+       static void Main ()
+       {
+               var v1 = new { Value = 1, Value = 0 };
+       }
+}
diff --git a/mcs/errors/cs0834-2.cs b/mcs/errors/cs0834-2.cs
new file mode 100644 (file)
index 0000000..32dbd9c
--- /dev/null
@@ -0,0 +1,14 @@
+// CS0834: A lambda expression with statement body cannot be converted to an expresion tree
+// Line: 12
+
+using System.Linq.Expressions;
+
+class C
+{
+       delegate void D ();
+       
+       public void Foo ()
+       {
+               Expression<D> e = () => { };
+       }
+}
diff --git a/mcs/errors/cs0834.cs b/mcs/errors/cs0834.cs
new file mode 100644 (file)
index 0000000..7ba58a3
--- /dev/null
@@ -0,0 +1,14 @@
+// CS0834: A lambda expression with statement body cannot be converted to an expresion tree
+// Line: 12
+
+using System.Linq.Expressions;
+
+class C
+{
+       delegate bool D ();
+       
+       public void Foo ()
+       {
+               Expression<D> e = () => { return true; };
+       }
+}
diff --git a/mcs/errors/cs0835.cs b/mcs/errors/cs0835.cs
new file mode 100644 (file)
index 0000000..3fe1ac2
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0835: Cannot convert `lambda expression' to an expression tree of non-delegate type `string'
+// Line: 10
+
+using System.Linq.Expressions;
+
+class C
+{
+       public void Foo ()
+       {
+               Expression<string> e = () => "a";
+       }
+}
diff --git a/mcs/errors/cs0836.cs b/mcs/errors/cs0836.cs
new file mode 100644 (file)
index 0000000..c78a30c
--- /dev/null
@@ -0,0 +1,7 @@
+// CS0836: Anonymous types cannot be used in this expression
+// Line: 6
+
+public class C
+{
+       const object o = new { };
+}
diff --git a/mcs/errors/cs0837-2.cs b/mcs/errors/cs0837-2.cs
new file mode 100644 (file)
index 0000000..94c1f85
--- /dev/null
@@ -0,0 +1,17 @@
+// CS0837: The `as' operator cannot be applied to a lambda expression or anonymous method
+// Line: 15
+
+
+class X
+{
+       delegate void D ();
+       
+       static void Test (D d)
+       {
+       }
+       
+       static void Main ()
+       {
+               Test ((() => { }) as D);
+       }
+}
diff --git a/mcs/errors/cs0838.cs b/mcs/errors/cs0838.cs
new file mode 100644 (file)
index 0000000..7e11b71
--- /dev/null
@@ -0,0 +1,13 @@
+// CS0838: An expression tree cannot contain a multidimensional array initializer
+// Line: 11
+
+using System;
+using System.Linq.Expressions;
+
+class C
+{
+       void Foo ()
+       {
+               Expression<Func<char [,]>> e = () => new char [,] { { 'x', 'y' }, { 'a', 'b' }};
+       }
+}
diff --git a/mcs/errors/cs0840.cs b/mcs/errors/cs0840.cs
new file mode 100644 (file)
index 0000000..bc4ee41
--- /dev/null
@@ -0,0 +1,8 @@
+// CS0840: `Test.Property.get' must have a body because it is not marked abstract or extern. The property can be automatically implemented when you define both accessors
+// Line: 7
+
+
+public abstract class Test
+{
+       public string Property { get; }
+}
diff --git a/mcs/errors/cs0841-4.cs b/mcs/errors/cs0841-4.cs
new file mode 100644 (file)
index 0000000..9aa9264
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0841: A local variable `v' cannot be used before it is declared
+// Line: 9
+
+
+public class Test
+{
+       static void Main ()
+       {
+               var v = ++v;
+       }
+}
+
diff --git a/mcs/errors/cs0842.cs b/mcs/errors/cs0842.cs
new file mode 100644 (file)
index 0000000..de08d24
--- /dev/null
@@ -0,0 +1,12 @@
+// CS0842: Automatically implemented property `S.Value' cannot be used inside a type with an explicit StructLayout attribute
+// Line: 10
+
+using System.Runtime.InteropServices;
+
+[StructLayout(LayoutKind.Explicit)]
+class S
+{
+       public int Value {
+               get; set;
+       }
+}
diff --git a/mcs/errors/cs0845.cs b/mcs/errors/cs0845.cs
new file mode 100644 (file)
index 0000000..47cba43
--- /dev/null
@@ -0,0 +1,13 @@
+// CS0845: An expression tree cannot contain a coalescing operator with null left side
+// Line: 11
+
+using System;
+using System.Linq.Expressions;
+
+class C
+{
+       public static void Main ()
+       {
+               Expression<Func<bool?, bool?>> e = (a) => null ?? a;
+       }
+}
\ No newline at end of file
diff --git a/mcs/errors/cs0853.cs b/mcs/errors/cs0853.cs
new file mode 100644 (file)
index 0000000..83b7dd0
--- /dev/null
@@ -0,0 +1,18 @@
+// CS0853: An expression tree cannot contain named argument
+// Line: 15
+// Compiler options: -langversion:future
+
+using System;
+using System.Linq.Expressions;
+
+class M
+{
+       static void Named (int i)
+       {
+       }
+       
+       public static void Main ()
+       {
+               Expression<Action> e = () => Named (i : 1);
+       }
+}
diff --git a/mcs/errors/cs0854-2.cs b/mcs/errors/cs0854-2.cs
new file mode 100644 (file)
index 0000000..0be6474
--- /dev/null
@@ -0,0 +1,17 @@
+// CS0854: An expression tree cannot contain an invocation which uses optional parameter
+// Line: 15
+
+using System;
+using System.Linq.Expressions;
+
+class M
+{
+       public M (string s = "value")
+       {
+       }
+       
+       public static void Main ()
+       {
+               Expression<Action> e = () => new M ();
+       }
+}
diff --git a/mcs/errors/cs0854.cs b/mcs/errors/cs0854.cs
new file mode 100644 (file)
index 0000000..fe15bdb
--- /dev/null
@@ -0,0 +1,18 @@
+// CS0854: An expression tree cannot contain an invocation which uses optional parameter
+// Line: 15
+// Compiler options: -langversion:future
+
+using System;
+using System.Linq.Expressions;
+
+class M
+{
+       static void Optional (int i, string s = "value")
+       {
+       }
+       
+       public static void Main ()
+       {
+               Expression<Action> e = () => Optional (1);
+       }
+}
diff --git a/mcs/errors/cs1058-1.cs b/mcs/errors/cs1058-1.cs
new file mode 100644 (file)
index 0000000..d0526d6
--- /dev/null
@@ -0,0 +1,14 @@
+// cs1058.cs: A previous catch clause already catches all exceptions. All non-exceptions thrown will be wrapped in a `System.Runtime.CompilerServices.RuntimeWrappedException'
+// Line: 11
+// Compiler options: -warnaserror -warn:4
+
+class C
+{
+   static void Main() 
+   {
+      try {}
+      catch (System.Exception) { }
+      catch {}
+   }
+}
diff --git a/mcs/errors/cs1058-2.cs b/mcs/errors/cs1058-2.cs
new file mode 100644 (file)
index 0000000..7ce5ba4
--- /dev/null
@@ -0,0 +1,17 @@
+// gcs1058.cs: A previous catch clause already catches all exceptions. All non-exceptions thrown will be wrapped in a `System.Runtime.CompilerServices.RuntimeWrappedException'
+// Line: 15
+// Compiler options: -warnaserror -warn:4
+
+using System.Runtime.CompilerServices;
+
+[assembly: RuntimeCompatibility (WrapNonExceptionThrows=true)]
+
+class C
+{
+   static void Main() 
+   {
+      try {}
+      catch (System.Exception) { }
+      catch {}
+   }
+}
diff --git a/mcs/errors/cs1061-4.cs b/mcs/errors/cs1061-4.cs
new file mode 100644 (file)
index 0000000..355bf54
--- /dev/null
@@ -0,0 +1,23 @@
+// CS1061: Type `X' does not contain a definition for `Test' and no extension method `Test' of type `X' could be found (are you missing a using directive or an assembly reference?)
+// Line: 12
+
+class A<X>
+{
+       //
+       // This is to test the lookup rules for SimpleNames:
+       // `X' is the type parameter, not the class.
+       //
+       public void Test (X x)
+       {
+               x.Test ();
+       }
+}
+
+class X
+{
+       public void Test ()
+       { }
+
+       public static void Main ()
+       { }
+}
diff --git a/mcs/errors/cs1061-5.cs b/mcs/errors/cs1061-5.cs
new file mode 100644 (file)
index 0000000..d1d3fb7
--- /dev/null
@@ -0,0 +1,27 @@
+// CS1061: Type `int' does not contain a definition for `Value' and no extension method `Value' of type `int' could be found (are you missing a using directive or an assembly reference?)
+// Line: 24
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace Test
+{
+       static class Ex
+       {
+               public static IEnumerable<TR> Foo<T, TR> (this IEnumerable<T> t, Func<T, TR> f)
+               {
+                       return null;
+               }
+       }
+
+       public class C
+       {
+               public static void Main ()
+               {
+                       int[] i = null;
+                       int p;
+            var prods = from pe in i.Foo (p9 => p.Value) select pe;
+               }
+       }
+}
diff --git a/mcs/errors/cs1061-6.cs b/mcs/errors/cs1061-6.cs
new file mode 100644 (file)
index 0000000..a09c0fa
--- /dev/null
@@ -0,0 +1,13 @@
+// CS1061: Type `T' does not contain a definition for `Name' and no extension method `Name' of type `T' could be found (are you missing a using directive or an assembly reference?)
+// Line: 11
+
+using System;
+using System.Collections.Generic;
+
+public class C<T, U>
+{
+       public C (IEnumerable<T> t)
+       {
+               new List<T>(t).ConvertAll(p => p.Name);
+       }
+}
diff --git a/mcs/errors/cs1061-7.cs b/mcs/errors/cs1061-7.cs
new file mode 100644 (file)
index 0000000..3c7d0ff
--- /dev/null
@@ -0,0 +1,11 @@
+// CS1061: Type `int' does not contain a definition for `Foo' and no extension method `Foo' of type `int' could be found (are you missing a using directive or an assembly reference?)
+// Line: 9
+
+
+public class M
+{
+       public static void Main ()
+       {
+               1.Foo ("foo");
+       }
+}
\ No newline at end of file
diff --git a/mcs/errors/cs1061-8.cs b/mcs/errors/cs1061-8.cs
new file mode 100644 (file)
index 0000000..2f391bd
--- /dev/null
@@ -0,0 +1,15 @@
+// CS1061: Type `string' does not contain a definition for `Length2' and no extension method `Length2' of type `string' could be found (are you missing a using directive or an assembly reference?)
+// Line: 12
+
+
+using System.Linq;
+
+public class M
+{
+       public static void Main ()
+       {
+               var e = from values in new [] { "value" }
+                       let length = values.Length2
+                       select length;
+       }
+}
diff --git a/mcs/errors/cs1061-9.cs b/mcs/errors/cs1061-9.cs
new file mode 100644 (file)
index 0000000..121766f
--- /dev/null
@@ -0,0 +1,10 @@
+// CS1061: Type `int' does not contain a definition for `E' and no extension method `E' of type `int' could be found (are you missing a using directive or an assembly reference?)
+// Line: 7
+
+class T {
+       public static int Main (string [] args )
+       {
+               int x = 1.E;
+               return 0;
+       }
+}
diff --git a/mcs/errors/cs1067.cs b/mcs/errors/cs1067.cs
new file mode 100644 (file)
index 0000000..dbe433e
--- /dev/null
@@ -0,0 +1,10 @@
+// CS1067: Partial declarations of `I<T>' must have the same type parameter variance modifiers
+// Line: 8
+
+partial interface I<in T>
+{
+}
+
+partial interface I<out T>
+{
+}
diff --git a/mcs/errors/cs1100.cs b/mcs/errors/cs1100.cs
new file mode 100644 (file)
index 0000000..35e3c29
--- /dev/null
@@ -0,0 +1,9 @@
+// CS1100: The parameter modifier `this' can only be used on the first parameter
+// Line: 6
+
+static class S
+{
+       static void Foo (bool b, this string s)
+       {
+       }
+}
\ No newline at end of file
diff --git a/mcs/errors/cs1101.cs b/mcs/errors/cs1101.cs
new file mode 100644 (file)
index 0000000..239387b
--- /dev/null
@@ -0,0 +1,9 @@
+// CS1101: The parameter modifiers `this' and `ref' cannot be used altogether
+// Line: 6
+
+static class S
+{
+       static void Foo (ref this string s)
+       {
+       }
+}
\ No newline at end of file
diff --git a/mcs/errors/cs1102.cs b/mcs/errors/cs1102.cs
new file mode 100644 (file)
index 0000000..81c7c70
--- /dev/null
@@ -0,0 +1,9 @@
+// CS1102: The parameter modifiers `this' and `out' cannot be used altogether
+// Line: 6
+
+static class S
+{
+       static void Foo (this out string s)
+       {
+       }
+}
\ No newline at end of file
diff --git a/mcs/errors/cs1103.cs b/mcs/errors/cs1103.cs
new file mode 100644 (file)
index 0000000..c4fd2c9
--- /dev/null
@@ -0,0 +1,10 @@
+// CS1103: The extension method cannot be of type `int*'
+// Line: 7
+// Compiler options: -unsafe
+
+static class S
+{
+       unsafe static void Foo (this int* iptr)
+       {
+       }
+}
diff --git a/mcs/errors/cs1104.cs b/mcs/errors/cs1104.cs
new file mode 100644 (file)
index 0000000..4a0f5ed
--- /dev/null
@@ -0,0 +1,9 @@
+// CS1104: The parameter modifiers `this' and `params' cannot be used altogether
+// Line: 6
+
+static class S
+{
+       static void Foo (params this int[] o)
+       {
+       }
+}
\ No newline at end of file
diff --git a/mcs/errors/cs1105.cs b/mcs/errors/cs1105.cs
new file mode 100644 (file)
index 0000000..8051dcc
--- /dev/null
@@ -0,0 +1,10 @@
+// CS1105: `S.Foo(this int?)': Extension methods must be declared static
+// Line: 6
+
+
+static class S
+{
+       void Foo (this int? s)
+       {
+       }
+}
diff --git a/mcs/errors/cs1106-2.cs b/mcs/errors/cs1106-2.cs
new file mode 100644 (file)
index 0000000..0f2d5d1
--- /dev/null
@@ -0,0 +1,10 @@
+// CS1106: `S<T>.Foo(this string)': Extension methods must be defined in a non-generic static class
+// Line: 6
+
+
+static class S<T>
+{
+       static void Foo (this string s)
+       {
+       }
+}
diff --git a/mcs/errors/cs1106.cs b/mcs/errors/cs1106.cs
new file mode 100644 (file)
index 0000000..5786130
--- /dev/null
@@ -0,0 +1,10 @@
+// CS1106: `S.Foo(this string)': Extension methods must be defined in a non-generic static class
+// Line: 6
+
+
+class S
+{
+       static void Foo (this string s)
+       {
+       }
+}
diff --git a/mcs/errors/cs1109.cs b/mcs/errors/cs1109.cs
new file mode 100644 (file)
index 0000000..69b8245
--- /dev/null
@@ -0,0 +1,13 @@
+// CS1109: `C.S.Foo(this string)': Extension methods cannot be defined in a nested class
+// Line: 8
+
+
+class C
+{
+       static class S
+       {
+               static void Foo (this string s)
+               {
+               }
+       }
+}
diff --git a/mcs/errors/cs1110.cs b/mcs/errors/cs1110.cs
new file mode 100644 (file)
index 0000000..7baa395
--- /dev/null
@@ -0,0 +1,10 @@
+// CS1110: `C.Foo(this string)': Extension methods cannot be declared without a reference to System.Core.dll assembly. Add the assembly reference or remove `this' modifer from the first parameter
+// Line: 7
+// Compiler options: -noconfig
+
+static class C
+{
+       static void Foo (this string s)
+       {
+       }
+}
diff --git a/mcs/errors/cs1112-2.cs b/mcs/errors/cs1112-2.cs
new file mode 100644 (file)
index 0000000..6be7f1b
--- /dev/null
@@ -0,0 +1,21 @@
+// CS1112: Do not use `System.Runtime.CompilerServices.ExtensionAttribute' directly. Use parameter modifier `this' instead
+// Line: 16
+
+
+using System;
+using System.Runtime.CompilerServices;
+
+namespace System.Runtime.CompilerServices
+{
+       public class ExtensionAttribute : Attribute
+       {
+       }
+}
+
+static class C
+{
+       [Extension]
+       static void Foo (this string s)
+       {
+       }
+}
\ No newline at end of file
diff --git a/mcs/errors/cs1112-3.cs b/mcs/errors/cs1112-3.cs
new file mode 100644 (file)
index 0000000..fb81f5f
--- /dev/null
@@ -0,0 +1,7 @@
+// CS1112: Do not use `System.Runtime.CompilerServices.ExtensionAttribute' directly. Use parameter modifier `this' instead
+// Line: 7
+
+
+using System.Runtime.CompilerServices;
+
+[assembly: ExtensionAttribute]
diff --git a/mcs/errors/cs1112.cs b/mcs/errors/cs1112.cs
new file mode 100644 (file)
index 0000000..6b366ab
--- /dev/null
@@ -0,0 +1,13 @@
+// CS1112: Do not use `System.Runtime.CompilerServices.ExtensionAttribute' directly. Use parameter modifier `this' instead
+// Line: 8
+
+
+using System.Runtime.CompilerServices;
+
+static class C
+{
+       [Extension]
+       static void Foo (this string s)
+       {
+       }
+}
\ No newline at end of file
diff --git a/mcs/errors/cs1113-2.cs b/mcs/errors/cs1113-2.cs
new file mode 100644 (file)
index 0000000..5043b34
--- /dev/null
@@ -0,0 +1,25 @@
+// CS1113: Extension method `Extension.Foo(this S)' of value type `S' cannot be used to create delegates
+// Line: 11
+
+delegate void D ();
+
+public class C
+{
+       static void Main ()
+       {
+               S s = new S ();
+               D d = s.Foo;
+       }
+}
+
+public struct S
+{
+       public void Foo (int i)
+       {
+       }
+}
+
+public static class Extension
+{
+       public static void Foo (this S s) { }
+}
diff --git a/mcs/errors/cs1113.cs b/mcs/errors/cs1113.cs
new file mode 100644 (file)
index 0000000..eda00f3
--- /dev/null
@@ -0,0 +1,23 @@
+// CS1113: Extension method `Extension.Foo(this S)' of value type `S' cannot be used to create delegates
+// Line: 12
+
+
+delegate void D ();
+
+public class C
+{
+       static void Main ()
+       {
+               S s = new S ();
+               D d = s.Foo;
+       }
+}
+
+public struct S
+{
+}
+
+public static class Extension
+{
+       public static void Foo (this S s) { }
+}
diff --git a/mcs/errors/cs1501-6.cs b/mcs/errors/cs1501-6.cs
new file mode 100644 (file)
index 0000000..6f67362
--- /dev/null
@@ -0,0 +1,19 @@
+// CS1501: No overload for method `Foo' takes `2' arguments
+// Line: 17
+
+
+static class Extensions
+{
+       public static string Foo (this string s)
+       {
+               return s;
+       }
+}
+
+public class M
+{
+       public static void Main ()
+       {
+               1.Foo ("foo");
+       }
+}
diff --git a/mcs/errors/cs1501-7.cs b/mcs/errors/cs1501-7.cs
new file mode 100644 (file)
index 0000000..c369194
--- /dev/null
@@ -0,0 +1,29 @@
+// CS1501: No overload for method `Select' takes `1' arguments
+// Line: 17
+
+
+using System;
+
+class TestA
+{
+       public string value;
+       
+       public TestA (string value)
+       {
+               this.value = value;
+       }
+       
+       public string Select (int i, Func<TestA, TestA> f)
+       {
+               return value;
+       }
+}
+
+public class M
+{
+       static void Main ()
+       {
+               var v = new TestA ("Oh yes");
+               string foo = from a in v select a;
+       }
+}
diff --git a/mcs/errors/cs1501-8.cs b/mcs/errors/cs1501-8.cs
new file mode 100644 (file)
index 0000000..a8f4e9e
--- /dev/null
@@ -0,0 +1,17 @@
+// CS1501: No overload for method `Foo' takes `0' arguments
+// Line: 15
+
+class Base<T>
+{
+       protected virtual void Foo<U> (U u)
+       {
+       }
+}
+
+class Derived<T> : Base<int>
+{
+    protected override void Foo<U> (U u)
+    {
+        base.Foo ();
+    }
+}
diff --git a/mcs/errors/cs1501-9.cs b/mcs/errors/cs1501-9.cs
new file mode 100644 (file)
index 0000000..f64a51f
--- /dev/null
@@ -0,0 +1,19 @@
+// CS1501: No overload for method `Test' takes `2' arguments
+// Line: 16
+// Compiler options: -langversion:future
+
+static class S
+{
+       public static int Test (this int value)
+       {
+       return value;
+       }
+}
+
+class M
+{
+       public static void Main ()
+       {
+               1.Test (value: 1);
+       }
+}
diff --git a/mcs/errors/cs1502-12.cs b/mcs/errors/cs1502-12.cs
new file mode 100644 (file)
index 0000000..ac3e383
--- /dev/null
@@ -0,0 +1,13 @@
+// CS1502: The best overloaded method match for `Global.Test1(int?)' has some invalid arguments
+// Line: 8
+
+using System;
+
+class Global {
+       static void Main() {
+               Console.Write(Test1((decimal?)2));
+       }       
+       static string Test1(int? value) {
+               return "ok";
+       }
+}
diff --git a/mcs/errors/cs1502-13.cs b/mcs/errors/cs1502-13.cs
new file mode 100644 (file)
index 0000000..961c1ca
--- /dev/null
@@ -0,0 +1,14 @@
+// cs1502-3.cs: The best overloaded method match for `T.Blah(out int)' has some invalid arguments
+// Line: 11
+
+using System;
+
+class T {
+        static void Blah (out int g) { g = 0; }
+
+        static int Main (string [] args) {
+                IntPtr g;
+                Blah (out g);
+               return (int) g;
+        }
+}
diff --git a/mcs/errors/cs1502-14.cs b/mcs/errors/cs1502-14.cs
new file mode 100644 (file)
index 0000000..46bb5f7
--- /dev/null
@@ -0,0 +1,43 @@
+// CS1502: The best overloaded method match for `A.A(System.Collections.Generic.IList<int>[])' has some invalid arguments
+// Line: 40
+using System;
+using System.Collections;
+using System.Collections.Generic;
+
+public struct MyStruct : IList<int>
+{
+       public int this [int x] { get { return 0; } set { return; } }
+       public int IndexOf (int x) { return 0; }
+       public void Insert (int x, int y) { return; }
+       public void RemoveAt (int x) { return; }
+       public int Count { get { return 0; } }
+       public bool IsReadOnly { get { return false; } }
+       public void Add (int x) { return; }
+       public void Clear () { return; }
+       public bool Contains (int x) { return false; }
+       public void CopyTo (int[] x, int y) { return; }
+       public bool Remove (int x) { return false; }
+       public IEnumerator<int> GetEnumerator() { yield return 0; }
+       IEnumerator IEnumerable.GetEnumerator() { yield return 0; }
+}
+
+public class A
+{
+       // This version does not compile:
+       public A(IList<int>[] x) { }
+
+       // This version compiles fine, but results in an exception:
+       public A(IList<IList<int>> x) { }
+}
+
+public class Test
+{
+       static void Main ()
+       {
+               MyStruct[] myStructArray = new MyStruct[1];
+
+               Console.WriteLine ("Trying to construct an A...");
+               A a = new A (myStructArray);
+               Console.WriteLine ("success!");
+       }
+}
diff --git a/mcs/errors/cs1503-12.cs b/mcs/errors/cs1503-12.cs
new file mode 100644 (file)
index 0000000..cd089df
--- /dev/null
@@ -0,0 +1,15 @@
+// CS1503: Argument `#1' cannot convert `bool' expression to type `int[]'
+// Line: 13
+
+public class X
+{
+       public static void Test (params int[] a)
+       {
+       }
+
+       public static void Main()
+       {
+               int i;
+               Test (true);
+       }
+}
diff --git a/mcs/errors/cs1503-13.cs b/mcs/errors/cs1503-13.cs
new file mode 100644 (file)
index 0000000..2260020
--- /dev/null
@@ -0,0 +1,14 @@
+// CS1503: Argument `#1' cannot convert `bool' expression to type `int'
+// Line: 12
+
+public class C
+{
+       static void Foo<T>(T t)
+       {
+       }
+       
+       public static void Main ()
+       {
+               Foo<int> (true);
+       }
+}
diff --git a/mcs/errors/cs1521-4.cs b/mcs/errors/cs1521-4.cs
new file mode 100644 (file)
index 0000000..91b1d49
--- /dev/null
@@ -0,0 +1,11 @@
+// CS1521: Invalid base type `C?'
+// Line: 8
+
+struct C
+{
+}
+
+class C2: C?
+{
+}
+
diff --git a/mcs/errors/cs1525-32.cs b/mcs/errors/cs1525-32.cs
new file mode 100644 (file)
index 0000000..ab09187
--- /dev/null
@@ -0,0 +1,12 @@
+// CS1525: Unexpected symbol `<', expecting `,' or `>'
+// Line: 9
+
+interface IFoo<T>
+{
+}
+
+public class Bar {
+       public void GetItemCommand<IFoo<int>>()
+       {
+       }
+}
diff --git a/mcs/errors/cs1525-33.cs b/mcs/errors/cs1525-33.cs
new file mode 100644 (file)
index 0000000..1fba74b
--- /dev/null
@@ -0,0 +1,6 @@
+// CS1525: Unexpected symbol `>', expecting `[', `identifier', `in', or `out'
+// Line: 4
+
+public class C<>
+{
+}
diff --git a/mcs/errors/cs1525-34.cs b/mcs/errors/cs1525-34.cs
new file mode 100644 (file)
index 0000000..fcd3668
--- /dev/null
@@ -0,0 +1,12 @@
+// CS1525: Unexpected symbol `='
+// Line: 10
+
+public class Test
+{
+       private string name;
+
+       public string Name
+       {
+               get { return name ?? name = string.Empty; }
+       }
+}
diff --git a/mcs/errors/cs1547-10.cs b/mcs/errors/cs1547-10.cs
new file mode 100644 (file)
index 0000000..62c7846
--- /dev/null
@@ -0,0 +1,12 @@
+// CS1547: Keyword `void' cannot be used in this context
+// Line: 10
+class Foo<T>
+{ }
+
+class X
+{
+       static void Main ()
+       {
+               Foo<void> foo;
+       }
+}
diff --git a/mcs/errors/cs1547-11.cs b/mcs/errors/cs1547-11.cs
new file mode 100644 (file)
index 0000000..f4fb26c
--- /dev/null
@@ -0,0 +1,10 @@
+// CS1547: Keyword `void' cannot be used in this context
+// Line: 8
+
+class X
+{
+       static void Main ()
+       {
+               object o = default(void);
+       }
+}
diff --git a/mcs/errors/cs1547-12.cs b/mcs/errors/cs1547-12.cs
new file mode 100644 (file)
index 0000000..7064915
--- /dev/null
@@ -0,0 +1,11 @@
+// CS1547: Keyword `void' cannot be used in this context
+// Line: 8
+
+
+class X
+{
+       static void Main ()
+       {
+               var e = from void v in new int [] { 0 } select i;
+       }
+}
diff --git a/mcs/errors/cs1579-4.cs b/mcs/errors/cs1579-4.cs
new file mode 100644 (file)
index 0000000..13e3f01
--- /dev/null
@@ -0,0 +1,20 @@
+// CS1579: foreach statement cannot operate on variables of type `Foo' because it does not contain a definition for `GetEnumerator' or is inaccessible
+// Line: 12
+
+using System;
+using System.Collections;
+
+public class Test
+{
+       public static void Main ()
+       {
+               Foo f = new Foo ();
+               foreach (object o in f)
+                       Console.WriteLine (o);
+       }
+}
+
+public class Foo
+{
+       public Func<IEnumerator> GetEnumerator;
+}
diff --git a/mcs/errors/cs1593-3.cs b/mcs/errors/cs1593-3.cs
new file mode 100644 (file)
index 0000000..46defe5
--- /dev/null
@@ -0,0 +1,17 @@
+// CS1593: Delegate `System.Func<int,int>' does not take `2' arguments
+// Line: 11
+
+
+using System;
+
+class C
+{
+       static void Main (string [] args)
+       {
+               M ((x, y) => 2);
+       }
+
+       static void M (Func<int, int> a)
+       {
+       }
+}
diff --git a/mcs/errors/cs1624-4.cs b/mcs/errors/cs1624-4.cs
new file mode 100644 (file)
index 0000000..be1f9a8
--- /dev/null
@@ -0,0 +1,13 @@
+// CS1624: The body of `C.Test<TSource>(System.Collections.Generic.IEnumerable<TSource>)' cannot be an iterator block because `TSource' is not an iterator interface type
+// Line: 8
+
+using System.Collections.Generic;
+
+public class C
+{
+       public static TSource Test<TSource>(IEnumerable<TSource> source)
+       {
+               foreach (TSource element in source)
+                       yield return element;
+       }
+}
diff --git a/mcs/errors/cs1640.cs b/mcs/errors/cs1640.cs
new file mode 100644 (file)
index 0000000..35eed65
--- /dev/null
@@ -0,0 +1,15 @@
+// CS1640: foreach statement cannot operate on variables of type `T' because it contains multiple implementation of `System.Collections.Generic.IEnumerable<T>'. Try casting to a specific implementation
+// Line: 11
+
+using System.Collections.Generic;
+
+public class C
+{
+       public static void Test<T>(T t) 
+               where T: IEnumerable<string>, IEnumerable<int>
+       {
+               foreach (int i in t)
+               {
+               }
+       }
+}
diff --git a/mcs/errors/cs1642.cs b/mcs/errors/cs1642.cs
new file mode 100644 (file)
index 0000000..628b948
--- /dev/null
@@ -0,0 +1,8 @@
+// cs1642.cs: `C.test_1': Fixed size buffer fields may only be members of structs
+// Line: 7
+// Compiler options: -unsafe
+
+public unsafe class C
+{
+    private fixed char test_1 [128];
+}
diff --git a/mcs/errors/cs1644-15.cs b/mcs/errors/cs1644-15.cs
new file mode 100644 (file)
index 0000000..710bf0c
--- /dev/null
@@ -0,0 +1,6 @@
+// CS1644: Feature `generic type variance' cannot be used because it is not part of the C# 2.0 language specification
+// Line: 5
+// Compiler options: -langversion:iso-2
+
+ public interface IFoo<out T> {
+ }
diff --git a/mcs/errors/cs1644-16.cs b/mcs/errors/cs1644-16.cs
new file mode 100644 (file)
index 0000000..4d2ecc7
--- /dev/null
@@ -0,0 +1,6 @@
+// CS1644: Feature `generic type variance' cannot be used because it is not part of the C# 2.0 language specification
+// Line: 5
+// Compiler options: -langversion:iso-2
+
+ public interface IFoo<in T> {
+ }
diff --git a/mcs/errors/cs1644-17.cs b/mcs/errors/cs1644-17.cs
new file mode 100644 (file)
index 0000000..3f03af4
--- /dev/null
@@ -0,0 +1,7 @@
+// CS1644: Feature `generic type variance' cannot be used because it is not part of the C# 3.0 language specification
+// Line: 5
+// Compiler options: -langversion:3
+
+public interface IFoo<in T>
+{
+}
diff --git a/mcs/errors/cs1644-18.cs b/mcs/errors/cs1644-18.cs
new file mode 100644 (file)
index 0000000..a148ca5
--- /dev/null
@@ -0,0 +1,13 @@
+// CS1644: Feature `query expressions' cannot be used because it is not part of the C# 2.0 language specification
+// Line: 11
+// Compiler options: -langversion:ISO-2
+
+using System.Linq;
+
+public class C
+{
+       public static void Main ()
+       {
+               var e = from a in "aaa" select a;
+       }
+}
diff --git a/mcs/errors/cs1644-19.cs b/mcs/errors/cs1644-19.cs
new file mode 100644 (file)
index 0000000..ce867d1
--- /dev/null
@@ -0,0 +1,8 @@
+// CS1644: Feature `automatically implemented properties' cannot be used because it is not part of the C# 2.0 language specification
+// Line: 7
+// Compiler options: -langversion:ISO-2
+
+class P
+{
+       public string Name { get; set; }
+}
diff --git a/mcs/errors/cs1644-20.cs b/mcs/errors/cs1644-20.cs
new file mode 100644 (file)
index 0000000..4c43143
--- /dev/null
@@ -0,0 +1,9 @@
+// CS1644: Feature `nullable types' cannot be used because it is not part of the C# 1.0 language specification
+// Line: 7
+// Compiler options: -langversion:ISO-1
+
+class Test
+{
+       int? i;
+       static void Main () {}
+}
diff --git a/mcs/errors/cs1644-21.cs b/mcs/errors/cs1644-21.cs
new file mode 100644 (file)
index 0000000..370815a
--- /dev/null
@@ -0,0 +1,8 @@
+// CS1644: Feature `default value expression' cannot be used because it is not part of the C# 1.0 language specification
+// Line: 7
+// Compiler options: -langversion:ISO-1
+
+class Test
+{
+       int i = default (int);
+}
diff --git a/mcs/errors/cs1644-22.cs b/mcs/errors/cs1644-22.cs
new file mode 100644 (file)
index 0000000..6f3a341
--- /dev/null
@@ -0,0 +1,8 @@
+// CS1644: Feature `generics' cannot be used because it is not part of the C# 1.0 language specification
+// Line: 5
+// Compiler options: -langversion:ISO-1
+
+class Stack < type >
+{
+}
+
diff --git a/mcs/errors/cs1644-23.cs b/mcs/errors/cs1644-23.cs
new file mode 100644 (file)
index 0000000..d510366
--- /dev/null
@@ -0,0 +1,14 @@
+// CS1644: Feature `lambda expressions' cannot be used because it is not part of the C# 2.0 language specification
+// Line: 11
+// Compiler options: -langversion:ISO-2
+
+class C
+{
+       delegate void D ();
+       
+       public void Foo ()
+       {
+               D e = () => { };
+       }
+}
+
diff --git a/mcs/errors/cs1644-24.cs b/mcs/errors/cs1644-24.cs
new file mode 100644 (file)
index 0000000..b4ea89a
--- /dev/null
@@ -0,0 +1,11 @@
+// CS1644: Feature `nullable types' cannot be used because it is not part of the C# 1.0 language specification
+// Line: 9
+// Compiler options: -langversion:ISO-1
+
+struct C
+{
+       void G ()
+       {
+               object o = (C?[]) this;
+       }
+}
diff --git a/mcs/errors/cs1644-25.cs b/mcs/errors/cs1644-25.cs
new file mode 100644 (file)
index 0000000..706657f
--- /dev/null
@@ -0,0 +1,16 @@
+// CS1644: Feature `object initializers' cannot be used because it is not part of the C# 2.0 language specification
+// Line: 14
+// Compiler options: -langversion:ISO-2
+
+class Data
+{
+       public int Value;
+}
+
+class A
+{
+       void Foo ()
+       {
+               new Data () { Value = 3 };
+       }
+}
diff --git a/mcs/errors/cs1644-26.cs b/mcs/errors/cs1644-26.cs
new file mode 100644 (file)
index 0000000..ae6086b
--- /dev/null
@@ -0,0 +1,8 @@
+// CS1644: Feature `implicitly typed arrays' cannot be used because it is not part of the C# 1.0 language specification
+// Line: 7
+// Compiler options: -langversion:ISO-1
+
+class A
+{
+       string[] array = new [] { "Foo", "Bar", "Baz" };
+}
diff --git a/mcs/errors/cs1644-27.cs b/mcs/errors/cs1644-27.cs
new file mode 100644 (file)
index 0000000..4b6ed10
--- /dev/null
@@ -0,0 +1,8 @@
+// CS1644: Feature `partial methods' cannot be used because it is not part of the C# 2.0 language specification
+// Line: 7
+// Compiler options: -langversion:ISO-2
+
+partial class P
+{
+       partial void Foo ();
+}
diff --git a/mcs/errors/cs1644-28.cs b/mcs/errors/cs1644-28.cs
new file mode 100644 (file)
index 0000000..d498b30
--- /dev/null
@@ -0,0 +1,11 @@
+// CS1644: Feature `extension methods' cannot be used because it is not part of the C# 2.0 language specification
+// Line: 17
+// Compiler options: -langversion:ISO-2
+
+static class Extensions
+{
+       static string Foo (string s, this bool b, int i)
+       {
+               return s;
+       }
+}
diff --git a/mcs/errors/cs1644-29.cs b/mcs/errors/cs1644-29.cs
new file mode 100644 (file)
index 0000000..6ee0afd
--- /dev/null
@@ -0,0 +1,13 @@
+// cs1644.cs: Feature `generics' cannot be used because it is not part of the C# 1.0 language specification
+// Line: 5
+// Compiler options: -langversion:ISO-1
+
+class X<V>
+{
+}
+
+class X
+{
+       static void Main ()
+       { }
+}
diff --git a/mcs/errors/cs1644-30.cs b/mcs/errors/cs1644-30.cs
new file mode 100644 (file)
index 0000000..6e0568d
--- /dev/null
@@ -0,0 +1,11 @@
+// CS1644: Feature `anonymous types' cannot be used because it is not part of the C# 1.0 language specification
+// Line: 9
+// Compiler options: -langversion:ISO-1
+
+class A
+{
+       void Foo ()
+       {
+               var v = new { X = "Bar" };
+       }
+}
diff --git a/mcs/errors/cs1644-31.cs b/mcs/errors/cs1644-31.cs
new file mode 100644 (file)
index 0000000..6f63efa
--- /dev/null
@@ -0,0 +1,13 @@
+// CS1644: Feature `collection initializers' cannot be used because it is not part of the C# 2.0 language specification
+// Line: 9
+// Compiler options: -langversion:ISO-2
+
+using System.Collections.Generic;
+
+class A
+{
+       void Foo ()
+       {
+               object o = new List<int> { 1, 2, 3 };
+       }
+}
diff --git a/mcs/errors/cs1660-3.cs b/mcs/errors/cs1660-3.cs
new file mode 100644 (file)
index 0000000..29709a2
--- /dev/null
@@ -0,0 +1,11 @@
+// CS1660: Cannot convert `lambda expression' to non-delegate type `object'
+// Line: 9
+
+using System;
+
+class X {
+       static void Main ()
+       {
+               object o = () => true;
+       }
+}
diff --git a/mcs/errors/cs1661-2.cs b/mcs/errors/cs1661-2.cs
new file mode 100644 (file)
index 0000000..d7ed5a5
--- /dev/null
@@ -0,0 +1,13 @@
+// CS1661: Cannot convert `lambda expression' to delegate type `C.WithOutParam' since there is a parameter mismatch
+// Line: 10
+
+
+class C
+{
+       delegate void WithOutParam (out string value);
+
+       static void Main() 
+       {
+               WithOutParam o = (string l) => { return; };
+    }
+}
diff --git a/mcs/errors/cs1662-2.cs b/mcs/errors/cs1662-2.cs
new file mode 100644 (file)
index 0000000..b287fcc
--- /dev/null
@@ -0,0 +1,15 @@
+// CS1662: Cannot convert `lambda expression' to delegate type `D' because some of the return types in the block are not implicitly convertible to the delegate return type
+// Line: 13
+
+
+using System;
+
+delegate int D (int i);
+
+class X
+{
+       static void Main ()
+       {
+               D d = (int l) => Main ();
+       }
+}
diff --git a/mcs/errors/cs1663.cs b/mcs/errors/cs1663.cs
new file mode 100644 (file)
index 0000000..8da2dc6
--- /dev/null
@@ -0,0 +1,7 @@
+// cs1663.cs: `S.test': Fixed size buffers type must be one of the following: bool, byte, short, int, long, char, sbyte, ushort, uint, ulong, float or double
+// Line: 6
+
+public struct S
+{
+    public fixed decimal test [4];
+}
diff --git a/mcs/errors/cs1664.cs b/mcs/errors/cs1664.cs
new file mode 100644 (file)
index 0000000..a4deb97
--- /dev/null
@@ -0,0 +1,8 @@
+// cs1664.cs: Fixed size buffer `C.test_1' of length `1073741825' and type `long' exceeded 2^31 limit
+// Line: 7
+// Compiler options: -unsafe
+
+public unsafe struct C
+{
+    private fixed long test_1 [1073741825];
+}
diff --git a/mcs/errors/cs1665.cs b/mcs/errors/cs1665.cs
new file mode 100644 (file)
index 0000000..b9fd350
--- /dev/null
@@ -0,0 +1,8 @@
+// cs1665.cs: `S.test20': Fixed size buffers must have a length greater than zero
+// Line: 7
+// Compiler options: -unsafe
+
+public unsafe struct S
+{
+    public fixed bool test20 [-4];
+}
diff --git a/mcs/errors/cs1666.cs b/mcs/errors/cs1666.cs
new file mode 100644 (file)
index 0000000..140777e
--- /dev/null
@@ -0,0 +1,13 @@
+// cs1666.cs: You cannot use fixed size buffers contained in unfixed expressions. Try using the fixed statement
+// Line: 11
+// Compiler options: -unsafe
+
+public unsafe struct S
+{
+    fixed char test_1 [128];
+       
+    public void Test ()
+    {
+       test_1 [55] = 'g';
+    }
+}
diff --git a/mcs/errors/cs1675.cs b/mcs/errors/cs1675.cs
new file mode 100644 (file)
index 0000000..2542e31
--- /dev/null
@@ -0,0 +1,6 @@
+// CS1675: Enums cannot have type parameters
+// Line: 4
+
+enum E<T>
+{
+}
diff --git a/mcs/errors/cs1676-2.cs b/mcs/errors/cs1676-2.cs
new file mode 100644 (file)
index 0000000..47f5f89
--- /dev/null
@@ -0,0 +1,12 @@
+// CS1676: Parameter `1' must be declared with the `out' keyword
+// Line: 10
+
+class C
+{
+       delegate int D (out int i);
+
+       public static void Main ()
+       {
+                D d = a => 1;
+       }
+}
diff --git a/mcs/errors/cs1677-2.cs b/mcs/errors/cs1677-2.cs
new file mode 100644 (file)
index 0000000..c005bfd
--- /dev/null
@@ -0,0 +1,13 @@
+// CS1677: Parameter `1' should not be declared with the `ref' keyword
+// Line: 9
+
+
+delegate void D (int x);
+
+class X
+{
+       static void Main ()
+       {
+               D d2 = (ref int x) => {};
+       }
+}
diff --git a/mcs/errors/cs1685-2.cs b/mcs/errors/cs1685-2.cs
new file mode 100644 (file)
index 0000000..483a62b
--- /dev/null
@@ -0,0 +1,4 @@
+// CS1685: The predefined type `System.Runtime.CompilerServices.ExtensionAttribute' is defined in multiple assemblies. Using definition from `System.Core'
+// Line: 0
+// Compiler options: -warn:1 -warnaserror -r:System.Core.dll -r:CS1685-2-lib.dll
+
diff --git a/mcs/errors/cs1686-6.cs b/mcs/errors/cs1686-6.cs
new file mode 100644 (file)
index 0000000..412007d
--- /dev/null
@@ -0,0 +1,21 @@
+// CS1686: Local variable or parameter `str' cannot have their address taken and be used inside an anonymous method or lambda expression
+// Line: 11
+// Compiler options: -unsafe
+
+using System;
+
+unsafe struct S
+{
+       public fixed int i [10];
+}
+
+class C
+{
+       static void Main ()
+       {
+               unsafe {
+                       S str;
+                       Func<int> e = () => str.i [3];
+               }
+       }
+}
diff --git a/mcs/errors/cs1689.cs b/mcs/errors/cs1689.cs
new file mode 100644 (file)
index 0000000..34f9ab5
--- /dev/null
@@ -0,0 +1,8 @@
+// cs1689.cs: Attribute `System.Diagnostics.ConditionalAttribute' is only valid on methods or attribute classes
+// Line: 6
+
+using System.Diagnostics;
+
+[Conditional("DEBUG")]
+public class Test {}
+    
\ No newline at end of file
diff --git a/mcs/errors/cs1700.cs b/mcs/errors/cs1700.cs
new file mode 100644 (file)
index 0000000..acbe2f2
--- /dev/null
@@ -0,0 +1,17 @@
+// gcs1700.cs: Assembly reference `MyAssemblyName, Version=' is invalid and cannot be resolved
+// Line: 8
+// Compiler options: -warnaserror -warn:3
+
+using System;
+using System.Runtime.CompilerServices;
+
+[assembly: InternalsVisibleTo ("MyAssemblyName, Version=")]
+
+public class InternalsVisibleToTest 
+{
+       static void Main ()
+       {
+       }
+
+}
+
diff --git a/mcs/errors/cs1708.cs b/mcs/errors/cs1708.cs
new file mode 100644 (file)
index 0000000..9b1286e
--- /dev/null
@@ -0,0 +1,30 @@
+// CS1708: `S.array': Fixed size buffers can only be accessed through locals or fields
+// Line: 27
+// Compiler options: -unsafe
+
+using System;
+
+unsafe struct S
+{
+    public fixed int array [2];
+}
+
+class C
+{
+    unsafe public S Get ()
+    {
+       return new S ();
+    }
+}
+
+public class Tester 
+{
+    public static void Main() { }
+    
+    unsafe void setName()
+    {
+       C c = new C();
+       c.Get ().array [1] = 44;
+    }
+}
+
diff --git a/mcs/errors/cs1716.cs b/mcs/errors/cs1716.cs
new file mode 100644 (file)
index 0000000..681cc4b
--- /dev/null
@@ -0,0 +1,8 @@
+// cs1716.cs: Do not use 'System.Runtime.CompilerServices.FixedBuffer' attribute. Use the 'fixed' field modifier instead
+// Line: 6
+
+public class C
+{
+    [System.Runtime.CompilerServices.FixedBuffer (typeof (int), 1)]
+    public int i;
+}
\ No newline at end of file
diff --git a/mcs/errors/cs1718-3.cs b/mcs/errors/cs1718-3.cs
new file mode 100644 (file)
index 0000000..8faec5c
--- /dev/null
@@ -0,0 +1,15 @@
+// CS1718: A comparison made to same variable. Did you mean to compare something else?
+// Line: 10
+// Compiler options: -warnaserror -warn:3
+
+class C
+{
+       public static void Main () 
+       { 
+               int? a = 20;
+               if (a > a) {
+                       return;
+               }
+       }
+}
diff --git a/mcs/errors/cs1720-2.cs b/mcs/errors/cs1720-2.cs
new file mode 100644 (file)
index 0000000..f63acd0
--- /dev/null
@@ -0,0 +1,11 @@
+// CS1720: Expression will always cause a `System.NullReferenceException'
+// Line: 9
+// Compiler options: -warnaserror -warn:1
+
+public class Tester 
+{
+    public static void GenericClass<T>(T t) where T : class 
+    {
+        string s = default(T).ToString();
+    }
+}
\ No newline at end of file
diff --git a/mcs/errors/cs1720-3.cs b/mcs/errors/cs1720-3.cs
new file mode 100644 (file)
index 0000000..e4243a7
--- /dev/null
@@ -0,0 +1,13 @@
+// CS1720: Expression will always cause a `System.NullReferenceException'
+// Line: 11
+// Compiler options: -warnaserror -warn:1
+
+using System;
+
+public class Tester 
+{
+    public static void Foo ()
+    {
+        Console.WriteLine(default(Tester).ToString());
+    }
+}
\ No newline at end of file
diff --git a/mcs/errors/cs1724.cs b/mcs/errors/cs1724.cs
new file mode 100644 (file)
index 0000000..41a8861
--- /dev/null
@@ -0,0 +1,7 @@
+// CS1724: Value specified for the argument to `System.Runtime.InteropServices.DefaultCharSetAttribute' is not valid
+// Line: 7
+
+using System;
+using System.Runtime.InteropServices;
+
+[module: DefaultCharSet ((CharSet)30)]
diff --git a/mcs/errors/cs1726-2.cs b/mcs/errors/cs1726-2.cs
new file mode 100644 (file)
index 0000000..8b27045
--- /dev/null
@@ -0,0 +1,16 @@
+// gcs1726-2.cs: Friend assembly reference `MyAssemblyName, PublicKeyToken=43b5d2e9a794bdcb' is invalid. Strong named assemblies must specify a public key in their InternalsVisibleTo declarations
+// Line: 8
+// Compiler options: -keyfile:InternalsVisibleTest.snk
+
+using System;
+using System.Runtime.CompilerServices;
+
+[assembly: InternalsVisibleTo ("MyAssemblyName, PublicKeyToken=43b5d2e9a794bdcb")]
+
+public class Test
+{
+       static void Main ()
+       {
+       }
+}
+
diff --git a/mcs/errors/cs1726.cs b/mcs/errors/cs1726.cs
new file mode 100644 (file)
index 0000000..8380743
--- /dev/null
@@ -0,0 +1,16 @@
+// gcs1726.cs: Friend assembly reference `MyAssemblyName' is invalid. Strong named assemblies must specify a public key in their InternalsVisibleTo declarations
+// Line: 8
+// Compiler options: -keyfile:InternalsVisibleTest.snk
+
+using System;
+using System.Runtime.CompilerServices;
+
+[assembly: InternalsVisibleTo ("MyAssemblyName")]
+
+public class Test
+{
+       static void Main ()
+       {
+       }
+}
+
diff --git a/mcs/errors/cs1728-2.cs b/mcs/errors/cs1728-2.cs
new file mode 100644 (file)
index 0000000..8af73f4
--- /dev/null
@@ -0,0 +1,12 @@
+// CS1728: Cannot create delegate from method `long?.GetValueOrDefault()' because it is a member of System.Nullable<T> type
+// Line: 10
+
+using System;
+
+class C
+{
+       public static void Main ()
+       {
+               Func<long> a = new long?().GetValueOrDefault;
+       }
+}
diff --git a/mcs/errors/cs1728.cs b/mcs/errors/cs1728.cs
new file mode 100644 (file)
index 0000000..3dc2c51
--- /dev/null
@@ -0,0 +1,16 @@
+// CS1728: Cannot create delegate from method `int?.GetValueOrDefault()' because it is a member of System.Nullable<T> type
+// Line: 14
+
+using System;
+
+class C
+{
+       delegate int Test ();
+       event Test MyEvent;
+
+       void Error ()
+       {
+               int? i = 0;
+               MyEvent += new Test (i.GetValueOrDefault);
+       }
+}
diff --git a/mcs/errors/cs1744-2.cs b/mcs/errors/cs1744-2.cs
new file mode 100644 (file)
index 0000000..3427f80
--- /dev/null
@@ -0,0 +1,16 @@
+// CS1744: Named argument `a' cannot be used for a parameter which has positional argument specified
+// Line: 13
+// Compiler options: -langversion:future
+
+static class C
+{
+       public static int Test (this int a, int b)
+       {
+               return a * 3 + b;
+       }
+       
+       public static void Main ()
+       {
+               1.Test (a : 2);
+       }
+}
diff --git a/mcs/errors/cs1745-2.cs b/mcs/errors/cs1745-2.cs
new file mode 100644 (file)
index 0000000..ad4e482
--- /dev/null
@@ -0,0 +1,12 @@
+// CS1745: Cannot specify `System.Runtime.InteropServices.DefaultParameterValue' attribute on optional parameter `u'
+// Line: 8
+// Compiler options: -langversion:future
+
+using System.Runtime.InteropServices;
+
+public class C
+{
+       public static void Test ([DefaultParameterValue (1)] int u = 2)
+       {
+       }
+}
diff --git a/mcs/errors/cs1750-3.cs b/mcs/errors/cs1750-3.cs
new file mode 100644 (file)
index 0000000..9673a74
--- /dev/null
@@ -0,0 +1,9 @@
+// CS1750: Optional parameter expression of type `decimal' cannot be converted to parameter type `int?'
+// Line: 6
+
+public class TS
+{
+       public static void Test (int? i = 1m)
+       {
+       }
+}
diff --git a/mcs/errors/cs1770.cs b/mcs/errors/cs1770.cs
new file mode 100644 (file)
index 0000000..e73ead0
--- /dev/null
@@ -0,0 +1,11 @@
+// CS1770: The expression being assigned to nullable optional parameter `d' must be default value
+// Line: 8
+
+using System;
+
+class C
+{
+       public static void Foo (DateTime? d = new DateTime ())
+       {
+       }
+}
diff --git a/mcs/errors/cs1908-2.cs b/mcs/errors/cs1908-2.cs
new file mode 100644 (file)
index 0000000..92b17e9
--- /dev/null
@@ -0,0 +1,8 @@
+// gcs1908.cs: The type of the default value should match the type of the parameter
+// Line: 
+
+class Test {
+       internal void f ([System.Runtime.InteropServices.DefaultParameterValue (null)] short x)
+       {
+       }
+}
diff --git a/mcs/errors/cs1908-3.cs b/mcs/errors/cs1908-3.cs
new file mode 100644 (file)
index 0000000..68b1357
--- /dev/null
@@ -0,0 +1,8 @@
+// gcs1908.cs: The type of the default value should match the type of the parameter
+// Line: 
+
+class Test<T> where T : class {
+       internal void f ([System.Runtime.InteropServices.DefaultParameterValue (null)] T x)
+       {
+       }
+}
diff --git a/mcs/errors/cs1908-4.cs b/mcs/errors/cs1908-4.cs
new file mode 100644 (file)
index 0000000..83f39e1
--- /dev/null
@@ -0,0 +1,8 @@
+// gcs1908.cs: The type of the default value should match the type of the parameter
+// Line: 
+
+class Test {
+       internal void f ([System.Runtime.InteropServices.DefaultParameterValue ((short) 1)] int x)
+       {
+       }
+}
diff --git a/mcs/errors/cs1908.cs b/mcs/errors/cs1908.cs
new file mode 100644 (file)
index 0000000..fa5d731
--- /dev/null
@@ -0,0 +1,8 @@
+// gcs1908.cs: The type of the default value should match the type of the parameter
+// Line: 5
+
+class Test {
+       internal void f ([System.Runtime.InteropServices.DefaultParameterValue (1)] short x)
+       {
+       }
+}
diff --git a/mcs/errors/cs1909-2.cs b/mcs/errors/cs1909-2.cs
new file mode 100644 (file)
index 0000000..2b13962
--- /dev/null
@@ -0,0 +1,8 @@
+// CS1909: The DefaultParameterValue attribute is not applicable on parameters of type `System.Type'
+// Line: 7
+
+using System.Runtime.InteropServices;
+
+interface ITest {
+       void f ([DefaultParameterValue (typeof (ITest))] System.Type x);
+}
diff --git a/mcs/errors/cs1909.cs b/mcs/errors/cs1909.cs
new file mode 100644 (file)
index 0000000..de241ed
--- /dev/null
@@ -0,0 +1,10 @@
+// CS1909: The DefaultParameterValue attribute is not applicable on parameters of type `int[]'
+// Line: 7
+
+using System.Runtime.InteropServices;
+
+class Test {
+       void f ([DefaultParameterValue (new int[0])] int[] x)
+       {
+       }
+}
diff --git a/mcs/errors/cs1910-2.cs b/mcs/errors/cs1910-2.cs
new file mode 100644 (file)
index 0000000..6b46744
--- /dev/null
@@ -0,0 +1,11 @@
+// CS1910: Argument of type `int[]' is not applicable for the DefaultParameterValue attribute
+// Line: 7
+
+using System.Runtime.InteropServices;
+using System;
+
+class Test {
+       void f ([DefaultParameterValue (new int[0])] object x)
+       {
+       }
+}
diff --git a/mcs/errors/cs1910.cs b/mcs/errors/cs1910.cs
new file mode 100644 (file)
index 0000000..37cdbf1
--- /dev/null
@@ -0,0 +1,10 @@
+// CS1910: Argument of type `System.Type' is not applicable for the DefaultParameterValue attribute
+// Line: 7
+
+using System.Runtime.InteropServices;
+
+class Test {
+       void f ([DefaultParameterValue (typeof (object))] object x)
+       {
+       }
+}
diff --git a/mcs/errors/cs1912.cs b/mcs/errors/cs1912.cs
new file mode 100644 (file)
index 0000000..8d21cb7
--- /dev/null
@@ -0,0 +1,19 @@
+// CS1912: An object initializer includes more than one member `Count' initialization
+// Line: 17
+
+
+using System;
+using System.Collections.Generic;
+
+public class Test
+{
+       class Container
+       {
+               public int Count;
+       }
+       
+       static void Main ()
+       {
+               var c = new Container { Count = 1, Count = 10 };
+       }
+}
diff --git a/mcs/errors/cs1913-2.cs b/mcs/errors/cs1913-2.cs
new file mode 100644 (file)
index 0000000..cd5d064
--- /dev/null
@@ -0,0 +1,22 @@
+// CS1913: Member `Data.Count()' cannot be initialized. An object initializer may only be used for fields, or properties
+// Line: 17
+
+
+using System;
+using System.Collections.Generic;
+
+class Data
+{
+       public int Count ()
+       {
+               return 1;
+       }
+}
+
+public class Test
+{
+       static void Main ()
+       {
+               var c = new Data { Count = 10 };
+       }
+}
diff --git a/mcs/errors/cs1913.cs b/mcs/errors/cs1913.cs
new file mode 100644 (file)
index 0000000..35a78d3
--- /dev/null
@@ -0,0 +1,23 @@
+// CS1913: Member `Data.Count' cannot be initialized. An object initializer may only be used for fields, or properties
+// Line: 17
+
+
+using System;
+using System.Collections.Generic;
+
+class Data
+{
+       public delegate int Count ();
+}
+
+public class Test
+{
+       delegate void S ();
+       
+       static void Main ()
+       {
+               //S s = new S ();
+               //string drawBackLabel = string.Length("absDrawBack");
+               var c = new Data { Count = 10 };
+       }
+}
diff --git a/mcs/errors/cs1914.cs b/mcs/errors/cs1914.cs
new file mode 100644 (file)
index 0000000..dbbc46a
--- /dev/null
@@ -0,0 +1,19 @@
+// CS1914: Static field or property `Data.Count' cannot be assigned in an object initializer
+// Line: 17
+
+
+using System;
+using System.Collections.Generic;
+
+class Data
+{
+       public static int Count;
+}
+
+public class Test
+{
+       static void Main ()
+       {
+               var c = new Data { Count = 10 };
+       }
+}
diff --git a/mcs/errors/cs1918.cs b/mcs/errors/cs1918.cs
new file mode 100644 (file)
index 0000000..245d6be
--- /dev/null
@@ -0,0 +1,20 @@
+// CS1918: Members of value type `S' cannot be assigned using a property `C.Value' object initializer
+// Line: 18
+
+
+struct S
+{
+       public int X;
+}
+
+class C
+{
+       public S Value {
+               set { }
+       }
+
+       static void Main ()
+       {
+               C c = new C { Value = { X = 2 } };
+       }
+}
diff --git a/mcs/errors/cs1920.cs b/mcs/errors/cs1920.cs
new file mode 100644 (file)
index 0000000..e13dd53
--- /dev/null
@@ -0,0 +1,13 @@
+// CS1920: An element initializer cannot be empty
+// Line: 11
+
+
+using System.Collections.Generic;
+
+public class Test
+{
+       static void Main ()
+       {
+               var d = new Dictionary <string, int> { { } };
+       }
+}
diff --git a/mcs/errors/cs1922-2.cs b/mcs/errors/cs1922-2.cs
new file mode 100644 (file)
index 0000000..27fa387
--- /dev/null
@@ -0,0 +1,17 @@
+// CS1922: A field or property `System.Type' cannot be initialized with a collection object initializer because type `System.Type' does not implement `System.Collections.IEnumerable' interface
+// Line: 13
+
+using System;
+using System.Xml.Serialization;
+
+namespace test
+{
+       public class Test
+       {
+               static void Main ()
+               {
+                       XmlSerializer xs = new XmlSerializer (typeof (string), new Type () { typeof (bool) });
+               }
+       }
+}
+
diff --git a/mcs/errors/cs1922.cs b/mcs/errors/cs1922.cs
new file mode 100644 (file)
index 0000000..2beed78
--- /dev/null
@@ -0,0 +1,18 @@
+// CS1922: A field or property `Data.Value' cannot be initialized with a collection object initializer because type `int' does not implement `System.Collections.IEnumerable' interface
+// Line: 16
+
+
+using System;
+
+class Data
+{
+       public int Value;
+}
+
+public class Test
+{
+       static void Main ()
+       {
+               var c = new Data { Value = { 0, 1, 2 } };
+       }
+}
diff --git a/mcs/errors/cs1925.cs b/mcs/errors/cs1925.cs
new file mode 100644 (file)
index 0000000..6d05753
--- /dev/null
@@ -0,0 +1,12 @@
+// CS1925: Cannot initialize object of type `string[]' with a collection initializer
+// Line: 10
+
+class C
+{
+       string[] values;
+       
+       static void Main ()
+       {
+               var v = new C { values = { "a" } };
+       }
+}
diff --git a/mcs/errors/cs1928-2.cs b/mcs/errors/cs1928-2.cs
new file mode 100644 (file)
index 0000000..f5cefeb
--- /dev/null
@@ -0,0 +1,22 @@
+// CS1928: Type `System.Collections.IList' does not contain a member `Frobnicate' and the best extension method overload `Extensions.Frobnicate<Test>(this Test)' has some invalid arguments
+// Line: 20
+
+using System;
+using System.Collections;
+
+static class Extensions
+{
+       public static void Frobnicate<T> (this T foo) where T : IList
+       {
+       }
+}
+
+public class Test
+{
+       IList mFoo;
+
+       void Frobnicate ()
+       {
+               mFoo.Frobnicate<Test> ();
+       }
+}
diff --git a/mcs/errors/cs1928-3.cs b/mcs/errors/cs1928-3.cs
new file mode 100644 (file)
index 0000000..0eee7b2
--- /dev/null
@@ -0,0 +1,17 @@
+// CS1928: Type `int' does not contain a member `Foo' and the best extension method overload `S.Foo(this uint)' has some invalid arguments
+// Line: 15
+
+static class S
+{
+       public static void Foo (this uint i)
+       {
+       }
+}
+
+class B
+{
+       static void Main ()
+       {
+               55.Foo ();
+       }
+}
diff --git a/mcs/errors/cs1928.cs b/mcs/errors/cs1928.cs
new file mode 100644 (file)
index 0000000..2792275
--- /dev/null
@@ -0,0 +1,14 @@
+// CS1928: Type `string' does not contain a member `Check' and the best extension method overload `C.Check(this string, int)' has some invalid arguments
+// Line: 12
+
+static class C
+{
+       public static void Check (this string s, int i)
+       {
+       }
+
+       static void Main ()
+       {
+               "alo".Check ("o");
+       }
+}
diff --git a/mcs/errors/cs1929.cs b/mcs/errors/cs1929.cs
new file mode 100644 (file)
index 0000000..6358f36
--- /dev/null
@@ -0,0 +1,14 @@
+// CS1929: Extension method instance type `int' cannot be converted to `string'
+// Line: 12
+
+static class C
+{
+       public static void Check (this string s)
+       {
+       }
+
+       static void Main ()
+       {
+               1.Check ();
+       }
+}
diff --git a/mcs/errors/cs1930-2.cs b/mcs/errors/cs1930-2.cs
new file mode 100644 (file)
index 0000000..078a83a
--- /dev/null
@@ -0,0 +1,17 @@
+// CS1930: A range variable `i' has already been declared in this scope
+// Line: 14
+
+
+using System;
+using System.Linq;
+
+class C
+{
+       public static void Main ()
+       {
+               var e = from v in "a"
+                       let i = 1
+                       let i = 2
+                       select v;
+       }
+}
diff --git a/mcs/errors/cs1930.cs b/mcs/errors/cs1930.cs
new file mode 100644 (file)
index 0000000..83f0fb3
--- /dev/null
@@ -0,0 +1,16 @@
+// CS1930: A range variable `v' has already been declared in this scope
+// Line: 13
+
+
+using System;
+using System.Linq;
+
+class C
+{
+       public static void Main ()
+       {
+               var e = from v in "a"
+                       let v = 1
+                       select v;
+       }
+}
diff --git a/mcs/errors/cs1931-2.cs b/mcs/errors/cs1931-2.cs
new file mode 100644 (file)
index 0000000..e9cfe73
--- /dev/null
@@ -0,0 +1,16 @@
+// CS1931: A range variable `i' conflicts with a previous declaration of `i'
+// Line: 13
+
+
+using System;
+using System.Linq;
+
+class C
+{
+       public void Foo (int i)
+       {
+               var e = from v in "a"
+                       let i = 2
+                       select v;
+       }
+}
diff --git a/mcs/errors/cs1931-3.cs b/mcs/errors/cs1931-3.cs
new file mode 100644 (file)
index 0000000..86c63a0
--- /dev/null
@@ -0,0 +1,17 @@
+// CS1931: A range variable `ii' conflicts with a previous declaration of `ii'
+// Line: 14
+
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+
+class Test
+{
+       public static void Main ()
+       {
+               int[] int_array = null;
+               int ii = 0;
+               IEnumerable<int> e = from int ii in int_array select "1";
+       }
+}
diff --git a/mcs/errors/cs1931-4.cs b/mcs/errors/cs1931-4.cs
new file mode 100644 (file)
index 0000000..6088435
--- /dev/null
@@ -0,0 +1,15 @@
+// CS1931: A range variable `i' conflicts with a previous declaration of `i'
+// Line: 12
+
+using System;
+using System.Linq;
+
+class C
+{
+       public static void Main ()
+       {
+               int i = 9;
+               var e = from i in "a"
+                       select 1;
+       }
+}
diff --git a/mcs/errors/cs1931.cs b/mcs/errors/cs1931.cs
new file mode 100644 (file)
index 0000000..74d517d
--- /dev/null
@@ -0,0 +1,17 @@
+// CS1931: A range variable `i' conflicts with a previous declaration of `i'
+// Line: 14
+
+
+using System;
+using System.Linq;
+
+class C
+{
+       public static void Main ()
+       {
+               int i = 9;
+               var e = from v in "a"
+                       let i = 2
+                       select v;
+       }
+}
diff --git a/mcs/errors/cs1932-2.cs b/mcs/errors/cs1932-2.cs
new file mode 100644 (file)
index 0000000..f58cb3c
--- /dev/null
@@ -0,0 +1,15 @@
+// CS1932: A range variable `ii' cannot be initialized with `method group'
+// Line: 12
+
+using System;
+using System.Linq;
+
+class C
+{
+       public void Foo (int i)
+       {
+               var e = from v in "a"
+                       let ii = Foo
+                       select v;
+       }
+}
diff --git a/mcs/errors/cs1932.cs b/mcs/errors/cs1932.cs
new file mode 100644 (file)
index 0000000..1952868
--- /dev/null
@@ -0,0 +1,16 @@
+// CS1932: A range variable `ii' cannot be initialized with `void'
+// Line: 13
+
+
+using System;
+using System.Linq;
+
+class C
+{
+       public void Foo (int i)
+       {
+               var e = from v in "a"
+                       let ii = Foo (2)
+                       select v;
+       }
+}
diff --git a/mcs/errors/cs1935-2.cs b/mcs/errors/cs1935-2.cs
new file mode 100644 (file)
index 0000000..165b566
--- /dev/null
@@ -0,0 +1,14 @@
+// CS1935: An implementation of `Cast' query expression pattern could not be found. Are you missing `System.Linq' using directive or `System.Core.dll' assembly reference?
+// Line: 12
+
+
+public class Test
+{
+       class Enumerable {}
+               
+       static void Main ()
+       {
+               var v = new int[0];
+               var foo = from int a in v where a > 0 select a;
+       }
+}
diff --git a/mcs/errors/cs1935.cs b/mcs/errors/cs1935.cs
new file mode 100644 (file)
index 0000000..b1e4666
--- /dev/null
@@ -0,0 +1,12 @@
+// CS1935: An implementation of `Select' query expression pattern could not be found. Are you missing `System.Linq' using directive or `System.Core.dll' assembly reference?
+// Line: 10
+
+
+public class Test
+{
+       static void Main ()
+       {
+               var v = new int[0];
+               var foo = from a in v select a;
+       }
+}
diff --git a/mcs/errors/cs1936.cs b/mcs/errors/cs1936.cs
new file mode 100644 (file)
index 0000000..22cd8c6
--- /dev/null
@@ -0,0 +1,18 @@
+// CS1936: An implementation of `Select' query expression pattern for source type `Item' could not be found
+// Line: 16
+
+
+using System.Linq;
+
+class Item
+{
+}
+
+public static class Test
+{
+       static void Main ()
+       {
+               var v = new Item ();
+               var foo = from a in v select a;
+       }
+}
diff --git a/mcs/errors/cs1939.cs b/mcs/errors/cs1939.cs
new file mode 100644 (file)
index 0000000..54d1f5b
--- /dev/null
@@ -0,0 +1,21 @@
+// CS1930: A range variable `v' may not be passes as `ref' or `out' parameter
+// Line: 19
+
+
+using System;
+using System.Linq;
+
+class C
+{
+       static int Foo (ref int value)
+       {
+               return 1;
+       }
+       
+       public static void Main ()
+       {
+               var e = from v in "a"
+                       let r = 1
+                       select Foo (ref v);
+       }
+}
diff --git a/mcs/errors/cs1940.cs b/mcs/errors/cs1940.cs
new file mode 100644 (file)
index 0000000..e53a5a6
--- /dev/null
@@ -0,0 +1,23 @@
+// CS1940: Ambiguous implementation of the query pattern `Select' for source type `Multiple'
+// Line: 10
+
+class Multiple
+{
+       delegate int D1 (int x);
+       delegate int D2 (int x);
+
+       int Select (D1 d)
+       {
+               return 0;
+       }
+
+       int Select (D2 d)
+       {
+               return 1;
+       }
+
+       public static void Main ()
+       {
+               var q = from x in new Multiple () select x;
+       }
+}
diff --git a/mcs/errors/cs1942-2.cs b/mcs/errors/cs1942-2.cs
new file mode 100644 (file)
index 0000000..f67f376
--- /dev/null
@@ -0,0 +1,20 @@
+// CS1942: An expression type in `select' clause is incorrect. Type inference failed in the call to `Select'
+// Line: 18
+
+using System;
+
+class TestA
+{
+       public string Select<U> (Func<TestA, U> f)
+       {
+               return "";
+       }
+}
+
+public class C
+{
+       static void Main ()
+       {
+               string foo = from a in new TestA () select null;
+       }
+}
diff --git a/mcs/errors/cs1942.cs b/mcs/errors/cs1942.cs
new file mode 100644 (file)
index 0000000..e6cffda
--- /dev/null
@@ -0,0 +1,14 @@
+// CS1942: An expression type in `select' clause is incorrect. Type inference failed in the call to `Select'
+// Line: 12
+
+using System;
+using System.Linq;
+
+class C
+{
+       public static void Main ()
+       {
+               var e = from values in "abcd"
+                       select null;
+       }
+}
diff --git a/mcs/errors/cs1943.cs b/mcs/errors/cs1943.cs
new file mode 100644 (file)
index 0000000..92fd591
--- /dev/null
@@ -0,0 +1,14 @@
+// CS1943: An expression type is incorrect in a subsequent `from' clause in a query expression with source type `string'
+// Line: 11
+
+using System.Linq;
+
+class Test
+{
+       static void Main ()
+       {
+               var e = from a in "abcd"
+                               from b in new Test ()
+                               select b;
+       }
+}
diff --git a/mcs/errors/cs1944-2.cs b/mcs/errors/cs1944-2.cs
new file mode 100644 (file)
index 0000000..5280413
--- /dev/null
@@ -0,0 +1,18 @@
+// CS1944: An expression tree cannot contain an unsafe pointer operation
+// Line: 15
+// Compiler options: -unsafe
+
+using System;
+using System.Linq.Expressions;
+
+class C
+{
+       unsafe delegate int* D (int i);
+       
+       public static void Main ()
+       {
+               unsafe {
+                       Expression<D> e = (int p) => &p;
+               }
+       }
+}
diff --git a/mcs/errors/cs1944-3.cs b/mcs/errors/cs1944-3.cs
new file mode 100644 (file)
index 0000000..3a5e310
--- /dev/null
@@ -0,0 +1,18 @@
+// CS1944: An expression tree cannot contain an unsafe pointer operation
+// Line: 15
+// Compiler options: -unsafe
+
+using System;
+using System.Linq.Expressions;
+
+class C
+{
+       unsafe delegate int D (int* i);
+       
+       public static void Main ()
+       {
+               unsafe {
+                       Expression<D> e = p => *p;
+               }
+       }
+}
diff --git a/mcs/errors/cs1944-4.cs b/mcs/errors/cs1944-4.cs
new file mode 100644 (file)
index 0000000..33fc4d6
--- /dev/null
@@ -0,0 +1,18 @@
+// CS1944: An expression tree cannot contain an unsafe pointer operation
+// Line: 15
+// Compiler options: -unsafe
+
+using System;
+using System.Linq.Expressions;
+
+class C
+{
+       unsafe delegate int* D (int* i);
+       
+       public static void Main ()
+       {
+               unsafe {
+                       Expression<D> e = p => p + 1;
+               }
+       }
+}
diff --git a/mcs/errors/cs1944-5.cs b/mcs/errors/cs1944-5.cs
new file mode 100644 (file)
index 0000000..b53a1ba
--- /dev/null
@@ -0,0 +1,16 @@
+// CS1944: An expression tree cannot contain an unsafe pointer operation
+// Line: 13
+// Compiler options: -unsafe
+
+using System;
+using System.Linq.Expressions;
+
+class C
+{
+       public static void Main ()
+       {
+               unsafe {
+                       Expression<Func<int>> e = () => sizeof (long*);
+               }
+       }
+}
diff --git a/mcs/errors/cs1944-6.cs b/mcs/errors/cs1944-6.cs
new file mode 100644 (file)
index 0000000..60efab1
--- /dev/null
@@ -0,0 +1,17 @@
+// CS1944: An expression tree cannot contain an unsafe pointer operation
+// Line: 14
+// Compiler options: -unsafe
+
+using System;
+using System.Linq.Expressions;
+
+class C
+{
+       unsafe delegate byte* D (int*[] d);
+       public static void Main ()
+       {
+               unsafe {
+                       Expression<D> e6 = (p) => (byte*)p [10];
+               }
+       }
+}
diff --git a/mcs/errors/cs1944-7.cs b/mcs/errors/cs1944-7.cs
new file mode 100644 (file)
index 0000000..f9ff69c
--- /dev/null
@@ -0,0 +1,18 @@
+// CS1944: An expression tree cannot contain an unsafe pointer operation
+// Line: 15
+// Compiler options: -unsafe
+
+using System;
+using System.Linq.Expressions;
+
+class C
+{
+       unsafe delegate int* D ();
+       
+       public static void Main ()
+       {
+               unsafe {
+                       Expression<D> e = () => default (int*);
+               }
+       }
+}
diff --git a/mcs/errors/cs1944.cs b/mcs/errors/cs1944.cs
new file mode 100644 (file)
index 0000000..5b5668a
--- /dev/null
@@ -0,0 +1,17 @@
+// CS1944: An expression tree cannot contain an unsafe pointer operation
+// Line: 14
+// Compiler options: -unsafe
+
+using System;
+using System.Linq.Expressions;
+
+class C
+{
+       public static void Main ()
+       {
+               unsafe {
+                       int*[] p = null;
+                       Expression<Func<int>> e6 = () => (int)p [10];
+               }
+       }
+}
diff --git a/mcs/errors/cs1945.cs b/mcs/errors/cs1945.cs
new file mode 100644 (file)
index 0000000..1f70335
--- /dev/null
@@ -0,0 +1,13 @@
+// CS1945: An expression tree cannot contain an anonymous method expression
+// Line: 11
+
+using System;
+using System.Linq.Expressions;
+
+class C
+{
+       public static void Main ()
+       {
+               Expression<Func<Func<int>>> e = () => delegate () { return 1; };                
+       }
+}
diff --git a/mcs/errors/cs1946.cs b/mcs/errors/cs1946.cs
new file mode 100644 (file)
index 0000000..f53130f
--- /dev/null
@@ -0,0 +1,15 @@
+// CS1946: An anonymous method cannot be converted to an expression tree
+// Line: 11
+
+using System;
+using System.Linq.Expressions;
+
+class C
+{
+       delegate string D ();
+
+       public static void Main ()
+       {
+               Expression<D> e = delegate () { return "a"; };
+       }
+}
diff --git a/mcs/errors/cs1947.cs b/mcs/errors/cs1947.cs
new file mode 100644 (file)
index 0000000..3d5869c
--- /dev/null
@@ -0,0 +1,18 @@
+// CS1947: A range variable `v' cannot be assigned to. Consider using `let' clause to store the value
+// Line: 15
+
+using System;
+using System.Linq;
+
+class Test
+{
+       public static int Main ()
+       {
+               int[] int_array = new int [] { 0, 1 };
+               
+               var e = from int i in int_array
+                       let v = true
+                       where v = false
+                       select v;
+       }
+}
diff --git a/mcs/errors/cs1948-2.cs b/mcs/errors/cs1948-2.cs
new file mode 100644 (file)
index 0000000..5895fec
--- /dev/null
@@ -0,0 +1,15 @@
+// CS1948: A range variable `T' conflicts with a method type parameter
+// Line: 13
+
+using System;
+using System.Linq;
+
+class C
+{
+       public static void Foo <T> ()
+       {
+               var s = "0";
+               var e = from T in "a"
+                       select T + s;
+       }
+}
diff --git a/mcs/errors/cs1948.cs b/mcs/errors/cs1948.cs
new file mode 100644 (file)
index 0000000..07d503d
--- /dev/null
@@ -0,0 +1,15 @@
+// CS1948: A range variable `T' conflicts with a method type parameter
+// Line: 12
+
+
+using System;
+using System.Linq;
+
+class C
+{
+       public static void Foo <T> ()
+       {
+               var e = from T in "a"
+                       select T;
+       }
+}
diff --git a/mcs/errors/cs1950.cs b/mcs/errors/cs1950.cs
new file mode 100644 (file)
index 0000000..707c604
--- /dev/null
@@ -0,0 +1,23 @@
+// CS1954: The best overloaded collection initalizer method `Data.Add(__arglist)' has some invalid arguments
+// Line: 16
+
+
+using System;
+using System.Collections;
+
+class Data : IEnumerable
+{
+       public IEnumerator GetEnumerator () { return null; }
+       
+       public void Add (__arglist)
+       {
+       }
+}
+
+public class Test
+{
+       static void Main ()
+       {
+               var c = new Data { 1 };
+       }
+}
diff --git a/mcs/errors/cs1951-2.cs b/mcs/errors/cs1951-2.cs
new file mode 100644 (file)
index 0000000..615d2cf
--- /dev/null
@@ -0,0 +1,15 @@
+// CS1951: An expression tree parameter cannot use `ref' or `out' modifier
+// Line: 13
+
+using System;
+using System.Linq.Expressions;
+
+class C
+{
+       delegate int D (out int a);
+       
+       public static void Main ()
+       {
+               Expression<D> e = (out int a) => a = 0;
+       }
+}
diff --git a/mcs/errors/cs1951.cs b/mcs/errors/cs1951.cs
new file mode 100644 (file)
index 0000000..c1040f8
--- /dev/null
@@ -0,0 +1,15 @@
+// CS1951: An expression tree parameter cannot use `ref' or `out' modifier
+// Line: 13
+
+using System;
+using System.Linq.Expressions;
+
+class C
+{
+       delegate int D (ref int a);
+       
+       public static void Main ()
+       {
+               Expression<D> e = (ref int a) => a;
+       }
+}
diff --git a/mcs/errors/cs1952.cs b/mcs/errors/cs1952.cs
new file mode 100644 (file)
index 0000000..de515a3
--- /dev/null
@@ -0,0 +1,18 @@
+// CS1952: An expression tree cannot contain a method with variable arguments
+// Line: 11
+
+using System;
+using System.Linq.Expressions;
+
+class C
+{
+       void Foo ()
+       {
+               Expression<Func<int>> e = () => InstanceArgList (__arglist (0));
+       }
+       
+       int InstanceArgList (__arglist)
+       {
+               return 54;
+       }
+}
diff --git a/mcs/errors/cs1953.cs b/mcs/errors/cs1953.cs
new file mode 100644 (file)
index 0000000..ba5dbad
--- /dev/null
@@ -0,0 +1,13 @@
+// CS1953: An expression tree cannot contain an expression with method group
+// Line: 11
+
+using System;
+using System.Linq.Expressions;
+
+class C
+{
+       public static void Main ()
+       {
+               Expression<Func<bool>> e = () => "1".ToString is string;
+       }
+}
\ No newline at end of file
diff --git a/mcs/errors/cs1954.cs b/mcs/errors/cs1954.cs
new file mode 100644 (file)
index 0000000..4b5a9e8
--- /dev/null
@@ -0,0 +1,23 @@
+// CS1954:  The best overloaded collection initalizer method `Data.Add(ref int)' cannot have 'ref', or `out' modifier
+// Line: 16
+
+
+using System;
+using System.Collections;
+
+class Data : IEnumerable
+{
+       public IEnumerator GetEnumerator () { return null; }
+       
+       public void Add (ref int b)
+       {
+       }
+}
+
+public class Test
+{
+       static void Main ()
+       {
+               var c = new Data { 1 };
+       }
+}
diff --git a/mcs/errors/cs1959-2.cs b/mcs/errors/cs1959-2.cs
new file mode 100644 (file)
index 0000000..007414e
--- /dev/null
@@ -0,0 +1,10 @@
+// CS1959: Type parameter `T' cannot be declared const
+// Line: 8
+
+struct S
+{
+       public void Foo<T> () where T : struct
+       {
+               const T t = null;
+       }
+}
diff --git a/mcs/errors/cs1959.cs b/mcs/errors/cs1959.cs
new file mode 100644 (file)
index 0000000..afc0b71
--- /dev/null
@@ -0,0 +1,11 @@
+// CS1959: Type parameter `T' cannot be declared const
+// Line: 10
+
+class C
+{
+}
+
+class C<T> where T : C
+{
+       const T t = null;
+}
diff --git a/mcs/errors/cs1960-2.cs b/mcs/errors/cs1960-2.cs
new file mode 100644 (file)
index 0000000..48421df
--- /dev/null
@@ -0,0 +1,7 @@
+// CS1960: Variant type parameters can only be used with interfaces and delegates
+// Line: 5
+// Compiler options: -langversion:future
+
+class A<in T>
+{
+}
diff --git a/mcs/errors/cs1960.cs b/mcs/errors/cs1960.cs
new file mode 100644 (file)
index 0000000..6085255
--- /dev/null
@@ -0,0 +1,7 @@
+// CS1960: Variant type parameters can only be used with interfaces and delegates
+// Line: 5
+// Compiler options: -langversion:future
+
+class A<out T>
+{
+}
diff --git a/mcs/errors/cs1961-10.cs b/mcs/errors/cs1961-10.cs
new file mode 100644 (file)
index 0000000..5eb26dc
--- /dev/null
@@ -0,0 +1,9 @@
+// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>()'
+// Line: 9
+// Compiler options: -langversion:future
+
+interface A<T>
+{
+}
+
+delegate A<A<T>> B<in T> ();
diff --git a/mcs/errors/cs1961-11.cs b/mcs/errors/cs1961-11.cs
new file mode 100644 (file)
index 0000000..4f7bc65
--- /dev/null
@@ -0,0 +1,9 @@
+// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>(A<T>)'
+// Line: 9
+// Compiler options: -langversion:future
+
+interface A<T>
+{
+}
+
+delegate void B<in T> (A<T> a);
diff --git a/mcs/errors/cs1961-12.cs b/mcs/errors/cs1961-12.cs
new file mode 100644 (file)
index 0000000..9359e5f
--- /dev/null
@@ -0,0 +1,9 @@
+// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>(A<A<T>>)'
+// Line: 9
+// Compiler options: -langversion:future
+
+interface A<T>
+{
+}
+
+delegate void B<in T> (A<A<T>> a);
diff --git a/mcs/errors/cs1961-13.cs b/mcs/errors/cs1961-13.cs
new file mode 100644 (file)
index 0000000..457f795
--- /dev/null
@@ -0,0 +1,12 @@
+// CS1961: The contravariant type parameter `T' must be covariantly valid on `B<T>.A'
+// Line: 9
+// Compiler options: -langversion:future
+
+interface A<out T>
+{
+}
+
+interface B<in T>
+{
+       A<T> A { get; }
+}
diff --git a/mcs/errors/cs1961-14.cs b/mcs/errors/cs1961-14.cs
new file mode 100644 (file)
index 0000000..51a69a2
--- /dev/null
@@ -0,0 +1,12 @@
+// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>.C(A<T>)'
+// Line: 9
+// Compiler options: -langversion:future
+
+interface A<T>
+{
+}
+
+interface B<in T>
+{
+       void C(A<T> a);
+}
diff --git a/mcs/errors/cs1961-15.cs b/mcs/errors/cs1961-15.cs
new file mode 100644 (file)
index 0000000..2e65426
--- /dev/null
@@ -0,0 +1,9 @@
+// CS1961: The covariant type parameter `U' must be contravariantly valid on `D<U>()'
+// Line: 9
+// Compiler options: -langversion:future
+
+interface I<in T>
+{
+}
+
+delegate I<U[]> D<out U> ();
diff --git a/mcs/errors/cs1961-16.cs b/mcs/errors/cs1961-16.cs
new file mode 100644 (file)
index 0000000..973c67b
--- /dev/null
@@ -0,0 +1,11 @@
+// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>'
+// Line: 9
+// Compiler options: -langversion:future
+
+interface A<T>
+{
+}
+
+interface B<in T> : A<T>
+{
+}
diff --git a/mcs/errors/cs1961-17.cs b/mcs/errors/cs1961-17.cs
new file mode 100644 (file)
index 0000000..f439dfa
--- /dev/null
@@ -0,0 +1,11 @@
+// CS1961: The contravariant type parameter `T' must be covariantly valid on `B<T>'
+// Line: 9
+// Compiler options: -langversion:future
+
+interface A<out T>
+{
+}
+
+interface B<in T> : A<T>
+{
+}
diff --git a/mcs/errors/cs1961-18.cs b/mcs/errors/cs1961-18.cs
new file mode 100644 (file)
index 0000000..ac551a6
--- /dev/null
@@ -0,0 +1,12 @@
+// CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>.A'
+// Line: 9
+// Compiler options: -langversion:future
+
+interface A<T>
+{
+}
+
+interface B<out T>
+{
+       A<T> A { get; }
+}
diff --git a/mcs/errors/cs1961-19.cs b/mcs/errors/cs1961-19.cs
new file mode 100644 (file)
index 0000000..e9df1fd
--- /dev/null
@@ -0,0 +1,12 @@
+// CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>.A'
+// Line: 9
+// Compiler options: -langversion:future
+
+interface A<T>
+{
+}
+
+interface B<out T>
+{
+       A<A<T>> A { get; }
+}
diff --git a/mcs/errors/cs1961-2.cs b/mcs/errors/cs1961-2.cs
new file mode 100644 (file)
index 0000000..40d29f8
--- /dev/null
@@ -0,0 +1,5 @@
+// CS1961: The contravariant type parameter `T' must be covariantly valid on `D<T>()'
+// Line: 5
+// Compiler options: -langversion:future
+
+delegate T D<in T> ();
diff --git a/mcs/errors/cs1961-20.cs b/mcs/errors/cs1961-20.cs
new file mode 100644 (file)
index 0000000..e5b5e7d
--- /dev/null
@@ -0,0 +1,12 @@
+// CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>.C()'
+// Line: 9
+// Compiler options: -langversion:future
+
+interface A<T>
+{
+}
+
+interface B<out T>
+{
+       A<T> C();
+}
diff --git a/mcs/errors/cs1961-21.cs b/mcs/errors/cs1961-21.cs
new file mode 100644 (file)
index 0000000..2292255
--- /dev/null
@@ -0,0 +1,12 @@
+// CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>.C()'
+// Line: 9
+// Compiler options: -langversion:future
+
+interface A<T>
+{
+}
+
+interface B<out T>
+{
+       A<A<T>> C();
+}
diff --git a/mcs/errors/cs1961-22.cs b/mcs/errors/cs1961-22.cs
new file mode 100644 (file)
index 0000000..098e8af
--- /dev/null
@@ -0,0 +1,12 @@
+// CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>.C(A<T>)'
+// Line: 9
+// Compiler options: -langversion:future
+
+interface A<T>
+{
+}
+
+interface B<out T>
+{
+       void C(A<T> a);
+}
diff --git a/mcs/errors/cs1961-23.cs b/mcs/errors/cs1961-23.cs
new file mode 100644 (file)
index 0000000..a536728
--- /dev/null
@@ -0,0 +1,12 @@
+// CS1923: The covariant type parameter `T' must be invariantly valid on `B<T>.C(A<A<T>>)'
+// Line: 9
+// Compiler options: -langversion:future
+
+interface A<T>
+{
+}
+
+interface B<out T>
+{
+       void C(A<A<T>> a);
+}
diff --git a/mcs/errors/cs1961-24.cs b/mcs/errors/cs1961-24.cs
new file mode 100644 (file)
index 0000000..b08bea6
--- /dev/null
@@ -0,0 +1,9 @@
+// CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>()'
+// Line: 9
+// Compiler options: -langversion:future
+
+interface A<T>
+{
+}
+
+delegate A<T> B<out T> ();
diff --git a/mcs/errors/cs1961-25.cs b/mcs/errors/cs1961-25.cs
new file mode 100644 (file)
index 0000000..f76625a
--- /dev/null
@@ -0,0 +1,9 @@
+// CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>()'
+// Line: 9
+// Compiler options: -langversion:future
+
+interface A<T>
+{
+}
+
+delegate A<A<T>> B<out T> ();
diff --git a/mcs/errors/cs1961-26.cs b/mcs/errors/cs1961-26.cs
new file mode 100644 (file)
index 0000000..cd3b5bf
--- /dev/null
@@ -0,0 +1,9 @@
+// CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>(A<T>)'
+// Line: 9
+// Compiler options: -langversion:future
+
+interface A<T>
+{
+}
+
+delegate void B<out T> (A<T> a);
diff --git a/mcs/errors/cs1961-27.cs b/mcs/errors/cs1961-27.cs
new file mode 100644 (file)
index 0000000..71b39f6
--- /dev/null
@@ -0,0 +1,9 @@
+// CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>(A<A<T>>)'
+// Line: 9
+// Compiler options: -langversion:future
+
+interface A<T>
+{
+}
+
+delegate void B<out T> (A<A<T>> a);
diff --git a/mcs/errors/cs1961-28.cs b/mcs/errors/cs1961-28.cs
new file mode 100644 (file)
index 0000000..37e8714
--- /dev/null
@@ -0,0 +1,12 @@
+// CS1961: The covariant type parameter `T' must be contravariantly valid on `B<T>.A'
+// Line: 9
+// Compiler options: -langversion:future
+
+interface A<in T>
+{
+}
+
+interface B<out T>
+{
+       A<T> A { get; }
+}
diff --git a/mcs/errors/cs1961-29.cs b/mcs/errors/cs1961-29.cs
new file mode 100644 (file)
index 0000000..098e8af
--- /dev/null
@@ -0,0 +1,12 @@
+// CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>.C(A<T>)'
+// Line: 9
+// Compiler options: -langversion:future
+
+interface A<T>
+{
+}
+
+interface B<out T>
+{
+       void C(A<T> a);
+}
diff --git a/mcs/errors/cs1961-3.cs b/mcs/errors/cs1961-3.cs
new file mode 100644 (file)
index 0000000..97138e0
--- /dev/null
@@ -0,0 +1,12 @@
+// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>.A'
+// Line: 9
+// Compiler options: -langversion:future
+
+interface A<T>
+{
+}
+
+interface B<in T>
+{
+       A<T> A { get; }
+}
diff --git a/mcs/errors/cs1961-30.cs b/mcs/errors/cs1961-30.cs
new file mode 100644 (file)
index 0000000..34498c5
--- /dev/null
@@ -0,0 +1,7 @@
+// CS1961: The covariant type parameter `U' must be contravariantly valid on `D<U>()'
+// Line: 7
+// Compiler options: -langversion:future
+
+interface IContravariant<in T> { }
+
+delegate IContravariant<U[]> D<out U> ();
diff --git a/mcs/errors/cs1961-31.cs b/mcs/errors/cs1961-31.cs
new file mode 100644 (file)
index 0000000..e2f89b5
--- /dev/null
@@ -0,0 +1,11 @@
+// CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>'
+// Line: 9
+// Compiler options: -langversion:future
+
+interface A<T>
+{
+}
+
+interface B<out T> : A<T>
+{
+}
diff --git a/mcs/errors/cs1961-32.cs b/mcs/errors/cs1961-32.cs
new file mode 100644 (file)
index 0000000..00afd32
--- /dev/null
@@ -0,0 +1,11 @@
+// CS1961: The covariant type parameter `T' must be contravariantly valid on `B<T>'
+// Line: 9
+// Compiler options: -langversion:future
+
+interface A<in T>
+{
+}
+
+interface B<out T> : A<T>
+{
+}
diff --git a/mcs/errors/cs1961-33.cs b/mcs/errors/cs1961-33.cs
new file mode 100644 (file)
index 0000000..246c05b
--- /dev/null
@@ -0,0 +1,8 @@
+// CS1961: The contravariant type parameter `T' must be invariantly valid on `A<T>.B(out T)'
+// Line: 5
+// Compiler options: -langversion:future
+
+interface A<in T>
+{
+       void B(out T t);
+}
diff --git a/mcs/errors/cs1961-34.cs b/mcs/errors/cs1961-34.cs
new file mode 100644 (file)
index 0000000..662672e
--- /dev/null
@@ -0,0 +1,8 @@
+// CS1961: The contravariant type parameter `T' must be invariantly valid on `A<T>.B(ref T)'
+// Line: 5
+// Compiler options: -langversion:future
+
+interface A<in T>
+{
+       void B(ref T t);
+}
diff --git a/mcs/errors/cs1961-35.cs b/mcs/errors/cs1961-35.cs
new file mode 100644 (file)
index 0000000..9e2fa3d
--- /dev/null
@@ -0,0 +1,8 @@
+// CS1961: The covariant type parameter `T' must be contravariantly valid on `A<T>.B(T)'
+// Line: 7
+// Compiler options: -langversion:future
+
+interface A<out T>
+{
+       void B(T t);
+}
diff --git a/mcs/errors/cs1961-36.cs b/mcs/errors/cs1961-36.cs
new file mode 100644 (file)
index 0000000..d657714
--- /dev/null
@@ -0,0 +1,8 @@
+// CS1961: The covariant type parameter `T' must be invariantly valid on `A<T>.B(out T)'
+// Line: 7
+// Compiler options: -langversion:future
+
+interface A<out T>
+{
+       void B(out T t);
+}
diff --git a/mcs/errors/cs1961-37.cs b/mcs/errors/cs1961-37.cs
new file mode 100644 (file)
index 0000000..d65e7cb
--- /dev/null
@@ -0,0 +1,8 @@
+// CS1961: The covariant type parameter `T' must be invariantly valid on `A<T>.B(ref T)'
+// Line: 5
+// Compiler options: -langversion:future
+
+interface A<out T>
+{
+       void B(ref T t);
+}
diff --git a/mcs/errors/cs1961-38.cs b/mcs/errors/cs1961-38.cs
new file mode 100644 (file)
index 0000000..e5a05d6
--- /dev/null
@@ -0,0 +1,9 @@
+// CS1961: The covariant type parameter `V' must be invariantly valid on `Both<U,V>(Covariant<None<Contra<V>>>)'
+// Line: 9
+// Compiler options: -langversion:future
+
+delegate T Covariant<out T> ();
+delegate void Contra<in T> (T t);
+delegate void None<T> (T t);
+
+delegate void Both<in U, out V> (Covariant<None<Contra<V>>> b);
diff --git a/mcs/errors/cs1961-39.cs b/mcs/errors/cs1961-39.cs
new file mode 100644 (file)
index 0000000..3938d68
--- /dev/null
@@ -0,0 +1,7 @@
+// CS1961: The covariant type parameter `V' must be contravariantly valid on `I<V>.Foo<T>(T)'
+// Line: 6
+
+interface I<out V>
+{
+       void Foo<T> (T t) where T : V;
+}
diff --git a/mcs/errors/cs1961-4.cs b/mcs/errors/cs1961-4.cs
new file mode 100644 (file)
index 0000000..1ca5c60
--- /dev/null
@@ -0,0 +1,12 @@
+// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>.A'
+// Line: 9
+// Compiler options: -langversion:future
+
+interface A<T>
+{
+}
+
+interface B<in T>
+{
+       A<A<T>> A { get; }
+}
diff --git a/mcs/errors/cs1961-5.cs b/mcs/errors/cs1961-5.cs
new file mode 100644 (file)
index 0000000..5c92c26
--- /dev/null
@@ -0,0 +1,12 @@
+// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>.C()'
+// Line: 9
+// Compiler options: -langversion:future
+
+interface A<T>
+{
+}
+
+interface B<in T>
+{
+       A<T> C();
+}
diff --git a/mcs/errors/cs1961-6.cs b/mcs/errors/cs1961-6.cs
new file mode 100644 (file)
index 0000000..b0fee16
--- /dev/null
@@ -0,0 +1,12 @@
+// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>.C()'
+// Line: 9
+// Compiler options: -langversion:future
+
+interface A<T>
+{
+}
+
+interface B<in T>
+{
+       A<A<T>> C();
+}
diff --git a/mcs/errors/cs1961-7.cs b/mcs/errors/cs1961-7.cs
new file mode 100644 (file)
index 0000000..51a69a2
--- /dev/null
@@ -0,0 +1,12 @@
+// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>.C(A<T>)'
+// Line: 9
+// Compiler options: -langversion:future
+
+interface A<T>
+{
+}
+
+interface B<in T>
+{
+       void C(A<T> a);
+}
diff --git a/mcs/errors/cs1961-8.cs b/mcs/errors/cs1961-8.cs
new file mode 100644 (file)
index 0000000..068a586
--- /dev/null
@@ -0,0 +1,12 @@
+// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>.C(A<A<T>>)'
+// Line: 9
+// Compiler options: -langversion:future
+
+interface A<T>
+{
+}
+
+interface B<in T>
+{
+       void C(A<A<T>> a);
+}
diff --git a/mcs/errors/cs1961-9.cs b/mcs/errors/cs1961-9.cs
new file mode 100644 (file)
index 0000000..e0378b9
--- /dev/null
@@ -0,0 +1,9 @@
+// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>()'
+// Line: 9
+// Compiler options: -langversion:future
+
+interface A<T>
+{
+}
+
+delegate A<T> B<in T> ();
diff --git a/mcs/errors/cs1961.cs b/mcs/errors/cs1961.cs
new file mode 100644 (file)
index 0000000..8450e2f
--- /dev/null
@@ -0,0 +1,8 @@
+// CS1961: The contravariant type parameter `T' must be covariantly valid on `A<T>.B()'
+// Line: 7
+// Compiler options: -langversion:future
+
+interface A<in T>
+{
+       T B();
+}
diff --git a/mcs/errors/cs3001-10.cs b/mcs/errors/cs3001-10.cs
new file mode 100644 (file)
index 0000000..242fd5f
--- /dev/null
@@ -0,0 +1,11 @@
+// CS3001: Argument type `sbyte' is not CLS-compliant
+// Line: 9
+// Compiler options: -warnaserror -warn:1
+
+using System;
+[assembly:CLSCompliant (true)]
+
+public static class CLSClass
+{
+       public static void Foo (this sbyte value) { }
+}
diff --git a/mcs/errors/cs3002-11.cs b/mcs/errors/cs3002-11.cs
new file mode 100644 (file)
index 0000000..e1a0d55
--- /dev/null
@@ -0,0 +1,14 @@
+// CS3002: Return type of `CLSClass.Foo()' is not CLS-compliant
+// Line: 10
+// Compiler options: -warnaserror -warn:1
+
+using System;
+[assembly:CLSCompliant(true)]
+
+public class CLSClass
+{
+       protected ulong? Foo()
+       {
+               return 5;
+       }
+}
diff --git a/mcs/errors/cs3003-8.cs b/mcs/errors/cs3003-8.cs
new file mode 100644 (file)
index 0000000..b7fea9e
--- /dev/null
@@ -0,0 +1,12 @@
+// CS3003: Type of `S.test2' is not CLS-compliant
+// Line: 11
+// Compiler options: -unsafe -warnaserror -warn:1
+
+using System;
+
+[assembly: CLSCompliant (true)]
+
+public unsafe struct S
+{
+    public fixed bool test2 [4];
+}
diff --git a/mcs/errors/cs3005-26.cs b/mcs/errors/cs3005-26.cs
new file mode 100644 (file)
index 0000000..2abd8cb
--- /dev/null
@@ -0,0 +1,13 @@
+// CS3005: Identifier `CLSClass.Method<T>(int)' differing only in case is not CLS-compliant
+// Line: 12
+// Compiler options: -warnaserror
+
+[assembly:System.CLSCompliant (true)]
+
+public class BaseClass {
+        public int method;
+}
+
+public class CLSClass : BaseClass {
+        public static void Method<T>(int arg) {}
+}
diff --git a/mcs/errors/cs3009-4.cs b/mcs/errors/cs3009-4.cs
new file mode 100644 (file)
index 0000000..d562140
--- /dev/null
@@ -0,0 +1,14 @@
+// CS3009: `C': base type `C<ulong>' is not CLS-compliant
+// Line: 14
+// Compiler options: -warnaserror -warn:1
+
+using System;
+[assembly:CLSCompliant(true)]
+
+public class C<T>
+{
+}
+
+public class C : C<ulong>
+{
+}
diff --git a/mcs/errors/cs3019-4.cs b/mcs/errors/cs3019-4.cs
new file mode 100644 (file)
index 0000000..0c829a7
--- /dev/null
@@ -0,0 +1,10 @@
+// CS3019: CLS compliance checking will not be performed on `T' because it is not visible from outside this assembly
+// Line: 8
+// Compiler options: -warnaserror -warn:2
+
+using System;
+[assembly:CLSCompliant(true)]
+
+public class CLSClass<[CLSCompliant (false)] T>
+{
+}
\ No newline at end of file
diff --git a/mcs/errors/cs3024-2.cs b/mcs/errors/cs3024-2.cs
new file mode 100644 (file)
index 0000000..dd0f96f
--- /dev/null
@@ -0,0 +1,19 @@
+// CS3024: Constraint type `A' is not CLS-compliant
+// Line: 15
+// Compiler options: -warn:1 -warnaserror
+
+using System;
+[assembly:CLSCompliant (true)]
+
+[CLSCompliant (false)]
+public abstract class A
+{
+}
+
+public class C
+{
+       public static void Foo<T>() where T : A
+       {
+       }
+}
+
diff --git a/mcs/errors/cs3024.cs b/mcs/errors/cs3024.cs
new file mode 100644 (file)
index 0000000..5f27743
--- /dev/null
@@ -0,0 +1,16 @@
+// CS3024: Constraint type `I' is not CLS-compliant
+// Line: 13
+// Compiler options: -warn:1 -warnaserror
+
+using System;
+[assembly:CLSCompliant (true)]
+
+[CLSCompliant (false)]
+public interface I
+{
+}
+
+public class C<T> where T : I
+{
+}
+
diff --git a/mcs/errors/gcs0019-10.cs b/mcs/errors/gcs0019-10.cs
deleted file mode 100644 (file)
index 844bf0e..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS0019: Operator `==' cannot be applied to operands of type `object' and `V'
-// Line: 9
-
-public class C<V>
-{
-       public bool TryGet (V v)
-       {
-               object tmp = null;
-               return tmp == v;
-       }
-}
diff --git a/mcs/errors/gcs0019-11.cs b/mcs/errors/gcs0019-11.cs
deleted file mode 100644 (file)
index 8dd9e93..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// CS0019: Operator `+' cannot be applied to operands of type `null' and `MyTypeImplicitOnly?'
-// Line: 13
-
-struct MyTypeImplicitOnly
-{
-}
-
-class C
-{
-       static void Main ()
-       {
-               MyTypeImplicitOnly? mt = null;
-               mt = null + mt;
-       }
-}
diff --git a/mcs/errors/gcs0019-12.cs b/mcs/errors/gcs0019-12.cs
deleted file mode 100644 (file)
index 06da5a8..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS0019: Operator `??' cannot be applied to operands of type `null' and `bool'
-// Line: 8
-
-class Program
-{
-       static void Main()
-       {
-               object s = null ?? true;
-       }
-}
diff --git a/mcs/errors/gcs0019-13.cs b/mcs/errors/gcs0019-13.cs
deleted file mode 100644 (file)
index 05ba050..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS0019: Operator `??' cannot be applied to operands of type `null' and `method group'
-// Line: 8
-
-class C
-{
-       delegate void D ();
-
-       static void Main ()
-       {
-               D d = null ?? Main;
-       }
-}
diff --git a/mcs/errors/gcs0019-14.cs b/mcs/errors/gcs0019-14.cs
deleted file mode 100755 (executable)
index 2e2f520..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS0019: Operator `==' cannot be applied to operands of type `A.D' and `anonymous method'
-// Line: 11
-
-class A
-{
-       delegate void D ();
-
-       static void Main ()
-       {
-               D d = null;
-               bool r = d == (() => { });
-       }
-}
diff --git a/mcs/errors/gcs0019-15.cs b/mcs/errors/gcs0019-15.cs
deleted file mode 100644 (file)
index 18163fa..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-// CS0019: Operator `==' cannot be applied to operands of type `A' and `int?'
-// Line: 22
-
-class A
-{
-       public static bool operator == (A a, int b)
-       {
-               return false;
-       }
-       
-       public static bool operator != (A a, int b)
-       {
-               return false;
-       }
-}
-
-class C
-{
-       public static void Main ()
-       {
-               A a = new A ();
-               object b = a == Id;
-       }
-       
-       static int? Id {
-               get { return 1; }
-       }
-}
diff --git a/mcs/errors/gcs0019-16.cs b/mcs/errors/gcs0019-16.cs
deleted file mode 100644 (file)
index ab3a191..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS0019: Operator `+' cannot be applied to operands of type `Program' and `Program'
-// Line: 8
-
-public class Program
-{
-       static void Main ()
-       {
-               Program b = default (Program) + default (Program);
-       }
-}
diff --git a/mcs/errors/gcs0019-17.cs b/mcs/errors/gcs0019-17.cs
deleted file mode 100644 (file)
index ee648e6..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS0019: Operator `==' cannot be applied to operands of type `T' and `U'
-// Line: 12
-
-interface I
-{
-}
-
-class Program
-{
-       bool Test<T, U> (T t, U u) where T : I where U : I
-       {
-               return t == u;
-       }
-}
diff --git a/mcs/errors/gcs0019-18.cs b/mcs/errors/gcs0019-18.cs
deleted file mode 100644 (file)
index c5ce6fc..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS0019: Operator `&=' cannot be applied to operands of type `bool' and `byte?'
-// Line: 10
-
-public class Test
-{
-       public static void Main()
-       {
-               bool b = false;
-               byte? b2 = 0;
-               b &= b2;
-       }
-}
diff --git a/mcs/errors/gcs0019-19.cs b/mcs/errors/gcs0019-19.cs
deleted file mode 100644 (file)
index 72a7a20..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-// CS0019: Operator `^' cannot be applied to operands of type `S2' and `float'
-// Line: 9
-
-public class Test
-{
-       public static void Main()
-       {
-               S2 s2 = new S2 ();
-               int r = s2 ^ 5.04f;
-       }
-}
-
-struct S2
-{
-       public static int operator ^ (double? p1, S2 s2)
-       {
-               return 1;
-       }
-       
-       public static implicit operator int? (S2 s1)
-       { 
-               return int.MinValue;
-       }
-}
diff --git a/mcs/errors/gcs0019-2.cs b/mcs/errors/gcs0019-2.cs
deleted file mode 100644 (file)
index e36bed4..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS0019: Operator `==' cannot be applied to operands of type `T' and `T'
-// Line: 5
-public class TestClass<T>
-{
-       public bool Check (T x, T y) { return x == y; }
-}
-
-public class X
-{
-       static void Main ()
-       { }
-}
-
-
diff --git a/mcs/errors/gcs0019-20.cs b/mcs/errors/gcs0019-20.cs
deleted file mode 100644 (file)
index c103e33..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-// CS0019: Operator `>' cannot be applied to operands of type `S' and `S?'
-// Line: 9
-
-public class Test
-{
-       public static void Main ()
-       {
-               S a = new S ();
-               S? b = null;
-               string res = a > b;
-       }
-}
-
-struct S
-{
-       public static string operator > (S a, S b)
-       { 
-               return ">";
-       }
-       
-       public static string operator < (S a, S b)
-       { 
-               return "<";
-       }
-}
diff --git a/mcs/errors/gcs0019-21.cs b/mcs/errors/gcs0019-21.cs
deleted file mode 100644 (file)
index d94fadd..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// CS0019: Operator `==' cannot be applied to operands of type `S?' and `int'
-// Line: 15
-
-struct S
-{
-       public static bool operator != (S s, int a) { return true; }
-       public static bool operator == (S s, int a) { return false; }
-}
-
-public class C
-{
-       public static void Main ()
-       {
-               S? s;
-               var b = s == 1;
-       }
-}
diff --git a/mcs/errors/gcs0019-22.cs b/mcs/errors/gcs0019-22.cs
deleted file mode 100644 (file)
index b1f7cf9..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// CS0019: Operator `==' cannot be applied to operands of type `int' and `S?'
-// Line: 15
-
-struct S
-{
-       public static bool operator !=(int a, S s) { return true; }
-       public static bool operator ==(int a, S s) { return false; }
-}
-
-public class C
-{
-       public static void Main ()
-       {
-               S? s;
-               var b = 1 == s;
-       }
-}
diff --git a/mcs/errors/gcs0019-3.cs b/mcs/errors/gcs0019-3.cs
deleted file mode 100644 (file)
index a1b8dbd..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS0019: Operator `&&' cannot be applied to operands of type `bool?' and `bool?'
-// Line: 10
-using System;
-
-class X
-{
-       static void Main ()
-       {
-               bool? a = false, b = false;
-               Console.WriteLine (a && b);
-       }
-}
diff --git a/mcs/errors/gcs0019-5.cs b/mcs/errors/gcs0019-5.cs
deleted file mode 100644 (file)
index be91523..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// CS0019: Operator `==' cannot be applied to operands of type `method group' and `null'
-// Line: 8
-
-public class C
-{
-       public static void Main ()
-       {
-               bool a = DelegateMethod == null;
-       }
-
-       static int DelegateMethod(bool b)
-       {
-               return 3;
-       }       
-}
diff --git a/mcs/errors/gcs0019-6.cs b/mcs/errors/gcs0019-6.cs
deleted file mode 100644 (file)
index 3924c53..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// CS0019: Operator `==' cannot be applied to operands of type `method group' and `method group'
-// Line: 8
-
-public class C
-{
-       public static void Main ()
-       {
-               bool a = DelegateMethod == DelegateMethod;
-       }
-
-       static int DelegateMethod(bool b)
-       {
-               return 3;
-       }       
-}
diff --git a/mcs/errors/gcs0019-7.cs b/mcs/errors/gcs0019-7.cs
deleted file mode 100644 (file)
index e583c04..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// CS0019: Operator `??' cannot be applied to operands of type `null' and `anonymous method' 
-// Line: 8
-
-delegate void D ();
-
-class F
-{
-       D d = null ?? delegate { };
-}
diff --git a/mcs/errors/gcs0019-8.cs b/mcs/errors/gcs0019-8.cs
deleted file mode 100644 (file)
index 83c6d2e..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS0019: Operator `??' cannot be applied to operands of type `T' and `T' 
-// Line: 8
-
-class F
-{
-       T Bar<T> (T t)
-       {
-               return t ?? default(T);
-       }
-}
diff --git a/mcs/errors/gcs0019-9.cs b/mcs/errors/gcs0019-9.cs
deleted file mode 100644 (file)
index 4915f42..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS0019: Operator `!=' cannot be applied to operands of type `ulong?' and `int' 
-// Line: 8
-
-class C
-{
-       static void Test (ulong? x, int y)
-       {
-               if (x != y)
-               {
-               }
-       }
-}
diff --git a/mcs/errors/gcs0019.cs b/mcs/errors/gcs0019.cs
deleted file mode 100644 (file)
index b7f686e..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS0019: Operator `??' cannot be applied to operands of type `int' and `int'
-// Line: 8
-class X
-{
-       static void Main ()
-       {
-               int a = 5;
-               int b = a ?? 3;
-       }
-}
diff --git a/mcs/errors/gcs0021.cs b/mcs/errors/gcs0021.cs
deleted file mode 100644 (file)
index 0c2ff6b..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// CS0021: Cannot apply indexing with [] to an expression of type `G'
-// Line: 5
-public class Foo<G> {
-    public static void Bar() {
-        int i = default(G)[0];
-    }
-}
-
diff --git a/mcs/errors/gcs0029-10.cs b/mcs/errors/gcs0029-10.cs
deleted file mode 100644 (file)
index 8d987c9..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// CS0029: Cannot implicitly convert type `A<int>.B<long>' to `A<long>.B<long>'
-// Line: 14
-
-class A<T>
-{
-       public class B<U>
-       {
-       }
-}
-
-class Test
-{
-       static A<int>.B<long> a;
-       static A<long>.B<long> b = a;
-}
diff --git a/mcs/errors/gcs0029-11.cs b/mcs/errors/gcs0029-11.cs
deleted file mode 100644 (file)
index b6d3c34..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-// CS0029: Cannot implicitly convert type `T' to `EventHandler'
-// Line: 14
-
-using System;
-
-public delegate void EventHandler (int i, int j);
-
-public class Button {
-
-       public event EventHandler Click;
-
-       public void Connect<T> () where T : class
-       {
-               Click += default (T);
-       }
-}
diff --git a/mcs/errors/gcs0029-2.cs b/mcs/errors/gcs0029-2.cs
deleted file mode 100644 (file)
index 91c67b4..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS0029: Cannot implicitly convert type `T' to `int*'
-// Line : 8
-// Compiler options: -unsafe
-
-class T {
-       static unsafe void Main ()
-       {
-               int *a = default(T);
-       }
-}
diff --git a/mcs/errors/gcs0029-3.cs b/mcs/errors/gcs0029-3.cs
deleted file mode 100644 (file)
index 1102d2a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// CS0029: Cannot implicitly convert type `bool' to `int'
-// Line : 7
-
-class T {
-       static int Main ()
-       {
-               int a = default(bool);
-       }
-}
diff --git a/mcs/errors/gcs0029-4.cs b/mcs/errors/gcs0029-4.cs
deleted file mode 100644 (file)
index 4cd79a4..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS0029: Cannot implicitly convert type `T' to `int*'
-// Line : 8
-// Compiler options: -unsafe
-
-class T {
-       static unsafe int Main ()
-       {
-               int *a = default(T);
-       }
-}
diff --git a/mcs/errors/gcs0029-5.cs b/mcs/errors/gcs0029-5.cs
deleted file mode 100644 (file)
index 99de675..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS0029: Cannot implicitly convert type `anonymous type' to `bool'
-// Line: 10
-
-
-public class Test
-{
-       static void Main ()
-       {
-               var o = new { Value = 1 };
-               bool b = o;
-       }
-}
diff --git a/mcs/errors/gcs0029-6.cs b/mcs/errors/gcs0029-6.cs
deleted file mode 100644 (file)
index a1a04fe..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-// CS0029: Cannot implicitly convert type `string' to `int'
-// Line: 28
-
-
-delegate string funcs (string s);
-delegate int funci (int i);
-
-class X
-{
-       static void Foo (funci fi)
-       {
-       }
-       
-       static void Foo (funcs fs)
-       {
-       }
-
-       static void Main ()
-       {
-               Foo (x => {
-                       int a = "a";
-                       return 2;
-               });
-       }
-}
\ No newline at end of file
diff --git a/mcs/errors/gcs0029-7.cs b/mcs/errors/gcs0029-7.cs
deleted file mode 100755 (executable)
index a36e493..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS0029: Cannot implicitly convert type `T[]' to `I[]'
-// Line: 12
-
-interface I
-{
-}
-
-class C
-{
-       static void Foo<T> (T [] t) where T : I
-       {
-               I [] i = t;
-       }
-}
diff --git a/mcs/errors/gcs0029-8.cs b/mcs/errors/gcs0029-8.cs
deleted file mode 100644 (file)
index 92f2b0f..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS0029: Cannot implicitly convert type `T' to `int*'
-// Line: 8
-// Compiler options: -unsafe
-
-class T
-{
-       static unsafe void Main ()
-       {
-               int* a = default (T);
-       }
-}
diff --git a/mcs/errors/gcs0029-9.cs b/mcs/errors/gcs0029-9.cs
deleted file mode 100644 (file)
index fa42f04..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS0029: Cannot implicitly convert type `T2' to `T1'
-// Line: 8
-
-class Test
-{
-       static void Foo<T1, T2> (T1 t1, T2 t2)
-       {
-               T1 a = default (T2);
-       }
-}
diff --git a/mcs/errors/gcs0029.cs b/mcs/errors/gcs0029.cs
deleted file mode 100644 (file)
index 2fad061..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// CS0029: Cannot implicitly convert type `Bar<long>' to `Foo<int>'
-// Line: 15
-class Foo<T>
-{
-}
-
-class Bar<T> : Foo<T>
-{
-}
-
-class X
-{
-       static void Main ()
-       {
-               Foo<int> foo = new Bar<long> ();
-       }
-}
diff --git a/mcs/errors/gcs0030-2.cs b/mcs/errors/gcs0030-2.cs
deleted file mode 100644 (file)
index c2d6b6f..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS0030: Cannot convert type `X' to `S'
-// Line: 10
-
-struct S {
-}
-
-class X {
-       static void Main ()
-       {
-               S s = (S)default(X);
-       }
-}
diff --git a/mcs/errors/gcs0030-3.cs b/mcs/errors/gcs0030-3.cs
deleted file mode 100755 (executable)
index b35e8eb..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS0030: Cannot convert type `T[,]' to `System.Collections.Generic.IEnumerable<T>'
-// Line: 10
-
-using System.Collections.Generic;
-
-class C
-{
-       IEnumerable<T> Foo<T> (T [,] a)
-       {
-               return (IEnumerable<T>) a;
-       }
-}
diff --git a/mcs/errors/gcs0030.cs b/mcs/errors/gcs0030.cs
deleted file mode 100644 (file)
index 99ca9da..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-// CS0030: Cannot convert type `T' to `X'
-// Line: 8
-class Foo<T>
-       where T : System.ICloneable
-{
-       public X Test (T t)
-       {
-               return (X) t;
-       }
-}
-
-class X
-{
-       static void Main ()
-       { }
-}
diff --git a/mcs/errors/gcs0031.cs b/mcs/errors/gcs0031.cs
deleted file mode 100644 (file)
index 29f01f2..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// cs0031-5.cs: Constant value `200000000000' cannot be converted to a `int'
-// Line: 7
-// Compiler options: -unsafe
-
-public unsafe struct C
-{
-    private fixed long test_1 [200000000000];
-}
-
diff --git a/mcs/errors/gcs0037-2.cs b/mcs/errors/gcs0037-2.cs
deleted file mode 100644 (file)
index 56639c2..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-// CS0037: Cannot convert null to `bool' because it is a value type
-// Line: 19
-
-
-using System;
-
-class TestA
-{
-       public string Select (Func<TestA, bool> f)
-       {
-               return "";
-       }
-}
-
-public class C
-{
-       static void Main ()
-       {
-               string foo = from a in new TestA () select null;
-       }
-}
diff --git a/mcs/errors/gcs0051.cs b/mcs/errors/gcs0051.cs
deleted file mode 100644 (file)
index a6324dd..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// CS0051: Inconsistent accessibility: parameter type `C.S?[][]' is less accessible than method `C.Foo(C.S?[][])'
-// Line: 7
-
-public class C
-{
-       struct S {}
-       public void Foo (S?[][] o) {}
-}
diff --git a/mcs/errors/gcs0060-2.cs b/mcs/errors/gcs0060-2.cs
deleted file mode 100644 (file)
index cd6430b..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// CS0060: Inconsistent accessibility: base class `A<C>.B' is less accessible than class `D'
-// Line: 13
-
-public class A<T>
-{
-       public class B {}
-}
-
-internal class C : A<C>
-{
-}
-
-public class D : C.B
-{
-}
diff --git a/mcs/errors/gcs0060-3.cs b/mcs/errors/gcs0060-3.cs
deleted file mode 100644 (file)
index bf9f047..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS0060: Inconsistent accessibility: base class `Foo<Bar.Baz>' is less accessible than class `Bar'
-// Line: 7
-
-public class Foo<K> {
-}
-
-public class Bar : Foo<Bar.Baz> {
-       private class Baz {
-       }
-}
diff --git a/mcs/errors/gcs0060.cs b/mcs/errors/gcs0060.cs
deleted file mode 100644 (file)
index 44735de..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS0060: Inconsistent accessibility: base class `Foo<Bar.Baz>' is less accessible than class `Bar'
-// Line: 7
-
-public class Foo<K> {
-}
-
-public class Bar : Foo<Bar.Baz> {
-       internal class Baz {
-       }
-}
diff --git a/mcs/errors/gcs0065.cs b/mcs/errors/gcs0065.cs
deleted file mode 100644 (file)
index efb7243..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS0065: `EventClass<T>.handler': event property must have both add and remove accessors
-// Line: 10
-
-using System;
-
-public delegate void EventHandler (object sender, EventArgs e);
-
-public class EventClass<T>
-{
-       event EventHandler handler { add {} }
-}
-
diff --git a/mcs/errors/gcs0069.cs b/mcs/errors/gcs0069.cs
deleted file mode 100644 (file)
index b7ba89c..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS0069: Event in interface cannot have add or remove accessors
-// Line: 11
-
-using System;
-
-public delegate void FooHandler ();
-
-interface IBar<T>
-{
-       event FooHandler OnFoo {
-               remove { }
-       }
-}
-
diff --git a/mcs/errors/gcs0080.cs b/mcs/errors/gcs0080.cs
deleted file mode 100644 (file)
index 3c1bf8a..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// cs0080.cs: Constraints are not allowed on non-generic declarations
-// Line: 5
-
-using System.Collections;
-class Dingus where T : IEnumerable {
-}
-
-class D {
-       static void Main ()
-       {
-       }
-}
diff --git a/mcs/errors/gcs0081-2.cs b/mcs/errors/gcs0081-2.cs
deleted file mode 100644 (file)
index 73c537f..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// gcs0081-2.cs: Type parameter declaration must be an identifier not a type
-// Line: 6
-
-class D
-{
-       public void Foo<int>()
-       {
-       }
-}
diff --git a/mcs/errors/gcs0081-3.cs b/mcs/errors/gcs0081-3.cs
deleted file mode 100644 (file)
index 6a86cf1..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// gcs0081.cs: Type parameter declaration must be an identifier not a type
-// Line: 4
-
-partial class A<T, bool>
-{
-}
-
-partial class A<T, O>
-{
-}
diff --git a/mcs/errors/gcs0081.cs b/mcs/errors/gcs0081.cs
deleted file mode 100644 (file)
index 9b03345..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-// gcs0081.cs: Type parameter declaration must be an identifier not a type
-// Line: 4
-
-class D<string>
-{
-}
diff --git a/mcs/errors/gcs0100.cs b/mcs/errors/gcs0100.cs
deleted file mode 100644 (file)
index 9da2049..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS0100: The parameter name `a' is a duplicate
-// Line: 10
-
-using System;
-
-class C
-{
-       static void Main ()
-       {
-               Func<int, int, int> l = (a, a) => 1;
-       }
-}
diff --git a/mcs/errors/gcs0102.cs b/mcs/errors/gcs0102.cs
deleted file mode 100644 (file)
index 2cb23f3..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// gcs0102.cs: The type `X<T>' already contains a definition for `T'
-// Line: 11
-
-class X <T> {
-       int T;
-}
-
-class W {
-       static void Main () {}
-}
diff --git a/mcs/errors/gcs0103-2.cs b/mcs/errors/gcs0103-2.cs
deleted file mode 100644 (file)
index fe20a3b..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS0103: The name `Value' does not exist in the current context
-// Line: 9
-
-
-public class Test
-{
-       static void Main ()
-       {
-               var v = new { Field = Value };
-       }
-}
diff --git a/mcs/errors/gcs0103-3.cs b/mcs/errors/gcs0103-3.cs
deleted file mode 100644 (file)
index 80ced48..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS0103: The name `a' does not exist in the current context
-// Line: 11
-
-using System.Linq;
-
-class C
-{
-       public static void Main ()
-       {
-               var e = from a in "abcd"
-                       join b in "defg" on "a" equals a
-                       select a;
-       }
-}
diff --git a/mcs/errors/gcs0103-4.cs b/mcs/errors/gcs0103-4.cs
deleted file mode 100644 (file)
index c73714e..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS0103: The name `b' does not exist in the current context
-// Line: 11
-
-using System.Linq;
-
-class C
-{
-       public static void Main ()
-       {
-               var e = from a in "abcd"
-                       join b in "defg" on b equals "g"
-                       select a;
-       }
-}
diff --git a/mcs/errors/gcs0103-5.cs b/mcs/errors/gcs0103-5.cs
deleted file mode 100644 (file)
index 6d20187..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-// CS0103: The name `a1' does not exist in the current context
-// Line: 11
-
-using System.Linq;
-
-class C
-{
-       public static void Main ()
-       {
-               var e = 
-                       from a1 in "abcd"
-                       select a1;
-               
-               a1 = null;
-       }
-}
diff --git a/mcs/errors/gcs0103.cs b/mcs/errors/gcs0103.cs
deleted file mode 100644 (file)
index af83bbf..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS0103: The name `Console' does not exist in the current context
-// Line: 10
-
-
-class C
-{
-       delegate void WithOutParam (string value);
-
-       static void Main() 
-       {
-               WithOutParam o = (s) => Console.WriteLine();
-       }
-}
diff --git a/mcs/errors/gcs0108-2.cs b/mcs/errors/gcs0108-2.cs
deleted file mode 100644 (file)
index 345ba7f..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS0108: `Derived.Action<U>' hides inherited member `Base.Action<U>'. Use the new keyword if hiding was intended
-// Line: 12
-// Compiler options: -warnaserror
-
-public abstract class Base
-{
-       public delegate void Action<U> (U val);
-}
-
-public class Derived : Base
-{
-       public delegate void Action<U> (U i);
-}
diff --git a/mcs/errors/gcs0108.cs b/mcs/errors/gcs0108.cs
deleted file mode 100644 (file)
index c541541..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// CS0108: `BaseConcrete.InnerDerived<T>()' hides inherited member `BaseGeneric<string>.InnerDerived'. Use the new keyword if hiding was intended
-// Line: 14
-// Compiler options: -warn:2 -warnaserror
-
-class BaseGeneric<T>
-{
-       public class InnerDerived
-       {
-       }
-}
-
-class BaseConcrete : BaseGeneric<string>
-{
-       public void InnerDerived<T> ()
-       {
-       }
-}
diff --git a/mcs/errors/gcs0109-2.cs b/mcs/errors/gcs0109-2.cs
deleted file mode 100644 (file)
index 4cd7fea..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS0109: The member `Derived<U>.Action' does not hide an inherited member. The new keyword is not required
-// Line: 12
-// Compiler options: -warnaserror -warn:4
-
-public abstract class Base
-{
-       public delegate void Action<U>(U val);
-}
-
-public class Derived<U> : Base
-{
-       new internal Action<U> Action;
-}
diff --git a/mcs/errors/gcs0109.cs b/mcs/errors/gcs0109.cs
deleted file mode 100644 (file)
index fef7758..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS0109: The member `Derived.Action<T,U>' does not hide an inherited member. The new keyword is not required
-// Line: 12
-// Compiler options: -warnaserror -warn:4
-
-public abstract class Base
-{
-       public delegate void Action<U> (U val);
-}
-
-public class Derived : Base
-{
-       public new delegate void Action<T, U> (U val);
-}
diff --git a/mcs/errors/gcs0111-2.cs b/mcs/errors/gcs0111-2.cs
deleted file mode 100644 (file)
index 4c72093..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS0111: A member `Blah.I.M<U>(int)' is already defined. Rename this member or use different parameter types
-// Line : 12
-
-public interface I
-{
-    void M<T> (int i);
-}
-
-public class Blah: I
-{
-        void I.M<T> (int i) {}
-        void I.M<U> (int i) {}
-}
diff --git a/mcs/errors/gcs0111-3.cs b/mcs/errors/gcs0111-3.cs
deleted file mode 100644 (file)
index 6d91d31..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS0111: A member `C.Foo<U>(U)' is already defined. Rename this member or use different parameter types
-// Line : 12
-
-public class C
-{
-       void Foo<T> (T i)
-       {
-       }
-       
-       void Foo<U> (U i)
-       {
-       }
-}
diff --git a/mcs/errors/gcs0111-4.cs b/mcs/errors/gcs0111-4.cs
deleted file mode 100644 (file)
index 906e6df..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// CS0111: A member `C.Foo<U>(U)' is already defined. Rename this member or use different parameter types
-// Line : 12
-
-public class C
-{
-       void Foo (int i)
-       {
-       }
-       
-       void Foo<T> (T i)
-       {
-       }
-       
-       void Foo<U> (U i)
-       {
-       }
-}
diff --git a/mcs/errors/gcs0111-5.cs b/mcs/errors/gcs0111-5.cs
deleted file mode 100755 (executable)
index a30f9d9..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-// CS0111: A member `MyClass.IMyInterface<System.String>.Prop' is already defined. Rename this member or use different parameter types
-// Line: 18
-
-using System;
-
-interface IMyInterface<T>
-{
-       bool Prop { set; }
-}
-
-public class MyClass: IMyInterface<string>
-{
-       bool IMyInterface<string>.Prop
-       {
-               set {}
-       }
-
-       bool IMyInterface<System.String>.Prop
-       {
-               set {}
-       }
-}
diff --git a/mcs/errors/gcs0111-6.cs b/mcs/errors/gcs0111-6.cs
deleted file mode 100644 (file)
index 98a96af..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS0111: A member `C.I<int>.Prop' is already defined. Rename this member or use different parameter types
-// Line: 12
-
-interface I<T>
-{
-       T Prop { get; set; }
-}
-
-class C : I<int>
-{
-       int I<int>.Prop { get; set; }
-       int I<int>.Prop { get; set; }
-}
diff --git a/mcs/errors/gcs0111-7.cs b/mcs/errors/gcs0111-7.cs
deleted file mode 100644 (file)
index 04831b6..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS0111: A member `Blah.I.M<X>()' is already defined. Rename this member or use different parameter types
-// Line : 12
-
-public interface I
-{
-    void M<X> ();
-}
-
-public class Blah: I
-{
-        void I.M<X> () {}
-        void I.M<X> () {}
-}
-
diff --git a/mcs/errors/gcs0111-8.cs b/mcs/errors/gcs0111-8.cs
deleted file mode 100644 (file)
index dd2195a..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// CS0111: A member `C.Foo<U>(G<U>)' is already defined. Rename this member or use different parameter types
-// Line : 14
-
-class G<T>
-{
-}
-
-public class C
-{
-       void Foo<T> (G<T> g)
-       {
-       }
-       
-       void Foo<U> (G<U> u)
-       {
-       }
-}
diff --git a/mcs/errors/gcs0111.cs b/mcs/errors/gcs0111.cs
deleted file mode 100644 (file)
index edaec4b..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// CS0111: A member `Dictionary<K,V>.Add(V)' is already defined. Rename this member or use different parameter types
-// Line: 14
-
-using System;
-using System.Collections.Generic;
-
-public class Dictionary<K,V>
-{
-       public void Add (V key)
-       {
-               throw new InvalidOperationException ();
-       }
-
-       public void Add (V value)
-       {
-               throw new InvalidOperationException ();
-       }
-}
diff --git a/mcs/errors/gcs0117-2.cs b/mcs/errors/gcs0117-2.cs
deleted file mode 100644 (file)
index 775ba25..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// CS0117: `Data' does not contain a definition for `Count'
-// Line: 15
-
-
-using System;
-
-class Data
-{
-}
-
-public class Test
-{
-       static void Main ()
-       {
-               var c = new Data { Count = 10 };
-       }
-}
diff --git a/mcs/errors/gcs0117.cs b/mcs/errors/gcs0117.cs
deleted file mode 100644 (file)
index dd5b345..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-// CS0117: `A' does not contain a definition for `Method'
-// Line: 8
-
-public class E : A
-{
-       void Test ()
-       {
-               base.Method ();
-       }
-}
-
-static class S
-{
-       public static void Method (this A a)
-       {
-       }
-}
-
-public class A
-{
-}
\ No newline at end of file
diff --git a/mcs/errors/gcs0118.cs b/mcs/errors/gcs0118.cs
deleted file mode 100644 (file)
index ed6c2c5..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS0118: `N' is a `namespace' but a `type' was expected
-// Line: 8
-
-namespace N
-{
-}
-
-public class C<T>  where T : N
-{
-}
\ No newline at end of file
diff --git a/mcs/errors/gcs0119-2.cs b/mcs/errors/gcs0119-2.cs
deleted file mode 100644 (file)
index 5d67a55..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS0119: Expression denotes a `type', where a `variable' or `value' was expected
-// Line: 12
-public class Foo<T>
-{
-}
-class X
-{
-       static void Main ()
-       {
-               Foo<X> = new Foo<X> ();
-       }
-}
diff --git a/mcs/errors/gcs0119-3.cs b/mcs/errors/gcs0119-3.cs
deleted file mode 100644 (file)
index b65a34c..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// CS0119: Expression denotes a `type parameter', where a `variable', `value' or `type' was expected
-// Line: 15
-
-class A
-{
-       public class T
-       {
-       }
-}
-
-class B<T> : A
-{
-       void Foo ()
-       {
-               T.Equals (null, null);
-       }
-}
diff --git a/mcs/errors/gcs0119.cs b/mcs/errors/gcs0119.cs
deleted file mode 100755 (executable)
index 156d53b..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS0119: Expression denotes a `type parameter', where a `variable', `value' or `type' was expected
-// Line: 8
-
-class C
-{
-       static void Foo<T> ()
-       {
-               T.ToString ();
-       }
-}
diff --git a/mcs/errors/gcs0121-2.cs b/mcs/errors/gcs0121-2.cs
deleted file mode 100644 (file)
index a537f31..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-// CS0121: The call is ambiguous between the following methods or properties: `Test.Foo<int,int>(int, System.Linq.Expressions.Expression<System.Func<int,int>>)' and `Test.Foo<int,int>(int, System.Func<int,int>)'
-// Line: 22
-
-using System;
-using System.Linq;
-using System.Linq.Expressions;
-
-class Test
-{
-       static int Foo<T, R> (T t, Expression<Func<T, R>> e)
-       {
-               return 5;
-       }
-       
-       static int Foo<T, R> (T t, Func<T, R> e)
-       {
-               return 0;
-       }
-
-       static void Main ()
-       {
-               Foo (1, i => i);
-       }
-}
-
diff --git a/mcs/errors/gcs0121-3.cs b/mcs/errors/gcs0121-3.cs
deleted file mode 100644 (file)
index f8e20c1..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-// CS0122: The call is ambiguous between the following methods or properties: `Test.Foo(IIn<string>)' and `Test.Foo(IIn<Test>)'
-// Line: 23
-// Compiler options: -langversion:future
-
-interface IIn<in T>
-{
-}
-
-class Test
-{
-
-       static void Foo (IIn<string> f)
-       {
-       }
-
-       static void Foo (IIn<Test> f)
-       {
-       }
-
-       public static int Main ()
-       {
-               IIn<object> test = null;
-               Foo (test);
-
-               return 0;
-       }
-}
diff --git a/mcs/errors/gcs0121.cs b/mcs/errors/gcs0121.cs
deleted file mode 100644 (file)
index e7cc5f3..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-// CS0121: The call is ambiguous between the following methods or properties: `Foo<int,int>.Test(int)' and `Foo<int,int>.Test(int)'
-// Line: 23
-using System;
-
-public class Foo<T,U>
-{
-       public void Test (T index)
-       {
-               Console.WriteLine ("Test 1: {0}", index);
-       }
-
-       public void Test (U index)
-       {
-               Console.WriteLine ("Test 2: {0}", index);
-       }
-}
-
-class X
-{
-       static void Main ()
-       {
-               Foo<int,int> foo = new Foo<int,int> ();
-               foo.Test (3);
-       }
-}
diff --git a/mcs/errors/gcs0122-2.cs b/mcs/errors/gcs0122-2.cs
deleted file mode 100644 (file)
index 7a4df8b..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS0122: `Test<float>' is inaccessible due to its protection level
-// Line: 8
-// Compiler options: -r:GCS0122-2-lib.dll
-
-class X
-{
-       static void Main ()
-       {
-               Test<float> test = new Test<float> ();
-       }
-}
-
diff --git a/mcs/errors/gcs0122.cs b/mcs/errors/gcs0122.cs
deleted file mode 100644 (file)
index 41a825c..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-// CS0122: `Foo.Print(this string)' is inaccessible due to its protection level
-// Line: 19
-
-
-using System;
-
-static class Foo
-{
-       static void Print (this string s)
-       {
-       }
-}
-
-static class Program
-{
-       static void Main(string[] args)
-       {
-               string s = "Hello, world";
-               Foo.Print(s);
-       }
-}
\ No newline at end of file
diff --git a/mcs/errors/gcs0133-2.cs b/mcs/errors/gcs0133-2.cs
deleted file mode 100644 (file)
index 40567aa..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// cs0133-2.cs: The expression being assigned to `S.pathName' must be constant
-// Line: 12
-// Compiler options: -unsafe
-
-class C
-{
-    public static int i = 4;
-}
-
-public unsafe struct S
-{
-    private fixed char pathName [C.i];
-}
diff --git a/mcs/errors/gcs0136-2.cs b/mcs/errors/gcs0136-2.cs
deleted file mode 100644 (file)
index cc28afe..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS0136: A local variable named `v' cannot be declared in this scope because it would give a different meaning to `v', which is already used in a `parent or current' scope to denote something else
-// Line: 13
-
-using System.Linq;
-
-public class Test
-{
-       public static void Main ()
-       {
-               var l = from v in "abcd" select (v => v);
-       }
-}
diff --git a/mcs/errors/gcs0136-3.cs b/mcs/errors/gcs0136-3.cs
deleted file mode 100644 (file)
index 21ee277..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS0136: A local variable named `i' cannot be declared in this scope because it would give a different meaning to `i', which is already used in a `parent or current' scope to denote something else
-// Line: 10
-
-using System;
-
-class T
-{
-       public void Foo (int i)
-       {
-               Action<int> v = x => { int i = 9; };
-       }
-}
diff --git a/mcs/errors/gcs0136.cs b/mcs/errors/gcs0136.cs
deleted file mode 100644 (file)
index ecc3103..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS0136: A local variable named `v' cannot be declared in this scope because it would give a different meaning to `v', which is already used in a `child' scope to denote something else
-// Line: 11
-
-using System.Linq;
-
-class C
-{
-       public static void Main ()
-       {
-               var l = from v in "abcd" select v;
-               int v;
-       }
-}
diff --git a/mcs/errors/gcs0146.cs b/mcs/errors/gcs0146.cs
deleted file mode 100644 (file)
index 0a164db..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// CS0146: Circular base class dependency involving `B<T>' and `A<float>'
-// Line: 8
-
-class A<T> : B<int>
-{
-}
-
-class B<T> : A<float>
-{ }
-
-class X
-{
-       static void Main ()
-       { }
-}
diff --git a/mcs/errors/gcs0162-2.cs b/mcs/errors/gcs0162-2.cs
deleted file mode 100755 (executable)
index f4e8ad6..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS0162: Unreachable code detected
-// Line: 10
-// Compiler options: -warnaserror -warn:2
-
-class C
-{
-       static int Main () 
-       {
-               while (!new bool {});
-               return 1;
-       }
-}
diff --git a/mcs/errors/gcs0162.cs b/mcs/errors/gcs0162.cs
deleted file mode 100644 (file)
index 72880f7..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS0162: Unreachable code detected
-// Line: 12
-// Compiler options: -warnaserror -warn:2
-
-using System;
-
-class E
-{
-   public void Method<T> () where T : class
-   {
-      if (default (T) != null)
-         throw new ArgumentNullException ();
-   }
-}
diff --git a/mcs/errors/gcs0171.cs b/mcs/errors/gcs0171.cs
deleted file mode 100644 (file)
index f6127ab..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-// CS0171: Field `S<TKey>.key' must be fully assigned before control leaves the constructor
-// Line: 13
-
-public struct S<TKey> {
-       private TKey key;
-
-       public TKey Key {
-               get { return key; }
-               private set { key = value; }
-       }
-               
-       public S (TKey key)
-       {
-               Key = key;
-       }
-}
diff --git a/mcs/errors/gcs0173.cs b/mcs/errors/gcs0173.cs
deleted file mode 100644 (file)
index f75e271..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS0173: Type of conditional expression cannot be determined because there is no implicit conversion between `anonymous method' and `anonymous method'
-// Line: 11
-
-using System;
-
-class Test
-{
-       public static void Main ()
-       {
-               bool descending = false;
-               Comparison<int> comp = descending ? ((e1, e2) => e2 < e1) : ((e1, e2) => e1 < e2);
-       }
-}
diff --git a/mcs/errors/gcs0177.cs b/mcs/errors/gcs0177.cs
deleted file mode 100755 (executable)
index 91dde9c..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS0177: The out parameter `output' must be assigned to before control leaves the current method
-// Line: 10
-
-class Test
-{
-       delegate T Creator<T> ();
-
-       static bool TryAction<T> (Creator<T> creator, out T output) where T : struct
-       {
-               return false;
-       }
-}
diff --git a/mcs/errors/gcs0183-2.cs b/mcs/errors/gcs0183-2.cs
deleted file mode 100644 (file)
index 8af4d90..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS0183: The given expression is always of the provided (`T') type
-// Line: 10
-// Compiler options: -warnaserror -warn:1
-
-class X
-{
-       static bool Foo<T> () where T : struct
-       {
-               T o = default (T);
-               return o is T;
-       }
-}
diff --git a/mcs/errors/gcs0183.cs b/mcs/errors/gcs0183.cs
deleted file mode 100644 (file)
index 9f00a58..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS0183: The given expression is always of the provided (`int?') type
-// Line: 10
-// Compiler options: -warnaserror -warn:1
-
-class X
-{
-       public void Foo ()
-       {
-               int? x = null;
-               if (x is int?) {
-               }
-       }
-}
diff --git a/mcs/errors/gcs0184-2.cs b/mcs/errors/gcs0184-2.cs
deleted file mode 100644 (file)
index 6c45e4e..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS0184: The given expression is never of the provided (`T') type
-// Line: 9
-// Compiler options: -warnaserror -warn:1
-
-class X<T> where T : class
-{
-       static void Foo ()
-       {
-               if (1 is T) {
-               }
-       }
-}
diff --git a/mcs/errors/gcs0184-3.cs b/mcs/errors/gcs0184-3.cs
deleted file mode 100644 (file)
index a27c85f..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS0184: The given expression is never of the provided (`int') type
-// Line: 10
-// Compiler options: -warnaserror -warn:1
-
-class X
-{
-       public void Foo<T> () where T : class
-       {
-               T t = default (T);
-               if (t is int) {
-               }
-       }
-}
diff --git a/mcs/errors/gcs0184-4.cs b/mcs/errors/gcs0184-4.cs
deleted file mode 100644 (file)
index 6bfda8a..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-// CS0184: The given expression is never of the provided (`bool') type
-// Line: 13
-// Compiler options: -warnaserror -warn:1
-
-using System;
-
-class X
-{
-       void Foo ()
-       {
-               int? i = null;
-               
-               if (i is bool) {
-               }
-       }
-}
diff --git a/mcs/errors/gcs0184.cs b/mcs/errors/gcs0184.cs
deleted file mode 100644 (file)
index 13a8e48..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-// CS0184: The given expression is never of the provided (`bool?') type
-// Line: 13
-// Compiler options: -warnaserror -warn:1
-
-using System;
-
-class X
-{
-       void Foo ()
-       {
-               int? i = null;
-               
-               if (i is bool?) {
-               }
-       }
-}
diff --git a/mcs/errors/gcs0200.cs b/mcs/errors/gcs0200.cs
deleted file mode 100644 (file)
index 0af8e83..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// CS0200: Property or indexer `A.Counter' cannot be assigned to (it is read-only)
-// Line: 9
-
-class Program
-{
-       static void Main()
-       {
-               A a = new A();
-               a.Counter++;
-       }
-}
-
-class A {
-       private int? _counter;
-       public int? Counter {
-               get { return _counter; }
-       }
-}
diff --git a/mcs/errors/gcs0201-2.cs b/mcs/errors/gcs0201-2.cs
deleted file mode 100755 (executable)
index 4849689..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// CS0201: Only assignment, call, increment, decrement, and new object expressions can be used as a statement
-// Line: 13
-
-class C<T>
-{
-       static T Test ()
-       {
-               return default (T);
-       }
-       
-       public static void Main ()
-       {
-               Test ().Foo;
-       }
-}
diff --git a/mcs/errors/gcs0201.cs b/mcs/errors/gcs0201.cs
deleted file mode 100644 (file)
index 308488d..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS0201: Only assignment, call, increment, decrement, and new object expressions can be used as a statement
-// Line: 10
-
-class TestClass
-{
-       delegate void test_delegate (int arg);
-
-       public TestClass ()
-       {
-               test_delegate D = (b) => "a";
-       }
-}
-
diff --git a/mcs/errors/gcs0202.cs b/mcs/errors/gcs0202.cs
deleted file mode 100644 (file)
index bdd9a9e..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// CS0202: foreach statement requires that the return type `System.Collections.Generic.IEnumerable<string>' of `Test.GetEnumerator()' must have a suitable public MoveNext method and public Current property
-// Line: 10
-using System;
-using System.Collections.Generic;
-
-class Test {
-        static void Main ()
-        {
-                Test obj = new Test ();
-                foreach (string s in obj) {
-                }
-        }
-
-        public IEnumerable<string> GetEnumerator ()
-        {
-               return null;
-        }
-}
diff --git a/mcs/errors/gcs0206.cs b/mcs/errors/gcs0206.cs
deleted file mode 100644 (file)
index 805577b..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-// CS0206: A property, indexer or dynamic member access may not be passed as `ref' or `out' parameter
-// Line: 14
-
-class C
-{
-       static void Foo (ref object o)
-       {
-       }
-       
-       public static void Main ()
-       {
-               var v = new { Foo = "Bar" };
-               
-               Foo (ref v.Foo);
-       }
-}
diff --git a/mcs/errors/gcs0208-2.cs b/mcs/errors/gcs0208-2.cs
deleted file mode 100644 (file)
index bcd4d04..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// cs0208-2.cs : Cannot take the address of, get the size of, or declare a pointer to a managed type `Splay<T>.Node'
-// Line: 9
-// Compiler options: /unsafe
-
-public class Splay<T>
-{
-  unsafe private struct Node
-  {
-    private Node *            parent;
-    private T                 data;
-  } 
-}
-
diff --git a/mcs/errors/gcs0208-3.cs b/mcs/errors/gcs0208-3.cs
deleted file mode 100644 (file)
index 9f7bcc1..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// cs0208-3.cs : Cannot take the address of, get the size of, or declare a pointer to a managed type `Splay<T>.Node'
-// Line: 10
-// Compiler options: /unsafe
-// Similar code to #75772, but without field of type T.
-
-public class Splay<T>
-{
-  unsafe private struct Node
-  {
-    private Node *            parent;
-  } 
-}
-
diff --git a/mcs/errors/gcs0208-4.cs b/mcs/errors/gcs0208-4.cs
deleted file mode 100644 (file)
index 08ab214..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// cs0208-4.cs : Cannot take the address of, get the size of, or declare a pointer to a managed type `Splay<T>.Node'
-// Line: 10
-// Compiler options: /unsafe
-// similar one to #75772 but using a class instead of a struct.
-
-public class Splay<T>
-{
-  unsafe private class Node
-  {
-    private Node *            parent;
-    private T                 data;
-  } 
-}
-
diff --git a/mcs/errors/gcs0208-5.cs b/mcs/errors/gcs0208-5.cs
deleted file mode 100644 (file)
index a284001..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type `T'
-// Line: 8
-
-class X
-{
-       public static void Foo<T> (T t)
-       {
-               object o = sizeof (T);
-       }
-}
diff --git a/mcs/errors/gcs0208.cs b/mcs/errors/gcs0208.cs
deleted file mode 100644 (file)
index 1c5e807..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// gcs0208.cs: Cannot take the address of, get the size of, or declare a pointer to a managed type `X<A>'
-// Line: 12
-// Compiler options: -unsafe
-
-class X <Y> {
-}
-
-unsafe class A {
-
-       static void Main ()
-       {
-               int size = sizeof (X<A>);
-       }
-}
diff --git a/mcs/errors/gcs0214.cs b/mcs/errors/gcs0214.cs
deleted file mode 100644 (file)
index 462ca7a..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS0214: Pointers and fixed size buffers may only be used in an unsafe context
-// Line: 9
-// Compiler options: -unsafe
-
-public class aClass
-{
-       public struct foo_t
-       {
-               public fixed char b[16];
-       }
-}
diff --git a/mcs/errors/gcs0246-3.cs b/mcs/errors/gcs0246-3.cs
deleted file mode 100644 (file)
index 453843e..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS0246: The type or namespace name `var' could not be found. Are you missing a using directive or an assembly reference?
-// Line: 8
-
-
-class X
-{
-       public X ()
-       {
-               var? u = i;
-       }
-}
diff --git a/mcs/errors/gcs0246-4.cs b/mcs/errors/gcs0246-4.cs
deleted file mode 100644 (file)
index bd7ea63..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS0246: The type or namespace name `TypeMe' could not be found. Are you missing a using directive or an assembly reference?
-// Line: 12
-
-class C
-{
-       static void Foo<T> (int i)
-       {
-       }
-
-       public static void Main ()
-       {
-               Foo<TypeMe> (1);
-       }
-}
diff --git a/mcs/errors/gcs0246-5.cs b/mcs/errors/gcs0246-5.cs
deleted file mode 100644 (file)
index 1050967..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// CS0246: The type or namespace name `X' could not be found. Are you missing a using directive or an assembly reference?
-// Line: 4
-
-class A<T> where T : X
-{
-       public class X {}
-}
diff --git a/mcs/errors/gcs0246-6.cs b/mcs/errors/gcs0246-6.cs
deleted file mode 100644 (file)
index 5411c54..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// CS0246: The type or namespace name `M' could not be found. Are you missing a using directive or an assembly reference?
-// Line: 11
-
-interface I<T>
-{
-       void G<TT> ();
-}
-
-class C
-{
-       void I<M>.G<M> ()
-       {
-       }
-       
-       public static void Main ()
-       {
-       }
-}
diff --git a/mcs/errors/gcs0246-8.cs b/mcs/errors/gcs0246-8.cs
deleted file mode 100644 (file)
index 016d1c9..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// gcs0246-8.cs: The type or namespace name `B' could not be found. Are you missing a using directive or an assembly reference?
-// Line: 4
-
-class A : C<B>
-{
-  class B {}
-}
-interface C<X> {}
diff --git a/mcs/errors/gcs0246.cs b/mcs/errors/gcs0246.cs
deleted file mode 100644 (file)
index 775a3da..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// CS0246: The type or namespace name `NotExist' could not be found. Are you missing a using directive or an assembly reference?
-// Line: 6
-
-class X
-{
-       NotExist<float> foo;
-}
diff --git a/mcs/errors/gcs0264-2.cs b/mcs/errors/gcs0264-2.cs
deleted file mode 100644 (file)
index e1f7916..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS0264: Partial declarations of `A<T,O>' must have the same type parameter names in the same order
-// Line: 8
-
-partial class A<T, bool>
-{
-}
-
-partial class A<T, O>
-{
-}
diff --git a/mcs/errors/gcs0264.cs b/mcs/errors/gcs0264.cs
deleted file mode 100644 (file)
index d7c0672..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS0264: Partial declarations of `Partial<U>' must have the same type parameter names in the same order
-// Line: 4
-
-partial class Partial<T>
-{
-}
-
-partial class Partial<U>
-{
-}
diff --git a/mcs/errors/gcs0265.cs b/mcs/errors/gcs0265.cs
deleted file mode 100644 (file)
index 8446095..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// gcs0265.cs: Partial declarations of `Partial<T>' have inconsistent constraints for type parameter `T'
-// Line: 4
-
-partial class Partial<T> where T: class, new()
-{
-}
-
-partial class Partial<T> where T : new ()
-{
-}
diff --git a/mcs/errors/gcs0266-2.cs b/mcs/errors/gcs0266-2.cs
deleted file mode 100644 (file)
index a5befbe..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS0266: Cannot implicitly convert type `bool?' to `bool'. An explicit conversion exists (are you missing a cast?)
-// Line: 9
-
-class X
-{
-       static void Main ()
-       {
-               bool? a = true;
-               int? b = a ? 3 : 4;
-       }
-}
diff --git a/mcs/errors/gcs0266-3.cs b/mcs/errors/gcs0266-3.cs
deleted file mode 100644 (file)
index 7e979e2..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS0266: Cannot implicitly convert type `bool?' to `bool'. An explicit conversion exists (are you missing a cast?)
-// Line: 9
-
-class X
-{
-       static void Main ()
-       {
-               bool? a = true;
-               bool b = a & a;
-       }
-}
diff --git a/mcs/errors/gcs0266-4.cs b/mcs/errors/gcs0266-4.cs
deleted file mode 100644 (file)
index f10be25..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS0266: Cannot implicitly convert type `object' to `bool'. An explicit conversion exists (are you missing a cast?)
-// Line: 9
-
-class X
-{
-       static void Main ()
-       {
-               object o = true;
-               bool b = (o ?? string.Empty);
-       }
-}
diff --git a/mcs/errors/gcs0266-5.cs b/mcs/errors/gcs0266-5.cs
deleted file mode 100644 (file)
index 93eeca1..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-// CS0266: Cannot implicitly convert type `S?' to `A'. An explicit conversion exists (are you missing a cast?)
-// Line: 9
-
-struct S
-{
-       public static int Main ()
-       {
-               S? s = null;
-               A a = s;
-               return 0;
-       }
-}
-
-struct A
-{
-       public static implicit operator A (S x)
-       {
-               return new A ();
-       }
-}
diff --git a/mcs/errors/gcs0266-6.cs b/mcs/errors/gcs0266-6.cs
deleted file mode 100644 (file)
index efa355d..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-// CS0266: Cannot implicitly convert type `System.Collections.Generic.IList<int>' to `Hoge<System.Collections.Generic.IList<int>>'. An explicit conversion exists (are you missing a cast?)
-// Line: 20
-
-using System;
-using System.Collections.Generic;
-
-public class Hoge<T>
-{
-       public static implicit operator Hoge<T> (T value)
-       {
-               return null;
-       }
-}
-
-public class Test
-{
-       static void Main ()
-       {
-               IList<int> x = new List<int> ();
-               Hoge<IList<int>> hoge = x;
-       }
-}
diff --git a/mcs/errors/gcs0266.cs b/mcs/errors/gcs0266.cs
deleted file mode 100644 (file)
index d1bda2e..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// CS0266: Cannot implicitly convert type `I' to `C'. An explicit conversion exists (are you missing a cast?)
-// Line: 16
-
-interface I
-{
-}
-
-struct C : I
-{
-}
-
-class X
-{
-       static void Main (string[] args)
-       {
-               C c = default (I);
-       }
-}
diff --git a/mcs/errors/gcs0267.cs b/mcs/errors/gcs0267.cs
deleted file mode 100644 (file)
index 2e408a7..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// CS0267: The `partial' modifier can be used only immediately before `class', `struct', `interface', or `void' keyword
-// Line: 6
-
-public partial class C
-{
-       partial virtual void Foo ()
-       {
-       }
-}
diff --git a/mcs/errors/gcs0271.cs b/mcs/errors/gcs0271.cs
deleted file mode 100644 (file)
index f01ea5e..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-// CS0271: The property or indexer `Test.A.B' cannot be used in this context because the get accessor is inaccessible
-// Line: 17
-
-using System;
-
-public class Test
-{
-       private class A
-       {
-               public string B { protected get; set; }
-       }
-       
-       static void Main ()
-       {
-               A a = new A ();
-               a.B = "foo";
-               string b = a.B;
-       }
-}
diff --git a/mcs/errors/gcs0272.cs b/mcs/errors/gcs0272.cs
deleted file mode 100644 (file)
index b8bdb5d..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// CS0272: The property or indexer `Test.A.B' cannot be used in this context because the set accessor is inaccessible
-// Line: 16
-
-using System;
-
-public class Test
-{
-       private class A
-       {
-               public string B { get; private set; }
-       }
-       
-       static void Main ()
-       {
-               A a = new A ();
-               a.B = "Foo";
-       }
-}
diff --git a/mcs/errors/gcs0281.cs b/mcs/errors/gcs0281.cs
deleted file mode 100644 (file)
index c0ffe73..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// gcs0281.cs: Friend access was granted to `gcs0281, PublicKeyToken=27576a8182a18822', but the output assembly is named `gcs0281, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. Try adding a reference to `gcs0281, PublicKeyToken=27576a8182a18822' or change the output assembly name to match it
-// Line: 0
-// Compiler options: -r:CSFriendAssembly-lib.dll
-
-using System;
-
-public class Test
-{
-       static void Main ()
-       {
-               FriendClass.MyMethod ();
-       }
-}
-
diff --git a/mcs/errors/gcs0304.cs b/mcs/errors/gcs0304.cs
deleted file mode 100644 (file)
index 2760b2c..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// CS0304: Cannot create an instance of the variable type `T' because it does not have the new() constraint
-// Line: 8
-
-public class Foo<T>
-{
-       public T Create ()
-       {
-               return new T ();
-       }
-}
-
-class X
-{
-       static void Main ()
-       {
-       }
-}
diff --git a/mcs/errors/gcs0305-2.cs b/mcs/errors/gcs0305-2.cs
deleted file mode 100644 (file)
index 2bdeeac..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-// CS0305: Using the generic type `Stack<T>' requires `1' type argument(s)
-// Line: 11
-
-class Stack<T> {
-}
-
-class Test {
-}
-
-class T {
-       Stack<Test,Test> a;
-
-       static void Main()
-       {
-       }
-}
diff --git a/mcs/errors/gcs0305-3.cs b/mcs/errors/gcs0305-3.cs
deleted file mode 100644 (file)
index 693c191..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS0305: Using the generic type `Stack<T>' requires `1' type argument(s)
-// Line: 9
-
-class Stack<T>
-{ }
-
-class X
-{
-       Stack stack;
-}
diff --git a/mcs/errors/gcs0305-4.cs b/mcs/errors/gcs0305-4.cs
deleted file mode 100644 (file)
index 2697abe..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS0305: Using the generic type `A.B<T>' requires `1' type argument(s)
-// Line: 12
-
-class A 
-{
-       class B<T> 
-       { 
-       }
-       
-       static void Main() 
-       {
-               B b = new B<A>();
-       }
-}
diff --git a/mcs/errors/gcs0305-5.cs b/mcs/errors/gcs0305-5.cs
deleted file mode 100644 (file)
index 2d572cf..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-// CS0305: Using the generic method `C.Test<T,Y>(C.Func<T>)' requires `2' type argument(s)
-// Line: 14
-
-public class C
-{
-       public delegate int Func<T> (T t);
-       
-       public static void Test<T, Y> (Func<T> f)
-       {
-       }
-
-       public static void Main ()
-       {
-               Test<int> (delegate (int i) { return i; });
-       }
-}
diff --git a/mcs/errors/gcs0305-6.cs b/mcs/errors/gcs0305-6.cs
deleted file mode 100644 (file)
index 8e37f48..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// CS0305: Using the generic type `System.Collections.Generic.List<T>' requires `1' type argument(s)
-// Line: 8
-
-using System.Collections.Generic;
-
-class X
-{
-       List<int,long> list;
-}
diff --git a/mcs/errors/gcs0305-7.cs b/mcs/errors/gcs0305-7.cs
deleted file mode 100644 (file)
index 5efc023..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-// CS0305: Using the generic method `X.G<T>()' requires `1' type argument(s)
-// Line: 17
-
-using System;
-
-delegate int E ();
-
-class X
-{
-       public static T G<T> ()
-       {
-               throw new ArgumentException ();
-       }
-
-       static void Main ()
-       {
-               E e2 = new E (G);
-       }
-}
diff --git a/mcs/errors/gcs0305.cs b/mcs/errors/gcs0305.cs
deleted file mode 100644 (file)
index 5aa69a5..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-// CS0305: Using the generic type `N1.A<T>' requires `1' type argument(s)
-// Line: 12
-namespace N1
-{
-       class A<T>
-       {
-       }
-}
-
-namespace N3
-{
-       using W = N1.A;
-
-       class X
-       {
-               static void Main ()
-               {
-               }
-       }
-}
diff --git a/mcs/errors/gcs0306-2.cs b/mcs/errors/gcs0306-2.cs
deleted file mode 100644 (file)
index 0101a64..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS0306: The type `int*' may not be used as a type argument
-// Line: 11
-// Compiler options: -unsafe
-
-using System.Linq;
-
-public class C
-{
-       public static unsafe void Main ()
-       {
-               var e = from int* a in "aaa"
-                               select a;
-       }
-}
diff --git a/mcs/errors/gcs0306-3.cs b/mcs/errors/gcs0306-3.cs
deleted file mode 100755 (executable)
index c84537b..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// CS0306: The type `System.ArgIterator' may not be used as a type argument
-// Line: 6
-
-class G<T> {}
-
-class C : G<System.ArgIterator>
-{
-}
diff --git a/mcs/errors/gcs0306.cs b/mcs/errors/gcs0306.cs
deleted file mode 100644 (file)
index b440453..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// gcs0306.cs: The type `char*' may not be used as a type argument
-// Line: 9
-// Compiler options: -unsafe
-
-class F<U> {}
-unsafe class O {
-       F<char *> f;
-       static void Main () {}
-}
diff --git a/mcs/errors/gcs0307-2.cs b/mcs/errors/gcs0307-2.cs
deleted file mode 100644 (file)
index dcabfe8..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// CS0307: The namespace `N.M' cannot be used with type arguments
-// Line: 15
-
-namespace N
-{
-       namespace M
-       {
-       }
-}
-
-class Test
-{
-       static void Main ()
-       {
-               var a = N.M<int> ();
-       }
-}
diff --git a/mcs/errors/gcs0307-3.cs b/mcs/errors/gcs0307-3.cs
deleted file mode 100644 (file)
index 137528f..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS0307: The variable `a' cannot be used with type arguments
-// Line: 9
-
-public class Tests
-{
-       public static void Test (int a)
-       {
-               a<int> ();
-       }
-}
diff --git a/mcs/errors/gcs0307-4.cs b/mcs/errors/gcs0307-4.cs
deleted file mode 100644 (file)
index d4c70bd..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS0307: The variable `d' cannot be used with type arguments
-// Line: 9
-
-public class Tests
-{
-       public static void Main ()
-       {
-               var d = 0;
-               d<int> ();
-       }
-}
diff --git a/mcs/errors/gcs0307-5.cs b/mcs/errors/gcs0307-5.cs
deleted file mode 100644 (file)
index 6fa38ba..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// CS0307: The property `Test<T,U>.Value' cannot be used with type arguments
-// Line: 16
-
-class Test<T, U>
-{
-       public object Value {
-               get { return null; }
-       }
-
-       public class B
-       {
-               public B (object arg)
-               {
-               }
-               
-               public static B Default = new B (Value<U>.Default);
-       }
-}
diff --git a/mcs/errors/gcs0307-6.cs b/mcs/errors/gcs0307-6.cs
deleted file mode 100644 (file)
index 00d7c26..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS0307: The variable `a' cannot be used with type arguments
-// Line: 9
-
-public class Tests
-{
-       public static void Test<a> ()
-       {
-               a<int> ();
-       }
-}
diff --git a/mcs/errors/gcs0307.cs b/mcs/errors/gcs0307.cs
deleted file mode 100644 (file)
index d73dec8..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-// CS0307: The property `B.Get' cannot be used with type arguments
-// Line: 14
-public class B
-{
-       public virtual int Get {
-               get { return 3; }
-       }
-}
-
-public class A : B
-{
-       public override int Get {
-               get {
-                       return base.Get<int>;
-               }
-       }
-
-       public static void Main ()
-       {
-       }
-}
diff --git a/mcs/errors/gcs0308-2.cs b/mcs/errors/gcs0308-2.cs
deleted file mode 100644 (file)
index 2979fcf..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS0308: The non-generic type `NamingContext' cannot be used with the type arguments
-// Line: 6
-
-class Program
-{
-       static NamingContext<int> Lookup ()
-       {
-               return null;
-       }
-}
-
-class NamingContext
-{
-}
\ No newline at end of file
diff --git a/mcs/errors/gcs0308-3.cs b/mcs/errors/gcs0308-3.cs
deleted file mode 100644 (file)
index 140d3af..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// CS0308: The non-generic type `System.DateTime' cannot be used with the type arguments
-// Line: 8
-
-using System;
-
-class X
-{
-       DateTime<int> now;
-}
diff --git a/mcs/errors/gcs0308-4.cs b/mcs/errors/gcs0308-4.cs
deleted file mode 100644 (file)
index e96039a..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS0308: The non-generic type `Stack' cannot be used with the type arguments
-// Line: 9
-
-class Stack
-{ }
-
-class X
-{
-       Stack<float> stack;
-}
diff --git a/mcs/errors/gcs0308-5.cs b/mcs/errors/gcs0308-5.cs
deleted file mode 100644 (file)
index 41106df..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS0308: The non-generic method `X.Foo()' cannot be used with the type arguments
-// Line: 12
-
-class X
-{
-       public void Foo ()
-       {
-       }
-       
-       void Test ()
-       {
-               Foo<int> ();
-       }
-}
diff --git a/mcs/errors/gcs0308-6.cs b/mcs/errors/gcs0308-6.cs
deleted file mode 100644 (file)
index 81b4ac3..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-// CS0308: The non-generic type `BaseGeneric<T>.InnerDerived' cannot be used with the type arguments
-// Line: 19
-
-class BaseGeneric<T>
-{
-       public class InnerDerived
-       {
-       }
-}
-
-class BaseConcrete : BaseGeneric<string>
-{
-}
-
-class Program
-{
-    static void Main ()
-    {
-        new BaseConcrete.InnerDerived<int>();
-    }
-}
diff --git a/mcs/errors/gcs0308-7.cs b/mcs/errors/gcs0308-7.cs
deleted file mode 100644 (file)
index bdcb6c2..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// CS0308: The non-generic type `Foo' cannot be used with the type arguments
-// Line: 16
-
-public class Foo
-{
-       public string Test<T> ()
-       {
-               return null;
-       }
-}
-
-public static class Driver
-{
-       static object UseBrokenType ()
-       {
-               return Foo<int> ().Test ();
-       }
-}
diff --git a/mcs/errors/gcs0308.cs b/mcs/errors/gcs0308.cs
deleted file mode 100644 (file)
index de8daf1..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-// CS0308: The non-generic type `N1.A' cannot be used with the type arguments
-// Line: 11
-namespace N1
-{
-       class A
-       { }
-}
-
-namespace N3
-{
-       using W = N1.A<int>;
-
-       class X
-       {
-               static void Main ()
-               {
-               }
-       }
-}
diff --git a/mcs/errors/gcs0310-2.cs b/mcs/errors/gcs0310-2.cs
deleted file mode 100644 (file)
index f553c5b..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-// CS0310: The type `A' must have a public parameterless constructor in order to use it as parameter `T' in the generic type or method `Foo<T>'
-// Line: 20
-
-public class Foo<T>
-       where T : new ()
-{
-}
-
-class A
-{
-       private A ()
-       { }
-}
-
-class X
-{
-       static void Main ()
-       {
-               object o = new Foo<A> ();
-       }
-}
diff --git a/mcs/errors/gcs0310-3.cs b/mcs/errors/gcs0310-3.cs
deleted file mode 100644 (file)
index 472a74c..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-// CS0310: The type `A' must have a public parameterless constructor in order to use it as parameter `T' in the generic type or method `Foo<T>'
-// Line: 18
-
-public class Foo<T>
-       where T : new ()
-{
-}
-
-abstract class A
-{
-       public A ()
-       { }
-}
-
-class X
-{
-       Foo<A> foo;
-
-       static void Main ()
-       {
-       }
-}
diff --git a/mcs/errors/gcs0310-4.cs b/mcs/errors/gcs0310-4.cs
deleted file mode 100644 (file)
index d1e6e35..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// CS0310: The type `Foo' must have a public parameterless constructor in order to use it as parameter `a' in the generic type or method `C<a>'
-// Line: 14
-class C <a> where a : new () {
-}
-
-class Foo {
-  public Foo (int x) { }
-}
-
-class X
-{
-        static void Main ()
-        {
-          C<Foo> x;
-        }
-}
-
diff --git a/mcs/errors/gcs0310-5.cs b/mcs/errors/gcs0310-5.cs
deleted file mode 100644 (file)
index 90a4cd6..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// CS0310: The type `string' must have a public parameterless constructor in order to use it as parameter `T' in the generic type or method `Program.Ret<T>()'
-// Line: 10
-
-public static class Program
-{
-       static void Main ()
-       {
-               Ret<string> ();
-       }
-
-       static T Ret<T> () where T : new ()
-       {
-               return new T ();
-       }
-} 
diff --git a/mcs/errors/gcs0310.cs b/mcs/errors/gcs0310.cs
deleted file mode 100644 (file)
index aa72169..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-// CS0310: The type `A' must have a public parameterless constructor in order to use it as parameter `T' in the generic type or method `Foo<T>'
-// Line: 18
-
-public class Foo<T>
-       where T : new ()
-{
-}
-
-class A
-{
-       private A ()
-       { }
-}
-
-class X
-{
-       Foo<A> foo;
-
-       static void Main ()
-       {
-       }
-}
diff --git a/mcs/errors/gcs0311-2.cs b/mcs/errors/gcs0311-2.cs
deleted file mode 100644 (file)
index 664b4fe..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-// CS031: The type `B' cannot be used as type parameter `T' in the generic type or method `Foo<T>'. There is no implicit reference conversion from `B' to `I'
-// Line: 21
-
-public class Foo<T>
-       where T : A, I
-{
-}
-
-public interface I
-{ }
-
-public class A
-{ }
-
-public class B : A
-{ }
-
-class X
-{
-       Foo<B> foo;
-
-       static void Main ()
-       {
-       }
-}
diff --git a/mcs/errors/gcs0311-3.cs b/mcs/errors/gcs0311-3.cs
deleted file mode 100644 (file)
index 06bb4b0..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-// CS0311: The type `B' cannot be used as type parameter `T' in the generic type or method `Foo<T>'. There is no implicit reference conversion from `B' to `A'
-// Line: 35
-using System;
-
-public class Foo<T>
-       where T : A
-{
-       public void Test (T t)
-       {
-               Console.WriteLine (t);
-               Console.WriteLine (t.GetType ());
-               t.Hello ();
-       }
-}
-
-public class A
-{
-       public void Hello ()
-       {
-               Console.WriteLine ("Hello World");
-       }
-}
-
-public class B
-{
-       public static implicit operator A (B b)
-       {
-               return new A ();
-       }
-}
-
-class X
-{
-       Foo<B> b;
-
-       static void Main ()
-       {
-       }
-}
diff --git a/mcs/errors/gcs0311-4.cs b/mcs/errors/gcs0311-4.cs
deleted file mode 100644 (file)
index 3a47beb..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-// CS0311: The type `B<int>' cannot be used as type parameter `X' in the generic type or method `C<X>'. There is no implicit reference conversion from `B<int>' to `D<B<int>>'
-// Line: 3
-class A : C<B<int>> {}
-class B<X> {}
-interface C<X> where X : D<X> {}
-interface D<X> {}
diff --git a/mcs/errors/gcs0311-5.cs b/mcs/errors/gcs0311-5.cs
deleted file mode 100644 (file)
index 6876a98..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// CS0311: The type `object' cannot be used as type parameter `U' in the generic type or method `G<C>.Method<U>()'. There is no implicit reference conversion from `object' to `C'
-// Line: 9
-
-public class C
-{
-       public static void Main ()
-       {
-               var mc = new G<C> ();
-               mc.Method<object> ();
-       }
-}
-
-public class G<T> where T : C
-{
-       public void Method<U> () where U : T
-       {
-       }
-}
diff --git a/mcs/errors/gcs0311.cs b/mcs/errors/gcs0311.cs
deleted file mode 100644 (file)
index 6ce17f5..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-// CS0311: The type `B' cannot be used as type parameter `T' in the generic type or method `Foo<T>'. There is no implicit reference conversion from `B' to `A'
-// Line: 19
-
-public class Foo<T>
-       where T : A
-{
-}
-
-public class A
-{
-}
-
-public class B
-{
-}
-
-class X
-{
-       Foo<B> foo;
-
-       static void Main ()
-       {
-       }
-}
diff --git a/mcs/errors/gcs0313.cs b/mcs/errors/gcs0313.cs
deleted file mode 100755 (executable)
index 17fe7bc..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// CS0313: The type `S?' cannot be used as type parameter `T' in the generic type or method `S.Foo<T>(T)'. The nullable type `S?' never satisfies interface constraint
-// Line: 16
-
-interface I
-{
-}
-
-struct S : I
-{
-       static void Foo<T> (T t) where T : I
-       {
-       }
-
-       static void Test (S? s)
-       {
-               Foo (s);
-       }
-}
diff --git a/mcs/errors/gcs0314-2.cs b/mcs/errors/gcs0314-2.cs
deleted file mode 100644 (file)
index 504053e..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-// CS0314: The type `T' cannot be used as type parameter `T' in the generic type or method `IB<K,T>'. There is no boxing or type parameter conversion from `T' to `System.IDisposable'
-// Line: 20
-
-public interface IA<K> 
-       where K : System.IComparable, System.IComparable<K>
-{
-}
-
-public class A<K> : IA<K> 
-       where K : System.IComparable, System.IComparable<K>
-{
-}
-
-public interface IB<K,T> 
-       where T : System.IDisposable
-{
-} 
-
-public class B<K,T> : IB<K,T> 
-       where T : B<K,T>.Element, new() 
-       where K : System.IComparable, System.IComparable<K>
-{
-       public abstract class Element : A<K>
-       {
-       }
-}
-
-
-
-
diff --git a/mcs/errors/gcs0314.cs b/mcs/errors/gcs0314.cs
deleted file mode 100644 (file)
index b2a9f85..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-// CS0314: The type `U' cannot be used as type parameter `T' in the generic type or method `A<T>'. There is no boxing or type parameter conversion from `U' to `System.IComparable'
-// Line: 13
-
-using System;
-
-class A<T>
-       where T: IComparable
-{
-}
-
-class B<U,V>
-       where V: A<U>
-{
-}
-
-class Driver
-{
-       public static void Main ()
-       {
-       }
-}
diff --git a/mcs/errors/gcs0315-2.cs b/mcs/errors/gcs0315-2.cs
deleted file mode 100644 (file)
index 3113f6c..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS0315: The type `ushort' cannot be used as type parameter `T' in the generic type or method `A<T>'. There is no boxing conversion from `ushort' to `A<ushort>.N1<ushort>'
-// Line: 9
-// Compiler options: -r:GCS0315-2-lib.dll
-
-public class Test
-{
-       public static void Main ()
-       {
-               A<ushort>.N1<ushort> a = null;
-       }
-}
diff --git a/mcs/errors/gcs0315-3.cs b/mcs/errors/gcs0315-3.cs
deleted file mode 100644 (file)
index 80ab3db..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-// CS0315: The type `int' cannot be used as type parameter `U' in the generic type or method `A<int?>.Test<U>()'. There is no boxing conversion from `int' to `int?'
-// Line: 19
-
-class A<T>
-{
-       public static void Test<U> () where U : T
-       {
-       }
-}
-
-class B : A<int?>
-{
-}
-
-class Program
-{
-       public static void Main ()
-       {
-               B.Test<int> ();
-       }
-}
diff --git a/mcs/errors/gcs0315.cs b/mcs/errors/gcs0315.cs
deleted file mode 100644 (file)
index 3ed8e1e..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// CS0315: The type `int' cannot be used as type parameter `TEventArgs' in the generic type or method `System.EventHandler<TEventArgs>'. There is no boxing conversion from `int' to `System.EventArgs'
-// Line: 5
-
-class X {
-       System.EventHandler <int> x;
-       static void Main () {}
-}
-
-
diff --git a/mcs/errors/gcs0401.cs b/mcs/errors/gcs0401.cs
deleted file mode 100644 (file)
index ac95556..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-// CS0401: The `new()' constraint must be the last constraint specified
-// Line: 4
-
-class Foo<T> where T : new (), new ()
-{
-}
diff --git a/mcs/errors/gcs0402-2.cs b/mcs/errors/gcs0402-2.cs
deleted file mode 100644 (file)
index 3df4df7..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// gcs0402-2.cs: `C.Main<T,U>()': an entry point cannot be generic or in a generic type
-// Line: 7
-// Compiler options: -warnaserror -warn:4
-
-class C
-{
-    public static void Main<T, U> ()
-    {
-    }
-}
\ No newline at end of file
diff --git a/mcs/errors/gcs0402.cs b/mcs/errors/gcs0402.cs
deleted file mode 100644 (file)
index a2edbfa..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// gcs0402.cs: `TestClass<T>.Main()': an entry point cannot be generic or in a generic type
-// Line: 7
-// Compiler options: -warnaserror -warn:4
-
-class TestClass<T>
-{
-    public static void Main ()
-    {
-    }
-}
\ No newline at end of file
diff --git a/mcs/errors/gcs0403-2.cs b/mcs/errors/gcs0403-2.cs
deleted file mode 100644 (file)
index 984bf82..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS0403: Cannot convert null to the type parameter `T' because it could be a value type. Consider using `default (T)' instead
-// Line: 8
-
-struct S
-{
-       public void Foo<T> () where T : struct
-       {
-               T t = null;
-       }
-
-       static void Main ()
-       { }
-}
diff --git a/mcs/errors/gcs0403-3.cs b/mcs/errors/gcs0403-3.cs
deleted file mode 100644 (file)
index 552e3df..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS0403: Cannot convert null to the type parameter `T' because it could be a value type. Consider using `default (T)' instead
-// Line: 8
-
-class X
-{
-       public static T CreateMethod<T> ()
-       {
-               return (T)null;
-       }
-}
diff --git a/mcs/errors/gcs0403.cs b/mcs/errors/gcs0403.cs
deleted file mode 100644 (file)
index 3e73bc7..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// CS0403: Cannot convert null to the type parameter `T' because it could be a value type. Consider using `default (T)' instead
-// Line: 7
-class Test<T>
-{
-       public T Null ()
-       {
-               return null;
-       }
-}
-
-class X
-{
-       static void Main ()
-       { }
-}
diff --git a/mcs/errors/gcs0404.cs b/mcs/errors/gcs0404.cs
deleted file mode 100644 (file)
index 4b935d3..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// CS0404: '<' unexpected: attributes cannot be generic
-// Line: 3
-[Test<T>]
-class X
-{
-       static void Main ()
-       { }
-}
diff --git a/mcs/errors/gcs0405.cs b/mcs/errors/gcs0405.cs
deleted file mode 100644 (file)
index 7a362e6..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// gcs0405.cs: Duplicate constraint `I' for type parameter `T'
-// Line: 8
-
-interface I { }
-
-class Foo<T>
-       where T : I, I
-{
-}
diff --git a/mcs/errors/gcs0406-2.cs b/mcs/errors/gcs0406-2.cs
deleted file mode 100755 (executable)
index 47aa66c..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// CS0406: The class type constraint `A' must be listed before any other constraints. Consider moving type constraint to the beginning of the constraint list
-// Line: 7
-
-class A { }
-interface I { }
-
-class Foo<T> where T : I, A
-{
-}
diff --git a/mcs/errors/gcs0406.cs b/mcs/errors/gcs0406.cs
deleted file mode 100644 (file)
index 1d54a25..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS0406: The class type constraint `B' must be listed before any other constraints. Consider moving type constraint to the beginning of the constraint list
-// Line: 8
-
-class A { }
-class B { }
-
-class Foo<T>
-       where T : A, B
-{
-}
diff --git a/mcs/errors/gcs0409.cs b/mcs/errors/gcs0409.cs
deleted file mode 100644 (file)
index c6aca26..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-// gcs0409.cs: A constraint clause has already been specified for type parameter `U'
-// Line: 7
-
-class C<T, U> where U: class, new() where U: new()
-{
-}
diff --git a/mcs/errors/gcs0411-10.cs b/mcs/errors/gcs0411-10.cs
deleted file mode 100644 (file)
index fe7f3ec..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-// CS0411: The type arguments for method `C.Foo<T>(T)' cannot be inferred from the usage. Try specifying the type arguments explicitly
-// Line: 14
-// Compiler options: -unsafe
-
-class C
-{
-       static void Foo<T> (T t)
-       {
-       }
-
-       unsafe static void Test ()
-       {
-               int* i = null;
-               Foo (i);
-       }
-}
diff --git a/mcs/errors/gcs0411-11.cs b/mcs/errors/gcs0411-11.cs
deleted file mode 100755 (executable)
index 12f8721..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-// CS0411: The type arguments for method `C.Foo<T>(I<T>)' cannot be inferred from the usage. Try specifying the type arguments explicitly
-// Line: 17
-
-interface I<T>
-{
-}
-
-class C : I<long>, I<int>
-{
-       static void Foo<T> (I<T> i)
-       {
-       }
-
-       static void Main ()
-       {
-               C c = new C ();
-               Foo (c);
-       }
-}
diff --git a/mcs/errors/gcs0411-12.cs b/mcs/errors/gcs0411-12.cs
deleted file mode 100644 (file)
index a03e2fb..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// CS0411: The type arguments for method `Foo<U>.DoSomething<U>(System.Func<U,U>)' cannot be inferred from the usage. Try specifying the type arguments explicitly
-// Line: 15
-
-using System;
-
-public class Foo<T>
-{
-       public void DoSomething<U> (Func<U, T> valueExpression) { }
-}
-
-public class Bar
-{
-       protected void DoAnything<T, U> (U value)
-       {
-               new Foo<U> ().DoSomething (value);
-       }
-}
diff --git a/mcs/errors/gcs0411-13.cs b/mcs/errors/gcs0411-13.cs
deleted file mode 100644 (file)
index 2bf576a..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS0411: The type arguments for method `C.Foo<T>(T[], T[])' cannot be inferred from the usage. Try specifying the type arguments explicitly
-// Line: 12
-
-class C
-{
-       public static void Foo<T> (T[] t1, T[] t2)
-       {
-       }
-       
-       public static void Main ()
-       {
-               Foo (new int[0], new byte[0]);
-       }
-}
diff --git a/mcs/errors/gcs0411-14.cs b/mcs/errors/gcs0411-14.cs
deleted file mode 100644 (file)
index 565c5a5..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-// CS0411: The type arguments for method `C.Foo<T>(ref T, ref T)' cannot be inferred from the usage. Try specifying the type arguments explicitly
-// Line: 14
-
-class C
-{
-       public static void Foo<T> (ref T t1, ref T t2)
-       {
-       }
-       
-       public static void Main ()
-       {
-               string s = "a";
-               object o = null;
-               Foo (ref s, ref o);
-       }
-}
diff --git a/mcs/errors/gcs0411-15.cs b/mcs/errors/gcs0411-15.cs
deleted file mode 100644 (file)
index cc5fddb..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-// CS0411: The type arguments for method `C.Foo<T>(IFoo<T>, IFoo<T>)' cannot be inferred from the usage. Try specifying the type arguments explicitly
-// Line: 18
-// Compiler options: -langversion:future 
-
-interface IFoo<in T>
-{
-}
-
-class C
-{
-       public static void Foo<T> (IFoo<T> e1, IFoo<T> e2)
-       {
-       }
-       
-       public static void Main ()
-       {
-               IFoo<int> a = null;
-               IFoo<object> b = null;
-               Foo (a, b);
-       }
-}
diff --git a/mcs/errors/gcs0411-16.cs b/mcs/errors/gcs0411-16.cs
deleted file mode 100644 (file)
index 57b7cc1..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-// CS0411: The type arguments for method `M.Foo<T>(System.Func<T>)' cannot be inferred from the usage. Try specifying the type arguments explicitly
-// Line: 14
-
-using System;
-
-class M
-{
-       static void Foo<T> (Func<T> t)
-       {
-       }
-       
-       public static void Main ()
-       {
-               Foo (delegate { throw new Exception("foo"); });
-       }
-}
diff --git a/mcs/errors/gcs0411-17.cs b/mcs/errors/gcs0411-17.cs
deleted file mode 100644 (file)
index a0f37af..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-// CS0411: The type arguments for method `C.Test<T>(System.Func<T>)' cannot be inferred from the usage. Try specifying the type arguments explicitly
-// Line: 14
-
-using System;
-
-interface IB
-{
-}
-
-class C
-{
-       public static void Main ()
-       {
-               Test (() => { if (true) return (C) null; return (IB) null; });
-       }
-       
-       static void Test<T> (Func<T> f)
-       {
-       }
-}
diff --git a/mcs/errors/gcs0411-2.cs b/mcs/errors/gcs0411-2.cs
deleted file mode 100644 (file)
index 449a414..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// CS0411: The type arguments for method `Test<float>.Foo<V,W>(V, V)' cannot be inferred from the usage. Try specifying the type arguments explicitly
-// Line: 15
-
-class Test<A>
-{
-       public void Foo<V,W> (V v, V w)
-       { }
-}
-
-class X
-{
-       static void Main ()
-       {
-               Test<float> test = new Test<float> ();
-               test.Foo (8, 9);
-       }
-}
-
diff --git a/mcs/errors/gcs0411-3.cs b/mcs/errors/gcs0411-3.cs
deleted file mode 100644 (file)
index 04c2de6..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS0411: The type arguments for method `C.Foo<T>(T)' cannot be inferred from the usage. Try specifying the type arguments explicitly
-// Line: 12
-
-class C
-{
-       static void X ()
-       {
-       }
-       
-       static void Foo<T> (T t)
-       {
-               Foo(X ());
-       }
-}
diff --git a/mcs/errors/gcs0411-5.cs b/mcs/errors/gcs0411-5.cs
deleted file mode 100644 (file)
index cdcf405..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-// CS0411: The type arguments for method `Hello.World<U>(IFoo<U>)' cannot be inferred from the usage. Try specifying the type arguments explicitly
-// Line: 16
-public interface IFoo<T>
-{ }
-
-public class Foo : IFoo<int>, IFoo<string>
-{ }
-
-public class Hello
-{
-       public void World<U> (IFoo<U> foo)
-       { }
-
-       public void Test (Foo foo)
-       {
-               World (foo);
-       }
-}
-
-class X
-{
-       static void Main ()
-       {
-       }
-}
diff --git a/mcs/errors/gcs0411-6.cs b/mcs/errors/gcs0411-6.cs
deleted file mode 100644 (file)
index c6e7ffd..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-// CS0411: The type arguments for method `Hello.World<U>(U, IFoo<U>)' cannot be inferred from the usage. Try specifying the type arguments explicitly
-// Line: 16
-public interface IFoo<T>
-{ }
-
-public class Foo : IFoo<int>, IFoo<string>
-{ }
-
-public class Hello
-{
-       public void World<U> (U u, IFoo<U> foo)
-       { }
-
-       public void Test (Foo foo)
-       {
-               World ("Canada", foo);
-       }
-}
-
-class X
-{
-       static void Main ()
-       {
-       }
-}
diff --git a/mcs/errors/gcs0411-7.cs b/mcs/errors/gcs0411-7.cs
deleted file mode 100644 (file)
index c22648e..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-// CS0411: The type arguments for method `C.Foo<T>(T, System.Collections.Generic.Comparer<T>)' cannot be inferred from the usage. Try specifying the type arguments explicitly
-// Line: 20
-
-using System;
-using System.Collections.Generic;
-
-public class C
-{
-       static void Foo<T>(T t, Comparer<T> tc)
-       {
-       }
-       
-       static int Compare (int a, int b)
-       {
-               return -1;
-       }
-       
-       public static void Main ()
-       {
-               Foo (1, Compare);
-       }
-}
diff --git a/mcs/errors/gcs0411-8.cs b/mcs/errors/gcs0411-8.cs
deleted file mode 100644 (file)
index e72b36e..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// CS0411: The type arguments for method `C.Test<TR,TA>(C.Func<TR,TA>, C.Func<TR,TA>)' cannot be inferred from the usage. Try specifying the type arguments explicitly
-// Line: 16
-
-
-public class C
-{
-       public delegate T1 Func<T1, T2> (T2 t);
-       
-       public static TR Test<TR, TA> (Func<TR, TA> f, Func<TR, TA> f2)
-       {
-               return default (TR);
-       }
-       
-       public static void Main()
-       {
-               int s = Test (delegate (int i) { return 0; }, delegate (int i) { return "a"; });
-       }
-}
\ No newline at end of file
diff --git a/mcs/errors/gcs0411-9.cs b/mcs/errors/gcs0411-9.cs
deleted file mode 100644 (file)
index 063036e..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// CS0411: The type arguments for method `Test.Foo<A>(D<A>)' cannot be inferred from the usage. Try specifying the type arguments explicitly
-// Line: 15
-
-delegate void D<T> (T t);
-
-class Test
-{
-       public static D<A> Foo<A> (D<A> a)
-       {
-               return null;
-       }
-       
-       public static void Main ()
-       {
-               Foo (delegate {});
-       }
-}
-
diff --git a/mcs/errors/gcs0411.cs b/mcs/errors/gcs0411.cs
deleted file mode 100644 (file)
index 3394e81..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// CS0411: The type arguments for method `Test<float>.Foo<V>(V, V)' cannot be inferred from the usage. Try specifying the type arguments explicitly
-// Line: 15
-
-class Test<A>
-{
-       public void Foo<V> (V v, V w)
-       { }
-}
-
-class X
-{
-       static void Main ()
-       {
-               Test<float> test = new Test<float> ();
-               test.Foo (8, "Hello World");
-       }
-}
-
diff --git a/mcs/errors/gcs0412-2.cs b/mcs/errors/gcs0412-2.cs
deleted file mode 100644 (file)
index 058629f..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// CS0412: The type parameter name `T' is the same as local variable or parameter name
-// Line: 8
-
-using System;
-
-interface I
-{
-       T Foo<T>(IComparable T);
-}
diff --git a/mcs/errors/gcs0412-3.cs b/mcs/errors/gcs0412-3.cs
deleted file mode 100644 (file)
index 78b473c..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS0412: The type parameter name `T' is the same as local variable or parameter name
-// Line: 8
-
-class C
-{
-       public void Foo<T> (int value)
-       {
-               int T;
-       }
-}
diff --git a/mcs/errors/gcs0412.cs b/mcs/errors/gcs0412.cs
deleted file mode 100644 (file)
index 7e94245..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// CS0412: The type parameter name `T' is the same as local variable or parameter name
-// Line: 6
-
-class C
-{
-       public void Foo<T> (string T)
-       {
-       }
-}
diff --git a/mcs/errors/gcs0413-2.cs b/mcs/errors/gcs0413-2.cs
deleted file mode 100644 (file)
index 1bd6105..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// CS0413: The `as' operator cannot be used with a non-reference type parameter `T'. Consider adding `class' or a reference type constraint
-// Line: 8
-
-public class SomeClass {
-}
-
-public class Foo<T> where T : struct {
-       public T Do (object o) { return o as T; }
-}
-
-class Driver {
-       static void Main ()
-       {
-               Foo<SomeClass> f = new Foo<SomeClass> ();
-               f.Do ("something");
-       }
-}
-
diff --git a/mcs/errors/gcs0413.cs b/mcs/errors/gcs0413.cs
deleted file mode 100644 (file)
index 8cfae6a..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// CS0413: The `as' operator cannot be used with a non-reference type parameter `T'. Consider adding `class' or a reference type constraint
-// Line: 7
-
-public class SomeClass {}
-
-public class Foo<T>  {
-       public T Do (object o) { return o as T; }
-}
-
-class Driver {
-       static void Main ()
-       {
-               Foo<SomeClass> f = new Foo<SomeClass> ();
-               f.Do ("something");
-       }
-}
-
diff --git a/mcs/errors/gcs0414.cs b/mcs/errors/gcs0414.cs
deleted file mode 100644 (file)
index 0bd9d7f..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// cs0414.cs: The private field `X.i' is assigned but its value is never used
-// Line: 6
-// Compiler options: -warnaserror -warn:3
-
-class X {
-       int i = 3;
-       
-       public void Y ()
-       {
-       }
-}
diff --git a/mcs/errors/gcs0416-2.cs b/mcs/errors/gcs0416-2.cs
deleted file mode 100644 (file)
index 95a637b..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-// CS0416: `N.C<T>': an attribute argument cannot use type parameters
-// Line: 15
-
-using System;
-
-public class TestAttribute : Attribute
-{
-    object type;
-
-    public object Type
-    {
-        get
-        {
-            return type;
-        }
-        set
-        {
-            type = value;
-        }
-    }
-}
-
-namespace N
-{
-    class C<T>
-    {
-        [Test(Type=typeof(C<T>))]
-        public void Foo()
-        {
-        }
-    }
-}
\ No newline at end of file
diff --git a/mcs/errors/gcs0416-3.cs b/mcs/errors/gcs0416-3.cs
deleted file mode 100644 (file)
index b6eed9b..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-// CS0416: `C<T>.N': an attribute argument cannot use type parameters
-// Line: 17
-
-using System;
-
-public class TestAttribute : Attribute
-{
-       public TestAttribute(Type type)
-       {
-       }
-}
-
-class C<T>
-{
-       class N
-       {
-               [Test(typeof(N))]
-               public static void Foo()
-               {
-               }
-       }
-}
diff --git a/mcs/errors/gcs0416.cs b/mcs/errors/gcs0416.cs
deleted file mode 100644 (file)
index a56ac6f..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-// CS0416: `C<T>': an attribute argument cannot use type parameters
-// Line: 15
-
-using System;
-
-public class TestAttribute : Attribute
-{
-    public TestAttribute(Type type)
-    {
-    }
-}
-
-class C<T>
-{
-    [Test(typeof(C<T>))]
-    public static void Foo()
-    {
-    }
-}
\ No newline at end of file
diff --git a/mcs/errors/gcs0417.cs b/mcs/errors/gcs0417.cs
deleted file mode 100644 (file)
index 2396ef6..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// CS0417.cs: `T': cannot provide arguments when creating an instance of a variable type
-// Line: 9
-
-public class Foo<T>
-       where T : new ()
-{
-       public T Create ()
-       {
-               return new T (8);
-       }
-}
-
-class X
-{
-       static void Main ()
-       {
-       }
-}
diff --git a/mcs/errors/gcs0425-2.cs b/mcs/errors/gcs0425-2.cs
deleted file mode 100644 (file)
index ac5904c..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-// CS0425: The constraints for type parameter `V' of method `Foo<T>.Test<V>()' must match the constraints for type parameter `U' of interface method `IFoo<T>.Test<U>()'. Consider using an explicit interface implementation instead
-// Line: 13
-interface IFoo<T>
-{
-       void Test<U> ()
-               where U : T;
-}
-
-class Foo<T> : IFoo<T>
-{
-       public void Test<V> ()
-               where V :X
-       { }
-}
-
-class X
-{
-       static void Main ()
-       { }
-}
diff --git a/mcs/errors/gcs0425-3.cs b/mcs/errors/gcs0425-3.cs
deleted file mode 100755 (executable)
index a76fa8d..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS0425: The constraints for type parameter `T' of method `C.Foo<T>()' must match the constraints for type parameter `T' of interface method `I.Foo<T>()'. Consider using an explicit interface implementation instead
-// Line: 11
-
-interface I
-{
-       void Foo<T> ();
-}
-
-class C : I
-{
-       public void Foo<T> () where T : struct
-       {
-       }
-}
diff --git a/mcs/errors/gcs0425-4.cs b/mcs/errors/gcs0425-4.cs
deleted file mode 100644 (file)
index 6fa481d..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-// CS0425: The constraints for type parameter `T' of method `Test.Baz.Method<T,V>()' must match the constraints for type parameter `T' of interface method `Test.IBar.Method<T,V>()'. Consider using an explicit interface implementation instead
-// Line: 18
-namespace Test
-{
-    using System;
-
-    public interface IFoo
-    {
-    }
-
-    public interface IBar
-    {
-        void Method<T, V>() where T : IFoo where V : T;
-    }
-
-    public class Baz : IBar
-    {
-        public void Method<T, V>() where T : IBar where V : T
-        {
-        }
-    }
-}
diff --git a/mcs/errors/gcs0425-5.cs b/mcs/errors/gcs0425-5.cs
deleted file mode 100644 (file)
index ca372d7..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS0425: The constraints for type parameter `V' of method `Foo<T,X>.Test<V>()' must match the constraints for type parameter `U' of interface method `IFoo<T>.Test<U>()'. Consider using an explicit interface implementation instead
-// Line: 11
-
-interface IFoo<T>
-{
-       void Test<U> () where U : T;
-}
-
-class Foo<T, X> : IFoo<T>
-{
-       public void Test<V> () where V : X
-       {
-       }
-}
diff --git a/mcs/errors/gcs0425.cs b/mcs/errors/gcs0425.cs
deleted file mode 100644 (file)
index ef0c413..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-// CS0425: The constraints for type parameter `V' of method `Foo<T>.Test<V>()' must match the constraints for type parameter `U' of interface method `IFoo<T>.Test<U>()'. Consider using an explicit interface implementation instead
-// Line: 12
-interface IFoo<T>
-{
-       void Test<U> ()
-               where U : T;
-}
-
-class Foo<T> : IFoo<T>
-{
-       public void Test<V> ()
-       { }
-}
-
-class X
-{
-       static void Main ()
-       { }
-}
diff --git a/mcs/errors/gcs0428.cs b/mcs/errors/gcs0428.cs
deleted file mode 100644 (file)
index 61b788e..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS0428: Cannot convert method group `Count' to non-delegate type `int'. Consider using parentheses to invoke the method
-// Line: 11
-
-using System.Linq;
-
-public class A
-{
-       public A ()
-       {
-               string [] test = new string [5];
-               A [] array = new A [test.Count];
-       }
-}
diff --git a/mcs/errors/gcs0449-2.cs b/mcs/errors/gcs0449-2.cs
deleted file mode 100644 (file)
index 6ed5fb8..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS0449: The `class' or `struct' constraint must be the first constraint specified
-// Line: 8
-
-public interface I
-{
-}
-
-public class C<T> where T : I, class
-{
-}
\ No newline at end of file
diff --git a/mcs/errors/gcs0449-3.cs b/mcs/errors/gcs0449-3.cs
deleted file mode 100644 (file)
index c23a624..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// CS0449: The `class' or `struct' constraint must be the first constraint specified
-// Line: 6
-
-public class C<T>
-{
-      public void Foo<T>() where T : class, struct 
-      {
-      }
-}
\ No newline at end of file
diff --git a/mcs/errors/gcs0449.cs b/mcs/errors/gcs0449.cs
deleted file mode 100644 (file)
index 13d9259..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// CS0449: The `class' or `struct' constraint must be the first constraint specified
-// Line: 6
-
-interface I
-{
-       void Foo<T> () where T : class, struct;
-}
diff --git a/mcs/errors/gcs0450-2.cs b/mcs/errors/gcs0450-2.cs
deleted file mode 100644 (file)
index 7c4947e..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// CS0450: `A<bool,int>': cannot specify both a constraint class and the `class' or `struct' constraint
-// Line: 8
-
-class A<T, U>
-{
-}
-
-delegate void Test<T>() where T : struct, A<bool, int>;
diff --git a/mcs/errors/gcs0450.cs b/mcs/errors/gcs0450.cs
deleted file mode 100644 (file)
index d19bfb8..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS0450: `A': cannot specify both a constraint class and the `class' or `struct' constraint
-// Line: 8
-
-class A
-{
-}
-
-class B<T> where T : class, A
-{
-}
diff --git a/mcs/errors/gcs0451.cs b/mcs/errors/gcs0451.cs
deleted file mode 100644 (file)
index c56634b..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// CS0451: The `new()' constraint cannot be used with the `struct' constraint
-// Line: 6
-
-class C
-{
-       public static void Foo<T>() where T : struct, new ()
-       {
-       }
-}
diff --git a/mcs/errors/gcs0452-2.cs b/mcs/errors/gcs0452-2.cs
deleted file mode 100644 (file)
index 0b4be0e..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-// CS0452: The type `int' must be a reference type in order to use it as type parameter `T' in the generic type or method `Foo.Test<T>(ref T)'
-// Line: 14
-public class Foo
-{
-       public static void Test<T> (ref T t)
-               where T : class
-       { }
-}
-
-public class C {
-       public static void Main ()
-       {
-               int i = 0;
-               Foo.Test<int> (ref i);
-       }
-}
diff --git a/mcs/errors/gcs0452-3.cs b/mcs/errors/gcs0452-3.cs
deleted file mode 100644 (file)
index f6fbe43..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-// CS0452: The type `int' must be a reference type in order to use it as type parameter `T' in the generic type or method `TestClass<T>'
-// Line: 23
-using System;
-
-public class TestClass<T> where T : class
-{
-       static public T meth()
-       {
-               return null;
-       }
-
-       static public T Value;
-}                      
-       
-public class Test
-{
-       public Test()
-       {
-       }
-               
-       static public void Main()
-       {
-               int i = TestClass<int>.meth();
-               Console.WriteLine (i);
-       }
-}
diff --git a/mcs/errors/gcs0452-4.cs b/mcs/errors/gcs0452-4.cs
deleted file mode 100644 (file)
index cd944dc..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-// CS0452: The type `int' must be a reference type in order to use it as type parameter `T' in the generic type or method `TestClass<T>'
-// Line: 23
-using System;
-
-public class TestClass<T> where T : class
-{
-       static public T meth()
-       {
-               return null;
-       }
-
-       static public T Value;
-}                      
-       
-public class Test
-{
-       public Test()
-       {
-       }
-               
-       static public void Main()
-       {
-               int j = TestClass<int>.Value;
-               Console.WriteLine (j);
-       }
-}
diff --git a/mcs/errors/gcs0452.cs b/mcs/errors/gcs0452.cs
deleted file mode 100644 (file)
index b6a8006..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-// CS0452: The type `Foo' must be a reference type in order to use it as type parameter `T' in the generic type or method `MyObject<T>'
-// Line: 13
-public class MyObject<T>
-       where T : class
-{ }
-
-struct Foo
-{ }
-
-class X
-{
-       MyObject<Foo> foo;
-
-       static void Main ()
-       { }
-}
diff --git a/mcs/errors/gcs0453-2.cs b/mcs/errors/gcs0453-2.cs
deleted file mode 100644 (file)
index 01daa0d..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS0453: The type `Foo' must be a non-nullable value type in order to use it as type parameter `T' in the generic type or method `System.Nullable<T>'
-// Line: 10
-public class Foo
-{ }
-
-class X
-{
-       static void Main ()
-       {
-               Foo? foo = new Foo ();
-       }
-}
diff --git a/mcs/errors/gcs0453-3.cs b/mcs/errors/gcs0453-3.cs
deleted file mode 100644 (file)
index d5eda52..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-// CS0453: The type `Bar?' must be a non-nullable value type in order to use it as type parameter `T' in the generic type or method `Foo<T>'
-// Line: 14
-public class Foo<T>
-       where T : struct
-{ }
-
-public struct Bar
-{ }
-
-class X
-{
-       static void Main ()
-       {
-               Foo<Bar?> foo;
-       }
-}
diff --git a/mcs/errors/gcs0453-4.cs b/mcs/errors/gcs0453-4.cs
deleted file mode 100644 (file)
index 4e3d16d..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS0453: The type `T' must be a non-nullable value type in order to use it as type parameter `T' in the generic type or method `System.Nullable<T>'
-// Line: 14
-
-using System;
-
-public static class Nullable_Test {
-       public static int Compare<T> (Nullable<T> left)
-       {
-               return 0;
-       }
-}
\ No newline at end of file
diff --git a/mcs/errors/gcs0453-5.cs b/mcs/errors/gcs0453-5.cs
deleted file mode 100644 (file)
index 9a89cff..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-// CS0453: The type `B.M' must be a non-nullable value type in order to use it as type parameter `T' in the generic type or method `Foo.Test_2<T>(this T)'
-// Line: 20
-
-
-using System;
-
-public static class Foo
-{
-       public static string Test_2<T> (this T s) where T : struct
-       {
-               return null;
-       }
-}
-
-namespace B
-{
-       public class M
-       {
-               public static void Main ()
-               {
-                       new M().Test_2();
-               }
-       }
-}
\ No newline at end of file
diff --git a/mcs/errors/gcs0453.cs b/mcs/errors/gcs0453.cs
deleted file mode 100644 (file)
index 016d95e..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS0453: The type `X' must be a non-nullable value type in order to use it as type parameter `T' in the generic type or method `MyValue<T>'
-// Line: 10
-public class MyValue<T>
-       where T : struct
-{ }
-
-class X
-{
-       MyValue<X> x;
-
-       static void Main ()
-       { }
-}
diff --git a/mcs/errors/gcs0454.cs b/mcs/errors/gcs0454.cs
deleted file mode 100644 (file)
index 386c875..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS0454: Circular constraint dependency involving `T' and `U'
-// Line: 7
-using System;
-
-class Foo<T,U>
-       where T : U
-       where U : T
-{ }
-
-class X
-{
-       static void Main ()
-       { }
-}
diff --git a/mcs/errors/gcs0455-2.cs b/mcs/errors/gcs0455-2.cs
deleted file mode 100755 (executable)
index 5bbf56f..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// CS0455: Type parameter `V' inherits conflicting constraints `B' and `A'
-// Line: 13
-
-class A
-{ }
-
-class B
-{ }
-
-class Foo<T,U, V>
-       where T : A
-       where U : B
-       where V : U, T
-{
-}
diff --git a/mcs/errors/gcs0455-3.cs b/mcs/errors/gcs0455-3.cs
deleted file mode 100644 (file)
index fe08835..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS0455: Type parameter `T' inherits conflicting constraints `System.ValueType' and `Test'
-// Line: 8
-
-class Test
-{ }
-
-class Foo<T,U>
-       where T : struct, U
-       where U : Test
-{ }
diff --git a/mcs/errors/gcs0455-4.cs b/mcs/errors/gcs0455-4.cs
deleted file mode 100644 (file)
index b27656d..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS0455: Type parameter `Y' inherits conflicting constraints `long' and `long?'
-// Line: 11
-
-abstract class A<T1, T2>
-{
-       public abstract void Foo<U> () where U : T1, T2;
-}
-
-class B : A<long, long?>
-{
-       public override void Foo<Y> ()
-       {
-       }
-}
diff --git a/mcs/errors/gcs0455-5.cs b/mcs/errors/gcs0455-5.cs
deleted file mode 100644 (file)
index 3844f9d..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS0455: Type parameter `Y' inherits conflicting constraints `class' and `long'
-// Line: 11
-
-abstract class A<T>
-{
-       public abstract void Foo<U> () where U : class, T;
-}
-
-class B : A<long>
-{
-       public override void Foo<Y> ()
-       {
-       }
-}
diff --git a/mcs/errors/gcs0455.cs b/mcs/errors/gcs0455.cs
deleted file mode 100644 (file)
index e957adf..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS0455: Type parameter `T' inherits conflicting constraints `Test' and `World'
-// Line: 11
-
-class Test
-{ }
-
-class World
-{ }
-
-class Foo<T,U>
-       where T : Test, U
-       where U : World
-{ }
diff --git a/mcs/errors/gcs0456.cs b/mcs/errors/gcs0456.cs
deleted file mode 100644 (file)
index ee3394a..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS0456: Type parameter `U' has the `struct' constraint, so it cannot be used as a constraint for `T'
-// Line: 7
-using System;
-
-class Foo<T,U>
-       where T : U
-       where U : struct
-{ }
-
-class X
-{
-       static void Main ()
-       { }
-}
diff --git a/mcs/errors/gcs0458-10.cs b/mcs/errors/gcs0458-10.cs
deleted file mode 100644 (file)
index e334822..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS0458: The result of the expression is always `null' of type `bool?' 
-// Line: 8
-// Compiler options: -warnaserror -warn:2
-
-class C
-{
-       static void Foo()
-       {
-               bool? b = false | null;
-       }
-}
diff --git a/mcs/errors/gcs0458-11.cs b/mcs/errors/gcs0458-11.cs
deleted file mode 100644 (file)
index 26f8e0c..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS0458: The result of the expression is always `null' of type `ulong?'
-// Line: 10
-// Compiler options: -warnaserror -warn:2
-
-class C
-{
-       static void Foo()
-       {
-               ulong a = 100;
-               var res = a << null;
-       }
-}
diff --git a/mcs/errors/gcs0458-12.cs b/mcs/errors/gcs0458-12.cs
deleted file mode 100644 (file)
index fbc17fa..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS0458: The result of the expression is always `null' of type `int?'
-// Line: 9
-// Compiler options: -warnaserror -warn:2
-
-class C
-{
-       static void Foo()
-       {
-               var res = null >> 2;
-       }
-}
diff --git a/mcs/errors/gcs0458-13.cs b/mcs/errors/gcs0458-13.cs
deleted file mode 100644 (file)
index 7246847..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS0458: The result of the expression is always `null' of type `int?'
-// Line: 9
-// Compiler options: -warnaserror -warn:2
-
-class C
-{
-       static void Foo()
-       {
-               var res = null << 2;
-       }
-}
diff --git a/mcs/errors/gcs0458-2.cs b/mcs/errors/gcs0458-2.cs
deleted file mode 100644 (file)
index 3d96384..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS0458: The result of the expression is always `null' of type `int?'
-// Line: 8
-// Compiler options: -warnaserror -warn:2
-
-public class MainClass
-{
-       public static void Main()
-       {
-               object d = (int?)null as int?;
-       }
-}
-
diff --git a/mcs/errors/gcs0458-3.cs b/mcs/errors/gcs0458-3.cs
deleted file mode 100644 (file)
index ee41ef3..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS0458: The result of the expression is always `null' of type `int?' 
-// Line: 8
-// Compiler options: -warnaserror -warn:2
-
-class C
-{
-       static void Main ()
-       {
-               int? i = 2;
-               i *= null;
-       }
-}
diff --git a/mcs/errors/gcs0458-4.cs b/mcs/errors/gcs0458-4.cs
deleted file mode 100644 (file)
index 37be80a..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS0458: The result of the expression is always `null' of type `int?' 
-// Line: 8
-// Compiler options: -warnaserror -warn:2
-
-class C
-{
-       static void Main ()
-       {
-               ushort us = 22;
-               int? r = us << null;
-       }
-}
diff --git a/mcs/errors/gcs0458-5.cs b/mcs/errors/gcs0458-5.cs
deleted file mode 100644 (file)
index 9f2251d..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// CS0458: The result of the expression is always `null' of type `E?'
-// Line: 15
-// Compiler options: -warnaserror -warn:2
-
-enum E
-{
-       V
-}
-
-public class C
-{
-       public static void Main ()
-       {
-               E e = E.V;
-               object o = e + null;
-       }
-}
diff --git a/mcs/errors/gcs0458-6.cs b/mcs/errors/gcs0458-6.cs
deleted file mode 100644 (file)
index 34556b5..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// CS0458: The result of the expression is always `null' of type `int?'
-// Line: 15
-// Compiler options: -warnaserror -warn:2
-
-enum E
-{
-       V
-}
-
-public class C
-{
-       public static void Main ()
-       {
-               E e = E.V;
-               object o = null - e;
-       }
-}
diff --git a/mcs/errors/gcs0458-7.cs b/mcs/errors/gcs0458-7.cs
deleted file mode 100644 (file)
index 0935e36..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-// CS0472: The result of the expression is always `null' of type `MyEnum?'
-// Line: 17
-// Compiler options: -warnaserror -warn:2
-
-using System;
-
-enum MyEnum
-{
-       Value_1
-}
-
-class C
-{
-       public static void Main ()
-       {
-               var d = MyEnum.Value_1;
-               var x = d & null;
-       }
-}
diff --git a/mcs/errors/gcs0458-8.cs b/mcs/errors/gcs0458-8.cs
deleted file mode 100644 (file)
index e945f5e..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// CS0458: The result of the expression is always `null' of type `E?'
-// Line: 15
-// Compiler options: -warnaserror -warn:2
-
-enum E
-{
-       V
-}
-
-public class C
-{
-       public static void Main ()
-       {
-               E e = E.V;
-               object o = null + e;
-       }
-}
diff --git a/mcs/errors/gcs0458-9.cs b/mcs/errors/gcs0458-9.cs
deleted file mode 100644 (file)
index 1e77f7c..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS0458: The result of the expression is always `null' of type `int?'
-// Line: 9
-// Compiler options: -warnaserror -warn:2
-
-public class C
-{
-       public static void Main ()
-       {
-               b = (null & 0) != null;
-       }
-}
diff --git a/mcs/errors/gcs0458.cs b/mcs/errors/gcs0458.cs
deleted file mode 100644 (file)
index d504a58..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS0458: The result of the expression is always `null' of type `bool?' 
-// Line: 8
-// Compiler options: -warnaserror -warn:2
-
-class C
-{
-       static void Foo()
-       {
-               bool? b = null as bool?;
-       }
-}
diff --git a/mcs/errors/gcs0460-2.cs b/mcs/errors/gcs0460-2.cs
deleted file mode 100644 (file)
index cd93d2b..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS0460: `C.Test<T>()': Cannot specify constraints for overrides and explicit interface implementation methods
-// Line: 11
-
-abstract class A
-{
-       protected abstract int Test<T>() where T : class;
-}
-
-class C : A
-{
-       protected override int Test<T>() where T : new()
-       {
-       }
-}
diff --git a/mcs/errors/gcs0460.cs b/mcs/errors/gcs0460.cs
deleted file mode 100644 (file)
index 8b60dbf..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS0460: `C.I.Test<C>()': Cannot specify constraints for overrides and explicit interface implementation methods
-// Line: 11
-
-interface I
-{
-       void Test<T>() where T : new ();
-}
-
-class C : I
-{
-       void I.Test<C>() where C : class
-       {
-       }
-}
diff --git a/mcs/errors/gcs0464-2.cs b/mcs/errors/gcs0464-2.cs
deleted file mode 100644 (file)
index 4009b38..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS0464: The result of comparing type `int?' with null is always `false'
-// Line: 9
-// Compiler options: -warnaserror -warn:2
-
-public class X
-{
-       public static bool Compute (int? x)
-       {
-               return x >= null;
-       }
-}
diff --git a/mcs/errors/gcs0464-3.cs b/mcs/errors/gcs0464-3.cs
deleted file mode 100644 (file)
index 5c4632b..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS0464: The result of comparing type `int?' with null is always `false'
-// Line: 9
-// Compiler options: -warnaserror -warn:2
-
-public class X
-{
-       public static bool Compute ()
-       {
-               return null >= null;
-       }
-}
diff --git a/mcs/errors/gcs0464.cs b/mcs/errors/gcs0464.cs
deleted file mode 100644 (file)
index b6ae396..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS0464: The result of comparing type `int' with null is always `false'
-// Line: 9
-// Compiler options: -warnaserror -warn:2
-
-public class X
-{
-       public static bool Compute (int x)
-       {
-               return x < null;
-       }
-}
diff --git a/mcs/errors/gcs0472-2.cs b/mcs/errors/gcs0472-2.cs
deleted file mode 100644 (file)
index 22f70e5..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS0472: The result of comparing value type `int' with null is `false'
-// Line: 8
-// Compiler options: -warnaserror -warn:2
-
-public class X {
-       public static bool Compute (int x)
-       {
-               return x == null;
-       }
-}
diff --git a/mcs/errors/gcs0472-3.cs b/mcs/errors/gcs0472-3.cs
deleted file mode 100644 (file)
index 71f146c..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS0472: The result of comparing value type `int' with null is `true'
-// Line: 9
-// Compiler options: -warnaserror -warn:2
-
-public class X
-{
-       public static void Compute (int x)
-       {
-               if (true && x != null)
-                       return;
-       }
-}
diff --git a/mcs/errors/gcs0472-4.cs b/mcs/errors/gcs0472-4.cs
deleted file mode 100644 (file)
index 22f9435..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS0472: The result of comparing value type `int' with null is `false'
-// Line: 9
-// Compiler options: -warnaserror -warn:2
-
-class C
-{
-       public static void Main ()
-       {
-               System.Console.WriteLine(5 == (long?)null);
-       }
-}
diff --git a/mcs/errors/gcs0472.cs b/mcs/errors/gcs0472.cs
deleted file mode 100644 (file)
index f76a1bc..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS0472: The result of comparing value type `int' with null is `true'
-// Line: 8
-// Compiler options: -warnaserror -warn:2
-
-public class X {
-       public static bool Compute (int x)
-       {
-               return x != null;
-       }
-}
diff --git a/mcs/errors/gcs0501.cs b/mcs/errors/gcs0501.cs
deleted file mode 100644 (file)
index 0cd885c..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// CS0501: `X.Mine.get' must have a body because it is not marked abstract, extern, or partial
-// Line: 6
-
-class X
-{
-       public int Mine { get; set {} }
-}
diff --git a/mcs/errors/gcs0508-2.cs b/mcs/errors/gcs0508-2.cs
deleted file mode 100644 (file)
index f963ccf..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// CS0508: `A<T>.B.getT()': return type must be `A<T>.B' to match overridden member `A<A<T>.B>.getT()'
-// Line: 10
-
-abstract class A<T>
-{
-       public abstract T getT ();
-
-       public class B : A<B>
-       {
-               public override B getT ()
-               {
-                       throw new System.Exception ("The method or operation is not implemented.");
-               }
-       }
-}
diff --git a/mcs/errors/gcs0508-3.cs b/mcs/errors/gcs0508-3.cs
deleted file mode 100644 (file)
index b30e7b7..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// CS0508: `A<T>.B<H>.Test()': return type must be `A<T>.B<H>' to match overridden member `A<A<T>.B<H>>.Test()'
-// Line: 10
-
-abstract class A<T>
-{
-       public abstract T Test ();
-
-       public class B<H> : A<B<H>>
-       {
-               public override B<H> Test ()
-               {
-                       return this;
-               }
-       }
-}
diff --git a/mcs/errors/gcs0508.cs b/mcs/errors/gcs0508.cs
deleted file mode 100644 (file)
index 9a15529..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// CS0508: `A<T>.B.getT()': return type must be `A<T>.B' to match overridden member `A<A<T>.B>.getT()'
-// Line: 10
-
-abstract class A<T>
-{
-       public abstract T getT ();
-
-       public class B : A<B>
-       {
-               public override B getT ()
-               {
-                       return default (B);
-               }
-       }
-}
diff --git a/mcs/errors/gcs0515.cs b/mcs/errors/gcs0515.cs
deleted file mode 100644 (file)
index c45a9ae..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS0515: `N.G<T>.G()': static constructor cannot have an access modifier
-// Line: 7
-
-namespace N
-{
-       class G<T> {
-               public static G ()
-               {
-               }
-       }
-}
diff --git a/mcs/errors/gcs0523-2.cs b/mcs/errors/gcs0523-2.cs
deleted file mode 100644 (file)
index e5605e4..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// CS0523: Struct member `A.a' of type `A?' causes a cycle in the struct layout
-// Line: 6
-
-struct A
-{
-       static A? a;
-}
diff --git a/mcs/errors/gcs0523-3.cs b/mcs/errors/gcs0523-3.cs
deleted file mode 100644 (file)
index 1ee8ecc..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// CS0523: Struct member `S<T>.s' of type `S<T[]>' causes a cycle in the struct layout
-// Line: 6
-
-struct S<T>
-{
-       static S<T[]> s;
-}
diff --git a/mcs/errors/gcs0523-4.cs b/mcs/errors/gcs0523-4.cs
deleted file mode 100644 (file)
index 0ee0fce..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// CS0523: Struct member `S<T>.s' of type `S<int>' causes a cycle in the struct layout
-// Line: 6
-
-struct S<T>
-{
-       S<int> s;
-}
diff --git a/mcs/errors/gcs0523-5.cs b/mcs/errors/gcs0523-5.cs
deleted file mode 100644 (file)
index 63ca1e8..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// CS0523: Struct member `Foo.Handle' of type `Handle<Foo>' causes a cycle in the struct layout
-// Line: 13
-// NOTE: Not detected by csc only by runtime loader
-
-using System;
-
-struct Handle<T>
-{
-       public IntPtr Value;
-}
-
-struct Foo
-{
-       public readonly Handle<Foo> Handle;
-}
diff --git a/mcs/errors/gcs0523.cs b/mcs/errors/gcs0523.cs
deleted file mode 100644 (file)
index 67412c8..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// CS0523: Struct member `A<T>.a' of type `A<T>' causes a cycle in the struct layout
-// Line: 6
-
-struct A<T>
-{
-       A<T> a;
-}
diff --git a/mcs/errors/gcs0555.cs b/mcs/errors/gcs0555.cs
deleted file mode 100644 (file)
index b82722b..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS0555: User-defined operator cannot take an object of the enclosing type and convert to an object of the enclosing type
-// Line: 6
-
-struct S
-{
-       public static implicit operator S (S? s)
-       {
-               return new S ();
-       }
-}
diff --git a/mcs/errors/gcs0612-2.cs b/mcs/errors/gcs0612-2.cs
deleted file mode 100644 (file)
index 9098776..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-// CS0612: `O2' is obsolete
-// Line: 23
-// Compiler options: -warnaserror
-
-using System;
-
-[Obsolete]
-interface O2
-{
-}
-
-#pragma warning disable 612
-class A
-{
-       public virtual void Foo<T> () where T : O2
-       {
-       }
-}
-#pragma warning restore 612
-
-class B : A
-{
-       public override void Foo<U> ()
-       {
-       }
-}
diff --git a/mcs/errors/gcs0612.cs b/mcs/errors/gcs0612.cs
deleted file mode 100644 (file)
index 6c7a42a..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-// CS0612: `O1' is obsolete
-// Line: 23
-// Compiler options: -warnaserror
-
-using System;
-
-[Obsolete]
-class O1
-{
-}
-
-#pragma warning disable 612
-class A
-{
-       public virtual void Foo<T> () where T : O1
-       {
-       }
-}
-#pragma warning restore 612
-
-class B : A
-{
-       public override void Foo<U> ()
-       {
-       }
-}
diff --git a/mcs/errors/gcs0619.cs b/mcs/errors/gcs0619.cs
deleted file mode 100644 (file)
index c4abd6a..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// CS0619: `ObsoleteInterface<T>' is obsolete: `'
-// Line: 15
-
-using System;
-
-[Obsolete("", true)]
-interface ObsoleteInterface<T>
-{
-}
-
-class C
-{
-       public static void Main ()
-       {
-               var v = typeof (ObsoleteInterface<>);
-       }
-}
diff --git a/mcs/errors/gcs0633-4.cs b/mcs/errors/gcs0633-4.cs
deleted file mode 100644 (file)
index c4bd468..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// gcs0633-4.cs: The argument to the `System.Diagnostics.ConditionalAttribute' attribute must be a valid identifier
-// Line: 6
-
-using System.Diagnostics;
-
-[Conditional("DEBUG+2")]
-public class Test: System.Attribute {}
diff --git a/mcs/errors/gcs0663.cs b/mcs/errors/gcs0663.cs
deleted file mode 100644 (file)
index 44b3cc3..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS0633: Overloaded method `C.Foo(string)' cannot differ on use of parameter modifiers only
-// Line: 11
-
-
-public static class C
-{
-       static  void Foo (this string eType)
-       {
-       }
-       
-       static  void Foo (string value)
-       {
-       }
-}
diff --git a/mcs/errors/gcs0677-2.cs b/mcs/errors/gcs0677-2.cs
deleted file mode 100644 (file)
index 2949f2a..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// CS0677: `C<T>.t': A volatile field cannot be of the type `T'
-// Line: 8
-
-public class C<T>
-{
-       volatile T t;
-}
diff --git a/mcs/errors/gcs0677.cs b/mcs/errors/gcs0677.cs
deleted file mode 100644 (file)
index 190ab80..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// CS0677: `C<T>.t': A volatile field cannot be of the type `T'
-// Line: 8
-
-public class C<T>  where T : struct
-{
-       volatile T t;
-}
diff --git a/mcs/errors/gcs0689.cs b/mcs/errors/gcs0689.cs
deleted file mode 100644 (file)
index 0ae5030..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-// CS0689: `Stack<T>': Cannot derive from type parameter `T'
-// Line: 4
-
-class Stack<T> : T { }
diff --git a/mcs/errors/gcs0692.cs b/mcs/errors/gcs0692.cs
deleted file mode 100644 (file)
index 805aa5d..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-// gcs0692.cs: Duplicate type parameter `A'
-// Line: 4
-
-class X <A,A> {
-}
diff --git a/mcs/errors/gcs0693-2.cs b/mcs/errors/gcs0693-2.cs
deleted file mode 100644 (file)
index 7ebe4ab..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS0693: Type parameter `T' has the same name as the type parameter from outer type `R<U>.A<T>'
-// Line: 9
-// Compiler options: -warnaserror -warn:3
-
-class R<U>
-{
-       class A<T>
-       {
-               struct I<T>
-               {
-               }
-       }
-}
diff --git a/mcs/errors/gcs0693-3.cs b/mcs/errors/gcs0693-3.cs
deleted file mode 100644 (file)
index c24d387..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS0693: Type parameter `T' has the same name as the type parameter from outer type `C<T>'
-// Line: 7
-// Compiler options: -warnaserror -warn:3
-
-class C<T>
-{
-       void Foo<T> (T t)
-       {
-       }
-}
diff --git a/mcs/errors/gcs0693.cs b/mcs/errors/gcs0693.cs
deleted file mode 100644 (file)
index d2f6a67..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS0693: Type parameter `T' has the same name as the type parameter from outer type `A<T>'
-// Line: 7
-// Compiler options: -warnaserror -warn:3
-
-class A<T>
-{
-    interface I<T>
-    {
-    }
-}
\ No newline at end of file
diff --git a/mcs/errors/gcs0694.cs b/mcs/errors/gcs0694.cs
deleted file mode 100644 (file)
index 7751c21..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// gcs0694.cs: Type parameter `Y' has same name as containing type, or method
-// Line: 4
-
-class Y <Y> {
-}
-
-class Test
-{
-       static void Main ()
-       { }
-}
-
diff --git a/mcs/errors/gcs0695-2.cs b/mcs/errors/gcs0695-2.cs
deleted file mode 100644 (file)
index 791967c..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// CS0695: `A<X,Y,Z>' cannot implement both `I<X>' and `I<A<Y,Y,Z>>' because they may unify for some type parameter substitutions
-// Line: 7
-
-interface I<X>
-{ }
-
-class A<X,Y,Z> : I<X>, I<A<Y,Y,Z>>
-{ }
diff --git a/mcs/errors/gcs0695-3.cs b/mcs/errors/gcs0695-3.cs
deleted file mode 100644 (file)
index d352d99..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS0695: `C<X,Y>' cannot implement both `I<X>' and `I<K<Y>>' because they may unify for some type parameter substitutions
-// Line: 10
-
-interface I<X>
-{ }
-
-interface K<X>
-{ }
-
-class C<X,Y> : I<X>, I<K<Y>>
-{ }
diff --git a/mcs/errors/gcs0695-4.cs b/mcs/errors/gcs0695-4.cs
deleted file mode 100644 (file)
index fdefb0e..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS0695: `C<X,Y>' cannot implement both `I<K<Y>>' and `I<X>' because they may unify for some type parameter substitutions
-// Line: 10
-
-interface I<X>
-{ }
-
-interface K<X>
-{ }
-
-class C<X,Y> : I<K<Y>>, I<X>
-{ }
diff --git a/mcs/errors/gcs0695.cs b/mcs/errors/gcs0695.cs
deleted file mode 100644 (file)
index d181402..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// CS0695: `A<X,Y>' cannot implement both `I<X>' and `I<Y>' because they may unify for some type parameter substitutions
-// Line: 7
-
-interface I<X>
-{ }
-
-class A<X,Y> : I<X>, I<Y>
-{ }
diff --git a/mcs/errors/gcs0698.cs b/mcs/errors/gcs0698.cs
deleted file mode 100644 (file)
index c640be7..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// cs0698.cs: A generic type cannot derive from `System.Attribute' because it is an attribute class
-// Line: 6
-
-using System;
-
-class Stack<T> : Attribute
-{ }
-
-class X
-{
-       static void Main ()
-       { }
-}
diff --git a/mcs/errors/gcs0699-2.cs b/mcs/errors/gcs0699-2.cs
deleted file mode 100644 (file)
index 136769e..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS0699: `I<T>': A constraint references nonexistent type parameter `U'
-// Line: 8
-
-partial interface I<T>
-{
-}
-
-partial interface I<T> where U : class
-{
-}
diff --git a/mcs/errors/gcs0699.cs b/mcs/errors/gcs0699.cs
deleted file mode 100644 (file)
index 93c45ca..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// CS0699: `Test<T>()': A constraint references nonexistent type parameter `U'
-// Line: 6
-
-interface I
-{
-       void Test<T>() where U : class;
-}
diff --git a/mcs/errors/gcs0701-2.cs b/mcs/errors/gcs0701-2.cs
deleted file mode 100644 (file)
index 886c6aa..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// gcs0701.cs: `S' is not a valid constraint. A constraint must be an interface, a non-sealed class or a type parameter
-// Line: 8
-
-struct S
-{
-}
-
-class Foo<T> where T : S
-{
-}
diff --git a/mcs/errors/gcs0701.cs b/mcs/errors/gcs0701.cs
deleted file mode 100644 (file)
index f7c3fcb..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// CS0701: `A' is not a valid constraint. A constraint must be an interface, a non-sealed class or a type parameter
-// Line: 6
-
-sealed class A { }
-
-class Foo<T> where T : A
-{
-}
diff --git a/mcs/errors/gcs0702-2.cs b/mcs/errors/gcs0702-2.cs
deleted file mode 100644 (file)
index 81d68f3..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// CS0702: A constraint cannot be special class `object'
-// Line: 8
-
-using System;
-
-class Foo<T>
-       where T : object
-{
-}
diff --git a/mcs/errors/gcs0702-3.cs b/mcs/errors/gcs0702-3.cs
deleted file mode 100644 (file)
index 3bba715..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// CS0702: A constraint cannot be special class `System.MulticastDelegate'
-// Line: 6
-
-using System;
-
-class C<T> where T : MulticastDelegate
-{
-}
diff --git a/mcs/errors/gcs0702.cs b/mcs/errors/gcs0702.cs
deleted file mode 100644 (file)
index 409b41a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// CS0702: A constraint cannot be special class `System.Array'
-// Line: 8
-
-using System;
-
-class Foo<T>
-       where T : Array
-{
-}
diff --git a/mcs/errors/gcs0703-2.cs b/mcs/errors/gcs0703-2.cs
deleted file mode 100755 (executable)
index e07b673..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS0703: Inconsistent accessibility: constraint type `A.B<T>.C' is less accessible than `A.B<T>'
-// Line: 6
-
-public class A
-{
-       protected internal class B<T> where T : B<T>.C
-       {
-               internal class C
-               {
-               }
-       }
-}
diff --git a/mcs/errors/gcs0703-3.cs b/mcs/errors/gcs0703-3.cs
deleted file mode 100644 (file)
index 72e78e1..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS0703: Inconsistent accessibility: constraint type `C.I' is less accessible than `C.Foo<T>()'
-// Line: 10
-
-public class C
-{
-       interface I
-       {
-       }
-
-       public void Foo<T>()  where T : I
-       {
-       }
-}
diff --git a/mcs/errors/gcs0703.cs b/mcs/errors/gcs0703.cs
deleted file mode 100644 (file)
index 38ddadf..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS0703: Inconsistent accessibility: constraint type `I' is less accessible than `C<T>'
-// Line: 8
-
-interface I
-{
-}
-
-public class C<T>  where T : I
-{
-}
\ No newline at end of file
diff --git a/mcs/errors/gcs0704.cs b/mcs/errors/gcs0704.cs
deleted file mode 100755 (executable)
index 58ee413..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// CS0704: A nested type cannot be specified through a type parameter `T' 
-// Line: 6
-
-class G<T>
-{
-       T.A x;
-}
diff --git a/mcs/errors/gcs0706.cs b/mcs/errors/gcs0706.cs
deleted file mode 100644 (file)
index 7ed5719..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-// CS0706: Invalid constraint type `string[]'
-// Line: 4
-
-public class C<T>  where T : string[]
-{
-}
diff --git a/mcs/errors/gcs0717.cs b/mcs/errors/gcs0717.cs
deleted file mode 100644 (file)
index b7d06d1..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS0717: `S' is not a valid constraint. Static classes cannot be used as constraints
-// Line: 8
-
-static class S
-{
-}
-
-class Foo<T> where T : S
-{
-}
diff --git a/mcs/errors/gcs0718.cs b/mcs/errors/gcs0718.cs
deleted file mode 100644 (file)
index 828b251..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// CS0718: `S': static classes cannot be used as generic arguments
-// Line: 14
-
-static class S
-{
-}
-
-class C<T>
-{
-}
-
-class Test
-{
-       C<S> foo;
-}
\ No newline at end of file
diff --git a/mcs/errors/gcs0721.cs b/mcs/errors/gcs0721.cs
deleted file mode 100644 (file)
index 73f31fc..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS0721: `C': static types cannot be used as parameters
-// Line: 6
-
-
-static class C
-{
-       static void Foo (this C c)
-       {
-       }
-}
diff --git a/mcs/errors/gcs0723.cs b/mcs/errors/gcs0723.cs
deleted file mode 100644 (file)
index df218c9..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS0723: `C<T>.t': cannot declare variables of static types
-// Line: 10
-
-static class S<T>
-{
-}
-
-public class C<T>
-{
-       S<T> t;
-}
\ No newline at end of file
diff --git a/mcs/errors/gcs0729.cs b/mcs/errors/gcs0729.cs
deleted file mode 100644 (file)
index 73a1f10..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// gcs0729.cs: Cannot forward type `C' because it is defined in this assembly
-// Line: 7
-
-using System;
-using System.Runtime.CompilerServices;
-
-[assembly: TypeForwardedTo(typeof (C))]
-
-class C
-{
-}
\ No newline at end of file
diff --git a/mcs/errors/gcs0730.cs b/mcs/errors/gcs0730.cs
deleted file mode 100644 (file)
index 384f34c..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// CS0730: Cannot forward type `C.CC' because it is a nested type
-// Line: 8
-// Compiler options: -r:GCS0730-lib.dll
-
-using System;
-using System.Runtime.CompilerServices;
-
-[assembly: TypeForwardedTo(typeof (C.CC))]
diff --git a/mcs/errors/gcs0735-2.cs b/mcs/errors/gcs0735-2.cs
deleted file mode 100644 (file)
index 6d3a77a..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// gcs0735-2.cs: Invalid type specified as an argument for TypeForwardedTo attribute
-// Line: 7
-
-using System;
-using System.Runtime.CompilerServices;
-
-[assembly: TypeForwardedTo(typeof (int[]))]
\ No newline at end of file
diff --git a/mcs/errors/gcs0735.cs b/mcs/errors/gcs0735.cs
deleted file mode 100644 (file)
index 103f62c..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// gcs0735.cs: Invalid type specified as an argument for TypeForwardedTo attribute
-// Line: 7
-
-using System;
-using System.Runtime.CompilerServices;
-
-[assembly: TypeForwardedTo((Type)null)]
\ No newline at end of file
diff --git a/mcs/errors/gcs0739.cs b/mcs/errors/gcs0739.cs
deleted file mode 100644 (file)
index f282645..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// CS0739: A duplicate type forward of type `int'
-// Line: 8
-
-using System;
-using System.Runtime.CompilerServices;
-
-[assembly: TypeForwardedTo(typeof (int))]
-[assembly: TypeForwardedTo(typeof (int))]
diff --git a/mcs/errors/gcs0746.cs b/mcs/errors/gcs0746.cs
deleted file mode 100644 (file)
index bb60df2..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS0746: Invalid anonymous type member declarator. Anonymous type members must be a member assignment, simple name or member access expression
-// Line: 16
-
-
-using System;
-
-public class Test
-{
-       static void Main ()
-       {
-               var c = new { new Test () };
-       }
-}
diff --git a/mcs/errors/gcs0747-2.cs b/mcs/errors/gcs0747-2.cs
deleted file mode 100644 (file)
index 0feae9d..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// CS0747: Inconsistent `object initializer' member declaration
-// Line: 16
-
-
-using System;
-using System.Collections;
-
-class Data
-{
-}
-
-public class Test
-{
-       static void Main ()
-       {
-               var c = new ArrayList { Count = 1, 1 };
-       }
-}
diff --git a/mcs/errors/gcs0747.cs b/mcs/errors/gcs0747.cs
deleted file mode 100644 (file)
index f5085d3..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// CS0747: Inconsistent `collection initializer' member declaration
-// Line: 16
-
-
-using System;
-using System.Collections;
-
-class Data
-{
-}
-
-public class Test
-{
-       static void Main ()
-       {
-               var c = new ArrayList { 1, Count = 1 };
-       }
-}
diff --git a/mcs/errors/gcs0748.cs b/mcs/errors/gcs0748.cs
deleted file mode 100644 (file)
index e7db9d2..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS0748: All lambda parameters must be typed either explicitly or implicitly
-// Line: 11
-
-
-public class C
-{
-       delegate void E ();
-       
-       public static void Main ()
-       {
-               e = (ref int E, v) => {};
-       }
-}
diff --git a/mcs/errors/gcs0755.cs b/mcs/errors/gcs0755.cs
deleted file mode 100644 (file)
index 66c48f3..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS0755: A partial method declaration and partial method implementation must be both an extension method or neither
-// Line: 11
-
-
-public static partial class C
-{
-       static partial void Foo (this string eType)
-       {
-       }
-       
-       static partial void Foo (string value);
-}
diff --git a/mcs/errors/gcs0818.cs b/mcs/errors/gcs0818.cs
deleted file mode 100644 (file)
index 607373f..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS0818: An implicitly typed local variable declarator must include an initializer
-// Line: 9
-
-
-public class Test
-{
-       static void Main ()
-       {
-               var v;
-       }
-}
-
diff --git a/mcs/errors/gcs0820.cs b/mcs/errors/gcs0820.cs
deleted file mode 100644 (file)
index c825cb3..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS0820: An implicitly typed local variable declarator cannot use an array initializer
-// Line: 9
-
-
-public class Test
-{
-       static void Main ()
-       {
-               var v = { 0 };
-       }
-}
-
diff --git a/mcs/errors/gcs0821.cs b/mcs/errors/gcs0821.cs
deleted file mode 100644 (file)
index ba4c381..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-// CS0821: A fixed statement cannot use an implicitly typed local variable
-// Line: 9
-// Compiler options: -unsafe
-
-public class Point
-{
-       public int X;
-       public int Y;
-}
-
-public class Test
-{
-       unsafe static void Main ()
-       {
-               Point p = new Point ();
-               p.X = 42;
-               p.Y = 16;
-               
-               fixed (var x = &p.X)
-               {
-               }
-       }
-}
-
diff --git a/mcs/errors/gcs0822.cs b/mcs/errors/gcs0822.cs
deleted file mode 100644 (file)
index 023ac1c..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS0822: An implicitly typed local variable cannot be a constant
-// Line: 9
-
-
-public class Test
-{
-       static void Main ()
-       {
-               const var v = 0;
-       }
-}
-
diff --git a/mcs/errors/gcs0825-2.cs b/mcs/errors/gcs0825-2.cs
deleted file mode 100644 (file)
index f9c6128..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// CS0825: The contextual keyword `var' may only appear within a local variable declaration
-// Line: 9
-
-
-public class Test
-{
-       event var v;
-}
-
diff --git a/mcs/errors/gcs0825-3.cs b/mcs/errors/gcs0825-3.cs
deleted file mode 100644 (file)
index 5177d4f..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// CS0825: The contextual keyword `var' may only appear within a local variable declaration
-// Line: 9
-
-
-public class Test
-{
-       const var v = 9;
-}
-
diff --git a/mcs/errors/gcs0825.cs b/mcs/errors/gcs0825.cs
deleted file mode 100644 (file)
index 3ba1d72..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// CS0825: The contextual keyword `var' may only appear within a local variable declaration
-// Line: 9
-
-
-public class Test
-{
-       var v = "a";
-}
-
diff --git a/mcs/errors/gcs0826-2.cs b/mcs/errors/gcs0826-2.cs
deleted file mode 100644 (file)
index 52562a3..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS0826: The type of an implicitly typed array cannot be inferred from the initializer. Try specifying array type explicitly
-// Line: 9
-
-
-public class Test
-{
-       static void Main ()
-       {
-               var e = new[] { null };
-       }
-}
-
diff --git a/mcs/errors/gcs0826-3.cs b/mcs/errors/gcs0826-3.cs
deleted file mode 100644 (file)
index bf07fdc..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-// CS0826: The type of an implicitly typed array cannot be inferred from the initializer. Try specifying array type explicitly
-// Line: 13
-
-
-public class Test
-{
-       static void TestMethod ()
-       {
-       }
-       
-       static void Main ()
-       {
-               var e = new[] { TestMethod () };
-       }
-}
-
diff --git a/mcs/errors/gcs0826-4.cs b/mcs/errors/gcs0826-4.cs
deleted file mode 100644 (file)
index f9461d0..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS0826: The type of an implicitly typed array cannot be inferred from the initializer. Try specifying array type explicitly
-// Line: 9
-
-
-public class Test
-{
-       static void Main ()
-       {
-               var e = new[,,,] { 1, 2 }; 
-       }
-}
-
diff --git a/mcs/errors/gcs0826-5.cs b/mcs/errors/gcs0826-5.cs
deleted file mode 100644 (file)
index caf1154..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS0826: The type of an implicitly typed array cannot be inferred from the initializer. Try specifying array type explicitly
-// Line: 9
-
-
-public class Test
-{
-       static void Main ()
-       {
-               var e = new[] { delegate {} };
-       }
-}
-
diff --git a/mcs/errors/gcs0826-6.cs b/mcs/errors/gcs0826-6.cs
deleted file mode 100755 (executable)
index 16c50b2..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS0826: The type of an implicitly typed array cannot be inferred from the initializer. Try specifying array type explicitly
-// Line: 8
-
-public class Test
-{
-       static void Main ()
-       {
-               var e = new[] { 1, "a" };
-       }
-}
-
diff --git a/mcs/errors/gcs0826-7.cs b/mcs/errors/gcs0826-7.cs
deleted file mode 100644 (file)
index bd74191..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS0826: The type of an implicitly typed array cannot be inferred from the initializer. Try specifying array type explicitly
-// Line: 8
-
-public class Test
-{
-       static void Main ()
-       {
-               var e = new[] { 1, null };
-       }
-}
-
diff --git a/mcs/errors/gcs0826-8.cs b/mcs/errors/gcs0826-8.cs
deleted file mode 100644 (file)
index 1beedda..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS0826: The type of an implicitly typed array cannot be inferred from the initializer. Try specifying array type explicitly
-// Line: 8
-
-public class Test
-{
-       static void Main ()
-       {
-               var e = new[] { Main };
-       }
-}
-
diff --git a/mcs/errors/gcs0826.cs b/mcs/errors/gcs0826.cs
deleted file mode 100644 (file)
index 00c07e2..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS0826: The type of an implicitly typed array cannot be inferred from the initializer. Try specifying array type explicitly
-// Line: 9
-
-
-public class Test
-{
-       static void Main ()
-       {
-               var e = new[] { };
-       }
-}
-
diff --git a/mcs/errors/gcs0828-2.cs b/mcs/errors/gcs0828-2.cs
deleted file mode 100644 (file)
index 3c8db77..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-// CS0828: An anonymous type property `Value' cannot be initialized with `int*'
-// Line: 9
-// Compiler options: -unsafe
-
-public unsafe class Test
-{
-       static int* Error ()
-       {
-               return (int*)0;
-       }
-       
-       static void Main ()
-       {
-               var v = new { Value = Error () };
-       }
-}
diff --git a/mcs/errors/gcs0828-3.cs b/mcs/errors/gcs0828-3.cs
deleted file mode 100644 (file)
index 018ff92..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS0828: An anonymous type property `Value' cannot be initialized with `anonymous method'
-// Line: 9
-
-
-public class Test
-{
-       static void Main ()
-       {
-               var v = new { Value = delegate () { return 1; } };
-       }
-}
diff --git a/mcs/errors/gcs0828-4.cs b/mcs/errors/gcs0828-4.cs
deleted file mode 100644 (file)
index f2a8ffe..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS0828: An anonymous type property `Value' cannot be initialized with `lambda expression'
-// Line: 9
-
-
-public class Test
-{
-       static void Main ()
-       {
-               var v = new { Value = i => 1 };
-       }
-}
diff --git a/mcs/errors/gcs0828-5.cs b/mcs/errors/gcs0828-5.cs
deleted file mode 100644 (file)
index 70bb786..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// CS0828: An anonymous type property `Value' cannot be initialized with `void'
-// Line: 13
-
-
-public class Test
-{
-       static void Error ()
-       {
-       }
-       
-       static void Main ()
-       {
-               var v = new { Value = Error () };
-       }
-}
diff --git a/mcs/errors/gcs0828-6.cs b/mcs/errors/gcs0828-6.cs
deleted file mode 100755 (executable)
index 360c32b..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS0828: An anonymous type property `Value' cannot be initialized with `method group'
-// Line: 12
-
-public class Test
-{
-       static void Error ()
-       {
-       }
-       
-       static void Main ()
-       {
-               var v = new { Value = Error };
-       }
-}
diff --git a/mcs/errors/gcs0828.cs b/mcs/errors/gcs0828.cs
deleted file mode 100644 (file)
index a555560..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS0828: An anonymous type property `Value' cannot be initialized with `null'
-// Line: 9
-
-
-public class Test
-{
-       static void Main ()
-       {
-               int A = 9;
-               var v1 = new { A, Value = null };
-       }
-}
diff --git a/mcs/errors/gcs0831-2.cs b/mcs/errors/gcs0831-2.cs
deleted file mode 100644 (file)
index ed0f351..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-// CS0831:  An expression tree may not contain a base access
-// Line: 14
-
-using System;
-using System.Linq.Expressions;
-
-class B
-{
-       protected bool Core {
-               get {
-                       return true;
-               }
-       }
-}
-
-class C : B
-{
-       public void Test ()
-       {
-               Expression<Func<bool>> e = () => base.Core;
-       }
-}
diff --git a/mcs/errors/gcs0831-3.cs b/mcs/errors/gcs0831-3.cs
deleted file mode 100644 (file)
index 171ce9c..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-// CS0831: An expression tree may not contain a base access
-// Line: 20
-
-using System;
-using System.Linq.Expressions;
-
-class B
-{
-       protected B this [int i] {
-               get {
-                       return null;
-               }
-       }
-}
-
-class C : B
-{
-       public void Test ()
-       {
-               Expression<Func<B>> e = () => base [8];
-       }
-}
diff --git a/mcs/errors/gcs0831.cs b/mcs/errors/gcs0831.cs
deleted file mode 100644 (file)
index 2dbb547..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-// CS0831: An expression tree may not contain a base access
-// Line: 14
-
-using System;
-using System.Linq.Expressions;
-
-class B
-{
-       protected int Core ()
-       {
-               return 4;
-       }
-}
-
-class C : B
-{
-       public void Test ()
-       {
-               Expression<Func<int>> e = () => base.Core ();
-       }
-}
diff --git a/mcs/errors/gcs0832-2.cs b/mcs/errors/gcs0832-2.cs
deleted file mode 100644 (file)
index 2d04348..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// CS0832: An expression tree cannot contain an assignment operator
-// Line: 13
-
-using System;
-using System.Linq.Expressions;
-
-class C
-{
-       delegate void D (string s);
-       
-       public static void Main ()
-       {
-               Expression<D> e = (a) => a = "a";
-       }
-}
diff --git a/mcs/errors/gcs0832-3.cs b/mcs/errors/gcs0832-3.cs
deleted file mode 100644 (file)
index 0203b08..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS0832: An expression tree cannot contain an assignment operator
-// Line: 11
-
-using System;
-using System.Linq.Expressions;
-
-class C
-{
-       public static void Main ()
-       {
-               Expression<Func<int, int>> e = (a) => --a;
-       }
-}
diff --git a/mcs/errors/gcs0832-4.cs b/mcs/errors/gcs0832-4.cs
deleted file mode 100644 (file)
index cf0f6ae..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-// CS0832: An expression tree cannot contain an assignment operator
-// Line: 19
-
-using System;
-using System.Linq.Expressions;
-
-public delegate void EventHandler (int i, int j);
-
-public class Button
-{
-       public event EventHandler Click;
-}
-
-public class Blah
-{
-       public static void Main ()
-       {
-               Button b = new Button ();
-               Expression<Action> e = () => b.Click += new EventHandler (Button1_Click);
-       }
-
-       public static void Button1_Click (int i, int j)
-       {
-       }
-}
diff --git a/mcs/errors/gcs0832.cs b/mcs/errors/gcs0832.cs
deleted file mode 100644 (file)
index 2d04348..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// CS0832: An expression tree cannot contain an assignment operator
-// Line: 13
-
-using System;
-using System.Linq.Expressions;
-
-class C
-{
-       delegate void D (string s);
-       
-       public static void Main ()
-       {
-               Expression<D> e = (a) => a = "a";
-       }
-}
diff --git a/mcs/errors/gcs0833.cs b/mcs/errors/gcs0833.cs
deleted file mode 100644 (file)
index e678ab4..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS0833: `Value': An anonymous type cannot have multiple properties with the same name
-// Line: 9
-
-
-public class Test
-{
-       static void Main ()
-       {
-               var v1 = new { Value = 1, Value = 0 };
-       }
-}
diff --git a/mcs/errors/gcs0834-2.cs b/mcs/errors/gcs0834-2.cs
deleted file mode 100644 (file)
index 32dbd9c..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS0834: A lambda expression with statement body cannot be converted to an expresion tree
-// Line: 12
-
-using System.Linq.Expressions;
-
-class C
-{
-       delegate void D ();
-       
-       public void Foo ()
-       {
-               Expression<D> e = () => { };
-       }
-}
diff --git a/mcs/errors/gcs0834.cs b/mcs/errors/gcs0834.cs
deleted file mode 100644 (file)
index 7ba58a3..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS0834: A lambda expression with statement body cannot be converted to an expresion tree
-// Line: 12
-
-using System.Linq.Expressions;
-
-class C
-{
-       delegate bool D ();
-       
-       public void Foo ()
-       {
-               Expression<D> e = () => { return true; };
-       }
-}
diff --git a/mcs/errors/gcs0835.cs b/mcs/errors/gcs0835.cs
deleted file mode 100644 (file)
index 3fe1ac2..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS0835: Cannot convert `lambda expression' to an expression tree of non-delegate type `string'
-// Line: 10
-
-using System.Linq.Expressions;
-
-class C
-{
-       public void Foo ()
-       {
-               Expression<string> e = () => "a";
-       }
-}
diff --git a/mcs/errors/gcs0836.cs b/mcs/errors/gcs0836.cs
deleted file mode 100755 (executable)
index c78a30c..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// CS0836: Anonymous types cannot be used in this expression
-// Line: 6
-
-public class C
-{
-       const object o = new { };
-}
diff --git a/mcs/errors/gcs0837.cs b/mcs/errors/gcs0837.cs
deleted file mode 100644 (file)
index 94c1f85..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// CS0837: The `as' operator cannot be applied to a lambda expression or anonymous method
-// Line: 15
-
-
-class X
-{
-       delegate void D ();
-       
-       static void Test (D d)
-       {
-       }
-       
-       static void Main ()
-       {
-               Test ((() => { }) as D);
-       }
-}
diff --git a/mcs/errors/gcs0838.cs b/mcs/errors/gcs0838.cs
deleted file mode 100644 (file)
index 7e11b71..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS0838: An expression tree cannot contain a multidimensional array initializer
-// Line: 11
-
-using System;
-using System.Linq.Expressions;
-
-class C
-{
-       void Foo ()
-       {
-               Expression<Func<char [,]>> e = () => new char [,] { { 'x', 'y' }, { 'a', 'b' }};
-       }
-}
diff --git a/mcs/errors/gcs0840.cs b/mcs/errors/gcs0840.cs
deleted file mode 100644 (file)
index bc4ee41..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// CS0840: `Test.Property.get' must have a body because it is not marked abstract or extern. The property can be automatically implemented when you define both accessors
-// Line: 7
-
-
-public abstract class Test
-{
-       public string Property { get; }
-}
diff --git a/mcs/errors/gcs0841.cs b/mcs/errors/gcs0841.cs
deleted file mode 100644 (file)
index 9aa9264..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS0841: A local variable `v' cannot be used before it is declared
-// Line: 9
-
-
-public class Test
-{
-       static void Main ()
-       {
-               var v = ++v;
-       }
-}
-
diff --git a/mcs/errors/gcs0842.cs b/mcs/errors/gcs0842.cs
deleted file mode 100755 (executable)
index de08d24..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS0842: Automatically implemented property `S.Value' cannot be used inside a type with an explicit StructLayout attribute
-// Line: 10
-
-using System.Runtime.InteropServices;
-
-[StructLayout(LayoutKind.Explicit)]
-class S
-{
-       public int Value {
-               get; set;
-       }
-}
diff --git a/mcs/errors/gcs0845.cs b/mcs/errors/gcs0845.cs
deleted file mode 100644 (file)
index 47cba43..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS0845: An expression tree cannot contain a coalescing operator with null left side
-// Line: 11
-
-using System;
-using System.Linq.Expressions;
-
-class C
-{
-       public static void Main ()
-       {
-               Expression<Func<bool?, bool?>> e = (a) => null ?? a;
-       }
-}
\ No newline at end of file
diff --git a/mcs/errors/gcs0853.cs b/mcs/errors/gcs0853.cs
deleted file mode 100644 (file)
index 83b7dd0..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// CS0853: An expression tree cannot contain named argument
-// Line: 15
-// Compiler options: -langversion:future
-
-using System;
-using System.Linq.Expressions;
-
-class M
-{
-       static void Named (int i)
-       {
-       }
-       
-       public static void Main ()
-       {
-               Expression<Action> e = () => Named (i : 1);
-       }
-}
diff --git a/mcs/errors/gcs0854-2.cs b/mcs/errors/gcs0854-2.cs
deleted file mode 100644 (file)
index 0be6474..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// CS0854: An expression tree cannot contain an invocation which uses optional parameter
-// Line: 15
-
-using System;
-using System.Linq.Expressions;
-
-class M
-{
-       public M (string s = "value")
-       {
-       }
-       
-       public static void Main ()
-       {
-               Expression<Action> e = () => new M ();
-       }
-}
diff --git a/mcs/errors/gcs0854.cs b/mcs/errors/gcs0854.cs
deleted file mode 100644 (file)
index fe15bdb..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// CS0854: An expression tree cannot contain an invocation which uses optional parameter
-// Line: 15
-// Compiler options: -langversion:future
-
-using System;
-using System.Linq.Expressions;
-
-class M
-{
-       static void Optional (int i, string s = "value")
-       {
-       }
-       
-       public static void Main ()
-       {
-               Expression<Action> e = () => Optional (1);
-       }
-}
diff --git a/mcs/errors/gcs1058-1.cs b/mcs/errors/gcs1058-1.cs
deleted file mode 100644 (file)
index d0526d6..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// cs1058.cs: A previous catch clause already catches all exceptions. All non-exceptions thrown will be wrapped in a `System.Runtime.CompilerServices.RuntimeWrappedException'
-// Line: 11
-// Compiler options: -warnaserror -warn:4
-
-class C
-{
-   static void Main() 
-   {
-      try {}
-      catch (System.Exception) { }
-      catch {}
-   }
-}
diff --git a/mcs/errors/gcs1058-2.cs b/mcs/errors/gcs1058-2.cs
deleted file mode 100644 (file)
index 7ce5ba4..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// gcs1058.cs: A previous catch clause already catches all exceptions. All non-exceptions thrown will be wrapped in a `System.Runtime.CompilerServices.RuntimeWrappedException'
-// Line: 15
-// Compiler options: -warnaserror -warn:4
-
-using System.Runtime.CompilerServices;
-
-[assembly: RuntimeCompatibility (WrapNonExceptionThrows=true)]
-
-class C
-{
-   static void Main() 
-   {
-      try {}
-      catch (System.Exception) { }
-      catch {}
-   }
-}
diff --git a/mcs/errors/gcs1061-2.cs b/mcs/errors/gcs1061-2.cs
deleted file mode 100644 (file)
index 2f391bd..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// CS1061: Type `string' does not contain a definition for `Length2' and no extension method `Length2' of type `string' could be found (are you missing a using directive or an assembly reference?)
-// Line: 12
-
-
-using System.Linq;
-
-public class M
-{
-       public static void Main ()
-       {
-               var e = from values in new [] { "value" }
-                       let length = values.Length2
-                       select length;
-       }
-}
diff --git a/mcs/errors/gcs1061-3.cs b/mcs/errors/gcs1061-3.cs
deleted file mode 100644 (file)
index 121766f..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS1061: Type `int' does not contain a definition for `E' and no extension method `E' of type `int' could be found (are you missing a using directive or an assembly reference?)
-// Line: 7
-
-class T {
-       public static int Main (string [] args )
-       {
-               int x = 1.E;
-               return 0;
-       }
-}
diff --git a/mcs/errors/gcs1061-4.cs b/mcs/errors/gcs1061-4.cs
deleted file mode 100644 (file)
index 355bf54..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-// CS1061: Type `X' does not contain a definition for `Test' and no extension method `Test' of type `X' could be found (are you missing a using directive or an assembly reference?)
-// Line: 12
-
-class A<X>
-{
-       //
-       // This is to test the lookup rules for SimpleNames:
-       // `X' is the type parameter, not the class.
-       //
-       public void Test (X x)
-       {
-               x.Test ();
-       }
-}
-
-class X
-{
-       public void Test ()
-       { }
-
-       public static void Main ()
-       { }
-}
diff --git a/mcs/errors/gcs1061-5.cs b/mcs/errors/gcs1061-5.cs
deleted file mode 100644 (file)
index d1d3fb7..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-// CS1061: Type `int' does not contain a definition for `Value' and no extension method `Value' of type `int' could be found (are you missing a using directive or an assembly reference?)
-// Line: 24
-
-using System;
-using System.Collections.Generic;
-using System.Linq;
-
-namespace Test
-{
-       static class Ex
-       {
-               public static IEnumerable<TR> Foo<T, TR> (this IEnumerable<T> t, Func<T, TR> f)
-               {
-                       return null;
-               }
-       }
-
-       public class C
-       {
-               public static void Main ()
-               {
-                       int[] i = null;
-                       int p;
-            var prods = from pe in i.Foo (p9 => p.Value) select pe;
-               }
-       }
-}
diff --git a/mcs/errors/gcs1061-6.cs b/mcs/errors/gcs1061-6.cs
deleted file mode 100755 (executable)
index a09c0fa..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS1061: Type `T' does not contain a definition for `Name' and no extension method `Name' of type `T' could be found (are you missing a using directive or an assembly reference?)
-// Line: 11
-
-using System;
-using System.Collections.Generic;
-
-public class C<T, U>
-{
-       public C (IEnumerable<T> t)
-       {
-               new List<T>(t).ConvertAll(p => p.Name);
-       }
-}
diff --git a/mcs/errors/gcs1061.cs b/mcs/errors/gcs1061.cs
deleted file mode 100644 (file)
index 3c7d0ff..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS1061: Type `int' does not contain a definition for `Foo' and no extension method `Foo' of type `int' could be found (are you missing a using directive or an assembly reference?)
-// Line: 9
-
-
-public class M
-{
-       public static void Main ()
-       {
-               1.Foo ("foo");
-       }
-}
\ No newline at end of file
diff --git a/mcs/errors/gcs1067.cs b/mcs/errors/gcs1067.cs
deleted file mode 100644 (file)
index dbe433e..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS1067: Partial declarations of `I<T>' must have the same type parameter variance modifiers
-// Line: 8
-
-partial interface I<in T>
-{
-}
-
-partial interface I<out T>
-{
-}
diff --git a/mcs/errors/gcs1100.cs b/mcs/errors/gcs1100.cs
deleted file mode 100644 (file)
index 35e3c29..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// CS1100: The parameter modifier `this' can only be used on the first parameter
-// Line: 6
-
-static class S
-{
-       static void Foo (bool b, this string s)
-       {
-       }
-}
\ No newline at end of file
diff --git a/mcs/errors/gcs1101.cs b/mcs/errors/gcs1101.cs
deleted file mode 100644 (file)
index 239387b..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// CS1101: The parameter modifiers `this' and `ref' cannot be used altogether
-// Line: 6
-
-static class S
-{
-       static void Foo (ref this string s)
-       {
-       }
-}
\ No newline at end of file
diff --git a/mcs/errors/gcs1102.cs b/mcs/errors/gcs1102.cs
deleted file mode 100644 (file)
index 81c7c70..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// CS1102: The parameter modifiers `this' and `out' cannot be used altogether
-// Line: 6
-
-static class S
-{
-       static void Foo (this out string s)
-       {
-       }
-}
\ No newline at end of file
diff --git a/mcs/errors/gcs1103.cs b/mcs/errors/gcs1103.cs
deleted file mode 100644 (file)
index c4fd2c9..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS1103: The extension method cannot be of type `int*'
-// Line: 7
-// Compiler options: -unsafe
-
-static class S
-{
-       unsafe static void Foo (this int* iptr)
-       {
-       }
-}
diff --git a/mcs/errors/gcs1104.cs b/mcs/errors/gcs1104.cs
deleted file mode 100644 (file)
index 4a0f5ed..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// CS1104: The parameter modifiers `this' and `params' cannot be used altogether
-// Line: 6
-
-static class S
-{
-       static void Foo (params this int[] o)
-       {
-       }
-}
\ No newline at end of file
diff --git a/mcs/errors/gcs1105.cs b/mcs/errors/gcs1105.cs
deleted file mode 100644 (file)
index 8051dcc..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS1105: `S.Foo(this int?)': Extension methods must be declared static
-// Line: 6
-
-
-static class S
-{
-       void Foo (this int? s)
-       {
-       }
-}
diff --git a/mcs/errors/gcs1106-2.cs b/mcs/errors/gcs1106-2.cs
deleted file mode 100644 (file)
index 0f2d5d1..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS1106: `S<T>.Foo(this string)': Extension methods must be defined in a non-generic static class
-// Line: 6
-
-
-static class S<T>
-{
-       static void Foo (this string s)
-       {
-       }
-}
diff --git a/mcs/errors/gcs1106.cs b/mcs/errors/gcs1106.cs
deleted file mode 100644 (file)
index 5786130..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS1106: `S.Foo(this string)': Extension methods must be defined in a non-generic static class
-// Line: 6
-
-
-class S
-{
-       static void Foo (this string s)
-       {
-       }
-}
diff --git a/mcs/errors/gcs1109.cs b/mcs/errors/gcs1109.cs
deleted file mode 100644 (file)
index 69b8245..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS1109: `C.S.Foo(this string)': Extension methods cannot be defined in a nested class
-// Line: 8
-
-
-class C
-{
-       static class S
-       {
-               static void Foo (this string s)
-               {
-               }
-       }
-}
diff --git a/mcs/errors/gcs1110.cs b/mcs/errors/gcs1110.cs
deleted file mode 100644 (file)
index 7baa395..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS1110: `C.Foo(this string)': Extension methods cannot be declared without a reference to System.Core.dll assembly. Add the assembly reference or remove `this' modifer from the first parameter
-// Line: 7
-// Compiler options: -noconfig
-
-static class C
-{
-       static void Foo (this string s)
-       {
-       }
-}
diff --git a/mcs/errors/gcs1112-2.cs b/mcs/errors/gcs1112-2.cs
deleted file mode 100644 (file)
index 6be7f1b..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-// CS1112: Do not use `System.Runtime.CompilerServices.ExtensionAttribute' directly. Use parameter modifier `this' instead
-// Line: 16
-
-
-using System;
-using System.Runtime.CompilerServices;
-
-namespace System.Runtime.CompilerServices
-{
-       public class ExtensionAttribute : Attribute
-       {
-       }
-}
-
-static class C
-{
-       [Extension]
-       static void Foo (this string s)
-       {
-       }
-}
\ No newline at end of file
diff --git a/mcs/errors/gcs1112-3.cs b/mcs/errors/gcs1112-3.cs
deleted file mode 100644 (file)
index fb81f5f..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// CS1112: Do not use `System.Runtime.CompilerServices.ExtensionAttribute' directly. Use parameter modifier `this' instead
-// Line: 7
-
-
-using System.Runtime.CompilerServices;
-
-[assembly: ExtensionAttribute]
diff --git a/mcs/errors/gcs1112.cs b/mcs/errors/gcs1112.cs
deleted file mode 100644 (file)
index 6b366ab..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS1112: Do not use `System.Runtime.CompilerServices.ExtensionAttribute' directly. Use parameter modifier `this' instead
-// Line: 8
-
-
-using System.Runtime.CompilerServices;
-
-static class C
-{
-       [Extension]
-       static void Foo (this string s)
-       {
-       }
-}
\ No newline at end of file
diff --git a/mcs/errors/gcs1113-2.cs b/mcs/errors/gcs1113-2.cs
deleted file mode 100644 (file)
index 5043b34..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-// CS1113: Extension method `Extension.Foo(this S)' of value type `S' cannot be used to create delegates
-// Line: 11
-
-delegate void D ();
-
-public class C
-{
-       static void Main ()
-       {
-               S s = new S ();
-               D d = s.Foo;
-       }
-}
-
-public struct S
-{
-       public void Foo (int i)
-       {
-       }
-}
-
-public static class Extension
-{
-       public static void Foo (this S s) { }
-}
diff --git a/mcs/errors/gcs1113.cs b/mcs/errors/gcs1113.cs
deleted file mode 100644 (file)
index eda00f3..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-// CS1113: Extension method `Extension.Foo(this S)' of value type `S' cannot be used to create delegates
-// Line: 12
-
-
-delegate void D ();
-
-public class C
-{
-       static void Main ()
-       {
-               S s = new S ();
-               D d = s.Foo;
-       }
-}
-
-public struct S
-{
-}
-
-public static class Extension
-{
-       public static void Foo (this S s) { }
-}
diff --git a/mcs/errors/gcs1501-2.cs b/mcs/errors/gcs1501-2.cs
deleted file mode 100644 (file)
index c369194..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-// CS1501: No overload for method `Select' takes `1' arguments
-// Line: 17
-
-
-using System;
-
-class TestA
-{
-       public string value;
-       
-       public TestA (string value)
-       {
-               this.value = value;
-       }
-       
-       public string Select (int i, Func<TestA, TestA> f)
-       {
-               return value;
-       }
-}
-
-public class M
-{
-       static void Main ()
-       {
-               var v = new TestA ("Oh yes");
-               string foo = from a in v select a;
-       }
-}
diff --git a/mcs/errors/gcs1501-3.cs b/mcs/errors/gcs1501-3.cs
deleted file mode 100644 (file)
index a8f4e9e..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// CS1501: No overload for method `Foo' takes `0' arguments
-// Line: 15
-
-class Base<T>
-{
-       protected virtual void Foo<U> (U u)
-       {
-       }
-}
-
-class Derived<T> : Base<int>
-{
-    protected override void Foo<U> (U u)
-    {
-        base.Foo ();
-    }
-}
diff --git a/mcs/errors/gcs1501-4.cs b/mcs/errors/gcs1501-4.cs
deleted file mode 100644 (file)
index f64a51f..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-// CS1501: No overload for method `Test' takes `2' arguments
-// Line: 16
-// Compiler options: -langversion:future
-
-static class S
-{
-       public static int Test (this int value)
-       {
-       return value;
-       }
-}
-
-class M
-{
-       public static void Main ()
-       {
-               1.Test (value: 1);
-       }
-}
diff --git a/mcs/errors/gcs1501.cs b/mcs/errors/gcs1501.cs
deleted file mode 100644 (file)
index 6f67362..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-// CS1501: No overload for method `Foo' takes `2' arguments
-// Line: 17
-
-
-static class Extensions
-{
-       public static string Foo (this string s)
-       {
-               return s;
-       }
-}
-
-public class M
-{
-       public static void Main ()
-       {
-               1.Foo ("foo");
-       }
-}
diff --git a/mcs/errors/gcs1502-2.cs b/mcs/errors/gcs1502-2.cs
deleted file mode 100644 (file)
index 46bb5f7..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-// CS1502: The best overloaded method match for `A.A(System.Collections.Generic.IList<int>[])' has some invalid arguments
-// Line: 40
-using System;
-using System.Collections;
-using System.Collections.Generic;
-
-public struct MyStruct : IList<int>
-{
-       public int this [int x] { get { return 0; } set { return; } }
-       public int IndexOf (int x) { return 0; }
-       public void Insert (int x, int y) { return; }
-       public void RemoveAt (int x) { return; }
-       public int Count { get { return 0; } }
-       public bool IsReadOnly { get { return false; } }
-       public void Add (int x) { return; }
-       public void Clear () { return; }
-       public bool Contains (int x) { return false; }
-       public void CopyTo (int[] x, int y) { return; }
-       public bool Remove (int x) { return false; }
-       public IEnumerator<int> GetEnumerator() { yield return 0; }
-       IEnumerator IEnumerable.GetEnumerator() { yield return 0; }
-}
-
-public class A
-{
-       // This version does not compile:
-       public A(IList<int>[] x) { }
-
-       // This version compiles fine, but results in an exception:
-       public A(IList<IList<int>> x) { }
-}
-
-public class Test
-{
-       static void Main ()
-       {
-               MyStruct[] myStructArray = new MyStruct[1];
-
-               Console.WriteLine ("Trying to construct an A...");
-               A a = new A (myStructArray);
-               Console.WriteLine ("success!");
-       }
-}
diff --git a/mcs/errors/gcs1502-3.cs b/mcs/errors/gcs1502-3.cs
deleted file mode 100644 (file)
index 961c1ca..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// cs1502-3.cs: The best overloaded method match for `T.Blah(out int)' has some invalid arguments
-// Line: 11
-
-using System;
-
-class T {
-        static void Blah (out int g) { g = 0; }
-
-        static int Main (string [] args) {
-                IntPtr g;
-                Blah (out g);
-               return (int) g;
-        }
-}
diff --git a/mcs/errors/gcs1502.cs b/mcs/errors/gcs1502.cs
deleted file mode 100644 (file)
index ac3e383..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS1502: The best overloaded method match for `Global.Test1(int?)' has some invalid arguments
-// Line: 8
-
-using System;
-
-class Global {
-       static void Main() {
-               Console.Write(Test1((decimal?)2));
-       }       
-       static string Test1(int? value) {
-               return "ok";
-       }
-}
diff --git a/mcs/errors/gcs1503-4.cs b/mcs/errors/gcs1503-4.cs
deleted file mode 100644 (file)
index 2260020..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS1503: Argument `#1' cannot convert `bool' expression to type `int'
-// Line: 12
-
-public class C
-{
-       static void Foo<T>(T t)
-       {
-       }
-       
-       public static void Main ()
-       {
-               Foo<int> (true);
-       }
-}
diff --git a/mcs/errors/gcs1503.cs b/mcs/errors/gcs1503.cs
deleted file mode 100644 (file)
index cd089df..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// CS1503: Argument `#1' cannot convert `bool' expression to type `int[]'
-// Line: 13
-
-public class X
-{
-       public static void Test (params int[] a)
-       {
-       }
-
-       public static void Main()
-       {
-               int i;
-               Test (true);
-       }
-}
diff --git a/mcs/errors/gcs1521.cs b/mcs/errors/gcs1521.cs
deleted file mode 100644 (file)
index 91b1d49..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS1521: Invalid base type `C?'
-// Line: 8
-
-struct C
-{
-}
-
-class C2: C?
-{
-}
-
diff --git a/mcs/errors/gcs1525-2.cs b/mcs/errors/gcs1525-2.cs
deleted file mode 100644 (file)
index ab09187..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS1525: Unexpected symbol `<', expecting `,' or `>'
-// Line: 9
-
-interface IFoo<T>
-{
-}
-
-public class Bar {
-       public void GetItemCommand<IFoo<int>>()
-       {
-       }
-}
diff --git a/mcs/errors/gcs1525-4.cs b/mcs/errors/gcs1525-4.cs
deleted file mode 100644 (file)
index fcd3668..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS1525: Unexpected symbol `='
-// Line: 10
-
-public class Test
-{
-       private string name;
-
-       public string Name
-       {
-               get { return name ?? name = string.Empty; }
-       }
-}
diff --git a/mcs/errors/gcs1525.cs b/mcs/errors/gcs1525.cs
deleted file mode 100644 (file)
index 1fba74b..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-// CS1525: Unexpected symbol `>', expecting `[', `identifier', `in', or `out'
-// Line: 4
-
-public class C<>
-{
-}
diff --git a/mcs/errors/gcs1547-2.cs b/mcs/errors/gcs1547-2.cs
deleted file mode 100644 (file)
index f4fb26c..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS1547: Keyword `void' cannot be used in this context
-// Line: 8
-
-class X
-{
-       static void Main ()
-       {
-               object o = default(void);
-       }
-}
diff --git a/mcs/errors/gcs1547-3.cs b/mcs/errors/gcs1547-3.cs
deleted file mode 100644 (file)
index 7064915..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS1547: Keyword `void' cannot be used in this context
-// Line: 8
-
-
-class X
-{
-       static void Main ()
-       {
-               var e = from void v in new int [] { 0 } select i;
-       }
-}
diff --git a/mcs/errors/gcs1547.cs b/mcs/errors/gcs1547.cs
deleted file mode 100644 (file)
index 62c7846..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS1547: Keyword `void' cannot be used in this context
-// Line: 10
-class Foo<T>
-{ }
-
-class X
-{
-       static void Main ()
-       {
-               Foo<void> foo;
-       }
-}
diff --git a/mcs/errors/gcs1579.cs b/mcs/errors/gcs1579.cs
deleted file mode 100644 (file)
index 13e3f01..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-// CS1579: foreach statement cannot operate on variables of type `Foo' because it does not contain a definition for `GetEnumerator' or is inaccessible
-// Line: 12
-
-using System;
-using System.Collections;
-
-public class Test
-{
-       public static void Main ()
-       {
-               Foo f = new Foo ();
-               foreach (object o in f)
-                       Console.WriteLine (o);
-       }
-}
-
-public class Foo
-{
-       public Func<IEnumerator> GetEnumerator;
-}
diff --git a/mcs/errors/gcs1593.cs b/mcs/errors/gcs1593.cs
deleted file mode 100644 (file)
index 46defe5..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// CS1593: Delegate `System.Func<int,int>' does not take `2' arguments
-// Line: 11
-
-
-using System;
-
-class C
-{
-       static void Main (string [] args)
-       {
-               M ((x, y) => 2);
-       }
-
-       static void M (Func<int, int> a)
-       {
-       }
-}
diff --git a/mcs/errors/gcs1624.cs b/mcs/errors/gcs1624.cs
deleted file mode 100644 (file)
index be1f9a8..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS1624: The body of `C.Test<TSource>(System.Collections.Generic.IEnumerable<TSource>)' cannot be an iterator block because `TSource' is not an iterator interface type
-// Line: 8
-
-using System.Collections.Generic;
-
-public class C
-{
-       public static TSource Test<TSource>(IEnumerable<TSource> source)
-       {
-               foreach (TSource element in source)
-                       yield return element;
-       }
-}
diff --git a/mcs/errors/gcs1640.cs b/mcs/errors/gcs1640.cs
deleted file mode 100644 (file)
index 35eed65..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// CS1640: foreach statement cannot operate on variables of type `T' because it contains multiple implementation of `System.Collections.Generic.IEnumerable<T>'. Try casting to a specific implementation
-// Line: 11
-
-using System.Collections.Generic;
-
-public class C
-{
-       public static void Test<T>(T t) 
-               where T: IEnumerable<string>, IEnumerable<int>
-       {
-               foreach (int i in t)
-               {
-               }
-       }
-}
diff --git a/mcs/errors/gcs1642.cs b/mcs/errors/gcs1642.cs
deleted file mode 100644 (file)
index 628b948..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// cs1642.cs: `C.test_1': Fixed size buffer fields may only be members of structs
-// Line: 7
-// Compiler options: -unsafe
-
-public unsafe class C
-{
-    private fixed char test_1 [128];
-}
diff --git a/mcs/errors/gcs1644-10.cs b/mcs/errors/gcs1644-10.cs
deleted file mode 100644 (file)
index 4c43143..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// CS1644: Feature `nullable types' cannot be used because it is not part of the C# 1.0 language specification
-// Line: 7
-// Compiler options: -langversion:ISO-1
-
-class Test
-{
-       int? i;
-       static void Main () {}
-}
diff --git a/mcs/errors/gcs1644-11.cs b/mcs/errors/gcs1644-11.cs
deleted file mode 100644 (file)
index 370815a..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// CS1644: Feature `default value expression' cannot be used because it is not part of the C# 1.0 language specification
-// Line: 7
-// Compiler options: -langversion:ISO-1
-
-class Test
-{
-       int i = default (int);
-}
diff --git a/mcs/errors/gcs1644-12.cs b/mcs/errors/gcs1644-12.cs
deleted file mode 100644 (file)
index 6f3a341..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// CS1644: Feature `generics' cannot be used because it is not part of the C# 1.0 language specification
-// Line: 5
-// Compiler options: -langversion:ISO-1
-
-class Stack < type >
-{
-}
-
diff --git a/mcs/errors/gcs1644-13.cs b/mcs/errors/gcs1644-13.cs
deleted file mode 100644 (file)
index d510366..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS1644: Feature `lambda expressions' cannot be used because it is not part of the C# 2.0 language specification
-// Line: 11
-// Compiler options: -langversion:ISO-2
-
-class C
-{
-       delegate void D ();
-       
-       public void Foo ()
-       {
-               D e = () => { };
-       }
-}
-
diff --git a/mcs/errors/gcs1644-14.cs b/mcs/errors/gcs1644-14.cs
deleted file mode 100755 (executable)
index b4ea89a..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS1644: Feature `nullable types' cannot be used because it is not part of the C# 1.0 language specification
-// Line: 9
-// Compiler options: -langversion:ISO-1
-
-struct C
-{
-       void G ()
-       {
-               object o = (C?[]) this;
-       }
-}
diff --git a/mcs/errors/gcs1644-15.cs b/mcs/errors/gcs1644-15.cs
deleted file mode 100644 (file)
index 710bf0c..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-// CS1644: Feature `generic type variance' cannot be used because it is not part of the C# 2.0 language specification
-// Line: 5
-// Compiler options: -langversion:iso-2
-
- public interface IFoo<out T> {
- }
diff --git a/mcs/errors/gcs1644-16.cs b/mcs/errors/gcs1644-16.cs
deleted file mode 100644 (file)
index 4d2ecc7..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-// CS1644: Feature `generic type variance' cannot be used because it is not part of the C# 2.0 language specification
-// Line: 5
-// Compiler options: -langversion:iso-2
-
- public interface IFoo<in T> {
- }
diff --git a/mcs/errors/gcs1644-17.cs b/mcs/errors/gcs1644-17.cs
deleted file mode 100644 (file)
index 3f03af4..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// CS1644: Feature `generic type variance' cannot be used because it is not part of the C# 3.0 language specification
-// Line: 5
-// Compiler options: -langversion:3
-
-public interface IFoo<in T>
-{
-}
diff --git a/mcs/errors/gcs1644-2.cs b/mcs/errors/gcs1644-2.cs
deleted file mode 100644 (file)
index 6ee0afd..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// cs1644.cs: Feature `generics' cannot be used because it is not part of the C# 1.0 language specification
-// Line: 5
-// Compiler options: -langversion:ISO-1
-
-class X<V>
-{
-}
-
-class X
-{
-       static void Main ()
-       { }
-}
diff --git a/mcs/errors/gcs1644-3.cs b/mcs/errors/gcs1644-3.cs
deleted file mode 100644 (file)
index 6e0568d..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS1644: Feature `anonymous types' cannot be used because it is not part of the C# 1.0 language specification
-// Line: 9
-// Compiler options: -langversion:ISO-1
-
-class A
-{
-       void Foo ()
-       {
-               var v = new { X = "Bar" };
-       }
-}
diff --git a/mcs/errors/gcs1644-4.cs b/mcs/errors/gcs1644-4.cs
deleted file mode 100644 (file)
index 6f63efa..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS1644: Feature `collection initializers' cannot be used because it is not part of the C# 2.0 language specification
-// Line: 9
-// Compiler options: -langversion:ISO-2
-
-using System.Collections.Generic;
-
-class A
-{
-       void Foo ()
-       {
-               object o = new List<int> { 1, 2, 3 };
-       }
-}
diff --git a/mcs/errors/gcs1644-5.cs b/mcs/errors/gcs1644-5.cs
deleted file mode 100644 (file)
index 706657f..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-// CS1644: Feature `object initializers' cannot be used because it is not part of the C# 2.0 language specification
-// Line: 14
-// Compiler options: -langversion:ISO-2
-
-class Data
-{
-       public int Value;
-}
-
-class A
-{
-       void Foo ()
-       {
-               new Data () { Value = 3 };
-       }
-}
diff --git a/mcs/errors/gcs1644-6.cs b/mcs/errors/gcs1644-6.cs
deleted file mode 100644 (file)
index ae6086b..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// CS1644: Feature `implicitly typed arrays' cannot be used because it is not part of the C# 1.0 language specification
-// Line: 7
-// Compiler options: -langversion:ISO-1
-
-class A
-{
-       string[] array = new [] { "Foo", "Bar", "Baz" };
-}
diff --git a/mcs/errors/gcs1644-7.cs b/mcs/errors/gcs1644-7.cs
deleted file mode 100644 (file)
index 4b6ed10..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// CS1644: Feature `partial methods' cannot be used because it is not part of the C# 2.0 language specification
-// Line: 7
-// Compiler options: -langversion:ISO-2
-
-partial class P
-{
-       partial void Foo ();
-}
diff --git a/mcs/errors/gcs1644-8.cs b/mcs/errors/gcs1644-8.cs
deleted file mode 100644 (file)
index a148ca5..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS1644: Feature `query expressions' cannot be used because it is not part of the C# 2.0 language specification
-// Line: 11
-// Compiler options: -langversion:ISO-2
-
-using System.Linq;
-
-public class C
-{
-       public static void Main ()
-       {
-               var e = from a in "aaa" select a;
-       }
-}
diff --git a/mcs/errors/gcs1644-9.cs b/mcs/errors/gcs1644-9.cs
deleted file mode 100644 (file)
index ce867d1..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// CS1644: Feature `automatically implemented properties' cannot be used because it is not part of the C# 2.0 language specification
-// Line: 7
-// Compiler options: -langversion:ISO-2
-
-class P
-{
-       public string Name { get; set; }
-}
diff --git a/mcs/errors/gcs1644.cs b/mcs/errors/gcs1644.cs
deleted file mode 100644 (file)
index d498b30..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS1644: Feature `extension methods' cannot be used because it is not part of the C# 2.0 language specification
-// Line: 17
-// Compiler options: -langversion:ISO-2
-
-static class Extensions
-{
-       static string Foo (string s, this bool b, int i)
-       {
-               return s;
-       }
-}
diff --git a/mcs/errors/gcs1660.cs b/mcs/errors/gcs1660.cs
deleted file mode 100644 (file)
index 29709a2..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS1660: Cannot convert `lambda expression' to non-delegate type `object'
-// Line: 9
-
-using System;
-
-class X {
-       static void Main ()
-       {
-               object o = () => true;
-       }
-}
diff --git a/mcs/errors/gcs1661.cs b/mcs/errors/gcs1661.cs
deleted file mode 100644 (file)
index d7ed5a5..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS1661: Cannot convert `lambda expression' to delegate type `C.WithOutParam' since there is a parameter mismatch
-// Line: 10
-
-
-class C
-{
-       delegate void WithOutParam (out string value);
-
-       static void Main() 
-       {
-               WithOutParam o = (string l) => { return; };
-    }
-}
diff --git a/mcs/errors/gcs1662-2.cs b/mcs/errors/gcs1662-2.cs
deleted file mode 100644 (file)
index b287fcc..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// CS1662: Cannot convert `lambda expression' to delegate type `D' because some of the return types in the block are not implicitly convertible to the delegate return type
-// Line: 13
-
-
-using System;
-
-delegate int D (int i);
-
-class X
-{
-       static void Main ()
-       {
-               D d = (int l) => Main ();
-       }
-}
diff --git a/mcs/errors/gcs1663.cs b/mcs/errors/gcs1663.cs
deleted file mode 100644 (file)
index 8da2dc6..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// cs1663.cs: `S.test': Fixed size buffers type must be one of the following: bool, byte, short, int, long, char, sbyte, ushort, uint, ulong, float or double
-// Line: 6
-
-public struct S
-{
-    public fixed decimal test [4];
-}
diff --git a/mcs/errors/gcs1664.cs b/mcs/errors/gcs1664.cs
deleted file mode 100644 (file)
index a4deb97..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// cs1664.cs: Fixed size buffer `C.test_1' of length `1073741825' and type `long' exceeded 2^31 limit
-// Line: 7
-// Compiler options: -unsafe
-
-public unsafe struct C
-{
-    private fixed long test_1 [1073741825];
-}
diff --git a/mcs/errors/gcs1665.cs b/mcs/errors/gcs1665.cs
deleted file mode 100644 (file)
index b9fd350..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// cs1665.cs: `S.test20': Fixed size buffers must have a length greater than zero
-// Line: 7
-// Compiler options: -unsafe
-
-public unsafe struct S
-{
-    public fixed bool test20 [-4];
-}
diff --git a/mcs/errors/gcs1666.cs b/mcs/errors/gcs1666.cs
deleted file mode 100644 (file)
index 140777e..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// cs1666.cs: You cannot use fixed size buffers contained in unfixed expressions. Try using the fixed statement
-// Line: 11
-// Compiler options: -unsafe
-
-public unsafe struct S
-{
-    fixed char test_1 [128];
-       
-    public void Test ()
-    {
-       test_1 [55] = 'g';
-    }
-}
diff --git a/mcs/errors/gcs1675.cs b/mcs/errors/gcs1675.cs
deleted file mode 100644 (file)
index 2542e31..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-// CS1675: Enums cannot have type parameters
-// Line: 4
-
-enum E<T>
-{
-}
diff --git a/mcs/errors/gcs1676.cs b/mcs/errors/gcs1676.cs
deleted file mode 100755 (executable)
index 47f5f89..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS1676: Parameter `1' must be declared with the `out' keyword
-// Line: 10
-
-class C
-{
-       delegate int D (out int i);
-
-       public static void Main ()
-       {
-                D d = a => 1;
-       }
-}
diff --git a/mcs/errors/gcs1677.cs b/mcs/errors/gcs1677.cs
deleted file mode 100644 (file)
index c005bfd..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS1677: Parameter `1' should not be declared with the `ref' keyword
-// Line: 9
-
-
-delegate void D (int x);
-
-class X
-{
-       static void Main ()
-       {
-               D d2 = (ref int x) => {};
-       }
-}
diff --git a/mcs/errors/gcs1685.cs b/mcs/errors/gcs1685.cs
deleted file mode 100644 (file)
index a2ec93e..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-// CS1685: The predefined type `System.Runtime.CompilerServices.ExtensionAttribute' is defined in multiple assemblies. Using definition from `System.Core'
-// Line: 0
-// Compiler options: -warn:1 -warnaserror -r:System.Core.dll -r:GCS1685-lib.dll
-
diff --git a/mcs/errors/gcs1686.cs b/mcs/errors/gcs1686.cs
deleted file mode 100644 (file)
index 412007d..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-// CS1686: Local variable or parameter `str' cannot have their address taken and be used inside an anonymous method or lambda expression
-// Line: 11
-// Compiler options: -unsafe
-
-using System;
-
-unsafe struct S
-{
-       public fixed int i [10];
-}
-
-class C
-{
-       static void Main ()
-       {
-               unsafe {
-                       S str;
-                       Func<int> e = () => str.i [3];
-               }
-       }
-}
diff --git a/mcs/errors/gcs1689.cs b/mcs/errors/gcs1689.cs
deleted file mode 100644 (file)
index 34f9ab5..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// cs1689.cs: Attribute `System.Diagnostics.ConditionalAttribute' is only valid on methods or attribute classes
-// Line: 6
-
-using System.Diagnostics;
-
-[Conditional("DEBUG")]
-public class Test {}
-    
\ No newline at end of file
diff --git a/mcs/errors/gcs1700.cs b/mcs/errors/gcs1700.cs
deleted file mode 100644 (file)
index acbe2f2..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// gcs1700.cs: Assembly reference `MyAssemblyName, Version=' is invalid and cannot be resolved
-// Line: 8
-// Compiler options: -warnaserror -warn:3
-
-using System;
-using System.Runtime.CompilerServices;
-
-[assembly: InternalsVisibleTo ("MyAssemblyName, Version=")]
-
-public class InternalsVisibleToTest 
-{
-       static void Main ()
-       {
-       }
-
-}
-
diff --git a/mcs/errors/gcs1708.cs b/mcs/errors/gcs1708.cs
deleted file mode 100644 (file)
index 9b1286e..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-// CS1708: `S.array': Fixed size buffers can only be accessed through locals or fields
-// Line: 27
-// Compiler options: -unsafe
-
-using System;
-
-unsafe struct S
-{
-    public fixed int array [2];
-}
-
-class C
-{
-    unsafe public S Get ()
-    {
-       return new S ();
-    }
-}
-
-public class Tester 
-{
-    public static void Main() { }
-    
-    unsafe void setName()
-    {
-       C c = new C();
-       c.Get ().array [1] = 44;
-    }
-}
-
diff --git a/mcs/errors/gcs1716.cs b/mcs/errors/gcs1716.cs
deleted file mode 100644 (file)
index 681cc4b..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// cs1716.cs: Do not use 'System.Runtime.CompilerServices.FixedBuffer' attribute. Use the 'fixed' field modifier instead
-// Line: 6
-
-public class C
-{
-    [System.Runtime.CompilerServices.FixedBuffer (typeof (int), 1)]
-    public int i;
-}
\ No newline at end of file
diff --git a/mcs/errors/gcs1718.cs b/mcs/errors/gcs1718.cs
deleted file mode 100644 (file)
index 8faec5c..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// CS1718: A comparison made to same variable. Did you mean to compare something else?
-// Line: 10
-// Compiler options: -warnaserror -warn:3
-
-class C
-{
-       public static void Main () 
-       { 
-               int? a = 20;
-               if (a > a) {
-                       return;
-               }
-       }
-}
diff --git a/mcs/errors/gcs1720-2.cs b/mcs/errors/gcs1720-2.cs
deleted file mode 100644 (file)
index f63acd0..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS1720: Expression will always cause a `System.NullReferenceException'
-// Line: 9
-// Compiler options: -warnaserror -warn:1
-
-public class Tester 
-{
-    public static void GenericClass<T>(T t) where T : class 
-    {
-        string s = default(T).ToString();
-    }
-}
\ No newline at end of file
diff --git a/mcs/errors/gcs1720.cs b/mcs/errors/gcs1720.cs
deleted file mode 100644 (file)
index e4243a7..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS1720: Expression will always cause a `System.NullReferenceException'
-// Line: 11
-// Compiler options: -warnaserror -warn:1
-
-using System;
-
-public class Tester 
-{
-    public static void Foo ()
-    {
-        Console.WriteLine(default(Tester).ToString());
-    }
-}
\ No newline at end of file
diff --git a/mcs/errors/gcs1724.cs b/mcs/errors/gcs1724.cs
deleted file mode 100644 (file)
index 41a8861..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// CS1724: Value specified for the argument to `System.Runtime.InteropServices.DefaultCharSetAttribute' is not valid
-// Line: 7
-
-using System;
-using System.Runtime.InteropServices;
-
-[module: DefaultCharSet ((CharSet)30)]
diff --git a/mcs/errors/gcs1726-2.cs b/mcs/errors/gcs1726-2.cs
deleted file mode 100644 (file)
index 8b27045..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-// gcs1726-2.cs: Friend assembly reference `MyAssemblyName, PublicKeyToken=43b5d2e9a794bdcb' is invalid. Strong named assemblies must specify a public key in their InternalsVisibleTo declarations
-// Line: 8
-// Compiler options: -keyfile:InternalsVisibleTest.snk
-
-using System;
-using System.Runtime.CompilerServices;
-
-[assembly: InternalsVisibleTo ("MyAssemblyName, PublicKeyToken=43b5d2e9a794bdcb")]
-
-public class Test
-{
-       static void Main ()
-       {
-       }
-}
-
diff --git a/mcs/errors/gcs1726.cs b/mcs/errors/gcs1726.cs
deleted file mode 100644 (file)
index 8380743..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-// gcs1726.cs: Friend assembly reference `MyAssemblyName' is invalid. Strong named assemblies must specify a public key in their InternalsVisibleTo declarations
-// Line: 8
-// Compiler options: -keyfile:InternalsVisibleTest.snk
-
-using System;
-using System.Runtime.CompilerServices;
-
-[assembly: InternalsVisibleTo ("MyAssemblyName")]
-
-public class Test
-{
-       static void Main ()
-       {
-       }
-}
-
diff --git a/mcs/errors/gcs1728-2.cs b/mcs/errors/gcs1728-2.cs
deleted file mode 100755 (executable)
index 8af73f4..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS1728: Cannot create delegate from method `long?.GetValueOrDefault()' because it is a member of System.Nullable<T> type
-// Line: 10
-
-using System;
-
-class C
-{
-       public static void Main ()
-       {
-               Func<long> a = new long?().GetValueOrDefault;
-       }
-}
diff --git a/mcs/errors/gcs1728.cs b/mcs/errors/gcs1728.cs
deleted file mode 100644 (file)
index 3dc2c51..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-// CS1728: Cannot create delegate from method `int?.GetValueOrDefault()' because it is a member of System.Nullable<T> type
-// Line: 14
-
-using System;
-
-class C
-{
-       delegate int Test ();
-       event Test MyEvent;
-
-       void Error ()
-       {
-               int? i = 0;
-               MyEvent += new Test (i.GetValueOrDefault);
-       }
-}
diff --git a/mcs/errors/gcs1744.cs b/mcs/errors/gcs1744.cs
deleted file mode 100644 (file)
index 3427f80..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-// CS1744: Named argument `a' cannot be used for a parameter which has positional argument specified
-// Line: 13
-// Compiler options: -langversion:future
-
-static class C
-{
-       public static int Test (this int a, int b)
-       {
-               return a * 3 + b;
-       }
-       
-       public static void Main ()
-       {
-               1.Test (a : 2);
-       }
-}
diff --git a/mcs/errors/gcs1745.cs b/mcs/errors/gcs1745.cs
deleted file mode 100644 (file)
index ad4e482..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS1745: Cannot specify `System.Runtime.InteropServices.DefaultParameterValue' attribute on optional parameter `u'
-// Line: 8
-// Compiler options: -langversion:future
-
-using System.Runtime.InteropServices;
-
-public class C
-{
-       public static void Test ([DefaultParameterValue (1)] int u = 2)
-       {
-       }
-}
diff --git a/mcs/errors/gcs1750.cs b/mcs/errors/gcs1750.cs
deleted file mode 100644 (file)
index 9673a74..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// CS1750: Optional parameter expression of type `decimal' cannot be converted to parameter type `int?'
-// Line: 6
-
-public class TS
-{
-       public static void Test (int? i = 1m)
-       {
-       }
-}
diff --git a/mcs/errors/gcs1770.cs b/mcs/errors/gcs1770.cs
deleted file mode 100644 (file)
index e73ead0..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS1770: The expression being assigned to nullable optional parameter `d' must be default value
-// Line: 8
-
-using System;
-
-class C
-{
-       public static void Foo (DateTime? d = new DateTime ())
-       {
-       }
-}
diff --git a/mcs/errors/gcs1908-2.cs b/mcs/errors/gcs1908-2.cs
deleted file mode 100644 (file)
index 92b17e9..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// gcs1908.cs: The type of the default value should match the type of the parameter
-// Line: 
-
-class Test {
-       internal void f ([System.Runtime.InteropServices.DefaultParameterValue (null)] short x)
-       {
-       }
-}
diff --git a/mcs/errors/gcs1908-3.cs b/mcs/errors/gcs1908-3.cs
deleted file mode 100644 (file)
index 68b1357..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// gcs1908.cs: The type of the default value should match the type of the parameter
-// Line: 
-
-class Test<T> where T : class {
-       internal void f ([System.Runtime.InteropServices.DefaultParameterValue (null)] T x)
-       {
-       }
-}
diff --git a/mcs/errors/gcs1908-4.cs b/mcs/errors/gcs1908-4.cs
deleted file mode 100644 (file)
index 83f39e1..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// gcs1908.cs: The type of the default value should match the type of the parameter
-// Line: 
-
-class Test {
-       internal void f ([System.Runtime.InteropServices.DefaultParameterValue ((short) 1)] int x)
-       {
-       }
-}
diff --git a/mcs/errors/gcs1908.cs b/mcs/errors/gcs1908.cs
deleted file mode 100644 (file)
index fa5d731..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// gcs1908.cs: The type of the default value should match the type of the parameter
-// Line: 5
-
-class Test {
-       internal void f ([System.Runtime.InteropServices.DefaultParameterValue (1)] short x)
-       {
-       }
-}
diff --git a/mcs/errors/gcs1909-2.cs b/mcs/errors/gcs1909-2.cs
deleted file mode 100644 (file)
index 2b13962..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// CS1909: The DefaultParameterValue attribute is not applicable on parameters of type `System.Type'
-// Line: 7
-
-using System.Runtime.InteropServices;
-
-interface ITest {
-       void f ([DefaultParameterValue (typeof (ITest))] System.Type x);
-}
diff --git a/mcs/errors/gcs1909.cs b/mcs/errors/gcs1909.cs
deleted file mode 100644 (file)
index de241ed..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS1909: The DefaultParameterValue attribute is not applicable on parameters of type `int[]'
-// Line: 7
-
-using System.Runtime.InteropServices;
-
-class Test {
-       void f ([DefaultParameterValue (new int[0])] int[] x)
-       {
-       }
-}
diff --git a/mcs/errors/gcs1910-2.cs b/mcs/errors/gcs1910-2.cs
deleted file mode 100644 (file)
index 6b46744..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS1910: Argument of type `int[]' is not applicable for the DefaultParameterValue attribute
-// Line: 7
-
-using System.Runtime.InteropServices;
-using System;
-
-class Test {
-       void f ([DefaultParameterValue (new int[0])] object x)
-       {
-       }
-}
diff --git a/mcs/errors/gcs1910.cs b/mcs/errors/gcs1910.cs
deleted file mode 100644 (file)
index 37cdbf1..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS1910: Argument of type `System.Type' is not applicable for the DefaultParameterValue attribute
-// Line: 7
-
-using System.Runtime.InteropServices;
-
-class Test {
-       void f ([DefaultParameterValue (typeof (object))] object x)
-       {
-       }
-}
diff --git a/mcs/errors/gcs1912.cs b/mcs/errors/gcs1912.cs
deleted file mode 100644 (file)
index 8d21cb7..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-// CS1912: An object initializer includes more than one member `Count' initialization
-// Line: 17
-
-
-using System;
-using System.Collections.Generic;
-
-public class Test
-{
-       class Container
-       {
-               public int Count;
-       }
-       
-       static void Main ()
-       {
-               var c = new Container { Count = 1, Count = 10 };
-       }
-}
diff --git a/mcs/errors/gcs1913-2.cs b/mcs/errors/gcs1913-2.cs
deleted file mode 100644 (file)
index cd5d064..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-// CS1913: Member `Data.Count()' cannot be initialized. An object initializer may only be used for fields, or properties
-// Line: 17
-
-
-using System;
-using System.Collections.Generic;
-
-class Data
-{
-       public int Count ()
-       {
-               return 1;
-       }
-}
-
-public class Test
-{
-       static void Main ()
-       {
-               var c = new Data { Count = 10 };
-       }
-}
diff --git a/mcs/errors/gcs1913.cs b/mcs/errors/gcs1913.cs
deleted file mode 100644 (file)
index 35a78d3..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-// CS1913: Member `Data.Count' cannot be initialized. An object initializer may only be used for fields, or properties
-// Line: 17
-
-
-using System;
-using System.Collections.Generic;
-
-class Data
-{
-       public delegate int Count ();
-}
-
-public class Test
-{
-       delegate void S ();
-       
-       static void Main ()
-       {
-               //S s = new S ();
-               //string drawBackLabel = string.Length("absDrawBack");
-               var c = new Data { Count = 10 };
-       }
-}
diff --git a/mcs/errors/gcs1914.cs b/mcs/errors/gcs1914.cs
deleted file mode 100644 (file)
index dbbc46a..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-// CS1914: Static field or property `Data.Count' cannot be assigned in an object initializer
-// Line: 17
-
-
-using System;
-using System.Collections.Generic;
-
-class Data
-{
-       public static int Count;
-}
-
-public class Test
-{
-       static void Main ()
-       {
-               var c = new Data { Count = 10 };
-       }
-}
diff --git a/mcs/errors/gcs1918.cs b/mcs/errors/gcs1918.cs
deleted file mode 100644 (file)
index 245d6be..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-// CS1918: Members of value type `S' cannot be assigned using a property `C.Value' object initializer
-// Line: 18
-
-
-struct S
-{
-       public int X;
-}
-
-class C
-{
-       public S Value {
-               set { }
-       }
-
-       static void Main ()
-       {
-               C c = new C { Value = { X = 2 } };
-       }
-}
diff --git a/mcs/errors/gcs1920.cs b/mcs/errors/gcs1920.cs
deleted file mode 100644 (file)
index e13dd53..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS1920: An element initializer cannot be empty
-// Line: 11
-
-
-using System.Collections.Generic;
-
-public class Test
-{
-       static void Main ()
-       {
-               var d = new Dictionary <string, int> { { } };
-       }
-}
diff --git a/mcs/errors/gcs1922-2.cs b/mcs/errors/gcs1922-2.cs
deleted file mode 100644 (file)
index 27fa387..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// CS1922: A field or property `System.Type' cannot be initialized with a collection object initializer because type `System.Type' does not implement `System.Collections.IEnumerable' interface
-// Line: 13
-
-using System;
-using System.Xml.Serialization;
-
-namespace test
-{
-       public class Test
-       {
-               static void Main ()
-               {
-                       XmlSerializer xs = new XmlSerializer (typeof (string), new Type () { typeof (bool) });
-               }
-       }
-}
-
diff --git a/mcs/errors/gcs1922.cs b/mcs/errors/gcs1922.cs
deleted file mode 100644 (file)
index 2beed78..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// CS1922: A field or property `Data.Value' cannot be initialized with a collection object initializer because type `int' does not implement `System.Collections.IEnumerable' interface
-// Line: 16
-
-
-using System;
-
-class Data
-{
-       public int Value;
-}
-
-public class Test
-{
-       static void Main ()
-       {
-               var c = new Data { Value = { 0, 1, 2 } };
-       }
-}
diff --git a/mcs/errors/gcs1925.cs b/mcs/errors/gcs1925.cs
deleted file mode 100755 (executable)
index 6d05753..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS1925: Cannot initialize object of type `string[]' with a collection initializer
-// Line: 10
-
-class C
-{
-       string[] values;
-       
-       static void Main ()
-       {
-               var v = new C { values = { "a" } };
-       }
-}
diff --git a/mcs/errors/gcs1928-2.cs b/mcs/errors/gcs1928-2.cs
deleted file mode 100644 (file)
index f5cefeb..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-// CS1928: Type `System.Collections.IList' does not contain a member `Frobnicate' and the best extension method overload `Extensions.Frobnicate<Test>(this Test)' has some invalid arguments
-// Line: 20
-
-using System;
-using System.Collections;
-
-static class Extensions
-{
-       public static void Frobnicate<T> (this T foo) where T : IList
-       {
-       }
-}
-
-public class Test
-{
-       IList mFoo;
-
-       void Frobnicate ()
-       {
-               mFoo.Frobnicate<Test> ();
-       }
-}
diff --git a/mcs/errors/gcs1928-3.cs b/mcs/errors/gcs1928-3.cs
deleted file mode 100644 (file)
index 0eee7b2..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// CS1928: Type `int' does not contain a member `Foo' and the best extension method overload `S.Foo(this uint)' has some invalid arguments
-// Line: 15
-
-static class S
-{
-       public static void Foo (this uint i)
-       {
-       }
-}
-
-class B
-{
-       static void Main ()
-       {
-               55.Foo ();
-       }
-}
diff --git a/mcs/errors/gcs1928.cs b/mcs/errors/gcs1928.cs
deleted file mode 100644 (file)
index 2792275..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS1928: Type `string' does not contain a member `Check' and the best extension method overload `C.Check(this string, int)' has some invalid arguments
-// Line: 12
-
-static class C
-{
-       public static void Check (this string s, int i)
-       {
-       }
-
-       static void Main ()
-       {
-               "alo".Check ("o");
-       }
-}
diff --git a/mcs/errors/gcs1929.cs b/mcs/errors/gcs1929.cs
deleted file mode 100644 (file)
index 6358f36..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS1929: Extension method instance type `int' cannot be converted to `string'
-// Line: 12
-
-static class C
-{
-       public static void Check (this string s)
-       {
-       }
-
-       static void Main ()
-       {
-               1.Check ();
-       }
-}
diff --git a/mcs/errors/gcs1930-2.cs b/mcs/errors/gcs1930-2.cs
deleted file mode 100644 (file)
index 078a83a..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// CS1930: A range variable `i' has already been declared in this scope
-// Line: 14
-
-
-using System;
-using System.Linq;
-
-class C
-{
-       public static void Main ()
-       {
-               var e = from v in "a"
-                       let i = 1
-                       let i = 2
-                       select v;
-       }
-}
diff --git a/mcs/errors/gcs1930.cs b/mcs/errors/gcs1930.cs
deleted file mode 100644 (file)
index 83f0fb3..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-// CS1930: A range variable `v' has already been declared in this scope
-// Line: 13
-
-
-using System;
-using System.Linq;
-
-class C
-{
-       public static void Main ()
-       {
-               var e = from v in "a"
-                       let v = 1
-                       select v;
-       }
-}
diff --git a/mcs/errors/gcs1931-2.cs b/mcs/errors/gcs1931-2.cs
deleted file mode 100644 (file)
index e9cfe73..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-// CS1931: A range variable `i' conflicts with a previous declaration of `i'
-// Line: 13
-
-
-using System;
-using System.Linq;
-
-class C
-{
-       public void Foo (int i)
-       {
-               var e = from v in "a"
-                       let i = 2
-                       select v;
-       }
-}
diff --git a/mcs/errors/gcs1931-3.cs b/mcs/errors/gcs1931-3.cs
deleted file mode 100644 (file)
index 86c63a0..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// CS1931: A range variable `ii' conflicts with a previous declaration of `ii'
-// Line: 14
-
-
-using System;
-using System.Collections.Generic;
-using System.Linq;
-
-class Test
-{
-       public static void Main ()
-       {
-               int[] int_array = null;
-               int ii = 0;
-               IEnumerable<int> e = from int ii in int_array select "1";
-       }
-}
diff --git a/mcs/errors/gcs1931-4.cs b/mcs/errors/gcs1931-4.cs
deleted file mode 100644 (file)
index 6088435..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// CS1931: A range variable `i' conflicts with a previous declaration of `i'
-// Line: 12
-
-using System;
-using System.Linq;
-
-class C
-{
-       public static void Main ()
-       {
-               int i = 9;
-               var e = from i in "a"
-                       select 1;
-       }
-}
diff --git a/mcs/errors/gcs1931.cs b/mcs/errors/gcs1931.cs
deleted file mode 100644 (file)
index 74d517d..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// CS1931: A range variable `i' conflicts with a previous declaration of `i'
-// Line: 14
-
-
-using System;
-using System.Linq;
-
-class C
-{
-       public static void Main ()
-       {
-               int i = 9;
-               var e = from v in "a"
-                       let i = 2
-                       select v;
-       }
-}
diff --git a/mcs/errors/gcs1932-2.cs b/mcs/errors/gcs1932-2.cs
deleted file mode 100755 (executable)
index f58cb3c..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// CS1932: A range variable `ii' cannot be initialized with `method group'
-// Line: 12
-
-using System;
-using System.Linq;
-
-class C
-{
-       public void Foo (int i)
-       {
-               var e = from v in "a"
-                       let ii = Foo
-                       select v;
-       }
-}
diff --git a/mcs/errors/gcs1932.cs b/mcs/errors/gcs1932.cs
deleted file mode 100644 (file)
index 1952868..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-// CS1932: A range variable `ii' cannot be initialized with `void'
-// Line: 13
-
-
-using System;
-using System.Linq;
-
-class C
-{
-       public void Foo (int i)
-       {
-               var e = from v in "a"
-                       let ii = Foo (2)
-                       select v;
-       }
-}
diff --git a/mcs/errors/gcs1935-2.cs b/mcs/errors/gcs1935-2.cs
deleted file mode 100644 (file)
index 165b566..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS1935: An implementation of `Cast' query expression pattern could not be found. Are you missing `System.Linq' using directive or `System.Core.dll' assembly reference?
-// Line: 12
-
-
-public class Test
-{
-       class Enumerable {}
-               
-       static void Main ()
-       {
-               var v = new int[0];
-               var foo = from int a in v where a > 0 select a;
-       }
-}
diff --git a/mcs/errors/gcs1935.cs b/mcs/errors/gcs1935.cs
deleted file mode 100644 (file)
index b1e4666..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS1935: An implementation of `Select' query expression pattern could not be found. Are you missing `System.Linq' using directive or `System.Core.dll' assembly reference?
-// Line: 10
-
-
-public class Test
-{
-       static void Main ()
-       {
-               var v = new int[0];
-               var foo = from a in v select a;
-       }
-}
diff --git a/mcs/errors/gcs1936.cs b/mcs/errors/gcs1936.cs
deleted file mode 100644 (file)
index 22cd8c6..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// CS1936: An implementation of `Select' query expression pattern for source type `Item' could not be found
-// Line: 16
-
-
-using System.Linq;
-
-class Item
-{
-}
-
-public static class Test
-{
-       static void Main ()
-       {
-               var v = new Item ();
-               var foo = from a in v select a;
-       }
-}
diff --git a/mcs/errors/gcs1939.cs b/mcs/errors/gcs1939.cs
deleted file mode 100644 (file)
index 54d1f5b..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-// CS1930: A range variable `v' may not be passes as `ref' or `out' parameter
-// Line: 19
-
-
-using System;
-using System.Linq;
-
-class C
-{
-       static int Foo (ref int value)
-       {
-               return 1;
-       }
-       
-       public static void Main ()
-       {
-               var e = from v in "a"
-                       let r = 1
-                       select Foo (ref v);
-       }
-}
diff --git a/mcs/errors/gcs1940.cs b/mcs/errors/gcs1940.cs
deleted file mode 100644 (file)
index e53a5a6..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-// CS1940: Ambiguous implementation of the query pattern `Select' for source type `Multiple'
-// Line: 10
-
-class Multiple
-{
-       delegate int D1 (int x);
-       delegate int D2 (int x);
-
-       int Select (D1 d)
-       {
-               return 0;
-       }
-
-       int Select (D2 d)
-       {
-               return 1;
-       }
-
-       public static void Main ()
-       {
-               var q = from x in new Multiple () select x;
-       }
-}
diff --git a/mcs/errors/gcs1942-2.cs b/mcs/errors/gcs1942-2.cs
deleted file mode 100644 (file)
index f67f376..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-// CS1942: An expression type in `select' clause is incorrect. Type inference failed in the call to `Select'
-// Line: 18
-
-using System;
-
-class TestA
-{
-       public string Select<U> (Func<TestA, U> f)
-       {
-               return "";
-       }
-}
-
-public class C
-{
-       static void Main ()
-       {
-               string foo = from a in new TestA () select null;
-       }
-}
diff --git a/mcs/errors/gcs1942.cs b/mcs/errors/gcs1942.cs
deleted file mode 100644 (file)
index e6cffda..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS1942: An expression type in `select' clause is incorrect. Type inference failed in the call to `Select'
-// Line: 12
-
-using System;
-using System.Linq;
-
-class C
-{
-       public static void Main ()
-       {
-               var e = from values in "abcd"
-                       select null;
-       }
-}
diff --git a/mcs/errors/gcs1943.cs b/mcs/errors/gcs1943.cs
deleted file mode 100644 (file)
index 92fd591..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS1943: An expression type is incorrect in a subsequent `from' clause in a query expression with source type `string'
-// Line: 11
-
-using System.Linq;
-
-class Test
-{
-       static void Main ()
-       {
-               var e = from a in "abcd"
-                               from b in new Test ()
-                               select b;
-       }
-}
diff --git a/mcs/errors/gcs1944-2.cs b/mcs/errors/gcs1944-2.cs
deleted file mode 100644 (file)
index 5280413..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// CS1944: An expression tree cannot contain an unsafe pointer operation
-// Line: 15
-// Compiler options: -unsafe
-
-using System;
-using System.Linq.Expressions;
-
-class C
-{
-       unsafe delegate int* D (int i);
-       
-       public static void Main ()
-       {
-               unsafe {
-                       Expression<D> e = (int p) => &p;
-               }
-       }
-}
diff --git a/mcs/errors/gcs1944-3.cs b/mcs/errors/gcs1944-3.cs
deleted file mode 100644 (file)
index 3a5e310..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// CS1944: An expression tree cannot contain an unsafe pointer operation
-// Line: 15
-// Compiler options: -unsafe
-
-using System;
-using System.Linq.Expressions;
-
-class C
-{
-       unsafe delegate int D (int* i);
-       
-       public static void Main ()
-       {
-               unsafe {
-                       Expression<D> e = p => *p;
-               }
-       }
-}
diff --git a/mcs/errors/gcs1944-4.cs b/mcs/errors/gcs1944-4.cs
deleted file mode 100644 (file)
index 33fc4d6..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// CS1944: An expression tree cannot contain an unsafe pointer operation
-// Line: 15
-// Compiler options: -unsafe
-
-using System;
-using System.Linq.Expressions;
-
-class C
-{
-       unsafe delegate int* D (int* i);
-       
-       public static void Main ()
-       {
-               unsafe {
-                       Expression<D> e = p => p + 1;
-               }
-       }
-}
diff --git a/mcs/errors/gcs1944-5.cs b/mcs/errors/gcs1944-5.cs
deleted file mode 100644 (file)
index b53a1ba..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-// CS1944: An expression tree cannot contain an unsafe pointer operation
-// Line: 13
-// Compiler options: -unsafe
-
-using System;
-using System.Linq.Expressions;
-
-class C
-{
-       public static void Main ()
-       {
-               unsafe {
-                       Expression<Func<int>> e = () => sizeof (long*);
-               }
-       }
-}
diff --git a/mcs/errors/gcs1944-6.cs b/mcs/errors/gcs1944-6.cs
deleted file mode 100644 (file)
index 60efab1..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// CS1944: An expression tree cannot contain an unsafe pointer operation
-// Line: 14
-// Compiler options: -unsafe
-
-using System;
-using System.Linq.Expressions;
-
-class C
-{
-       unsafe delegate byte* D (int*[] d);
-       public static void Main ()
-       {
-               unsafe {
-                       Expression<D> e6 = (p) => (byte*)p [10];
-               }
-       }
-}
diff --git a/mcs/errors/gcs1944-7.cs b/mcs/errors/gcs1944-7.cs
deleted file mode 100644 (file)
index f9ff69c..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// CS1944: An expression tree cannot contain an unsafe pointer operation
-// Line: 15
-// Compiler options: -unsafe
-
-using System;
-using System.Linq.Expressions;
-
-class C
-{
-       unsafe delegate int* D ();
-       
-       public static void Main ()
-       {
-               unsafe {
-                       Expression<D> e = () => default (int*);
-               }
-       }
-}
diff --git a/mcs/errors/gcs1944.cs b/mcs/errors/gcs1944.cs
deleted file mode 100644 (file)
index 5b5668a..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// CS1944: An expression tree cannot contain an unsafe pointer operation
-// Line: 14
-// Compiler options: -unsafe
-
-using System;
-using System.Linq.Expressions;
-
-class C
-{
-       public static void Main ()
-       {
-               unsafe {
-                       int*[] p = null;
-                       Expression<Func<int>> e6 = () => (int)p [10];
-               }
-       }
-}
diff --git a/mcs/errors/gcs1945.cs b/mcs/errors/gcs1945.cs
deleted file mode 100644 (file)
index 1f70335..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS1945: An expression tree cannot contain an anonymous method expression
-// Line: 11
-
-using System;
-using System.Linq.Expressions;
-
-class C
-{
-       public static void Main ()
-       {
-               Expression<Func<Func<int>>> e = () => delegate () { return 1; };                
-       }
-}
diff --git a/mcs/errors/gcs1946.cs b/mcs/errors/gcs1946.cs
deleted file mode 100644 (file)
index f53130f..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// CS1946: An anonymous method cannot be converted to an expression tree
-// Line: 11
-
-using System;
-using System.Linq.Expressions;
-
-class C
-{
-       delegate string D ();
-
-       public static void Main ()
-       {
-               Expression<D> e = delegate () { return "a"; };
-       }
-}
diff --git a/mcs/errors/gcs1947.cs b/mcs/errors/gcs1947.cs
deleted file mode 100644 (file)
index 3d5869c..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// CS1947: A range variable `v' cannot be assigned to. Consider using `let' clause to store the value
-// Line: 15
-
-using System;
-using System.Linq;
-
-class Test
-{
-       public static int Main ()
-       {
-               int[] int_array = new int [] { 0, 1 };
-               
-               var e = from int i in int_array
-                       let v = true
-                       where v = false
-                       select v;
-       }
-}
diff --git a/mcs/errors/gcs1948-2.cs b/mcs/errors/gcs1948-2.cs
deleted file mode 100644 (file)
index 5895fec..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// CS1948: A range variable `T' conflicts with a method type parameter
-// Line: 13
-
-using System;
-using System.Linq;
-
-class C
-{
-       public static void Foo <T> ()
-       {
-               var s = "0";
-               var e = from T in "a"
-                       select T + s;
-       }
-}
diff --git a/mcs/errors/gcs1948.cs b/mcs/errors/gcs1948.cs
deleted file mode 100644 (file)
index 07d503d..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// CS1948: A range variable `T' conflicts with a method type parameter
-// Line: 12
-
-
-using System;
-using System.Linq;
-
-class C
-{
-       public static void Foo <T> ()
-       {
-               var e = from T in "a"
-                       select T;
-       }
-}
diff --git a/mcs/errors/gcs1950.cs b/mcs/errors/gcs1950.cs
deleted file mode 100644 (file)
index 707c604..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-// CS1954: The best overloaded collection initalizer method `Data.Add(__arglist)' has some invalid arguments
-// Line: 16
-
-
-using System;
-using System.Collections;
-
-class Data : IEnumerable
-{
-       public IEnumerator GetEnumerator () { return null; }
-       
-       public void Add (__arglist)
-       {
-       }
-}
-
-public class Test
-{
-       static void Main ()
-       {
-               var c = new Data { 1 };
-       }
-}
diff --git a/mcs/errors/gcs1951-2.cs b/mcs/errors/gcs1951-2.cs
deleted file mode 100644 (file)
index 615d2cf..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// CS1951: An expression tree parameter cannot use `ref' or `out' modifier
-// Line: 13
-
-using System;
-using System.Linq.Expressions;
-
-class C
-{
-       delegate int D (out int a);
-       
-       public static void Main ()
-       {
-               Expression<D> e = (out int a) => a = 0;
-       }
-}
diff --git a/mcs/errors/gcs1951.cs b/mcs/errors/gcs1951.cs
deleted file mode 100644 (file)
index c1040f8..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// CS1951: An expression tree parameter cannot use `ref' or `out' modifier
-// Line: 13
-
-using System;
-using System.Linq.Expressions;
-
-class C
-{
-       delegate int D (ref int a);
-       
-       public static void Main ()
-       {
-               Expression<D> e = (ref int a) => a;
-       }
-}
diff --git a/mcs/errors/gcs1952.cs b/mcs/errors/gcs1952.cs
deleted file mode 100644 (file)
index de515a3..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// CS1952: An expression tree cannot contain a method with variable arguments
-// Line: 11
-
-using System;
-using System.Linq.Expressions;
-
-class C
-{
-       void Foo ()
-       {
-               Expression<Func<int>> e = () => InstanceArgList (__arglist (0));
-       }
-       
-       int InstanceArgList (__arglist)
-       {
-               return 54;
-       }
-}
diff --git a/mcs/errors/gcs1953.cs b/mcs/errors/gcs1953.cs
deleted file mode 100644 (file)
index ba5dbad..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS1953: An expression tree cannot contain an expression with method group
-// Line: 11
-
-using System;
-using System.Linq.Expressions;
-
-class C
-{
-       public static void Main ()
-       {
-               Expression<Func<bool>> e = () => "1".ToString is string;
-       }
-}
\ No newline at end of file
diff --git a/mcs/errors/gcs1954.cs b/mcs/errors/gcs1954.cs
deleted file mode 100644 (file)
index 4b5a9e8..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-// CS1954:  The best overloaded collection initalizer method `Data.Add(ref int)' cannot have 'ref', or `out' modifier
-// Line: 16
-
-
-using System;
-using System.Collections;
-
-class Data : IEnumerable
-{
-       public IEnumerator GetEnumerator () { return null; }
-       
-       public void Add (ref int b)
-       {
-       }
-}
-
-public class Test
-{
-       static void Main ()
-       {
-               var c = new Data { 1 };
-       }
-}
diff --git a/mcs/errors/gcs1959-2.cs b/mcs/errors/gcs1959-2.cs
deleted file mode 100644 (file)
index 007414e..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS1959: Type parameter `T' cannot be declared const
-// Line: 8
-
-struct S
-{
-       public void Foo<T> () where T : struct
-       {
-               const T t = null;
-       }
-}
diff --git a/mcs/errors/gcs1959.cs b/mcs/errors/gcs1959.cs
deleted file mode 100644 (file)
index afc0b71..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS1959: Type parameter `T' cannot be declared const
-// Line: 10
-
-class C
-{
-}
-
-class C<T> where T : C
-{
-       const T t = null;
-}
diff --git a/mcs/errors/gcs1960-2.cs b/mcs/errors/gcs1960-2.cs
deleted file mode 100644 (file)
index 48421df..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// CS1960: Variant type parameters can only be used with interfaces and delegates
-// Line: 5
-// Compiler options: -langversion:future
-
-class A<in T>
-{
-}
diff --git a/mcs/errors/gcs1960.cs b/mcs/errors/gcs1960.cs
deleted file mode 100644 (file)
index 6085255..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// CS1960: Variant type parameters can only be used with interfaces and delegates
-// Line: 5
-// Compiler options: -langversion:future
-
-class A<out T>
-{
-}
diff --git a/mcs/errors/gcs1961-10.cs b/mcs/errors/gcs1961-10.cs
deleted file mode 100644 (file)
index 5eb26dc..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>()'
-// Line: 9
-// Compiler options: -langversion:future
-
-interface A<T>
-{
-}
-
-delegate A<A<T>> B<in T> ();
diff --git a/mcs/errors/gcs1961-11.cs b/mcs/errors/gcs1961-11.cs
deleted file mode 100644 (file)
index 4f7bc65..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>(A<T>)'
-// Line: 9
-// Compiler options: -langversion:future
-
-interface A<T>
-{
-}
-
-delegate void B<in T> (A<T> a);
diff --git a/mcs/errors/gcs1961-12.cs b/mcs/errors/gcs1961-12.cs
deleted file mode 100644 (file)
index 9359e5f..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>(A<A<T>>)'
-// Line: 9
-// Compiler options: -langversion:future
-
-interface A<T>
-{
-}
-
-delegate void B<in T> (A<A<T>> a);
diff --git a/mcs/errors/gcs1961-13.cs b/mcs/errors/gcs1961-13.cs
deleted file mode 100644 (file)
index 457f795..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS1961: The contravariant type parameter `T' must be covariantly valid on `B<T>.A'
-// Line: 9
-// Compiler options: -langversion:future
-
-interface A<out T>
-{
-}
-
-interface B<in T>
-{
-       A<T> A { get; }
-}
diff --git a/mcs/errors/gcs1961-14.cs b/mcs/errors/gcs1961-14.cs
deleted file mode 100644 (file)
index 51a69a2..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>.C(A<T>)'
-// Line: 9
-// Compiler options: -langversion:future
-
-interface A<T>
-{
-}
-
-interface B<in T>
-{
-       void C(A<T> a);
-}
diff --git a/mcs/errors/gcs1961-15.cs b/mcs/errors/gcs1961-15.cs
deleted file mode 100644 (file)
index 2e65426..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// CS1961: The covariant type parameter `U' must be contravariantly valid on `D<U>()'
-// Line: 9
-// Compiler options: -langversion:future
-
-interface I<in T>
-{
-}
-
-delegate I<U[]> D<out U> ();
diff --git a/mcs/errors/gcs1961-16.cs b/mcs/errors/gcs1961-16.cs
deleted file mode 100644 (file)
index 973c67b..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>'
-// Line: 9
-// Compiler options: -langversion:future
-
-interface A<T>
-{
-}
-
-interface B<in T> : A<T>
-{
-}
diff --git a/mcs/errors/gcs1961-17.cs b/mcs/errors/gcs1961-17.cs
deleted file mode 100644 (file)
index f439dfa..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS1961: The contravariant type parameter `T' must be covariantly valid on `B<T>'
-// Line: 9
-// Compiler options: -langversion:future
-
-interface A<out T>
-{
-}
-
-interface B<in T> : A<T>
-{
-}
diff --git a/mcs/errors/gcs1961-18.cs b/mcs/errors/gcs1961-18.cs
deleted file mode 100644 (file)
index ac551a6..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>.A'
-// Line: 9
-// Compiler options: -langversion:future
-
-interface A<T>
-{
-}
-
-interface B<out T>
-{
-       A<T> A { get; }
-}
diff --git a/mcs/errors/gcs1961-19.cs b/mcs/errors/gcs1961-19.cs
deleted file mode 100644 (file)
index e9df1fd..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>.A'
-// Line: 9
-// Compiler options: -langversion:future
-
-interface A<T>
-{
-}
-
-interface B<out T>
-{
-       A<A<T>> A { get; }
-}
diff --git a/mcs/errors/gcs1961-2.cs b/mcs/errors/gcs1961-2.cs
deleted file mode 100644 (file)
index 40d29f8..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-// CS1961: The contravariant type parameter `T' must be covariantly valid on `D<T>()'
-// Line: 5
-// Compiler options: -langversion:future
-
-delegate T D<in T> ();
diff --git a/mcs/errors/gcs1961-20.cs b/mcs/errors/gcs1961-20.cs
deleted file mode 100644 (file)
index e5b5e7d..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>.C()'
-// Line: 9
-// Compiler options: -langversion:future
-
-interface A<T>
-{
-}
-
-interface B<out T>
-{
-       A<T> C();
-}
diff --git a/mcs/errors/gcs1961-21.cs b/mcs/errors/gcs1961-21.cs
deleted file mode 100644 (file)
index 2292255..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>.C()'
-// Line: 9
-// Compiler options: -langversion:future
-
-interface A<T>
-{
-}
-
-interface B<out T>
-{
-       A<A<T>> C();
-}
diff --git a/mcs/errors/gcs1961-22.cs b/mcs/errors/gcs1961-22.cs
deleted file mode 100644 (file)
index 098e8af..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>.C(A<T>)'
-// Line: 9
-// Compiler options: -langversion:future
-
-interface A<T>
-{
-}
-
-interface B<out T>
-{
-       void C(A<T> a);
-}
diff --git a/mcs/errors/gcs1961-23.cs b/mcs/errors/gcs1961-23.cs
deleted file mode 100644 (file)
index a536728..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS1923: The covariant type parameter `T' must be invariantly valid on `B<T>.C(A<A<T>>)'
-// Line: 9
-// Compiler options: -langversion:future
-
-interface A<T>
-{
-}
-
-interface B<out T>
-{
-       void C(A<A<T>> a);
-}
diff --git a/mcs/errors/gcs1961-24.cs b/mcs/errors/gcs1961-24.cs
deleted file mode 100644 (file)
index b08bea6..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>()'
-// Line: 9
-// Compiler options: -langversion:future
-
-interface A<T>
-{
-}
-
-delegate A<T> B<out T> ();
diff --git a/mcs/errors/gcs1961-25.cs b/mcs/errors/gcs1961-25.cs
deleted file mode 100644 (file)
index f76625a..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>()'
-// Line: 9
-// Compiler options: -langversion:future
-
-interface A<T>
-{
-}
-
-delegate A<A<T>> B<out T> ();
diff --git a/mcs/errors/gcs1961-26.cs b/mcs/errors/gcs1961-26.cs
deleted file mode 100644 (file)
index cd3b5bf..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>(A<T>)'
-// Line: 9
-// Compiler options: -langversion:future
-
-interface A<T>
-{
-}
-
-delegate void B<out T> (A<T> a);
diff --git a/mcs/errors/gcs1961-27.cs b/mcs/errors/gcs1961-27.cs
deleted file mode 100644 (file)
index 71b39f6..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>(A<A<T>>)'
-// Line: 9
-// Compiler options: -langversion:future
-
-interface A<T>
-{
-}
-
-delegate void B<out T> (A<A<T>> a);
diff --git a/mcs/errors/gcs1961-28.cs b/mcs/errors/gcs1961-28.cs
deleted file mode 100644 (file)
index 37e8714..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS1961: The covariant type parameter `T' must be contravariantly valid on `B<T>.A'
-// Line: 9
-// Compiler options: -langversion:future
-
-interface A<in T>
-{
-}
-
-interface B<out T>
-{
-       A<T> A { get; }
-}
diff --git a/mcs/errors/gcs1961-29.cs b/mcs/errors/gcs1961-29.cs
deleted file mode 100644 (file)
index 098e8af..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>.C(A<T>)'
-// Line: 9
-// Compiler options: -langversion:future
-
-interface A<T>
-{
-}
-
-interface B<out T>
-{
-       void C(A<T> a);
-}
diff --git a/mcs/errors/gcs1961-3.cs b/mcs/errors/gcs1961-3.cs
deleted file mode 100644 (file)
index 97138e0..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>.A'
-// Line: 9
-// Compiler options: -langversion:future
-
-interface A<T>
-{
-}
-
-interface B<in T>
-{
-       A<T> A { get; }
-}
diff --git a/mcs/errors/gcs1961-30.cs b/mcs/errors/gcs1961-30.cs
deleted file mode 100644 (file)
index 34498c5..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// CS1961: The covariant type parameter `U' must be contravariantly valid on `D<U>()'
-// Line: 7
-// Compiler options: -langversion:future
-
-interface IContravariant<in T> { }
-
-delegate IContravariant<U[]> D<out U> ();
diff --git a/mcs/errors/gcs1961-31.cs b/mcs/errors/gcs1961-31.cs
deleted file mode 100644 (file)
index e2f89b5..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>'
-// Line: 9
-// Compiler options: -langversion:future
-
-interface A<T>
-{
-}
-
-interface B<out T> : A<T>
-{
-}
diff --git a/mcs/errors/gcs1961-32.cs b/mcs/errors/gcs1961-32.cs
deleted file mode 100644 (file)
index 00afd32..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS1961: The covariant type parameter `T' must be contravariantly valid on `B<T>'
-// Line: 9
-// Compiler options: -langversion:future
-
-interface A<in T>
-{
-}
-
-interface B<out T> : A<T>
-{
-}
diff --git a/mcs/errors/gcs1961-33.cs b/mcs/errors/gcs1961-33.cs
deleted file mode 100644 (file)
index 246c05b..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// CS1961: The contravariant type parameter `T' must be invariantly valid on `A<T>.B(out T)'
-// Line: 5
-// Compiler options: -langversion:future
-
-interface A<in T>
-{
-       void B(out T t);
-}
diff --git a/mcs/errors/gcs1961-34.cs b/mcs/errors/gcs1961-34.cs
deleted file mode 100644 (file)
index 662672e..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// CS1961: The contravariant type parameter `T' must be invariantly valid on `A<T>.B(ref T)'
-// Line: 5
-// Compiler options: -langversion:future
-
-interface A<in T>
-{
-       void B(ref T t);
-}
diff --git a/mcs/errors/gcs1961-35.cs b/mcs/errors/gcs1961-35.cs
deleted file mode 100644 (file)
index 9e2fa3d..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// CS1961: The covariant type parameter `T' must be contravariantly valid on `A<T>.B(T)'
-// Line: 7
-// Compiler options: -langversion:future
-
-interface A<out T>
-{
-       void B(T t);
-}
diff --git a/mcs/errors/gcs1961-36.cs b/mcs/errors/gcs1961-36.cs
deleted file mode 100644 (file)
index d657714..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// CS1961: The covariant type parameter `T' must be invariantly valid on `A<T>.B(out T)'
-// Line: 7
-// Compiler options: -langversion:future
-
-interface A<out T>
-{
-       void B(out T t);
-}
diff --git a/mcs/errors/gcs1961-37.cs b/mcs/errors/gcs1961-37.cs
deleted file mode 100644 (file)
index d65e7cb..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// CS1961: The covariant type parameter `T' must be invariantly valid on `A<T>.B(ref T)'
-// Line: 5
-// Compiler options: -langversion:future
-
-interface A<out T>
-{
-       void B(ref T t);
-}
diff --git a/mcs/errors/gcs1961-38.cs b/mcs/errors/gcs1961-38.cs
deleted file mode 100644 (file)
index e5a05d6..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// CS1961: The covariant type parameter `V' must be invariantly valid on `Both<U,V>(Covariant<None<Contra<V>>>)'
-// Line: 9
-// Compiler options: -langversion:future
-
-delegate T Covariant<out T> ();
-delegate void Contra<in T> (T t);
-delegate void None<T> (T t);
-
-delegate void Both<in U, out V> (Covariant<None<Contra<V>>> b);
diff --git a/mcs/errors/gcs1961-39.cs b/mcs/errors/gcs1961-39.cs
deleted file mode 100644 (file)
index 3938d68..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// CS1961: The covariant type parameter `V' must be contravariantly valid on `I<V>.Foo<T>(T)'
-// Line: 6
-
-interface I<out V>
-{
-       void Foo<T> (T t) where T : V;
-}
diff --git a/mcs/errors/gcs1961-4.cs b/mcs/errors/gcs1961-4.cs
deleted file mode 100644 (file)
index 1ca5c60..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>.A'
-// Line: 9
-// Compiler options: -langversion:future
-
-interface A<T>
-{
-}
-
-interface B<in T>
-{
-       A<A<T>> A { get; }
-}
diff --git a/mcs/errors/gcs1961-5.cs b/mcs/errors/gcs1961-5.cs
deleted file mode 100644 (file)
index 5c92c26..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>.C()'
-// Line: 9
-// Compiler options: -langversion:future
-
-interface A<T>
-{
-}
-
-interface B<in T>
-{
-       A<T> C();
-}
diff --git a/mcs/errors/gcs1961-6.cs b/mcs/errors/gcs1961-6.cs
deleted file mode 100644 (file)
index b0fee16..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>.C()'
-// Line: 9
-// Compiler options: -langversion:future
-
-interface A<T>
-{
-}
-
-interface B<in T>
-{
-       A<A<T>> C();
-}
diff --git a/mcs/errors/gcs1961-7.cs b/mcs/errors/gcs1961-7.cs
deleted file mode 100644 (file)
index 51a69a2..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>.C(A<T>)'
-// Line: 9
-// Compiler options: -langversion:future
-
-interface A<T>
-{
-}
-
-interface B<in T>
-{
-       void C(A<T> a);
-}
diff --git a/mcs/errors/gcs1961-8.cs b/mcs/errors/gcs1961-8.cs
deleted file mode 100644 (file)
index 068a586..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>.C(A<A<T>>)'
-// Line: 9
-// Compiler options: -langversion:future
-
-interface A<T>
-{
-}
-
-interface B<in T>
-{
-       void C(A<A<T>> a);
-}
diff --git a/mcs/errors/gcs1961-9.cs b/mcs/errors/gcs1961-9.cs
deleted file mode 100644 (file)
index e0378b9..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>()'
-// Line: 9
-// Compiler options: -langversion:future
-
-interface A<T>
-{
-}
-
-delegate A<T> B<in T> ();
diff --git a/mcs/errors/gcs1961.cs b/mcs/errors/gcs1961.cs
deleted file mode 100644 (file)
index 8450e2f..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// CS1961: The contravariant type parameter `T' must be covariantly valid on `A<T>.B()'
-// Line: 7
-// Compiler options: -langversion:future
-
-interface A<in T>
-{
-       T B();
-}
diff --git a/mcs/errors/gcs3001.cs b/mcs/errors/gcs3001.cs
deleted file mode 100644 (file)
index 242fd5f..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// CS3001: Argument type `sbyte' is not CLS-compliant
-// Line: 9
-// Compiler options: -warnaserror -warn:1
-
-using System;
-[assembly:CLSCompliant (true)]
-
-public static class CLSClass
-{
-       public static void Foo (this sbyte value) { }
-}
diff --git a/mcs/errors/gcs3002.cs b/mcs/errors/gcs3002.cs
deleted file mode 100644 (file)
index e1a0d55..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS3002: Return type of `CLSClass.Foo()' is not CLS-compliant
-// Line: 10
-// Compiler options: -warnaserror -warn:1
-
-using System;
-[assembly:CLSCompliant(true)]
-
-public class CLSClass
-{
-       protected ulong? Foo()
-       {
-               return 5;
-       }
-}
diff --git a/mcs/errors/gcs3003.cs b/mcs/errors/gcs3003.cs
deleted file mode 100644 (file)
index b7fea9e..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// CS3003: Type of `S.test2' is not CLS-compliant
-// Line: 11
-// Compiler options: -unsafe -warnaserror -warn:1
-
-using System;
-
-[assembly: CLSCompliant (true)]
-
-public unsafe struct S
-{
-    public fixed bool test2 [4];
-}
diff --git a/mcs/errors/gcs3005.cs b/mcs/errors/gcs3005.cs
deleted file mode 100644 (file)
index 2abd8cb..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// CS3005: Identifier `CLSClass.Method<T>(int)' differing only in case is not CLS-compliant
-// Line: 12
-// Compiler options: -warnaserror
-
-[assembly:System.CLSCompliant (true)]
-
-public class BaseClass {
-        public int method;
-}
-
-public class CLSClass : BaseClass {
-        public static void Method<T>(int arg) {}
-}
diff --git a/mcs/errors/gcs3009.cs b/mcs/errors/gcs3009.cs
deleted file mode 100644 (file)
index d562140..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// CS3009: `C': base type `C<ulong>' is not CLS-compliant
-// Line: 14
-// Compiler options: -warnaserror -warn:1
-
-using System;
-[assembly:CLSCompliant(true)]
-
-public class C<T>
-{
-}
-
-public class C : C<ulong>
-{
-}
diff --git a/mcs/errors/gcs3019.cs b/mcs/errors/gcs3019.cs
deleted file mode 100644 (file)
index 0c829a7..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// CS3019: CLS compliance checking will not be performed on `T' because it is not visible from outside this assembly
-// Line: 8
-// Compiler options: -warnaserror -warn:2
-
-using System;
-[assembly:CLSCompliant(true)]
-
-public class CLSClass<[CLSCompliant (false)] T>
-{
-}
\ No newline at end of file
diff --git a/mcs/errors/gcs3024-2.cs b/mcs/errors/gcs3024-2.cs
deleted file mode 100644 (file)
index dd0f96f..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-// CS3024: Constraint type `A' is not CLS-compliant
-// Line: 15
-// Compiler options: -warn:1 -warnaserror
-
-using System;
-[assembly:CLSCompliant (true)]
-
-[CLSCompliant (false)]
-public abstract class A
-{
-}
-
-public class C
-{
-       public static void Foo<T>() where T : A
-       {
-       }
-}
-
diff --git a/mcs/errors/gcs3024.cs b/mcs/errors/gcs3024.cs
deleted file mode 100644 (file)
index 5f27743..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-// CS3024: Constraint type `I' is not CLS-compliant
-// Line: 13
-// Compiler options: -warn:1 -warnaserror
-
-using System;
-[assembly:CLSCompliant (true)]
-
-[CLSCompliant (false)]
-public interface I
-{
-}
-
-public class C<T> where T : I
-{
-}
-
index a1ba7ec4daa76f5afb7f53022f53f7b6d99e9c37..69d6f08ed281bd3cdb19619454244af8d296aa9d 100644 (file)
@@ -22,10 +22,18 @@ cs1540-6.cs NO ERROR
 dcs0165.cs NO ERROR # Bug 593369
 
 # all the following are from bug #628673
+cs0122-35.cs
+cs0012.cs
+cs0012-2.cs
+cs0012-3.cs NO ERROR
+cs0012-4.cs NO ERROR
+cs0012-5.cs NO ERROR
+cs0012-6.cs
+cs0012-7.cs
+cs0012-8.cs
+cs0012-9.cs
+cs0012-10.cs
 dcs1979.cs
-gcs0122-2.cs
-gcs0307-6.cs
-gcs0308-7.cs
 cs0023-11.cs
 cs0111-3.cs
 cs0122-19.cs
@@ -33,6 +41,9 @@ cs0122-28.cs
 cs0122-8.cs
 cs0168-2.cs
 cs0177-8.cs NO ERROR
+cs0307-6.cs
+cs0308-7.cs
+cs0315.cs NO ERROR
 cs0520.cs
 cs1501-2.cs NO ERROR # Needs clarification
 cs1509.cs
index 85626264cce1671e6e0e2d6abb1ffc515af38712..ad781bcb9d381b76ed500da104106f6e11fb604f 100644 (file)
@@ -20,9 +20,7 @@ cs0457.cs
 cs1540-6.cs NO ERROR Is it real error
 
 # all the following are from bug #628673
-gcs0122-2.cs
-gcs0307-6.cs
-gcs0308-7.cs
+cs0122-35.cs
 cs0012.cs
 cs0012-2.cs
 cs0012-3.cs NO ERROR
@@ -40,6 +38,9 @@ cs0122-28.cs
 cs0122-8.cs
 cs0168-2.cs
 cs0177-8.cs NO ERROR
+cs0307-6.cs
+cs0308-7.cs
+cs0315.cs NO ERROR
 cs0520.cs
 cs1501-2.cs NO ERROR # Needs clarification
 cs1509.cs