~/f/mono-core/RPMS.2017 ~/f/mono-core ~/f/mono-core RPMS.2017/mono-core-6.12.0-0.0.x86_64.rpm RPMS/mono-core-6.12.0-0.0.x86_64.rpm differ: byte 225, line 1 Comparing mono-core-6.12.0-0.0.x86_64.rpm to mono-core-6.12.0-0.0.x86_64.rpm comparing the rpm tags of mono-core --- old-rpm-tags +++ new-rpm-tags @@ -961 +961 @@ -/usr/bin/mono-boehm a041b82415a6b5c787fb3aeddf2a9508565048ca5d66fadffaa540d4eba18c16 0 +/usr/bin/mono-boehm 0704efeee363bcdb9b200646efd33eb3ede1c389f9b382281da21d7603596d42 0 @@ -964 +964 @@ -/usr/bin/mono-sgen 62289bbb1cbd8af1ec0681b529818a0595788208ee61b27e79350cd995e104fb 0 +/usr/bin/mono-sgen 8af9c0fe7c908aaec993add5687275e2d00a4c0ad41582b071d4e4917f746ab9 0 @@ -1115 +1115 @@ -/usr/lib/mono/4.5/Microsoft.CodeAnalysis.CSharp.dll.so 2f8e49bdcb42199c9a8be4be549d97ba8b7d334966263366f7effd6b8cdffab2 0 +/usr/lib/mono/4.5/Microsoft.CodeAnalysis.CSharp.dll.so b430f3e17772bdaed0cbbfe9604a51e8fcc95e02e61b9dbb87fc5116bcd8cb1c 0 @@ -1119 +1119 @@ -/usr/lib/mono/4.5/Microsoft.CodeAnalysis.dll.so 70592c7325d2949fdabb830d755df401e4d43102ff2a3e8b180e167a86a3be78 0 +/usr/lib/mono/4.5/Microsoft.CodeAnalysis.dll.so 41858941b25be43a89f4223bd423a43fac0678c31534303387abf367c801afce 0 @@ -1133 +1133 @@ -/usr/lib/mono/4.5/System.Collections.Immutable.dll.so e80e3d078d73fb1d1c103597cda004e93251ff7342c6cb08592429d570c241f5 0 +/usr/lib/mono/4.5/System.Collections.Immutable.dll.so 222fc03e0c5e8cef3ecb83212a4ee5385788b4d379aa9597f977c3d9ed044720 0 @@ -1152 +1152 @@ -/usr/lib/mono/4.5/System.Reflection.Metadata.dll.so 39377ce241f4a012047eb783bc696a7fae331d02caa15ce6bd7ce735e3595e73 0 +/usr/lib/mono/4.5/System.Reflection.Metadata.dll.so 71c0f08b4605d01c540f3fffdf1d0a1bb96663cd9e1c0fd89cb7fce0743b1ad8 0 @@ -1169,2 +1169,2 @@ -/usr/lib/mono/4.5/al.exe 18cd1d71a0781b1c442a7f386936030903d353752c1ae8851368a086ae28e8c5 0 -/usr/lib/mono/4.5/al.pdb 7c5ef5a9a66d1a557e23f496d04c96a538fcb9c683431bd0cf90ea5573fc31f9 0 +/usr/lib/mono/4.5/al.exe 206e3416fe7203c674f480188e2381d3fc66a1fc7588a44540c9f7f5e0970919 0 +/usr/lib/mono/4.5/al.pdb e0b5e7655c5022d45d1e59e3827d4dd8d461ceb27e50c14e46246b90ea22a194 0 @@ -1181 +1181 @@ -/usr/lib/mono/4.5/csc.exe.so c5177d94e906d635266ce11b1d483b0adc842d2bb81b9d0f6f235e7d557b6ce3 0 +/usr/lib/mono/4.5/csc.exe.so 453dccbcd75c70debe3a2c26f5999aafb06f2876f226d62e6aa93d7544643577 0 @@ -1189,7 +1189,7 @@ -/usr/lib/mono/4.5/gacutil.exe d13df267a2d5f8cf622a6e4f3670d4274d350333d3360924b2039bfa0484400b 0 -/usr/lib/mono/4.5/gacutil.pdb 9587214873da754536edf493ba6283de8d927a63bd98ebf5adab37cb580965ca 0 -/usr/lib/mono/4.5/ikdasm.exe 5d17496429d36e07d2812f97c814ea576cdef2bfd0acd344e8bed231a2950e72 0 -/usr/lib/mono/4.5/ikdasm.pdb 4fa05db904b6ededba8f66eb835213e18f07a4620adc41ae1e4a76016cbd782a 0 -/usr/lib/mono/4.5/mcs.exe 7fe865b8a3433a0e8d6a40621928cc930cd36fd0c198337131e1e986cf5c6fc5 0 -/usr/lib/mono/4.5/mcs.exe.so 8a7a763934b83eabceaaf44e3bf245778a2b9634ffe1f9919b4ba2f4b127950f 0 -/usr/lib/mono/4.5/mcs.pdb 4bd487c78323de003571bad9477b3c1c81a88b08ab5b0b7531b63d97320a54d7 0 +/usr/lib/mono/4.5/gacutil.exe 2fd5ccbfbb2132ffdc700ef94cfe90d83178d1f471821a4cbdd9b06143ad1c8e 0 +/usr/lib/mono/4.5/gacutil.pdb 120e934fab575ac7190fe9e00854797169d932e322ab28becc9be83eeafdcace 0 +/usr/lib/mono/4.5/ikdasm.exe 821e03d375dc23e54cd6f9f72a49d8285b8f23d47668057f7d523a36e8ee0183 0 +/usr/lib/mono/4.5/ikdasm.pdb 444018f5ba18a220918a902e2049e322d7d5fb341e3aab558f1100911675b4e6 0 +/usr/lib/mono/4.5/mcs.exe 3f6286170d44073cc100c8ef03d87788e19efd23741f075e2d8959bc283ada5d 0 +/usr/lib/mono/4.5/mcs.exe.so a1ad8affc334208bbaea6b7569324712f82b4904a8efdd672cde347d2deeea38 0 +/usr/lib/mono/4.5/mcs.pdb 028c0c992ca8fc3d9cec38431e7d91c65b27ad65cf6178966b43721911a07ef1 0 @@ -1199 +1199 @@ -/usr/lib/mono/4.5/mscorlib.dll.so a7679c569d18d2826d3578a6b8786696565535cbee81f07274576235156c36b7 0 +/usr/lib/mono/4.5/mscorlib.dll.so 5f16d69cee79d351e59ea0a7ea8718620c3e9501771ea33f95a6c08ebadecba2 0 comparing rpmtags comparing RELEASE comparing PROVIDES comparing scripts comparing filelist comparing file checksum creating rename script RPM file checksum differs. Extracting packages /usr/bin/mono-boehm differs in ELF sections --- old /usr/bin/mono-boehm (objdump) +++ new /usr/bin/mono-boehm (objdump) @@ -199426,9 +199426,9 @@ 30c060 74696f6e 733a0063 6f6e6669 675f6469 tions:.config_di 30c070 723a004d 4f4e4f5f 50415448 006d6163 r:.MONO_PATH.mac 30c080 68696e65 636f6e66 69673a00 656e763a hineconfig:.env: - 30c090 006c6962 72617279 3a005361 74205365 .library:.Sat Se - 30c0a0 70203330 2030393a 31353a34 34205554 p 30 09:15:44 UT - 30c0b0 43203230 32330000 556e6b6e 6f776e20 C 2023..Unknown + 30c090 006c6962 72617279 3a005475 65204e6f .library:.Tue No + 30c0a0 76202031 2032323a 33323a35 31205554 v 1 22:32:51 UT + 30c0b0 43203230 33390000 556e6b6e 6f776e20 C 2039..Unknown 30c0c0 73747265 616d206f 6e20656d 62656464 stream on embedd 30c0d0 65642070 61636b61 67653a20 25730a00 ed package: %s.. 30c0e0 6d696e69 2d72756e 74696d65 2e630074 mini-runtime.c.t /usr/bin/mono-sgen differs in ELF sections --- old /usr/bin/mono-sgen (objdump) +++ new /usr/bin/mono-sgen (objdump) @@ -210716,9 +210716,9 @@ 339060 74696f6e 733a0063 6f6e6669 675f6469 tions:.config_di 339070 723a004d 4f4e4f5f 50415448 006d6163 r:.MONO_PATH.mac 339080 68696e65 636f6e66 69673a00 656e763a hineconfig:.env: - 339090 006c6962 72617279 3a005361 74205365 .library:.Sat Se - 3390a0 70203330 2030393a 31363a31 34205554 p 30 09:16:14 UT - 3390b0 43203230 32330000 556e6b6e 6f776e20 C 2023..Unknown + 339090 006c6962 72617279 3a005475 65204e6f .library:.Tue No + 3390a0 76202031 2032323a 33333a32 33205554 v 1 22:33:23 UT + 3390b0 43203230 33390000 556e6b6e 6f776e20 C 2039..Unknown 3390c0 73747265 616d206f 6e20656d 62656464 stream on embedd 3390d0 65642070 61636b61 67653a20 25730a00 ed package: %s.. 3390e0 6d696e69 2d72756e 74696d65 2e630074 mini-runtime.c.t /usr/lib/mono/4.5/Microsoft.CodeAnalysis.CSharp.dll.so differs in ELF sections --- old /usr/lib/mono/4.5/Microsoft.CodeAnalysis.CSharp.dll.so (objdump) +++ new /usr/lib/mono/4.5/Microsoft.CodeAnalysis.CSharp.dll.so (objdump) @@ -771920,9 +771920,9 @@ bc8b20 b0014483 16458615 458e1445 8f131c0a ..D..E..E..E.... bc8b30 44080345 08064508 0e45080f 470c0708 D..E..E..E..G... bc8b40 410b362e 31322e30 2e313232 20287461 A.6.12.0.122 (ta - bc8b50 7262616c 6c205361 74205365 70203330 rball Sat Sep 30 - bc8b60 2030393a 31363a31 34205554 43203230 09:16:14 UTC 20 - bc8b70 32332900 30444135 43394331 2d443443 23).0DA5C9C1-D4C + bc8b50 7262616c 6c205475 65204e6f 76202031 rball Tue Nov 1 + bc8b60 2032323a 33333a32 33205554 43203230 22:33:23 UTC 20 + bc8b70 33392900 30444135 43394331 2d443443 39).0DA5C9C1-D4C bc8b80 322d3435 42332d39 3039452d 37454243 2-45B3-909E-7EBC bc8b90 37353644 38423433 004d6963 726f736f 756D8B43.Microso bc8ba0 66742e43 6f646541 6e616c79 7369732e ft.CodeAnalysis. @@ -782826,7 +782826,7 @@ bf4120 00b07700 00000000 00b07700 00000000 ..w.......w..... bf4130 f89c7400 00000000 a1380000 e0320400 ..t......8...2.. bf4140 bb4d0000 ab870000 00000000 20000000 .M.......... ... - bf4150 ff695116 3f000000 e50c4200 80000000 .iQ.?.....B..... + bf4150 ff695116 07000000 e50c4200 80000000 .iQ.......B..... bf4160 08000000 08000000 08000000 09000000 ................ bf4170 ffff7f00 00000000 05000000 19000000 ................ bf4180 00000000 00000000 00000000 00000000 ................ @@ -782838,5 +782838,5 @@ bf41e0 00000000 00000000 00000000 00000000 ................ bf41f0 00000000 00000000 00000000 00000000 ................ bf4200 00000000 00000000 00000000 00000000 ................ - bf4210 00000000 00000000 4fe226fb ee4be0ed ........O.&..K.. - bf4220 b24c5ab8 d9fe23bc .LZ...#. + bf4210 00000000 00000000 d4bda944 a69d56c5 ...........D..V. + bf4220 cc1b9b33 e32265ff ...3."e. /usr/lib/mono/4.5/Microsoft.CodeAnalysis.dll.so differs in ELF sections --- old /usr/lib/mono/4.5/Microsoft.CodeAnalysis.dll.so (objdump) +++ new /usr/lib/mono/4.5/Microsoft.CodeAnalysis.dll.so (objdump) @@ -82804,7 +82804,7 @@ 1443c0 48894424 70488bf8 e8c11118 00488b44 H.D$pH.......H.D 1443d0 24704c8b 34244c8b 7c240848 81c49800 $pL.4$L.|$.H.... 1443e0 0000c308 4c8b7424 104c8b7c 24184883 ....L.t$.L.|$.H. - 1443f0 b040bce3 7f5c743d bf2a0100 00e8fed7 .@...\t=.*...... + 1443f0 b040bce3 7f5c743d bf2a0100 00e85e64 .@...\t=.*....^d 144400 48afbc9a f2d77a3e 0f1f8400 00000000 H.....z>........ 144410 4881ec08 0d000049 8b05427e 3700f700 H......I..B~7... 144420 01000000 7405e8f5 98170049 8b3d0e7f ....t......I.=.. @@ -145320,7 +145320,7 @@ 238700 e86d5908 00488bd0 488b7424 50488b7c .mY..H..H.t$PH.| 238710 2458f20f 10442460 f20f1142 10e85cba $X...D$`...B..\. 238720 09004c8b 3c244883 c468c38b 000000bf ..L.<$H..h...... - 238730 fca9f1d2 4d62503f 38beb900 0000bfbb ....MbP?8....... + 238730 fca9f1d2 4d62503f 17beb900 0000bfbb ....MbP?........ 238740 fca9f1d2 4d62503f 0f1f8400 00000000 ....MbP?........ 238750 4883ec08 4883c408 c30f1f80 00000000 H...H........... 238760 4883ec38 48891c24 4c897424 084c897c H..8H..$L.t$.L.| @@ -149469,7 +149469,7 @@ 248a50 8bc04883 c408c366 0f1f8400 00000000 ..H....f........ 248a60 4883ec08 498b05f5 372700f7 00010000 H...I...7'...... 248a70 007405e8 a8520700 f30f1005 10000000 .t...R.......... - 248a80 e88dbe08 008bc048 83c408c3 4c894424 .......H....L.D$ + 248a80 e88dbe08 008bc048 83c408c3 81000000 .......H........ 248a90 0000807f 66662e0f 1f840000 00000090 ....ff.......... 248aa0 4883ec08 498b05b5 372700f7 00010000 H...I...7'...... 248ab0 007405e8 68520700 498b3dc9 192800be .t..hR..I.=..(.. @@ -304734,9 +304734,9 @@ 4a7600 8f211c0a 44080e45 080f470c 0708410b .!..D..E..G...A. 4a7610 170c0708 9001470e d001448f 1a1c0a44 ......G...D....D 4a7620 080f470c 0708410b 362e3132 2e302e31 ..G...A.6.12.0.1 - 4a7630 32322028 74617262 616c6c20 53617420 22 (tarball Sat - 4a7640 53657020 33302030 393a3136 3a313420 Sep 30 09:16:14 - 4a7650 55544320 32303233 29003342 41364445 UTC 2023).3BA6DE + 4a7630 32322028 74617262 616c6c20 54756520 22 (tarball Tue + 4a7640 4e6f7620 20312032 323a3333 3a323320 Nov 1 22:33:23 + 4a7650 55544320 32303339 29003342 41364445 UTC 2039).3BA6DE 4a7660 36312d33 3038312d 34423045 2d414538 61-3081-4B0E-AE8 4a7670 462d3845 46323145 39453541 4334004d F-8EF21E9E5AC4.M 4a7680 6963726f 736f6674 2e436f64 65416e61 icrosoft.CodeAna @@ -309811,7 +309811,7 @@ 4bc120 00902d00 00000000 00902d00 00000000 ..-.......-..... 4bc130 18dd2b00 00000000 391f0000 b8520200 ..+.....9....R.. 4bc140 1e2b0000 ce3e0000 00000000 20000000 .+...>...... ... - 4bc150 ff695116 3f000000 20461b00 80000000 .iQ.?... F...... + 4bc150 ff695116 07000000 20461b00 80000000 .iQ..... F...... 4bc160 08000000 08000000 08000000 09000000 ................ 4bc170 ffff7f00 00000000 05000000 19000000 ................ 4bc180 00000000 00000000 00000000 00000000 ................ @@ -309823,5 +309823,5 @@ 4bc1e0 00000000 00000000 00000000 00000000 ................ 4bc1f0 00000000 00000000 00000000 00000000 ................ 4bc200 00000000 00000000 00000000 00000000 ................ - 4bc210 00000000 00000000 26ad42c4 916a68f5 ........&.B..jh. - 4bc220 cfaa0eb0 b1782504 .....x%. + 4bc210 00000000 00000000 11273c4b 65541d0e .........'. PE32 Mono/.Net assembly: /usr/lib/mono/4.5/al.exe Cannot compare, no monodis installed /usr/lib/mono/4.5/al.pdb differs at offset '113' (Microsoft Rosyln C# debugging symbols version 1.0) --- old /usr/lib/mono/4.5/al.pdb (hex) +++ new /usr/lib/mono/4.5/al.pdb (hex) @@ -1,8 +1,8 @@ 00000040 a4 15 00 00 23 53 74 72 69 6e 67 73 00 00 00 00 |....#Strings....| 00000050 0c b5 01 00 04 00 00 00 23 55 53 00 10 b5 01 00 |........#US.....| 00000060 20 00 00 00 23 47 55 49 44 00 00 00 30 b5 01 00 | ...#GUID...0...| -00000070 24 78 01 00 23 42 6c 6f 62 00 00 00 71 fd ca 24 |$x..#Blob...q..$| -00000080 14 18 05 49 9c 78 d9 45 47 99 8b d0 50 1b eb e0 |...I.x.EG...P...| +00000070 5c 78 01 00 23 42 6c 6f 62 00 00 00 12 04 45 13 |\x..#Blob.....E.| +00000080 05 2d c0 49 a0 8e f0 16 14 4a 0d 02 b2 ee b7 9d |.-.I.....J......| 00000090 0e 0e 00 06 57 bf b7 3f 09 1e 00 00 01 00 00 00 |....W..?........| 000000a0 cb 00 00 00 7b 01 00 00 be 07 00 00 2f 0f 00 00 |....{......./...| 000000b0 e8 0d 00 00 3d 00 00 00 75 04 00 00 2a 02 00 00 |....=...u...*...| @@ -14,20 +14,20 @@ 00000110 0d 00 00 00 00 00 00 00 02 00 04 01 00 00 00 00 |................| 00000120 00 00 3f 00 00 00 00 00 00 00 04 00 5d 00 00 00 |..?.........]...| 00000130 2f 0f 00 00 f0 10 00 00 f7 06 00 00 26 00 00 00 |/...........&...| -00000140 d5 00 00 00 95 00 00 00 01 00 a3 00 00 00 02 00 |................| -00000150 cd 08 00 00 01 00 db 08 00 00 02 00 d9 0a 00 00 |................| -00000160 01 00 e7 0a 00 00 02 00 53 0f 00 00 01 00 61 0f |........S.....a.| -00000170 00 00 02 00 36 10 00 00 01 00 44 10 00 00 02 00 |....6.....D.....| -00000180 99 10 00 00 01 00 a7 10 00 00 02 00 87 12 00 00 |................| -00000190 01 00 95 12 00 00 02 00 26 13 00 00 01 00 34 13 |........&.....4.| -000001a0 00 00 02 00 cc 13 00 00 01 00 da 13 00 00 02 00 |................| -000001b0 d3 15 00 00 01 00 e1 15 00 00 02 00 5d 16 00 00 |............]...| -000001c0 01 00 6b 16 00 00 02 00 e0 16 00 00 01 00 ee 16 |..k.............| -000001d0 00 00 02 00 bb 1d 00 00 01 00 c9 1d 00 00 02 00 |................| -000001e0 37 23 00 00 01 00 45 23 00 00 02 00 3f 2a 00 00 |7#....E#....?*..| -000001f0 01 00 4d 2a 00 00 02 00 7f 2c 00 00 01 00 8d 2c |..M*.....,.....,| -00000200 00 00 02 00 50 2d 00 00 01 00 5e 2d 00 00 02 00 |....P-....^-....| -00000210 48 2e 00 00 01 00 56 2e 00 00 02 00 56 33 00 00 |H.....V.....V3..| -00000220 01 00 64 33 00 00 02 00 34 36 00 00 01 00 42 36 |..d3....46....B6| -00000230 00 00 02 00 d7 37 00 00 01 00 e5 37 00 00 02 00 |.....7.....7....| +00000140 d5 00 00 00 67 00 00 00 01 00 73 00 00 00 02 00 |....g.....s.....| +00000150 68 01 00 00 01 00 75 01 00 00 02 00 73 0a 00 00 |h.....u.....s...| +00000160 01 00 80 0a 00 00 02 00 6c 0b 00 00 01 00 79 0b |........l.....y.| +00000170 00 00 02 00 f7 0b 00 00 01 00 04 0c 00 00 02 00 |................| +00000180 48 0e 00 00 01 00 55 0e 00 00 02 00 74 16 00 00 |H.....U.....t...| +00000190 01 00 81 16 00 00 02 00 ad 1c 00 00 01 00 ba 1c |................| +000001a0 00 00 02 00 5b 1d 00 00 01 00 68 1d 00 00 02 00 |....[.....h.....| +000001b0 e1 20 00 00 01 00 ee 20 00 00 02 00 e0 25 00 00 |. ..... .....%..| +000001c0 01 00 ed 25 00 00 02 00 f6 27 00 00 01 00 03 28 |...%.....'.....(| +000001d0 00 00 02 00 a6 29 00 00 01 00 b3 29 00 00 02 00 |.....).....)....| +000001e0 27 34 00 00 01 00 34 34 00 00 02 00 34 4f 00 00 |'4....44....4O..| +000001f0 01 00 43 4f 00 00 02 00 bd 55 00 00 01 00 cc 55 |..CO.....U.....U| +00000200 00 00 02 00 26 59 00 00 01 00 35 59 00 00 02 00 |....&Y....5Y....| +00000210 2c 5b 00 00 01 00 3b 5b 00 00 02 00 5d 62 00 00 |,[....;[....]b..| +00000220 01 00 6c 62 00 00 02 00 2e 65 00 00 01 00 3d 65 |..lb.....e....=e| +00000230 00 00 02 00 a8 66 00 00 01 00 b7 66 00 00 02 00 |.....f.....f....| 00000240 /usr/lib/mono/4.5/csc.exe.so differs in ELF sections --- old /usr/lib/mono/4.5/csc.exe.so (objdump) +++ new /usr/lib/mono/4.5/csc.exe.so (objdump) @@ -5298,8 +5298,8 @@ 15ac0 448c0544 8e04448f 031c0a44 08034408 D..D..D....D..D. 15ad0 0c44080e 44080f41 08060c07 08410b36 .D..D..A.....A.6 15ae0 2e31322e 302e3132 32202874 61726261 .12.0.122 (tarba - 15af0 6c6c2053 61742053 65702033 30203039 ll Sat Sep 30 09 - 15b00 3a31363a 31342055 54432032 30323329 :16:14 UTC 2023) + 15af0 6c6c2054 7565204e 6f762020 31203232 ll Tue Nov 1 22 + 15b00 3a33333a 32332055 54432032 30333929 :33:23 UTC 2039) 15b10 00453641 34374330 462d4646 32392d34 .E6A47C0F-FF29-4 15b20 4345312d 42463439 2d454645 46384531 CE1-BF49-EFEF8E1 15b30 33424531 46006373 6300 3BE1F.csc. @@ -5409,7 +5409,7 @@ 17120 00e00000 00000000 00e00000 00000000 ................ 17130 18d20000 00000000 02010000 a0100000 ................ 17140 12010000 c2000000 00000000 20000000 ............ ... - 17150 ff695116 3f000000 ef6c0000 80000000 .iQ.?....l...... + 17150 ff695116 07000000 ef6c0000 80000000 .iQ......l...... 17160 08000000 08000000 08000000 09000000 ................ 17170 ffff7f00 00000000 05000000 19000000 ................ 17180 00000000 00000000 00000000 00000000 ................ @@ -5421,5 +5421,5 @@ 171e0 00000000 00000000 00000000 00000000 ................ 171f0 00000000 00000000 00000000 00000000 ................ 17200 00000000 00000000 00000000 00000000 ................ - 17210 00000000 00000000 3ca03715 b4fa8daa ........<.7..... - 17220 43939a07 0ed46111 C.....a. + 17210 00000000 00000000 56ef975e 01cca6be ........V..^.... + 17220 889eb9d7 fef2811b ........ PE32 Mono/.Net assembly: /usr/lib/mono/4.5/gacutil.exe Cannot compare, no monodis installed /usr/lib/mono/4.5/gacutil.pdb differs at offset '113' (Microsoft Rosyln C# debugging symbols version 1.0) --- old /usr/lib/mono/4.5/gacutil.pdb (hex) +++ new /usr/lib/mono/4.5/gacutil.pdb (hex) @@ -1,8 +1,8 @@ 00000040 d4 15 00 00 23 53 74 72 69 6e 67 73 00 00 00 00 |....#Strings....| 00000050 14 a3 01 00 04 00 00 00 23 55 53 00 18 a3 01 00 |........#US.....| 00000060 20 00 00 00 23 47 55 49 44 00 00 00 38 a3 01 00 | ...#GUID...8...| -00000070 c0 70 01 00 23 42 6c 6f 62 00 00 00 64 96 5f f2 |.p..#Blob...d._.| -00000080 d7 36 1d 4d 99 08 1d 22 ec 51 29 b0 fd 06 eb da |.6.M...".Q).....| +00000070 fc 70 01 00 23 42 6c 6f 62 00 00 00 8b e8 83 7f |.p..#Blob.......| +00000080 3e fa 71 4d 85 17 94 26 b8 d7 1e 22 4c 8b 25 b1 |>.qM...&..."L.%.| 00000090 d9 0c 00 06 57 df b7 3f 09 1e 00 00 01 00 00 00 |....W..?........| 000000a0 b9 00 00 00 6c 01 00 00 44 07 00 00 fb 0d 00 00 |....l...D.......| 000000b0 fa 0c 00 00 33 00 00 00 4b 04 00 00 01 02 00 00 |....3...K.......| @@ -14,20 +14,20 @@ 00000110 0d 00 00 00 00 00 00 00 02 00 04 01 00 00 00 00 |................| 00000120 00 00 3f 00 00 00 00 00 00 00 04 00 5a 00 00 00 |..?.........Z...| 00000130 fb 0d 00 00 3c 10 00 00 0f 07 00 00 26 00 00 00 |....<.......&...| -00000140 d0 00 00 00 95 00 00 00 01 00 a3 00 00 00 02 00 |................| -00000150 cd 08 00 00 01 00 db 08 00 00 02 00 d9 0a 00 00 |................| -00000160 01 00 e7 0a 00 00 02 00 53 0f 00 00 01 00 61 0f |........S.....a.| -00000170 00 00 02 00 36 10 00 00 01 00 44 10 00 00 02 00 |....6.....D.....| -00000180 99 10 00 00 01 00 a7 10 00 00 02 00 87 12 00 00 |................| -00000190 01 00 95 12 00 00 02 00 26 13 00 00 01 00 34 13 |........&.....4.| -000001a0 00 00 02 00 cc 13 00 00 01 00 da 13 00 00 02 00 |................| -000001b0 d3 15 00 00 01 00 e1 15 00 00 02 00 5d 16 00 00 |............]...| -000001c0 01 00 6b 16 00 00 02 00 e0 16 00 00 01 00 ee 16 |..k.............| -000001d0 00 00 02 00 bb 1d 00 00 01 00 c9 1d 00 00 02 00 |................| -000001e0 37 23 00 00 01 00 45 23 00 00 02 00 3f 2a 00 00 |7#....E#....?*..| -000001f0 01 00 4d 2a 00 00 02 00 7f 2c 00 00 01 00 8d 2c |..M*.....,.....,| -00000200 00 00 02 00 50 2d 00 00 01 00 5e 2d 00 00 02 00 |....P-....^-....| -00000210 48 2e 00 00 01 00 56 2e 00 00 02 00 56 33 00 00 |H.....V.....V3..| -00000220 01 00 64 33 00 00 02 00 34 36 00 00 01 00 42 36 |..d3....46....B6| -00000230 00 00 02 00 d7 37 00 00 01 00 e5 37 00 00 02 00 |.....7.....7....| +00000140 d0 00 00 00 67 00 00 00 01 00 73 00 00 00 02 00 |....g.....s.....| +00000150 68 01 00 00 01 00 75 01 00 00 02 00 73 0a 00 00 |h.....u.....s...| +00000160 01 00 80 0a 00 00 02 00 6c 0b 00 00 01 00 79 0b |........l.....y.| +00000170 00 00 02 00 f7 0b 00 00 01 00 04 0c 00 00 02 00 |................| +00000180 48 0e 00 00 01 00 55 0e 00 00 02 00 74 16 00 00 |H.....U.....t...| +00000190 01 00 81 16 00 00 02 00 ad 1c 00 00 01 00 ba 1c |................| +000001a0 00 00 02 00 5b 1d 00 00 01 00 68 1d 00 00 02 00 |....[.....h.....| +000001b0 e1 20 00 00 01 00 ee 20 00 00 02 00 e0 25 00 00 |. ..... .....%..| +000001c0 01 00 ed 25 00 00 02 00 f6 27 00 00 01 00 03 28 |...%.....'.....(| +000001d0 00 00 02 00 a6 29 00 00 01 00 b3 29 00 00 02 00 |.....).....)....| +000001e0 27 34 00 00 01 00 34 34 00 00 02 00 34 4f 00 00 |'4....44....4O..| +000001f0 01 00 43 4f 00 00 02 00 bd 55 00 00 01 00 cc 55 |..CO.....U.....U| +00000200 00 00 02 00 26 59 00 00 01 00 35 59 00 00 02 00 |....&Y....5Y....| +00000210 2c 5b 00 00 01 00 3b 5b 00 00 02 00 5d 62 00 00 |,[....;[....]b..| +00000220 01 00 6c 62 00 00 02 00 2e 65 00 00 01 00 3d 65 |..lb.....e....=e| +00000230 00 00 02 00 a8 66 00 00 01 00 b7 66 00 00 02 00 |.....f.....f....| 00000240 PE32 Mono/.Net assembly: /usr/lib/mono/4.5/ikdasm.exe Cannot compare, no monodis installed /usr/lib/mono/4.5/ikdasm.pdb differs at offset '113' (Microsoft Rosyln C# debugging symbols version 1.0) --- old /usr/lib/mono/4.5/ikdasm.pdb (hex) +++ new /usr/lib/mono/4.5/ikdasm.pdb (hex) @@ -1,8 +1,8 @@ 00000040 d0 18 00 00 23 53 74 72 69 6e 67 73 00 00 00 00 |....#Strings....| 00000050 a8 dc 01 00 04 00 00 00 23 55 53 00 ac dc 01 00 |........#US.....| 00000060 30 00 00 00 23 47 55 49 44 00 00 00 dc dc 01 00 |0...#GUID.......| -00000070 78 c2 01 00 23 42 6c 6f 62 00 00 00 16 e5 9e ce |x...#Blob.......| -00000080 67 82 e2 40 85 d1 35 c9 d1 e8 bb 5e 29 8d 02 80 |g..@..5....^)...| +00000070 bc c2 01 00 23 42 6c 6f 62 00 00 00 9a 82 b6 19 |....#Blob.......| +00000080 08 bb b4 48 9a 71 00 0c e6 bd 28 fc 2a a5 2f bd |...H.q....(.*./.| 00000090 15 0e 00 06 57 df b7 3f 09 1e 00 00 01 00 00 00 |....W..?........| 000000a0 c7 00 00 00 97 01 00 00 0c 08 00 00 8f 0f 00 00 |................| 000000b0 2b 0f 00 00 51 00 00 00 07 05 00 00 34 02 00 00 |+...Q.......4...| @@ -15,19 +15,19 @@ 00000120 00 00 ff 00 00 00 00 00 00 00 c4 00 63 00 00 00 |............c...| 00000130 8f 0f 00 00 60 12 00 00 a4 08 00 00 35 00 00 00 |....`.......5...| 00000140 e1 00 00 00 04 00 00 00 03 00 00 00 75 01 00 00 |............u...| -00000150 01 00 8c 01 00 00 02 00 59 15 00 00 01 00 6e 15 |........Y.....n.| -00000160 00 00 02 00 8e 1d 00 00 01 00 a3 1d 00 00 02 00 |................| -00000170 a1 1f 00 00 01 00 b6 1f 00 00 02 00 23 24 00 00 |............#$..| -00000180 01 00 38 24 00 00 02 00 01 25 00 00 01 00 16 25 |..8$.....%.....%| -00000190 00 00 02 00 6b 25 00 00 01 00 80 25 00 00 02 00 |....k%.....%....| -000001a0 60 27 00 00 01 00 75 27 00 00 02 00 06 28 00 00 |`'....u'.....(..| -000001b0 01 00 1b 28 00 00 02 00 b3 28 00 00 01 00 c8 28 |...(.....(.....(| -000001c0 00 00 02 00 c1 2a 00 00 01 00 d6 2a 00 00 02 00 |.....*.....*....| -000001d0 52 2b 00 00 01 00 67 2b 00 00 02 00 dd 2b 00 00 |R+....g+.....+..| -000001e0 01 00 f2 2b 00 00 02 00 a9 32 00 00 01 00 be 32 |...+.....2.....2| -000001f0 00 00 02 00 2c 38 00 00 01 00 41 38 00 00 02 00 |....,8....A8....| -00000200 3b 3f 00 00 01 00 50 3f 00 00 02 00 82 41 00 00 |;?....P?.....A..| -00000210 01 00 99 41 00 00 02 00 5c 42 00 00 01 00 73 42 |...A....\B....sB| -00000220 00 00 02 00 5d 43 00 00 01 00 74 43 00 00 02 00 |....]C....tC....| -00000230 74 48 00 00 01 00 8b 48 00 00 02 00 5b 4b 00 00 |tH.....H....[K..| +00000150 01 00 8c 01 00 00 02 00 45 15 00 00 01 00 5a 15 |........E.....Z.| +00000160 00 00 02 00 1d 16 00 00 01 00 32 16 00 00 02 00 |..........2.....| +00000170 30 1f 00 00 01 00 45 1f 00 00 02 00 31 20 00 00 |0.....E.....1 ..| +00000180 01 00 46 20 00 00 02 00 c3 20 00 00 01 00 d8 20 |..F ..... ..... | +00000190 00 00 02 00 1b 23 00 00 01 00 30 23 00 00 02 00 |.....#....0#....| +000001a0 4e 2b 00 00 01 00 63 2b 00 00 02 00 8f 31 00 00 |N+....c+.....1..| +000001b0 01 00 a4 31 00 00 02 00 44 32 00 00 01 00 59 32 |...1....D2....Y2| +000001c0 00 00 02 00 d1 35 00 00 01 00 e6 35 00 00 02 00 |.....5.....5....| +000001d0 d7 3a 00 00 01 00 ec 3a 00 00 02 00 f4 3c 00 00 |.:.....:.....<..| +000001e0 01 00 09 3d 00 00 02 00 ab 3e 00 00 01 00 c0 3e |...=.....>.....>| +000001f0 00 00 02 00 33 49 00 00 01 00 4a 49 00 00 02 00 |....3I....JI....| +00000200 6f 64 00 00 01 00 86 64 00 00 02 00 e9 6a 00 00 |od.....d.....j..| +00000210 01 00 00 6b 00 00 02 00 59 6e 00 00 01 00 70 6e |...k....Yn....pn| +00000220 00 00 02 00 66 70 00 00 01 00 7d 70 00 00 02 00 |....fp....}p....| +00000230 9e 77 00 00 01 00 b5 77 00 00 02 00 77 7a 00 00 |.w.....w....wz..| 00000240 PE32 Mono/.Net assembly: /usr/lib/mono/4.5/mcs.exe Cannot compare, no monodis installed /usr/lib/mono/4.5/mcs.exe.so differs in ELF sections --- old /usr/lib/mono/4.5/mcs.exe.so (objdump) +++ new /usr/lib/mono/4.5/mcs.exe.so (objdump) @@ -11,24464 +11,24464 @@ Contents of section .dynsym: 0278 00000000 00000000 00000000 00000000 ................ 0288 00000000 00000000 01000000 11000c00 ................ - 0298 00004600 00000000 00000000 00000000 ..F............. + 0298 00f04500 00000000 00000000 00000000 ..E............. Contents of section .dynstr: 02a8 006d6f6e 6f5f616f 745f6669 6c655f69 .mono_aot_file_i 02b8 6e666f00 nfo. Contents of section .rela.dyn: - 02c0 08004600 00000000 08000000 00000000 ..F............. - 02d0 28024600 00000000 30004600 00000000 (.F.....0.F..... + 02c0 08f04500 00000000 08000000 00000000 ..E............. + 02d0 28f24500 00000000 30f04500 00000000 (.E.....0.E..... 02e0 08000000 00000000 00100000 00000000 ................ - 02f0 38004600 00000000 08000000 00000000 8.F............. - 0300 48be2900 00000000 40004600 00000000 H.).....@.F..... - 0310 08000000 00000000 802d4500 00000000 .........-E..... - 0320 58004600 00000000 08000000 00000000 X.F............. - 0330 48862b00 00000000 60004600 00000000 H.+.....`.F..... - 0340 08000000 00000000 98ee2a00 00000000 ..........*..... - 0350 68004600 00000000 08000000 00000000 h.F............. - 0360 b87d2b00 00000000 70004600 00000000 .}+.....p.F..... + 02f0 38f04500 00000000 08000000 00000000 8.E............. + 0300 48be2900 00000000 40f04500 00000000 H.).....@.E..... + 0310 08000000 00000000 801d4500 00000000 ..........E..... + 0320 58f04500 00000000 08000000 00000000 X.E............. + 0330 78862b00 00000000 60f04500 00000000 x.+.....`.E..... + 0340 08000000 00000000 a8ee2a00 00000000 ..........*..... + 0350 68f04500 00000000 08000000 00000000 h.E............. + 0360 e07d2b00 00000000 70f04500 00000000 .}+.....p.E..... 0370 08000000 00000000 08b02a00 00000000 ..........*..... - 0380 78004600 00000000 08000000 00000000 x.F............. - 0390 70332b00 00000000 80004600 00000000 p3+.......F..... - 03a0 08000000 00000000 90ee2a00 00000000 ..........*..... - 03b0 88004600 00000000 08000000 00000000 ..F............. - 03c0 08ee2a00 00000000 90004600 00000000 ..*.......F..... - 03d0 08000000 00000000 10102b00 00000000 ..........+..... - 03e0 a0004600 00000000 08000000 00000000 ..F............. - 03f0 98842b00 00000000 a8004600 00000000 ..+.......F..... - 0400 08000000 00000000 40862b00 00000000 ........@.+..... - 0410 b0004600 00000000 08000000 00000000 ..F............. - 0420 90aa2a00 00000000 b8004600 00000000 ..*.......F..... - 0430 08000000 00000000 b7154500 00000000 ..........E..... - 0440 c0004600 00000000 08000000 00000000 ..F............. - 0450 85154500 00000000 00014600 00000000 ..E.......F..... - 0460 08000000 00000000 dc154500 00000000 ..........E..... - 0470 08014600 00000000 08000000 00000000 ..F............. - 0480 60be2900 00000000 10014600 00000000 `.).......F..... + 0380 78f04500 00000000 08000000 00000000 x.E............. + 0390 80332b00 00000000 80f04500 00000000 .3+.......E..... + 03a0 08000000 00000000 a0ee2a00 00000000 ..........*..... + 03b0 88f04500 00000000 08000000 00000000 ..E............. + 03c0 18ee2a00 00000000 90f04500 00000000 ..*.......E..... + 03d0 08000000 00000000 20102b00 00000000 ........ .+..... + 03e0 a0f04500 00000000 08000000 00000000 ..E............. + 03f0 c8842b00 00000000 a8f04500 00000000 ..+.......E..... + 0400 08000000 00000000 70862b00 00000000 ........p.+..... + 0410 b0f04500 00000000 08000000 00000000 ..E............. + 0420 90aa2a00 00000000 b8f04500 00000000 ..*.......E..... + 0430 08000000 00000000 8f0e4500 00000000 ..........E..... + 0440 c0f04500 00000000 08000000 00000000 ..E............. + 0450 5d0e4500 00000000 00f14500 00000000 ].E.......E..... + 0460 08000000 00000000 b40e4500 00000000 ..........E..... + 0470 08f14500 00000000 08000000 00000000 ..E............. + 0480 60be2900 00000000 10f14500 00000000 `.).......E..... 0490 08000000 00000000 8caa2a00 00000000 ..........*..... - 04a0 18014600 00000000 08000000 00000000 ..F............. - 04b0 90dc4400 00000000 20014600 00000000 ..D..... .F..... + 04a0 18f14500 00000000 08000000 00000000 ..E............. + 04b0 68d54400 00000000 20f14500 00000000 h.D..... .E..... 04c0 08000000 00000000 00b02a00 00000000 ..........*..... - 04d0 28014600 00000000 08000000 00000000 (.F............. - 04e0 00b02a00 00000000 30014600 00000000 ..*.....0.F..... + 04d0 28f14500 00000000 08000000 00000000 (.E............. + 04e0 00b02a00 00000000 30f14500 00000000 ..*.....0.E..... 04f0 08000000 00000000 50be2900 00000000 ........P.)..... Contents of section .text: 001000 90909090 90909090 90909090 90909090 ................ - 001010 4883ec18 4c893c24 48897c24 084c8bfe H...L.<$H.|$.L.. - 001020 498b0539 f24500f7 00010000 007405e8 I..9.E.......t.. - 001030 2cae2900 498b05b5 f2450048 89442410 ,.).I....E.H.D$. - 001040 498bff41 833f00e8 1eae2900 488bf048 I..A.?....).H..H - 001050 8b7c2410 498b159d f24500e8 14ae2900 .|$.I....E....). - 001060 488bf048 8b7c2408 e811ae29 00488b44 H..H.|$....).H.D - 001070 24084805 90000000 4c8938c1 e8094825 $.H.....L.8...H% - 001080 ffff7f00 498b0dad f1450048 03c1c600 ....I....E.H.... - 001090 014c8b3c 244883c4 18c3660f 1f440000 .L.<$H....f..D.. - 0010a0 4883ec28 48893c24 48897424 08488954 H..(H.<$H.t$.H.T - 0010b0 24104889 4c241849 8b05a2f1 4500f700 $.H.L$.I....E... - 0010c0 01000000 7405e895 ad290048 8b3c2448 ....t....).H.<$H - 0010d0 8b742408 488b5424 10488b4c 2418e8a5 .t$.H.T$.H.L$... - 0010e0 ad290048 83c428c3 0f1f8400 00000000 .).H..(......... - 0010f0 4883ec08 48893c24 488bc748 8b809000 H...H.<$H..H.... - 001100 00004883 c408c366 0f1f8400 00000000 ..H....f........ - 001110 4883ec18 4c893c24 48897c24 084c8bfe H...L.<$H.|$.L.. - 001120 498b0539 f14500f7 00010000 007405e8 I..9.E.......t.. - 001130 2cad2900 498b05c5 f1450048 89442410 ,.).I....E.H.D$. - 001140 498bff49 8b07ff90 98010000 488bf883 I..I........H... - 001150 3800e813 ad290048 8bf0488b 7c241049 8....).H..H.|$.I - 001160 8b15a2f1 4500e809 ad290048 8bf0488b ....E....).H..H. - 001170 7c2408e8 06ad2900 488b4424 08480590 |$....).H.D$.H.. - 001180 0000004c 8938c1e8 094825ff ff7f0049 ...L.8...H%....I - 001190 8b0da2f0 45004803 c1c60001 4c8b3c24 ....E.H.....L.<$ - 0011a0 4883c418 c366662e 0f1f8400 00000000 H....ff......... - 0011b0 4883ec28 48893c24 48897424 08488954 H..(H.<$H.t$.H.T - 0011c0 24104889 4c241849 8b0592f0 4500f700 $.H.L$.I....E... - 0011d0 01000000 7405e885 ac290048 8b3c2448 ....t....).H.<$H - 0011e0 8b742408 488b5424 10488b4c 2418e895 .t$.H.T$.H.L$... - 0011f0 ac290048 83c428c3 0f1f8400 00000000 .).H..(......... - 001200 4883ec08 48893c24 488bc748 8b809000 H...H.<$H..H.... - 001210 00004883 c408c366 0f1f8400 00000000 ..H....f........ - 001220 4883ec28 48891c24 4c897c24 0848897c H..(H..$L.|$.H.| - 001230 24204c8b fe498b05 24f04500 f7000100 $ L..I..$.E..... - 001240 00007405 e817ac29 00498b05 c0f04500 ..t....).I....E. - 001250 488b4c24 2048894c 24104889 44241849 H.L$ H.L$.H.D$.I - 001260 8bdf4d85 ff750433 dbeb0c48 8bfb488b ..M..u.3...H..H. - 001270 03ff5048 488bd849 8b159af0 4500488b ..PHH..I....E.H. - 001280 7c241848 8bf3e8e9 ab290048 8bf0488b |$.H.....).H..H. - 001290 7c2410e8 e6ab2900 488b4424 20480590 |$....).H.D$ H.. - 0012a0 0000004c 8938c1e8 094825ff ff7f0049 ...L.8...H%....I - 0012b0 8b0d82ef 45004803 c1c60001 488b1c24 ....E.H.....H..$ - 0012c0 4c8b7c24 084883c4 28c3660f 1f440000 L.|$.H..(.f..D.. - 0012d0 4883ec28 48893c24 48897424 08488954 H..(H.<$H.t$.H.T - 0012e0 24104889 4c241849 8b0572ef 4500f700 $.H.L$.I..r.E... - 0012f0 01000000 7405e865 ab290048 8b3c2448 ....t..e.).H.<$H - 001300 8b742408 488b5424 10488b4c 2418e875 .t$.H.T$.H.L$..u - 001310 ab290048 83c428c3 0f1f8400 00000000 .).H..(......... - 001320 4883ec08 48893c24 488bc748 8b809000 H...H.<$H..H.... - 001330 00004883 c408c366 0f1f8400 00000000 ..H....f........ - 001340 4883ec48 48897c24 08488974 24104889 H..HH.|$.H.t$.H. - 001350 54241848 894c2420 4c894424 28498b05 T$.H.L$ L.D$(I.. - 001360 fcee4500 f7000100 00007405 e8efaa29 ..E.......t....) - 001370 0048c704 24000000 00498b3d a0ef4500 .H..$....I.=..E. - 001380 be300000 00e808ab 29004889 44243848 .0......).H.D$8H - 001390 8bf833f6 33d24c63 4424184c 634c2428 ..3.3.LcD$.LcL$( - 0013a0 488b0c24 e8f3aa29 00498b3d 78ef4500 H..$...).I.=x.E. - 0013b0 be380000 00e8d8aa 2900488b 4c243848 .8......).H.L$8H - 0013c0 89442430 488bf848 8b742410 488b5424 .D$0H..H.t$.H.T$ - 0013d0 20e8d0aa 2900488b 44243048 8b4c2408 ...).H.D$0H.L$. - 0013e0 488901c1 e9094881 e1ffff7f 00498b15 H.....H......I.. - 0013f0 44ee4500 4803cac6 01014883 c448c390 D.E.H.....H..H.. - 001400 4883ec08 48893c24 498b0551 ee4500f7 H...H.<$I..Q.E.. - 001410 00010000 007405e8 44aa2900 488b0424 .....t..D.).H..$ - 001420 488b0048 8bf8488b 00ff9018 01000048 H..H..H........H - 001430 83c408c3 66662e0f 1f840000 00000090 ....ff.......... - 001440 4883ec68 48891c24 48896c24 084c8964 H..hH..$H.l$.L.d - 001450 24104c89 7424184c 8be74889 74242848 $.L.t$.L..H.t$(H - 001460 89542430 4c8bf14c 89442438 498b05ed .T$0L..L.D$8I... - 001470 ed4500f7 00010000 007405e8 e0a92900 .E.......t....). - 001480 498b1c24 488b6c24 28488bc5 4885c075 I..$H.l$(H..H..u - 001490 22498b04 24488bf8 488b00ff 90a80000 "I..$H..H....... - 0014a0 00488b40 10488bf8 833800e8 00aa2900 .H.@.H...8....). - 0014b0 488be849 8bfee8ff a9290048 89442448 H..I.....).H.D$H - 0014c0 49635618 488b7424 38488b7c 2430e8f1 IcV.H.t$8H.|$0.. - 0014d0 a9290048 89442420 498b0424 488b4020 .).H.D$ I..$H.@ - 0014e0 488bc883 39004863 40284889 44245049 H...9.Hc@(H.D$PI - 0014f0 8b042448 8b402048 8bc88339 00486340 ..$H.@ H...9.Hc@ - 001500 2c488944 2458498b 3d13ee45 00be3000 ,H.D$XI.=..E..0. - 001510 0000e87b a9290048 8b542448 4c8b4424 ...{.).H.T$HL.D$ - 001520 504c8b4c 24584889 44244048 8bf8488b PL.L$XH.D$@H..H. - 001530 f5488b4c 2420e861 a9290048 8b442440 .H.L$ .a.).H.D$@ - 001540 488d4b20 488901c1 e9094881 e1ffff7f H.K H.....H..... - 001550 00498b15 e0ec4500 4803cac6 0101488b .I....E.H.....H. - 001560 1c24488b 6c24084c 8b642410 4c8b7424 .$H.l$.L.d$.L.t$ - 001570 184883c4 68c3662e 0f1f8400 00000000 .H..h.f......... - 001580 55488bec 4883ec70 4c896de8 4c8975f0 UH..H..pL.m.L.u. - 001590 4c897df8 4c8bff48 8975d048 8955c848 L.}.L..H.u.H.U.H - 0015a0 894dc04d 8be84c89 4db8498b 05afec45 .M.M..L.M.I....E - 0015b0 00f70001 00000074 05e8a2a8 2900498b .......t....).I. - 0015c0 07488945 d84c8b75 d0498bc6 4885c075 .H.E.L.u.I..H..u - 0015d0 21498b07 488bf848 8b00ff90 a8000000 !I..H..H........ - 0015e0 488b4010 488bf883 3800e8c1 a829004c H.@.H...8....).L - 0015f0 8bf0498b fde8c0a8 29004889 45a84d63 ..I.....).H.E.Mc - 001600 4518488b 7dc0488b 75c8488b 5510488b E.H.}.H.u.H.U.H. - 001610 4db8e8b7 a8290048 8945e049 8b07488b M....).H.E.I..H. - 001620 4020488b c8833900 48634028 488945a0 @ H...9.Hc@(H.E. - 001630 498b0748 8b402048 8bc88339 00486340 I..H.@ H...9.Hc@ - 001640 2c488945 98498b3d d4ec4500 be300000 ,H.E.I.=..E..0.. - 001650 00e83ca8 2900488b 55a84c8b 45a04c8b ..<.).H.U.L.E.L. - 001660 4d984889 45b0488b f8498bf6 488b4de0 M.H.E.H..I..H.M. - 001670 e827a829 00488b45 b0488b4d d84883c1 .'.).H.E.H.M.H.. - 001680 20488901 c1e90948 81e1ffff 7f00498b H.....H......I. - 001690 15a3eb45 004803ca c601014c 8b6de84c ...E.H.....L.m.L - 0016a0 8b75f04c 8b7df8c9 c30f1f80 00000000 .u.L.}.......... - 0016b0 4883ec08 48893c24 488bc748 8b004883 H...H.<$H..H..H. - 0016c0 c408c366 662e0f1f 84000000 00006690 ...ff.........f. - 0016d0 4883ec28 4c892c24 4c8bef48 89742408 H..(L.,$L..H.t$. - 0016e0 48895424 10498b05 74eb4500 f7000100 H.T$.I..t.E..... - 0016f0 00007405 e867a729 00498d4d 10488b44 ..t..g.).I.M.H.D - 001700 24084889 01c1e909 4881e1ff ff7f0049 $.H.....H......I - 001710 8b1522eb 45004803 cac60101 498b3d0d ..".E.H.....I.=. - 001720 ec4500be a0010000 e865a729 00488944 .E.......e.).H.D - 001730 2418488b f8498bf5 48baffff ffffffff $.H..I..H....... - 001740 ffffe891 a7290048 8b442418 498d4d28 .....).H.D$.I.M( - 001750 488901c1 e9094881 e1ffff7f 00498b15 H.....H......I.. - 001760 d4ea4500 4803cac6 0101498d 4d18488b ..E.H.....I.M.H. - 001770 44241048 8901c1e9 094881e1 ffff7f00 D$.H.....H...... /usr/lib/mono/4.5/mcs.exe.so differs in assembler output --- old /usr/lib/mono/4.5/mcs.exe.so (disasm) +++ new /usr/lib/mono/4.5/mcs.exe.so (disasm) @@ -22,106 +22,53 @@ nop nop -IKVM_Reflection_MissingAssemblyException__ctor_IKVM_Reflection_MissingAssembly: +IKVM_Reflection_BadImageFormatException__ctor: sub $something,%rsp - mov %r15,(%rsp) - mov %rdi,offset(%rsp) - mov %rsi,%r15 + mov %rdi,(%rsp) mov offset(%rip),%rax # testl $something,(%rax) - je + je call - mov offset(%rip),%rax # - mov %rax,offset(%rsp) - mov %r15,%rdi - cmpl $something,(%r15) - call - mov %rax,%rsi - mov offset(%rsp),%rdi - mov offset(%rip),%rdx # - call - mov %rax,%rsi - mov offset(%rsp),%rdi - call - mov offset(%rsp),%rax - add $something,%rax - mov %r15,(%rax) - shr $something,%eax - and $something,%rax - mov offset(%rip),%rcx # - add %rcx,%rax - movb $something,(%rax) - mov (%rsp),%r15 + mov (%rsp),%rdi + call add $something,%rsp ret nopw offset(%rax,%rax,1) -IKVM_Reflection_MissingAssemblyException__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext: +IKVM_Reflection_BadImageFormatException__ctor_string: sub $something,%rsp mov %rdi,(%rsp) mov %rsi,offset(%rsp) - mov %rdx,offset(%rsp) - mov %rcx,offset(%rsp) mov offset(%rip),%rax # testl $something,(%rax) - je + je call mov (%rsp),%rdi mov offset(%rsp),%rsi - mov offset(%rsp),%rdx - mov offset(%rsp),%rcx - call + call add $something,%rsp ret - nopl offset(%rax,%rax,1) + data16 cs nopw offset(%rax,%rax,1) + nop -IKVM_Reflection_MissingAssemblyException_get_Assembly: +IKVM_Reflection_BadImageFormatException__ctor_string_System_Exception: sub $something,%rsp mov %rdi,(%rsp) - mov %rdi,%rax - mov offset(%rax),%rax - add $something,%rsp - ret - nopw offset(%rax,%rax,1) - -IKVM_Reflection_MissingModuleException__ctor_IKVM_Reflection_MissingModule: - sub $something,%rsp - mov %r15,(%rsp) - mov %rdi,offset(%rsp) - mov %rsi,%r15 + mov %rsi,offset(%rsp) + mov %rdx,offset(%rsp) mov offset(%rip),%rax # testl $something,(%rax) - je + je call - mov offset(%rip),%rax # - mov %rax,offset(%rsp) - mov %r15,%rdi - mov (%r15),%rax - call *offset(%rax) - mov %rax,%rdi - cmpl $something,(%rax) - call - mov %rax,%rsi - mov offset(%rsp),%rdi - mov offset(%rip),%rdx # - call - mov %rax,%rsi - mov offset(%rsp),%rdi - call - mov offset(%rsp),%rax - add $something,%rax - mov %r15,(%rax) - shr $something,%eax - and $something,%rax - mov offset(%rip),%rcx # - add %rcx,%rax - movb $something,(%rax) - mov (%rsp),%r15 + mov (%rsp),%rdi + mov offset(%rsp),%rsi + mov offset(%rsp),%rdx + call add $something,%rsp ret - data16 cs nopw offset(%rax,%rax,1) + xchg %ax,%ax -IKVM_Reflection_MissingModuleException__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext: +IKVM_Reflection_BadImageFormatException__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext: sub $something,%rsp mov %rdi,(%rsp) mov %rsi,offset(%rsp) @@ -129,338 +76,155 @@ mov %rcx,offset(%rsp) mov offset(%rip),%rax # testl $something,(%rax) - je + je call mov (%rsp),%rdi mov offset(%rsp),%rsi mov offset(%rsp),%rdx mov offset(%rsp),%rcx - call + call add $something,%rsp ret nopl offset(%rax,%rax,1) -IKVM_Reflection_MissingModuleException_get_Module: +IKVM_Reflection_ResolveEventArgs__ctor_string: sub $something,%rsp mov %rdi,(%rsp) - mov %rdi,%rax - mov offset(%rax),%rax - add $something,%rsp - ret - nopw offset(%rax,%rax,1) - -IKVM_Reflection_MissingMemberException__ctor_IKVM_Reflection_MemberInfo: - sub $something,%rsp - mov %rbx,(%rsp) - mov %r15,offset(%rsp) - mov %rdi,offset(%rsp) - mov %rsi,%r15 + mov %rsi,offset(%rsp) mov offset(%rip),%rax # testl $something,(%rax) - je + je call - mov offset(%rip),%rax # - mov offset(%rsp),%rcx - mov %rcx,offset(%rsp) - mov %rax,offset(%rsp) - mov %r15,%rbx - test %r15,%r15 - jne - xor %ebx,%ebx - jmp - mov %rbx,%rdi - mov (%rbx),%rax - call *offset(%rax) - mov %rax,%rbx - mov offset(%rip),%rdx # - mov offset(%rsp),%rdi - mov %rbx,%rsi - call - mov %rax,%rsi - mov offset(%rsp),%rdi - call - mov offset(%rsp),%rax - add $something,%rax - mov %r15,(%rax) - shr $something,%eax - and $something,%rax - mov offset(%rip),%rcx # - add %rcx,%rax - movb $something,(%rax) - mov (%rsp),%rbx - mov offset(%rsp),%r15 + mov (%rsp),%rdi + mov offset(%rsp),%rsi /usr/lib/mono/4.5/mcs.pdb differs at offset '113' (Microsoft Rosyln C# debugging symbols version 1.0) --- old /usr/lib/mono/4.5/mcs.pdb (hex) +++ new /usr/lib/mono/4.5/mcs.pdb (hex) @@ -1,8 +1,8 @@ 00000040 70 4d 00 00 23 53 74 72 69 6e 67 73 00 00 00 00 |pM..#Strings....| 00000050 ac 28 05 00 04 00 00 00 23 55 53 00 b0 28 05 00 |.(......#US..(..| 00000060 20 00 00 00 23 47 55 49 44 00 00 00 d0 28 05 00 | ...#GUID....(..| -00000070 78 85 05 00 23 42 6c 6f 62 00 00 00 0c 11 8a 5e |x...#Blob......^| -00000080 89 2e d7 4a a9 38 6c 40 91 80 0e 04 a3 18 84 85 |...J.8l@........| +00000070 f0 85 05 00 23 42 6c 6f 62 00 00 00 83 18 13 f4 |....#Blob.......| +00000080 19 23 c5 44 8a 00 01 fb 99 5c a0 55 e3 ff e8 e0 |.#.D.....\.U....| 00000090 5a 16 00 06 57 9f b7 3f 09 1e 00 00 01 00 00 00 |Z...W..?........| 000000a0 f0 00 00 00 52 04 00 00 4c 12 00 00 e1 29 00 00 |....R...L....)..| 000000b0 48 2a 00 00 e7 00 00 00 c7 09 00 00 3e 05 00 00 |H*..........>...| @@ -14,20 +14,20 @@ 00000110 00 00 00 00 02 00 04 01 00 00 00 00 00 00 3f 00 |..............?.| 00000120 00 00 00 00 00 00 04 00 95 00 00 00 e1 29 00 00 |.............)..| 00000130 b8 32 00 00 0c 1b 00 00 4a 00 00 00 5e 01 00 00 |.2......J...^...| -00000140 95 00 00 00 01 00 a3 00 00 00 02 00 cd 08 00 00 |................| -00000150 01 00 db 08 00 00 02 00 d9 0a 00 00 01 00 e7 0a |................| -00000160 00 00 02 00 53 0f 00 00 01 00 61 0f 00 00 02 00 |....S.....a.....| -00000170 36 10 00 00 01 00 44 10 00 00 02 00 99 10 00 00 |6.....D.........| -00000180 01 00 a7 10 00 00 02 00 87 12 00 00 01 00 95 12 |................| -00000190 00 00 02 00 26 13 00 00 01 00 34 13 00 00 02 00 |....&.....4.....| -000001a0 cc 13 00 00 01 00 da 13 00 00 02 00 d3 15 00 00 |................| -000001b0 01 00 e1 15 00 00 02 00 5d 16 00 00 01 00 6b 16 |........].....k.| -000001c0 00 00 02 00 e0 16 00 00 01 00 ee 16 00 00 02 00 |................| -000001d0 bb 1d 00 00 01 00 c9 1d 00 00 02 00 37 23 00 00 |............7#..| -000001e0 01 00 45 23 00 00 02 00 3f 2a 00 00 01 00 4d 2a |..E#....?*....M*| -000001f0 00 00 02 00 7f 2c 00 00 01 00 8d 2c 00 00 02 00 |.....,.....,....| -00000200 50 2d 00 00 01 00 5e 2d 00 00 02 00 48 2e 00 00 |P-....^-....H...| -00000210 01 00 56 2e 00 00 02 00 56 33 00 00 01 00 64 33 |..V.....V3....d3| -00000220 00 00 02 00 34 36 00 00 01 00 42 36 00 00 02 00 |....46....B6....| -00000230 d7 37 00 00 01 00 e5 37 00 00 02 00 21 39 00 00 |.7.....7....!9..| +00000140 67 00 00 00 01 00 73 00 00 00 02 00 68 01 00 00 |g.....s.....h...| +00000150 01 00 75 01 00 00 02 00 73 0a 00 00 01 00 80 0a |..u.....s.......| +00000160 00 00 02 00 6c 0b 00 00 01 00 79 0b 00 00 02 00 |....l.....y.....| +00000170 f7 0b 00 00 01 00 04 0c 00 00 02 00 48 0e 00 00 |............H...| +00000180 01 00 55 0e 00 00 02 00 74 16 00 00 01 00 81 16 |..U.....t.......| +00000190 00 00 02 00 a5 1c 00 00 01 00 b2 1c 00 00 02 00 |................| +000001a0 53 1d 00 00 01 00 60 1d 00 00 02 00 d9 20 00 00 |S.....`...... ..| +000001b0 01 00 e6 20 00 00 02 00 d8 25 00 00 01 00 e5 25 |... .....%.....%| +000001c0 00 00 02 00 ee 27 00 00 01 00 fb 27 00 00 02 00 |.....'.....'....| +000001d0 9e 29 00 00 01 00 ab 29 00 00 02 00 1f 34 00 00 |.).....).....4..| +000001e0 01 00 2c 34 00 00 02 00 2c 4f 00 00 01 00 3b 4f |..,4....,O....;O| +000001f0 00 00 02 00 b5 55 00 00 01 00 c4 55 00 00 02 00 |.....U.....U....| +00000200 1e 59 00 00 01 00 2d 59 00 00 02 00 24 5b 00 00 |.Y....-Y....$[..| +00000210 01 00 33 5b 00 00 02 00 55 62 00 00 01 00 64 62 |..3[....Ub....db| +00000220 00 00 02 00 26 65 00 00 01 00 35 65 00 00 02 00 |....&e....5e....| +00000230 a0 66 00 00 01 00 af 66 00 00 02 00 9a 69 00 00 |.f.....f.....i..| 00000240 /usr/lib/mono/4.5/mscorlib.dll.so differs in ELF sections --- old /usr/lib/mono/4.5/mscorlib.dll.so (objdump) +++ new /usr/lib/mono/4.5/mscorlib.dll.so (objdump) @@ -21663,9 +21663,9 @@ 055670 c418c3f0 488bbc24 80000000 44897e10 ....H..$....D.~. 055680 00000000 0000e0bf 2478bf3d 420000e8 ........$x.=B... 055690 00000000 0000e0bf 8b742478 bfbb0000 .........t$x.... - 0556a0 00001000 0000e0c1 f8e86255 a364e900 ..........bU.d.. - 0556b0 00000000 0000e03f e85355a3 64488984 .......?.SU.dH.. - 0556c0 00000000 0000e03f 0000e841 55a36448 .......?...AU.dH + 0556a0 00001000 0000e0c1 f8e852d7 a1f4e900 ..........R..... + 0556b0 00000000 0000e03f e843d7a1 f4488984 .......?.C...H.. + 0556c0 00000000 0000e03f 0000e831 d7a1f448 .......?...1...H 0556d0 0000e0ff ffffdf41 0f1f8400 00000000 .......A........ 0556e0 4883ec38 48897c24 20488974 2428498b H..8H.|$ H.t$(I. 0556f0 056b9b86 00f70001 00000074 05e8eefc .k.........t.... @@ -24072,11 +24072,11 @@ 05ed00 e4fa1e01 004c3bf8 7d13498b c74869c0 .....L;.}.I..Hi. 05ed10 10270000 4c8b3c24 4883c428 c3bf745a .'..L.<$H..(..tZ 05ed20 0000e8f3 694d0048 8bf0bfbb 000002e8 ....iM.H........ - 05ed30 046a4d00 488bf8e8 c8664d00 ea8c6448 .jM.H....fM...dH - 05ed40 00000000 0000e03f f6e832ea 8c64488b .......?..2..dH. + 05ed30 046a4d00 488bf8e8 c8664d00 1c8bf448 .jM.H....fM....H + 05ed40 00000000 0000e03f f6e8121c 8bf4488b .......?......H. 05ed50 00000000 0000e0bf 1c244c8b 6424084c .........$L.d$.L 05ed60 00000000 70999441 184883c4 28c3be74 ....p..A.H..(..t - 05ed70 00000000 361024c1 e803ea8c 64beed00 ....6.$.....d... + 05ed70 00000000 361024c1 e8e31b8b f4beed00 ....6.$......... 05ed80 00000000 41924641 0f1f8400 00000000 ....A.FA........ 05ed90 4883ec28 4c892c24 4c897c24 0848897c H..(L.,$L.|$.H.| 05eda0 24184c8b fe48c744 24100000 00004d8b $.L..H.D$.....M. @@ -24580,7 +24580,7 @@ 060cc0 100d3a00 0000f20f 5ec14c8b 34244c8b ..:.....^.L.4$L. 060cd0 7c240848 83c418c3 bf405a00 00e8384a |$.H.....@Z...8J 060ce0 4d00488b f0bf3301 0002e849 4a4d0048 M.H...3....IJM.H - 060cf0 8bf8e80d 474d00ea 8c64488b c8488b54 ....GM...dH..H.T + 060cf0 8bf8e80d 474d00c2 89f4488b c8488b54 ....GM....H..H.T 060d00 00000000 70999441 0f1f8400 00000000 ....p..A........ 060d10 4883ec08 48893c24 498b0541 e58500f7 H...H.<$I..A.... 060d20 00010000 007405e8 c4464d00 488b0424 .....t...FM.H..$ @@ -30146,7 +30146,7 @@ 0768a0 c0480fb6 c0488b1c 244c8b64 24084c8b .H...H..$L.d$.L. 0768b0 6c24104c 8b742418 4c8b7c24 204883c4 l$.L.t$.L.|$ H.. 0768c0 38c3bedc 000000bf 0e010000 e84fed4b 8............O.K - 0768d0 00be7b01 0000ebef e8d31a76 6433c0e9 ..{........vd3.. + 0768d0 00be7b01 0000ebef e8536d85 f433c0e9 ..{......Sm..3.. 0768e0 00000000 00002440 0f1f8400 00000000 ......$@........ 0768f0 4883ec18 4c893424 4c8bf748 89742408 H...L.4$L..H.t$. 076900 498b0559 898400f7 00010000 007405e8 I..Y.........t.. @@ -31985,7 +31985,7 @@ 07db90 41c74614 ffffffff 41c74618 ffffffff A.F.....A.F..... 07dba0 41c7461c ffffffff f20f1005 20000000 A.F......... ... 07dbb0 f2410f11 4620488b 44240849 89064c8b .A..F H.D$.I..L. - 07dbc0 34244883 c418c33a 000000eb effe7c64 4$H....:......|d + 07dbc0 34244883 c418c33a 000000eb ef9172f4 4$H....:......r. 07dbd0 00000000 0000f0bf 0f1f8400 00000000 ................ 07dbe0 4883ec18 4c893424 4c8bf748 89742408 H...L.4$L..H.t$. 07dbf0 498b0649 634e0848 8bd1ffc2 41895608 I..IcN.H....A.V. @@ -35870,8 +35870,8 @@ 08ce60 ffffffff ffffff7f 8945c048 8b45c048 .........E.H.E.H 08ce70 ffffffff ffffff7f 6d80488b 8578ffff ........m.H..x.. 08ce80 ffffffff ffffff7f 80488945 d0488bfd .........H.E.H.. - 08ce90 ffffffff ffffff7f 488b55d0 e8ffec76 ........H.U....v - 08cea0 00000000 00000080 8b55e0e8 f0ec7664 .........U....vd + 08ce90 ffffffff ffffff7f 488b55d0 e8ff9074 ........H.U....t + 08cea0 00000000 00000080 8b55e0e8 f09074f4 .........U....t. 08ceb0 00000000 0000f8ff 0f1f8400 00000000 ................ 08cec0 4883ec28 f20f1144 2410f20f 114c2418 H..(...D$....L$. 08ced0 498b0589 238300f7 00010000 007405e8 I...#........t.. @@ -36179,8 +36179,8 @@ 08e1b0 100424e8 3ead4a00 f30f10c8 f20f1044 ..$.>.J........D 08e1c0 2430f30f 114c2414 f30f104c 2414670f $0...L$....L$.g. 08e1d0 2fc80f86 08000000 f30f1044 240ceb05 /..........D$... - 08e1e0 f30f1004 244883c4 48c37664 27010000 ....$H..H.vd'... - 08e1f0 00000080 27010000 a0000000 2a010000 ....'.......*... + 08e1e0 f30f1004 244883c4 48c374f4 00000000 ....$H..H.t..... + 08e1f0 00000080 00000000 00000000 00000000 ................ 08e200 0000c0ff 66662e0f 1f840000 00000090 ....ff.......... 08e210 4883ec28 f30f1144 2410f30f 114c2418 H..(...D$....L$. 08e220 498b0539 108300f7 00010000 007405e8 I..9.........t.. @@ -36204,10 +36204,10 @@ 08e340 daab4a00 f20f1144 2420f30f 10442418 ..J....D$ ...D$. 08e350 e8c9ab4a 00f30f10 c8f20f10 442420f3 ...J........D$ . 08e360 0f5ec148 83c428c3 00f30f10 442428f3 .^.H..(.....D$(. - 08e370 0000c0ff 0cf30f10 442428e8 80ee7664 ........D$(...vd + 08e370 0000c0ff 0cf30f10 442428e8 809274f4 ........D$(...t. 08e380 0000807f 240cf30f 1044240c f20f1144 ....$....D$....D 08e390 0000803f 10442420 f30f1144 240cf30f ...?.D$ ...D$... - 08e3a0 0000c0ff e857ee76 64f20f10 442438f3 .....W.vd...D$8. + 08e3a0 0000c0ff e8579274 f4f20f10 442438f3 .....W.t....D$8. 08e3b0 0000803f 66662e0f 1f840000 00000090 ...?ff.......... 08e3c0 4883ec28 f30f1144 2410f30f 114c2418 H..(...D$....L$. 08e3d0 f30f1044 2410f30f 110424f3 0f104424 ...D$.....$...D$ @@ -54389,7 +54389,7 @@ 0d53d0 00e84403 4600488b f0bfbb00 0002e855 ..D.F.H........U 0d53e0 03460048 8bf8e819 00460000 00bf9b90 .F.H.....F...... 0d53f0 28431ceb e2360ac3 8bf0bfbb 000002e8 (C...6.......... - 0d5400 28431ceb e2360a43 84773164 488b1c24 (C...6.C.w1dH..$ + 0d5400 28431ceb e2360a43 749430f4 488b1c24 (C...6.Ct.0.H..$ 0d5410 00000000 0000e03f 24104c8b 6c24184c .......?$.L.l$.L 0d5420 00000000 0000e0bf 0f1f8400 00000000 ................ 0d5430 4883ec18 f20f1144 2408498b 051f9e7e H......D$.I....~ @@ -88734,7 +88734,7 @@ 15b660 0000498b c4eb1949 63762c83 c602498b ..I....Icv,...I. 15b670 fd488b54 24204183 7d0000e8 20383e00 .H.T$ A.}... 8>. 15b680 4c8b2424 4c8b6c24 084c8b74 24104883 L.$$L.l$.L.t$.H. - 15b690 c438c363 4c8b2424 4c8b6c24 084c8b74 .8.cL.$$L.l$.L.t + 15b690 c438c3f3 4c8b2424 4c8b6c24 084c8b74 .8..L.$$L.l$.L.t 15b6a0 e2ffffff ffffef7f 83c428c3 be4f0000 ..........(..O.. 15b6b0 e2ffffff ffffefff 0f1f8400 00000000 ................ 15b6c0 4883ec28 4c892424 4c896c24 084c8974 H..(L.$$L.l$.L.t @@ -96838,8 +96838,8 @@ 17b0e0 0000f20f 10442408 660f5705 30000000 .....D$.f.W.0... 17b0f0 f20f1144 2408f20f 10442408 4c8b3c24 ...D$....D$.L.<$ 17b100 4883c418 c3be6000 0000bf0e 010000e8 H.....`......... - 17b110 0ca53b00 48894424 48488bcb 48c1e920 ..;.H.D$HH..H.. - 17b120 00000000 00000080 480fafca 488bd048 ........H...H..H + 17b110 0ca53b00 8a000000 45000000 8d000000 ..;.....E....... + 17b120 00000000 00000080 48000000 98000000 ........H....... 17b130 00000000 0000f043 0f1f8400 00000000 .......C........ 17b140 4883ec68 48891c24 48896c24 084c8964 H..hH..$H.l$.L.d 17b150 24104c89 6c24184c 89742420 4c897c24 $.L.l$.L.t$ L.|$ @@ -180731,7 +180731,7 @@ 2c2c30 4c8b3424 4c8b7c24 084883c4 28c3beb7 L.4$L.|$.H..(... 2c2c40 000000bf 13010000 e8d32927 00bec800 ..........)'.... 2c2c50 0000ebef bed50000 00ebe800 0000483b ..............H; - 2c2c60 00000000 00002440 c3436248 85c00f84 ......$@.CbH.... + 2c2c60 00000000 00002440 3c39f248 85c00f84 ......$@<9.H.... 2c2c70 00000000 0000f03f 4510488b 4008498b .......?E.H.@.I. 2c2c80 00000000 00003e40 0f1f8400 00000000 ......>@........ 2c2c90 4883ec08 498b05c5 c55f00f7 00010000 H...I...._...... @@ -289095,7 +289095,7 @@ 46a0f0 ffffffff ffff3f48 23c1483b f0480f4f ......?H#.H;.H.O 46a100 f048c704 24000000 00488bfc e81bdb0c .H..$....H...... 46a110 00488b04 24488944 2408488d 7c2408e8 .H..$H.D$.H.|$.. - 46a120 c4bf0c00 4883c418 c3aacc60 488d7c24 ....H......`H.|$ + 46a120 c4bf0c00 4883c418 c3d4cef0 488d7c24 ....H.......H.|$ 46a130 00000038 4d256942 0f1f8400 00000000 ...8M%iB........ 46a140 4883ec18 f20f1104 24f20f11 4c240849 H.......$...L$.I 46a150 8b050a51 4500f700 01000000 7405e88d ...QE.......t... @@ -289109,7 +289109,7 @@ 46a1d0 0f110424 f20f1004 24660f57 c9660f2f ...$....$f.W.f./ 46a1e0 c80f8616 000000f2 0f100424 f20f100d ...........$.... 46a1f0 1c000000 f20f58c1 f20f1104 24f20f10 ......X.....$... - 46a200 04244883 c408c300 00488bfc e89faacc .$H......H...... + 46a200 04244883 c408c300 00488bfc e8bfd4ce .$H......H...... 46a210 00000000 00807640 2408488d 7c2408e8 ......v@$.H.|$.. 46a220 00000000 00807640 0f1f8400 00000000 ......v@........ 46a230 4883ec08 f20f1104 24f20f10 0424f20f H.......$....$.. @@ -289155,7 +289155,7 @@ 46a4b0 0f100d09 000000f2 0f5ec148 83c418c3 .........^.H.... 46a4c0 00000000 0018f540 10442410 4c8b3424 .......@.D$.L.4$ 46a4d0 00000000 00002e40 28c3be52 000000bf .......@(..R.... - 46a4e0 00000000 cd928341 60beba00 0000ebef .......A`....... + 46a4e0 00000000 cd928341 f0beba00 0000ebef .......A........ 46a4f0 00000000 00000040 c8f20f2a c0488d7c .......@...*.H.| 46a500 00000000 0000e03f 0f1f8400 00000000 .......?........ 46a510 4883ec08 48893c24 488bc72d 8d070000 H...H.<$H..-.... @@ -289204,7 +289204,7 @@ 46a7c0 4618443b e80f8c25 ffffff49 8bffe893 F.D;...%...I.... 46a7d0 4d0e004c 8b2c244c 8b742408 4c8b7c24 M..L.,$L.t$.L.|$ 46a7e0 104883c4 28c3beea 000000bf 0e010000 .H..(........... - 46a7f0 e82bae0c 0000e8a5 a9cc6048 8bd0488b .+........`H..H. + 46a7f0 e82bae0c 0000e8c5 d3cef048 8bd0488b .+.........H..H. 46a800 00000000 0018f540 0f1f8400 00000000 .......@........ 46a810 4883ec18 f20f1104 24498b05 404a4500 H.......$I..@JE. 46a820 f7000100 00007405 e8c3ab0c 00f20f10 ......t......... @@ -289672,7 +289672,7 @@ 46c500 48b90000 00000000 f07f483b c1400f9f H.........H;.@.. 46c510 c0480fb6 c085c074 0df20f10 0424f20f .H.....t.....$.. 46c520 11442408 eb0cf20f 10442408 f20f1144 .D$......D$....D - 46c530 2408f20f 10442408 4883c448 c3ffe8cd $....D$.H..H.... + 46c530 2408f20f 10442408 4883c448 c3ffe8ed $....D$.H..H.... 46c540 c1f96dfb a43bf03f 8b742408 4c8b7c24 ..m..;.?.t$.L.|$ 46c550 c1f96dfb a43bf03f 0f1f8400 00000000 ..m..;.?........ 46c560 4883ec18 4c893424 4c897c24 084c8bff H...L.4$L.|$.L.. @@ -290275,7 +290275,7 @@ 46eab0 4c8b3424 4c8b7c24 08488b44 24104883 L.4$L.|$.H.D$.H. 46eac0 c478c300 02000048 89442440 498bfe49 .x.....H.D$@I..I 46ead0 0040cb44 aeeff142 488b7c24 60488944 .@.D...BH.|$`H.D - 46eae0 0040cb44 aeeff1c2 8b742440 e82fa9cc .@.D.....t$@./.. + 46eae0 0040cb44 aeeff1c2 8b742440 e84fd3ce .@.D.....t$@.O.. 46eaf0 00000000 0000e03f 44244800 00000048 .......?D$H....H 46eb00 00000000 0000e0bf 0f1f8400 00000000 ................ 46eb10 4883ec28 48897c24 08488974 2410f20f H..(H.|$.H.t$... @@ -296890,7 +296890,7 @@ 488820 8b642408 4c8b7c24 104883c4 78c3bec5 .d$.L.|$.H..x... 488830 000000bf 0e010000 e8e3cd0a 00be3b01 ..............;. 488840 0000ebef be7e0100 00ebe8be be010000 .....~.......... - 488850 ebe10000 34010000 96000000 34010000 ....4.......4... + 488850 ebe10000 35010000 a4000000 38010000 ....5.......8... 488860 b040bce3 7f5c743d 0f1f8400 00000000 .@...\t=........ 488870 4883ec48 4c893c24 48897424 304c8bfa H..HL.<$H.t$0L.. 488880 498b05d9 694300f7 00010000 007405e8 I...iC.......t.. @@ -307530,9 +307530,9 @@ 4b2120 bf5ec100 00e8f035 08004889 442438bf .^.....5..H.D$8. 4b2130 608c0000 e8e13508 00488bd0 488b7424 `.....5..H..H.t$ 4b2140 38bfbd00 0002e8f7 35080048 8bf8e8b1 8.......5..H.... - 4b2150 320800c1 0000e865 a88a6048 8bf0bfbc 2......e..`H.... - 4b2160 0000c842 58a88a60 488bf8e8 50a88a60 ...BX..`H...P..` - 4b2170 00000000 00002440 44a88a60 488bf8e8 ......$@D..`H... /usr/lib/mono/4.5/mscorlib.dll.so differs in assembler output --- old /usr/lib/mono/4.5/mscorlib.dll.so (disasm) +++ new /usr/lib/mono/4.5/mscorlib.dll.so (disasm) @@ -84299,8 +84299,9 @@ add %al,(%rax) add %ah,%al sar $something,%eax - (bad) - movabs %eax,0xe964 + push %rdx + xlat %ds:(%rbx) + movabs 0xe9f4,%eax add %ah,%al (bad) call @@ -93638,21 +93639,21 @@ call mov %rax,%rdi call - (bad) - mov %fs,offset(%rax,%rcx,2) + sbb $something,%al + hlt + rex.W add %al,(%rax) add %al,(%rax) add %al,(%rax) - add %ah,%al - (bad) + loopne imul %al - xor %dl,%ch - mov %fs,-offset(%rax,%rcx,2) - add %al,(%rax) + adc (%rbx,%rcx,4),%bl + hlt + mov (%rax),%rax add %al,(%rax) add %al,(%rax) - loopne - sbb $something,%al - mov offset(%rsp),%r12 + add %ah,%al + mov $something,%edi + fs and $something,%al rex.WR add %r8b,(%rax) add %al,(%rax) jo @@ -95546,10 +95547,9 @@ call mov %rax,%rdi call - (bad) - mov %fs,-offset(%rax,%rcx,2) - enter $something,$0x54 - add %al,(%rax) + ret $something + mov %rax,%rcx + mov offset(%rax,%rax,1),%rdx add %al,(%rax) jo xchg %eax,%esp @@ -122518,8 +122518,8 @@ cmp (%rax),%al add %al,(%rax) jmp - (bad) - jl + xchg %eax,%ecx + jb add %al,(%rax) add %al,(%rax) add %al,(%rax) @@ -137533,7 +137533,7 @@ add %al,(%rax) add %al,(%rax) orb $something,-offset(%rbx) - jbe + je add %al,(%rax) add %al,(%rax) add %al,(%rax) @@ -138732,17 +138732,15 @@ movss (%rsp),%xmm0 add $something,%rsp ret - jbe - (bad) - add %eax,(%rax) + je add %al,(%rax) add %al,(%rax) - andb $something,(%rdi) add %al,(%rax) - movabs 0x12a000000,%al - add %al,%al - jmp *offset(%rsi) - cs nopl offset(%rax,%rax,1) + add %al,offset(%rax) + ... + add %al,(%rax) + sar $something,%bh + cs nopw offset(%rax,%rax,1) nop System_MathF_Log_single_single: @@ -138835,8 +138833,8 @@ repz sldt (%rax) sar $something,%bh push %rdi - out %al,(%dx) - jbe + xchg %eax,%edx + je movsd offset(%rsp),%xmm0 repz add %al,(%rax) cmpb $something,(%rdi) @@ -205822,9 +205820,10 @@ mov $something,%edi call loop - or -offset(%rbx),%al - ja - mov %fs:(%rsp),%rbx + or offset(%rbx),%al + xchg %eax,%esp + xor %dh,%ah + mov (%rsp),%rbx add %al,(%rax) add %al,(%rax) add %al,(%rax) @@ -339449,9 +339448,8 @@ mov offset(%rsp),%r14 add $something,%rsp ret - movsxd offset(%rbx,%rcx,4),%ecx - and $something,%al - mov offset(%rsp),%ebp + repz mov (%rsp),%r12 + mov offset(%rsp),%r13 mov -offset(%rdx,%riz,8),%r14 (bad) (bad) @@ -370251,18 +370249,19 @@ mov $something,%esi mov $something,%edi call - mov %rax,offset(%rsp) - mov %rbx,%rcx - shr $something,%rcx + mov (%rax),%al add %al,(%rax) + add %r8b,(%r8) + add %cl,offset(%rbp) add %al,(%rax) add %al,(%rax) - add %al,-offset(%rax) - mov %rax,%rdx - rex.W add %al,(%rax) add %al,(%rax) + orb $something,offset(%rax) + add %bl,offset(%rax) add %al,(%rax) - lock nopl offset(%r8,%r8,1) + add %al,(%rax) + add %dh,%al + nopl offset(%r8,%r8,1) System_Decimal_DecCalc_GetHashCode_System_Decimal_: sub $something,%rsp @@ -700216,9 +700215,8 @@ add %al,(%rax) add %al,(%rax) and $something,%al - ret - rex.XB (bad) - test %rax,%rax + cmp $something,%al + repnz test %rax,%rax je add %al,(%rax) lock (bad) @@ -1102632,10 +1102630,9 @@ call add $something,%rsp ret - stos %al,%es:(%rdi) - int3 (bad) - lea offset(%rsp),%rdi + (bad) + lock lea offset(%rsp),%rdi add %al,(%rax) cmp %cl,offset(%rbp) imul $something,offset(%rdx),%eax @@ -1102864,7 +1102861,7 @@ mov $something,%esi mov $something,%edi int $something - addl $something,offset(%rcx) + addl $something,-offset(%rcx) mov $something,%edx RPMS.2017/mono-devel-6.12.0-0.0.x86_64.rpm RPMS/mono-devel-6.12.0-0.0.x86_64.rpm differ: byte 225, line 1 Comparing mono-devel-6.12.0-0.0.x86_64.rpm to mono-devel-6.12.0-0.0.x86_64.rpm comparing the rpm tags of mono-devel --- old-rpm-tags +++ new-rpm-tags @@ -4014,2 +4014,2 @@ -/usr/lib/mono/4.5/illinkanalyzer.exe 654a05c6785107e5b85fa5349b0de8e58e58b3a3f5153f62afce9b77c8c6b52a 0 -/usr/lib/mono/4.5/illinkanalyzer.pdb 0a8e375eb9abdff9075ccbfd05c99d7df9127558b6af59d2e92eded392c1fb00 0 +/usr/lib/mono/4.5/illinkanalyzer.exe 6405211c4496879ec66ed7a07da4c1f9f27941bb60e1ea08b99d281f3f3410f7 0 +/usr/lib/mono/4.5/illinkanalyzer.pdb fd9292ec2c0ec5141cbb612197e89be18836a0884f2b38b4371101dea4e3f60c 0 @@ -4026,2 +4026,2 @@ -/usr/lib/mono/4.5/mkbundle.exe 170da370defd93e31a24fc5ca64e988bf5eef41d17290a16dd3cbea7129d8d78 0 -/usr/lib/mono/4.5/mkbundle.pdb 6dfa1af45a1497e1c43b66cef446418a2d66e4f096acd374067dd0a6f3a48eeb 0 +/usr/lib/mono/4.5/mkbundle.exe 4af7e321342f36d42f22ecb05a71ae5987db0f23156fb6210ef63342c0b2a430 0 +/usr/lib/mono/4.5/mkbundle.pdb 1ef1cc49919460b00f9d258b032ef18e38c000ba5ff513888abcd87f43fbc6eb 0 @@ -4039,2 +4039,2 @@ -/usr/lib/mono/4.5/mono-symbolicate.exe 0d73712826e6ad9da4bdc2e1fbe6de681e2773c512a70ff733fdbd368965f582 0 -/usr/lib/mono/4.5/mono-symbolicate.pdb 46f6fb555f30dda11206804e7c6d10e2ec054d33e400258285c626e84e820799 0 +/usr/lib/mono/4.5/mono-symbolicate.exe 7106ceca5ae9a5cdb80cfa5e1ff93da1f5359f02eba59f13bfb5ec0971921550 0 +/usr/lib/mono/4.5/mono-symbolicate.pdb 5e390f5aff683fb1da46dcbbbe0c3ab5a8621760365e6c9222af0d65970501bf 0 @@ -4045,2 +4045,2 @@ -/usr/lib/mono/4.5/monop.exe 1675fec47fb8c57fe03396c6f06181c932fdcbca7e028303ba09473b31392319 0 -/usr/lib/mono/4.5/monop.pdb 2245861b16693812ab90a48de1eac541289189d7fbd01acd2e2555255414e8f4 0 +/usr/lib/mono/4.5/monop.exe 8bba7e3daf6c60be86f7d4fcd4d27bf89e7ad8ce65c817a3e43f346ad507eede 0 +/usr/lib/mono/4.5/monop.pdb b3ae07f2a0dd69b48e2179673fb97be05ddcd77f2675904d8d0022acf4d638b3 0 comparing rpmtags comparing RELEASE comparing PROVIDES comparing scripts comparing filelist comparing file checksum creating rename script RPM file checksum differs. Extracting packages PE32 Mono/.Net assembly: /usr/lib/mono/4.5/illinkanalyzer.exe Cannot compare, no monodis installed /usr/lib/mono/4.5/illinkanalyzer.pdb differs at offset '125' (Microsoft Rosyln C# debugging symbols version 1.0) --- old /usr/lib/mono/4.5/illinkanalyzer.pdb (hex) +++ new /usr/lib/mono/4.5/illinkanalyzer.pdb (hex) @@ -1,8 +1,8 @@ 00000040 14 02 00 00 23 53 74 72 69 6e 67 73 00 00 00 00 |....#Strings....| 00000050 20 20 00 00 04 00 00 00 23 55 53 00 24 20 00 00 | ......#US.$ ..| 00000060 30 00 00 00 23 47 55 49 44 00 00 00 54 20 00 00 |0...#GUID...T ..| -00000070 54 21 00 00 23 42 6c 6f 62 00 00 00 aa 64 05 be |T!..#Blob....d..| -00000080 18 d1 a8 4f 87 94 a2 32 26 70 85 16 0b bd 5d ad |...O...2&p....].| +00000070 54 21 00 00 23 42 6c 6f 62 00 00 00 8d 84 f1 3d |T!..#Blob......=| +00000080 c8 d0 2d 45 bc b3 f6 5c 6d 3e 02 6d 01 8c 80 fb |..-E...\m>.m....| 00000090 10 00 00 06 57 5f a2 0b 09 0e 00 00 01 00 00 00 |....W_..........| 000000a0 6a 00 00 00 26 00 00 00 86 00 00 00 32 01 00 00 |j...&.......2...| 000000b0 48 01 00 00 1f 00 00 00 2c 01 00 00 0f 00 00 00 |H.......,.......| @@ -13,17 +13,17 @@ 00000100 00 00 ff 00 00 00 00 00 00 00 c4 00 05 00 00 00 |................| 00000110 32 01 00 00 40 01 00 00 97 00 00 00 01 00 00 00 |2...@...........| 00000120 0e 00 00 00 05 00 00 00 03 00 00 00 c1 00 01 00 |................| -00000130 d3 00 02 00 8c 03 01 00 9e 03 02 00 d9 04 01 00 |................| -00000140 ed 04 02 00 0c 07 01 00 20 07 02 00 7b 09 01 00 |........ ...{...| +00000130 d3 00 02 00 8c 03 01 00 9e 03 02 00 01 05 01 00 |................| +00000140 15 05 02 00 a0 06 01 00 b4 06 02 00 7b 09 01 00 |............{...| 00000150 8d 09 02 00 01 00 f4 00 01 00 4c 01 01 00 a4 01 |..........L.....| 00000160 01 00 ac 01 01 00 20 02 01 00 4b 02 01 00 76 02 |...... ...K...v.| 00000170 01 00 8c 02 01 00 da 02 01 00 1a 03 01 00 2c 03 |..............,.| 00000180 01 00 3e 03 01 00 50 03 00 00 00 00 01 00 67 03 |..>...P.......g.| -00000190 02 00 bf 03 03 00 0e 05 03 00 29 05 03 00 44 05 |..........)...D.| -000001a0 03 00 5f 05 03 00 66 05 03 00 8b 05 03 00 f3 05 |.._...f.........| -000001b0 03 00 ae 06 04 00 41 07 00 00 00 00 04 00 52 07 |......A.......R.| -000001c0 04 00 59 07 04 00 60 07 04 00 a8 07 04 00 01 08 |..Y...`.........| -000001d0 04 00 62 08 00 00 00 00 04 00 69 08 04 00 71 08 |..b.......i...q.| +00000190 02 00 bf 03 03 00 36 05 00 00 00 00 03 00 47 05 |......6.......G.| +000001a0 03 00 4e 05 03 00 55 05 03 00 9d 05 03 00 f6 05 |..N...U.........| +000001b0 03 00 57 06 00 00 00 00 03 00 5e 06 03 00 66 06 |..W.......^...f.| +000001c0 04 00 d5 06 04 00 f0 06 04 00 0b 07 04 00 26 07 |..............&.| +000001d0 04 00 2d 07 04 00 52 07 04 00 ba 07 04 00 75 08 |..-...R.......u.| 000001e0 05 00 ae 09 05 00 bb 09 00 00 00 00 05 00 cd 09 |................| 000001f0 05 00 f5 09 05 00 fd 09 05 00 49 0a 05 00 60 0a |..........I...`.| 00000200 05 00 6d 0a 05 00 75 0a 05 00 7d 0a 05 00 8a 0a |..m...u...}.....| PE32 Mono/.Net assembly: /usr/lib/mono/4.5/mkbundle.exe Cannot compare, no monodis installed /usr/lib/mono/4.5/mkbundle.pdb differs at offset '113' (Microsoft Rosyln C# debugging symbols version 1.0) --- old /usr/lib/mono/4.5/mkbundle.pdb (hex) +++ new /usr/lib/mono/4.5/mkbundle.pdb (hex) @@ -1,8 +1,8 @@ 00000040 d0 18 00 00 23 53 74 72 69 6e 67 73 00 00 00 00 |....#Strings....| 00000050 74 b5 01 00 04 00 00 00 23 55 53 00 78 b5 01 00 |t.......#US.x...| 00000060 20 00 00 00 23 47 55 49 44 00 00 00 98 b5 01 00 | ...#GUID.......| -00000070 d0 86 01 00 23 42 6c 6f 62 00 00 00 79 c8 d7 1d |....#Blob...y...| -00000080 5d dc bb 4a 81 dd c1 7b 67 73 22 52 ba 53 71 a7 |]..J...{gs"R.Sq.| +00000070 38 87 01 00 23 42 6c 6f 62 00 00 00 94 f5 9e 48 |8...#Blob......H| +00000080 00 0c e6 48 a3 75 52 f0 c4 83 5e 6e 71 a8 30 a0 |...H.uR...^nq.0.| 00000090 01 00 00 06 57 9f b7 3f 09 1f 00 00 01 00 00 00 |....W..?........| 000000a0 bd 00 00 00 82 01 00 00 90 07 00 00 80 0e 00 00 |................| 000000b0 84 0d 00 00 34 00 00 00 9d 04 00 00 f1 01 00 00 |....4...........| @@ -15,19 +15,19 @@ 00000120 00 00 3f 00 00 00 00 00 00 00 04 00 59 00 00 00 |..?.........Y...| 00000130 80 0e 00 00 e1 10 00 00 6e 07 00 00 26 00 00 00 |........n...&...| 00000140 c7 00 00 00 32 01 00 00 01 00 47 01 00 00 02 00 |....2.....G.....| -00000150 dc 1b 00 00 01 00 f1 1b 00 00 02 00 10 24 00 00 |.............$..| -00000160 01 00 25 24 00 00 02 00 0f 26 00 00 01 00 24 26 |..%$.....&....$&| -00000170 00 00 02 00 90 2a 00 00 01 00 a5 2a 00 00 02 00 |.....*.....*....| -00000180 6e 2b 00 00 01 00 83 2b 00 00 02 00 d7 2b 00 00 |n+.....+.....+..| -00000190 01 00 ec 2b 00 00 02 00 cc 2d 00 00 01 00 e1 2d |...+.....-.....-| -000001a0 00 00 02 00 72 2e 00 00 01 00 87 2e 00 00 02 00 |....r...........| -000001b0 1f 2f 00 00 01 00 34 2f 00 00 02 00 2d 31 00 00 |./....4/....-1..| -000001c0 01 00 42 31 00 00 02 00 be 31 00 00 01 00 d3 31 |..B1.....1.....1| -000001d0 00 00 02 00 48 32 00 00 01 00 5d 32 00 00 02 00 |....H2....]2....| -000001e0 29 39 00 00 01 00 3e 39 00 00 02 00 ac 3e 00 00 |)9....>9.....>..| -000001f0 01 00 c1 3e 00 00 02 00 bb 45 00 00 01 00 d2 45 |...>.....E.....E| -00000200 00 00 02 00 04 48 00 00 01 00 1b 48 00 00 02 00 |.....H.....H....| -00000210 de 48 00 00 01 00 f5 48 00 00 02 00 df 49 00 00 |.H.....H.....I..| -00000220 01 00 f6 49 00 00 02 00 f5 4e 00 00 01 00 0c 4f |...I.....N.....O| -00000230 00 00 02 00 db 51 00 00 01 00 f2 51 00 00 02 00 |.....Q.....Q....| +00000150 e8 1b 00 00 01 00 fd 1b 00 00 02 00 ab 1c 00 00 |................| +00000160 01 00 c0 1c 00 00 02 00 be 25 00 00 01 00 d3 25 |.........%.....%| +00000170 00 00 02 00 bf 26 00 00 01 00 d4 26 00 00 02 00 |.....&.....&....| +00000180 51 27 00 00 01 00 66 27 00 00 02 00 89 29 00 00 |Q'....f'.....)..| +00000190 01 00 9e 29 00 00 02 00 bc 31 00 00 01 00 d1 31 |...).....1.....1| +000001a0 00 00 02 00 f5 37 00 00 01 00 0a 38 00 00 02 00 |.....7.....8....| +000001b0 a9 38 00 00 01 00 be 38 00 00 02 00 36 3c 00 00 |.8.....8....6<..| +000001c0 01 00 4b 3c 00 00 02 00 3b 41 00 00 01 00 52 41 |..K<....;A....RA| +000001d0 00 00 02 00 5b 43 00 00 01 00 72 43 00 00 02 00 |....[C....rC....| +000001e0 13 45 00 00 01 00 2a 45 00 00 02 00 9c 4f 00 00 |.E....*E.....O..| +000001f0 01 00 b3 4f 00 00 02 00 cf 6a 00 00 01 00 e6 6a |...O.....j.....j| +00000200 00 00 02 00 61 71 00 00 01 00 78 71 00 00 02 00 |....aq....xq....| +00000210 d2 74 00 00 01 00 e9 74 00 00 02 00 df 76 00 00 |.t.....t.....v..| +00000220 01 00 f6 76 00 00 02 00 16 7e 00 00 01 00 2d 7e |...v.....~....-~| +00000230 00 00 02 00 ee 80 00 00 01 00 05 81 00 00 02 00 |................| 00000240 PE32 Mono/.Net assembly: /usr/lib/mono/4.5/mono-symbolicate.exe Cannot compare, no monodis installed /usr/lib/mono/4.5/mono-symbolicate.pdb differs at offset '113' (Microsoft Rosyln C# debugging symbols version 1.0) --- old /usr/lib/mono/4.5/mono-symbolicate.pdb (hex) +++ new /usr/lib/mono/4.5/mono-symbolicate.pdb (hex) @@ -1,8 +1,8 @@ 00000040 30 1c 00 00 23 53 74 72 69 6e 67 73 00 00 00 00 |0...#Strings....| 00000050 a4 df 01 00 04 00 00 00 23 55 53 00 a8 df 01 00 |........#US.....| 00000060 30 00 00 00 23 47 55 49 44 00 00 00 d8 df 01 00 |0...#GUID.......| -00000070 b4 c3 01 00 23 42 6c 6f 62 00 00 00 e6 62 4d 87 |....#Blob....bM.| -00000080 91 b6 74 48 8b d6 7e 48 ee 9f 94 60 11 5d 7a b2 |..tH..~H...`.]z.| +00000070 b8 c3 01 00 23 42 6c 6f 62 00 00 00 2b 8d 35 64 |....#Blob...+.5d| +00000080 be ef 98 4f b6 70 0d 04 30 a5 35 b8 e2 5b a2 dd |...O.p..0.5..[..| 00000090 75 00 00 06 57 ff b6 3f 09 1e 00 00 01 00 00 00 |u...W..?........| 000000a0 cf 00 00 00 a1 02 00 00 e2 0d 00 00 0e 10 00 00 |................| 000000b0 e2 11 00 00 c6 00 00 00 e6 05 00 00 c8 05 00 00 |................| @@ -14,20 +14,20 @@ 00000110 0c 00 00 00 00 00 00 00 02 00 04 01 00 00 00 00 |................| 00000120 00 00 ff 00 00 00 00 00 00 00 c4 00 b2 00 00 00 |................| 00000130 0e 10 00 00 af 11 00 00 4d 09 00 00 2a 00 00 00 |........M...*...| -00000140 e9 00 00 00 06 00 00 00 05 00 00 00 6e 00 00 00 |............n...| -00000150 01 00 7c 00 00 00 02 00 ce 00 00 00 01 00 dd 00 |..|.............| -00000160 00 00 02 00 87 01 00 00 01 00 96 01 00 00 02 00 |................| -00000170 8e 02 00 00 01 00 9d 02 00 00 02 00 3e 03 00 00 |............>...| -00000180 01 00 4d 03 00 00 02 00 3a 06 00 00 01 00 49 06 |..M.....:.....I.| -00000190 00 00 02 00 ea 08 00 00 01 00 f9 08 00 00 02 00 |................| -000001a0 95 09 00 00 01 00 a4 09 00 00 02 00 de 09 00 00 |................| -000001b0 01 00 ed 09 00 00 02 00 6c 0a 00 00 01 00 7b 0a |........l.....{.| -000001c0 00 00 02 00 80 0f 00 00 01 00 8f 0f 00 00 02 00 |................| -000001d0 f1 0f 00 00 01 00 00 10 00 00 02 00 8a 10 00 00 |................| -000001e0 01 00 99 10 00 00 02 00 c1 11 00 00 01 00 d0 11 |................| -000001f0 00 00 02 00 21 12 00 00 01 00 30 12 00 00 02 00 |....!.....0.....| -00000200 9b 13 00 00 01 00 aa 13 00 00 02 00 f8 13 00 00 |................| -00000210 01 00 07 14 00 00 02 00 8e 1a 00 00 01 00 9d 1a |................| -00000220 00 00 02 00 0d 1b 00 00 01 00 1c 1b 00 00 02 00 |................| -00000230 4a 1b 00 00 01 00 59 1b 00 00 02 00 e1 1b 00 00 |J.....Y.........| +00000140 e9 00 00 00 06 00 00 00 05 00 00 00 73 00 00 00 |............s...| +00000150 01 00 81 00 00 00 02 00 68 01 00 00 01 00 77 01 |........h.....w.| +00000160 00 00 02 00 45 04 00 00 01 00 54 04 00 00 02 00 |....E.....T.....| +00000170 d8 04 00 00 01 00 e7 04 00 00 02 00 74 05 00 00 |............t...| +00000180 01 00 83 05 00 00 02 00 1d 06 00 00 01 00 2c 06 |..............,.| +00000190 00 00 02 00 8d 06 00 00 01 00 9c 06 00 00 02 00 |................| +000001a0 af 07 00 00 01 00 be 07 00 00 02 00 d4 08 00 00 |................| +000001b0 01 00 e3 08 00 00 02 00 84 0b 00 00 01 00 93 0b |................| +000001c0 00 00 02 00 30 0c 00 00 01 00 3f 0c 00 00 02 00 |....0.....?.....| +000001d0 db 0c 00 00 01 00 ea 0c 00 00 02 00 40 0d 00 00 |............@...| +000001e0 01 00 4f 0d 00 00 02 00 9d 0d 00 00 01 00 ac 0d |..O.............| +000001f0 00 00 02 00 12 0e 00 00 01 00 21 0e 00 00 02 00 |..........!.....| +00000200 4e 0e 00 00 01 00 5d 0e 00 00 02 00 c9 0f 00 00 |N.....].........| +00000210 01 00 d8 0f 00 00 02 00 44 10 00 00 01 00 53 10 |........D.....S.| +00000220 00 00 02 00 b5 10 00 00 01 00 c4 10 00 00 02 00 |................| +00000230 43 11 00 00 01 00 52 11 00 00 02 00 61 16 00 00 |C.....R.....a...| 00000240 PE32 Mono/.Net assembly: /usr/lib/mono/4.5/monop.exe Cannot compare, no monodis installed /usr/lib/mono/4.5/monop.pdb differs at offset '113' (Microsoft Rosyln C# debugging symbols version 1.0) --- old /usr/lib/mono/4.5/monop.pdb (hex) +++ new /usr/lib/mono/4.5/monop.pdb (hex) @@ -1,8 +1,8 @@ 00000040 4c 15 00 00 23 53 74 72 69 6e 67 73 00 00 00 00 |L...#Strings....| 00000050 7c bc 01 00 04 00 00 00 23 55 53 00 80 bc 01 00 ||.......#US.....| 00000060 20 00 00 00 23 47 55 49 44 00 00 00 a0 bc 01 00 | ...#GUID.......| -00000070 a0 97 01 00 23 42 6c 6f 62 00 00 00 d8 71 3c c6 |....#Blob....q<.| -00000080 80 27 46 48 be 9f 91 cc 0a ef be a9 96 c0 f0 80 |.'FH............| +00000070 f4 97 01 00 23 42 6c 6f 62 00 00 00 90 68 37 c8 |....#Blob....h7.| +00000080 3c 20 4c 46 95 d2 18 29 a5 83 6f c1 0d 63 d9 c5 |< LF...)..o..c..| 00000090 0b 00 00 06 57 9f b7 3f 09 1e 00 00 01 00 00 00 |....W..?........| 000000a0 b2 00 00 00 89 01 00 00 eb 07 00 00 ca 0e 00 00 |................| 000000b0 f8 0d 00 00 39 00 00 00 a7 04 00 00 0d 02 00 00 |....9...........| @@ -16,18 +16,18 @@ 00000130 52 11 00 00 9b 07 00 00 26 00 00 00 d7 00 00 00 |R.......&.......| 00000140 d6 00 00 00 01 00 eb 00 00 00 02 00 cc 05 00 00 |................| 00000150 01 00 e1 05 00 00 02 00 71 07 00 00 01 00 86 07 |........q.......| -00000160 00 00 02 00 26 08 00 00 01 00 3b 08 00 00 02 00 |....&.....;.....| -00000170 5b 10 00 00 01 00 70 10 00 00 02 00 5b 12 00 00 |[.....p.....[...| -00000180 01 00 70 12 00 00 02 00 dd 16 00 00 01 00 f2 16 |..p.............| -00000190 00 00 02 00 bb 17 00 00 01 00 d0 17 00 00 02 00 |................| -000001a0 25 18 00 00 01 00 3a 18 00 00 02 00 17 1a 00 00 |%.....:.........| -000001b0 01 00 2c 1a 00 00 02 00 bd 1a 00 00 01 00 d2 1a |..,.............| -000001c0 00 00 02 00 6b 1b 00 00 01 00 80 1b 00 00 02 00 |....k...........| -000001d0 79 1d 00 00 01 00 8e 1d 00 00 02 00 0a 1e 00 00 |y...............| -000001e0 01 00 1f 1e 00 00 02 00 94 1e 00 00 01 00 a9 1e |................| -000001f0 00 00 02 00 74 25 00 00 01 00 89 25 00 00 02 00 |....t%.....%....| -00000200 f7 2a 00 00 01 00 0c 2b 00 00 02 00 06 32 00 00 |.*.....+.....2..| -00000210 01 00 1b 32 00 00 02 00 4d 34 00 00 01 00 62 34 |...2....M4....b4| -00000220 00 00 02 00 25 35 00 00 01 00 3a 35 00 00 02 00 |....%5....:5....| -00000230 24 36 00 00 01 00 39 36 00 00 02 00 38 3b 00 00 |$6....96....8;..| +00000160 00 00 02 00 f3 07 00 00 01 00 08 08 00 00 02 00 |................| +00000170 d1 08 00 00 01 00 e6 08 00 00 02 00 e4 11 00 00 |................| +00000180 01 00 f9 11 00 00 02 00 e5 12 00 00 01 00 fa 12 |................| +00000190 00 00 02 00 78 13 00 00 01 00 8d 13 00 00 02 00 |....x...........| +000001a0 d1 15 00 00 01 00 e6 15 00 00 02 00 05 1e 00 00 |................| +000001b0 01 00 1a 1e 00 00 02 00 3e 24 00 00 01 00 53 24 |........>$....S$| +000001c0 00 00 02 00 f2 24 00 00 01 00 07 25 00 00 02 00 |.....$.....%....| +000001d0 7f 28 00 00 01 00 94 28 00 00 02 00 85 2d 00 00 |.(.....(.....-..| +000001e0 01 00 9a 2d 00 00 02 00 a1 2f 00 00 01 00 b6 2f |...-...../...../| +000001f0 00 00 02 00 57 31 00 00 01 00 6c 31 00 00 02 00 |....W1....l1....| +00000200 df 3b 00 00 01 00 f4 3b 00 00 02 00 fb 56 00 00 |.;.....;.....V..| +00000210 01 00 12 57 00 00 02 00 8c 5d 00 00 01 00 a3 5d |...W.....].....]| +00000220 00 00 02 00 fd 60 00 00 01 00 14 61 00 00 02 00 |.....`.....a....| +00000230 0a 63 00 00 01 00 21 63 00 00 02 00 40 6a 00 00 |.c....!c....@j..| 00000240 RPMS.2017/monodoc-core-6.12.0-0.0.x86_64.rpm RPMS/monodoc-core-6.12.0-0.0.x86_64.rpm differ: byte 225, line 1 Comparing monodoc-core-6.12.0-0.0.x86_64.rpm to monodoc-core-6.12.0-0.0.x86_64.rpm comparing the rpm tags of monodoc-core --- old-rpm-tags +++ new-rpm-tags @@ -190 +190 @@ -/usr/lib/monodoc/sources/Mono.zip fcec114dfde323fd12c92c38a8ac2c67cee4e16a9ce26fe4c197ad20c4919c1a 0 +/usr/lib/monodoc/sources/Mono.zip cd58d8ba40e1ed56de4709010d9c3ebbb78d0b701a60409fed82618fc082c867 0 @@ -193 +193 @@ -/usr/lib/monodoc/sources/Novell.zip 77acd2e9dac590552b0a9cf04c268f06213574502e17e9bb6ec0146a1150aae2 0 +/usr/lib/monodoc/sources/Novell.zip 3e350ff0b55a8f5cbb382f81629314896bd0f92dc5a821b0680e9d793ef36c73 0 @@ -195 +195 @@ -/usr/lib/monodoc/sources/cs-errors.zip 16e6df66f28dd6a4791a11f419d72bbd5ce8898cdb4e5a11b2e2ed6717a8279c 0 +/usr/lib/monodoc/sources/cs-errors.zip 15e039000258c09fe6075efdf882757c3feea28132f18afaf173a55ee79e68f7 0 @@ -197 +197 @@ -/usr/lib/monodoc/sources/ecma334.zip 3f07c6e5df35429038c7c9a4c8c11974de4447afecace5954e13519679d80ca8 0 +/usr/lib/monodoc/sources/ecma334.zip 18c2b85261ed8745797fe2fe5f8cf896b6f66c1880f66da391d83f67b8597909 0 @@ -201 +201 @@ -/usr/lib/monodoc/sources/mono-file-formats.zip d8bb57d992efe24d3653b6d7b3da2736b7cbc9b56e65e2bad80e613006692e9e 0 +/usr/lib/monodoc/sources/mono-file-formats.zip 0f09c416df73deeac45b234f1cfa2e877e8d5d180d7adee1f598878ed2d1aac2 0 @@ -204 +204 @@ -/usr/lib/monodoc/sources/mono-tools.zip 89dc2c2419e6cc1e776bf0938dc7f88abbd16fac43f23d3b5d27c13f75d99a3f 0 +/usr/lib/monodoc/sources/mono-tools.zip f2e7b7aee6b97c53cde5cfe51d946026da0b01fc8133ed48c2e685c26d1e5dfb 0 @@ -207 +207 @@ -/usr/lib/monodoc/sources/monoapi.zip 550d1a68cbecd9b5f55d809d52e5fc8a1b509db7184a6a5653f56cb123cf2b5d 0 +/usr/lib/monodoc/sources/monoapi.zip c9baaaddba1653166afb75c07f073047704959a8bb8f170caf4486c4518cdfda 0 @@ -210 +210 @@ -/usr/lib/monodoc/sources/netdocs.zip ce4035358bd43c8d185a7f3f2634eaee1d9a1f96cb3d97fc991d6541077de35b 0 +/usr/lib/monodoc/sources/netdocs.zip a7366903f23ae6453bc0ab2c23b7f818ebb3a4e63665d35f961407adab64334c 0 comparing rpmtags comparing RELEASE comparing PROVIDES comparing scripts comparing filelist comparing file checksum creating rename script RPM file checksum differs. Extracting packages /usr/lib/monodoc/sources/Mono.zip/mastersummary.xml differs (C++ source, ASCII text, with very long lines) --- old//usr/lib/monodoc/sources/Mono.zip/mastersummary.xml 2023-09-30 09:46:36.000000000 +0200 +++ new//usr/lib/monodoc/sources/Mono.zip/mastersummary.xml 2039-11-01 23:06:40.000000000 +0100 @@ -1,13 +1,17 @@ + + To be added. + To be added. + - + To be added. To be added. - + To be added. To be added. @@ -15,10 +19,6 @@ To be added. To be added. - - To be added. - To be added. - A binding to the 2D Cairo Graphics rendering API. @@ -184,7 +184,7 @@ To be added. To be added. - + To be added. To be added. @@ -192,26 +192,38 @@ To be added. To be added. - + To be added. To be added. - - Low-level Unix wrapper types. + + High-level Unix wrapper types. - The Mono.Unix.Native namespace contains - low-level wrapper classes, structures, and enumerations - which are accessible from the - and classes, which are - a low-level wrappers over ANSI C, POSIX and Unix system calls and library - functions. + The Mono.Unix namespace contains + high-level wrapper classes, which provide .NET naming and + usage conventions over the low-level + and + functionality. + + + If an exception is generated due to an operating system-level error + (as opposed to invalid arguments or some fully managed reason), the + exception thrown will either inherit from + , or the + property will be a + type inheriting from UnixIOException. In either case, the + property will + contain the underlying error number that generated the exception. + This error number can be used to look up additional information if + necessary. + - Thread-safety wasn't handled in the original Unix API. While + Thread-safety wasn't considered in the original Unix API. While some degree of thread-safety is provided from managed code, it is impossible to provide full thread-safety for interactions between managed and unmanaged code. For example, if you DllImport into a C library which uses non-thread-safe Unix functions which are also - exposed in Mono.Unix.Native, you may have threading issues including, but not + exposed in Mono.Unix, you may have threading issues including, but not limited to, memory corruption. An effort is made to provide thread-safety from managed code, but it is impossible to know all dependencies for all potential @@ -248,34 +260,26 @@ - - High-level Unix wrapper types. + + To be added. + To be added. + + + Low-level Unix wrapper types. - The Mono.Unix namespace contains - high-level wrapper classes, which provide .NET naming and - usage conventions over the low-level - and - functionality. - - - If an exception is generated due to an operating system-level error - (as opposed to invalid arguments or some fully managed reason), the - exception thrown will either inherit from - , or the - property will be a - type inheriting from UnixIOException. In either case, the - property will - contain the underlying error number that generated the exception. - This error number can be used to look up additional information if - necessary. - + The Mono.Unix.Native namespace contains + low-level wrapper classes, structures, and enumerations + which are accessible from the + and classes, which are + a low-level wrappers over ANSI C, POSIX and Unix system calls and library + functions. - Thread-safety wasn't considered in the original Unix API. While + Thread-safety wasn't handled in the original Unix API. While some degree of thread-safety is provided from managed code, it is impossible to provide full thread-safety for interactions between managed and unmanaged code. For example, if you DllImport into a C library which uses non-thread-safe Unix functions which are also - exposed in Mono.Unix, you may have threading issues including, but not + exposed in Mono.Unix.Native, you may have threading issues including, but not limited to, memory corruption. An effort is made to provide thread-safety from managed code, but it is impossible to know all dependencies for all potential @@ -312,10 +316,6 @@ - - To be added. - To be added. - The deprecated Mono.Posix namespace, use instead. @@ -326,43 +326,43 @@ To be added. To be added. - + To be added. To be added. - + To be added. To be added. - + To be added. To be added. - + To be added. To be added. - + To be added. To be added. - + To be added. To be added. - + To be added. To be added. - + To be added. To be added. - + To be added. To be added. /usr/lib/monodoc/sources/cs-errors.zip/CS0012 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0012 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0012 2039-11-01 23:06:40.000000000 +0100 @@ -2,28 +2,20 @@ CS0012 - // CS0012: The type `I1' is defined in an assembly that is not referenced. Consider adding a reference to assembly `CS0012-lib-missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' -// Line: 7 -// Compiler options: -r:CS0012-10-lib.dll - -class Test -{ - event D<Test> e; -} - // CS0012: The type `I1' is defined in an assembly that is not referenced. Consider adding a reference to assembly `CS0012-lib-missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' -// Line: 10 -// Compiler options: -r:CS0012-5-lib.dll + // CS0012: The type `Base.IQueryExpr`1<System.Collections.Generic.IEnumerable<double>>' is defined in an assembly that is not referenced. Consider adding a reference to assembly `CS0012-lib-missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' +// Line: 9 +// Compiler options: -r:CS0012-22-lib.dll -class Test +public class C { public static void Main () { - object o = typeof (B.N); + B.Sum (null); } } // CS0012: The type `AA' is defined in an assembly that is not referenced. Consider adding a reference to assembly `CS0012-lib-missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' // Line: 9 -// Compiler options: -r:CS0012-14-lib.dll +// Compiler options: -r:CS0012-16-lib.dll class Test { @@ -52,15 +44,15 @@ b.Test (); } } - // CS0012: The type `E' is defined in an assembly that is not referenced. Consider adding a reference to assembly `CS0012-lib-missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' + // CS0012: The type `A.Nested' is defined in an assembly that is not referenced. Consider adding a reference to assembly `CS0012-lib-missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' // Line: 9 -// Compiler options: -r:CS0012-18-lib.dll +// Compiler options: -r:CS0012-11-lib.dll class Test { public static void Main () { - var c = B.e; + new B ().Test (); } } @@ -78,102 +70,90 @@ } // CS0012: The type `A1' is defined in an assembly that is not referenced. Consider adding a reference to assembly `CS0012-lib-missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' // Line: 9 -// Compiler options: -r:CS0012-6-lib.dll - -class Test -{ - public static void Main () - { - A.M.Foo (); - } -} - - // CS0012: The type `A1' is defined in an assembly that is not referenced. Consider adding a reference to assembly `CS0012-lib-missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' -// Line: 10 -// Compiler options: -r:CS0012-6-lib.dll +// Compiler options: -r:CS0012-9-lib.dll -[A] class Test { public static void Main () { + A.M<string> (); } } - // CS0012: The type `A1' is defined in an assembly that is not referenced. Consider adding a reference to assembly `CS0012-lib-missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' + // CS0012: The type `AA' is defined in an assembly that is not referenced. Consider adding a reference to assembly `CS0012-lib-missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' // Line: 9 -// Compiler options: -r:CS0012-13-lib.dll +// Compiler options: -r:CS0012-15-lib.dll class Test { public static void Main () { - var a = B.Value; + B.Foo<long> (1); } } - // CS0012: The type `Base.IQueryExpr`1<System.Collections.Generic.IEnumerable<double>>' is defined in an assembly that is not referenced. Consider adding a reference to assembly `CS0012-lib-missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' -// Line: 9 -// Compiler options: -r:CS0012-22-lib.dll + // CS0012: The type `Lib2.Class1`1<Lib2.Class2>' is defined in an assembly that is not referenced. Consider adding a reference to assembly `CS0012-lib-missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' +// Line: 5 +// Compiler options: -r:CS0012-12-lib.dll -public class C +class Program : Lib1.Class1<int> { - public static void Main () - { - B.Sum (null); - } -} - // CS0012: The type `AA`1<T>' is defined in an assembly that is not referenced. Consider adding a reference to assembly `CS0012-lib-missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' +} + + // CS0012: The type `E' is defined in an assembly that is not referenced. Consider adding a reference to assembly `CS0012-lib-missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' // Line: 9 -// Compiler options: -r:CS0012-17-lib.dll +// Compiler options: -r:CS0012-18-lib.dll class Test { public static void Main () { - B.Foo<long> (); + var c = B.e; } } - // CS0012: The type `AA' is defined in an assembly that is not referenced. Consider adding a reference to assembly `CS0012-lib-missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' -// Line: 9 -// Compiler options: -r:CS0012-15-lib.dll + // CS0012: The type `A1' is defined in an assembly that is not referenced. Consider adding a reference to assembly `CS0012-lib-missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' +// Line: 10 +// Compiler options: -r:CS0012-6-lib.dll -class Test +class Test : A { public static void Main () { - B.Foo<long> (1); } -} - - // CS0012: The type `A0' is defined in an assembly that is not referenced. Consider adding a reference to assembly `cs0012-24-missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' -// Line: 9 -// Compiler options: -r:CS0012-24-lib.dll +} + // CS0012: The type `I1' is defined in an assembly that is not referenced. Consider adding a reference to assembly `CS0012-lib-missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' +// Line: 10 +// Compiler options: -r:CS0012-5-lib.dll -public class X +class Test { public static void Main () { - A.Test (); + object o = typeof (B.N); } } - // CS0012: The type `Lib2.Class1`1<Lib2.Class2>' is defined in an assembly that is not referenced. Consider adding a reference to assembly `CS0012-lib-missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' -// Line: 5 -// Compiler options: -r:CS0012-12-lib.dll + // CS0012: The type `A1' is defined in an assembly that is not referenced. Consider adding a reference to assembly `CS0012-lib-missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' +// Line: 9 +// Compiler options: -r:CS0012-6-lib.dll -class Program : Lib1.Class1<int> +class Test { + public static void Main () + { + A.M.Foo (); + } } - // CS0012: The type `Struct`1<int>' is defined in an assembly that is not referenced. Consider adding a reference to assembly `CS0012-lib-missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' -// Line: 9 -// Compiler options: -r:CS0012-23-lib.dll + // CS0012: The type `A1' is defined in an assembly that is not referenced. Consider adding a reference to assembly `CS0012-lib-missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' +// Line: 10 +// Compiler options: -r:CS0012-lib.dll -public class C +class Test { public static void Main () { - var val = B.ArrayMember; + var b = new B (); + b.Test (); } } // CS0012: The type `I1' is defined in an assembly that is not referenced. Consider adding a reference to assembly `CS0012-lib-missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' @@ -188,16 +168,15 @@ b.Prop = null; } /usr/lib/monodoc/sources/cs-errors.zip/CS0019 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0019 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0019 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,94 @@ CS0019 + // 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; + } +} + + // CS0019: Operator `==' cannot be applied to operands of type `int' and `string' +// Line: 8 + +class S +{ + static int i; + + static bool Foo () + { + return i == ""; + } +} + + // CS0019: Operator `+=' cannot be applied to operands of type `object' and `object' +// Line: 10 + +class Program +{ + static int Main () + { + object[] o = null; + int ii = 2; + o [ii++] += new object (); + return 0; + } +} + + // CS0019: Operator `!=' cannot be applied to operands of type `Test.DelegateA' and `Test.DelegateB' +// Line: 13 + +using System; + +public class Test +{ + public delegate int DelegateA(bool b); + public delegate int DelegateB(bool b); + + static bool TestCompare (DelegateA a, DelegateB b) + { + return a != b; + } +} + + // CS0019: Operator `==' cannot be applied to operands of type `Foo' and `null' +// Line: 14 + +struct Foo +{ + public static bool operator == (int d1, Foo d2) + { + throw new System.ApplicationException (); + } + + public static bool operator != (int d1, Foo d2) + { + throw new System.ApplicationException (); + } +} + +public class Test +{ + static Foo ctx; + + public static void Main () + { + if (ctx == null) + return; + } +} + // CS0019: Operator `!=' cannot be applied to operands of type `method group' and `string' // Line: 20 @@ -30,62 +118,39 @@ } } - // CS0019: Operator `==' cannot be applied to operands of type `S' and `S' -// Line: 22 + // CS0019: Operator `+=' cannot be applied to operands of type `dynamic' and `anonymous method' +// Line: 9 -struct S +class MainClass { - public static implicit operator E (S s) + public static void Main () { - return 0; + dynamic d = null; + d += delegate {}; } } + + // CS0019: Operator `*' cannot be applied to operands of type `E' and `E' +// Line : 10 -public enum E -{ +enum E: byte { + Min } -class C -{ - public static void Main () - { - S s; - S s2; - var x = s == s2; - } -} - // CS0019: Operator `==' cannot be applied to operands of type `anonymous method' and `anonymous method' -// Line: 8 - -public class C -{ - public static void Main () - { - bool b = delegate () {} == delegate () {}; +class T { + static void Main () { + E error = E.Min * E.Min; } } - // CS0019: Operator `==' cannot be applied to operands of type `C.E1' and `C.E2' -// Line: 21 - -class C + // CS0019: Operator `??' cannot be applied to operands of type `int' and `int' +// Line: 8 +class X { - enum E1 : long - { - A - } - - enum E2 : sbyte - { - A - } - - public static void Main () + static void Main () { - E1 b = E1.A; - E2 d = E2.A; - - bool brr = b == d; + int a = 5; + int b = a ?? 3; } } @@ -113,139 +178,104 @@ } } - // 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; } -} + // CS0019: Operator `==' cannot be applied to operands of type `dynamic' and `method group' +// Line: 9 -public class C +class C { - public static void Main () + static void Main () /usr/lib/monodoc/sources/cs-errors.zip/CS0021 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0021 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0021 2039-11-01 23:06:40.000000000 +0100 @@ -2,45 +2,30 @@ CS0021 - // CS0021: Cannot apply indexing with [] to an expression of type `int' -// Line: 10 -using System; + // CS0021: Cannot apply indexing with [] to an expression of type `object' +// Line: 9 -class Test +class C { public static void Main () { - int i = 0; - Console.WriteLine ("Get i[2]: {0}", i[2]); + var d = new object { + ["a"] = 1 + }; } -} - - - // CS0021: Cannot apply indexing with [] to an expression of type `System.Array' -// Line: 9 +} + // CS0021: Cannot apply indexing with [] to an expression of type `method group' +// Line: -using System; class X { - public void Foo (Array bar) + public void Foo () { - object baz = bar[0]; + object baz = Foo [0]; } } - // CS0021: Cannot apply indexing with [] to an expression of type `object' -// Line: 9 - -class C -{ - public static void Main () - { - var d = new object { - ["a"] = 1 - }; - } -} // CS0021: Cannot apply indexing with [] to an expression of type `G' // Line: 8 @@ -53,14 +38,29 @@ } - // CS0021: Cannot apply indexing with [] to an expression of type `method group' -// Line: + // CS0021: Cannot apply indexing with [] to an expression of type `System.Array' +// Line: 9 +using System; class X { - public void Foo () + public void Foo (Array bar) { - object baz = Foo [0]; + object baz = bar[0]; + } +} + + + // CS0021: Cannot apply indexing with [] to an expression of type `int' +// Line: 10 +using System; + +class Test +{ + public static void Main () + { + int i = 0; + Console.WriteLine ("Get i[2]: {0}", i[2]); } } /usr/lib/monodoc/sources/cs-errors.zip/CS0023 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0023 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0023 2039-11-01 23:06:40.000000000 +0100 @@ -2,73 +2,50 @@ CS0023 - // CS0023: The `.' operator cannot be applied to operand of type `method group' -// Line: 20 - -using System; - -enum Enum -{ - Test -} + // CS0023: The `?' operator cannot be applied to operand of type `int*' +// Line: 10 +// Compiler options: -unsafe -class A : Attribute +class C { - public A (object e) + unsafe static void Main () { + int* arr = null; + var v2 = arr?.ToString (); } -} +} + // CS0023: The `?' operator cannot be applied to operand of type `T' +// Line: 8 -class C +class X { - [A (Enum.Test)] - int Enum () + static void Bug<T>(System.Func<T> func) { - return 0; + var r = func?.Invoke (); } -} - - // CS0023: The `?' operator cannot be applied to operand of type `int' +} + // CS0023: The `++' operator cannot be applied to operand of type `object' // Line: 9 -public class C -{ - static void Main() - { - string s = null; - var x = s?.Length?.ToString (); +using System; +using System.Collections; + +class Test { + public static void Main(string[] args) { + ArrayList al = new ArrayList(); + al[0] = 0; + + Console.WriteLine((al[0])++); } -} +} + // CS0023: The `+' operator cannot be applied to operand of type `X' // Line : 6 class X { - static void Foo (object o) - { - } - - static void Main () { - Foo (+(X)null); - } + static X x; + static object o = +x; } - - - - - // CS0023: The `.' operator cannot be applied to operand of type `method group' -// Line: 9 - -public class App { - - public static void Main() {} - - SomeEnum SomeEnum() { - return SomeEnum.First; - } - -} - -enum SomeEnum { First, Second }; // CS0023: The `.' operator cannot be applied to operand of type `void' // Line: 12 @@ -85,54 +62,14 @@ } } - // CS0023: The `++' operator cannot be applied to operand of type `object' -// Line: 9 - -using System; -using System.Collections; - -class Test { - public static void Main(string[] args) { - ArrayList al = new ArrayList(); - al[0] = 0; - - Console.WriteLine((al[0])++); - } -} - - // CS0023: The `+' operator cannot be applied to operand of type `bool' -// Line : 6 - -class X { - static void Main () { - bool b = +true; - } -} - - - - - // CS0023: The `is' operator cannot be applied to operand of type `default' -// Line: 9 -// Compiler options: -langversion:latest - -class C -{ - static void Main () - { - bool d = default is C; - } -} - // CS0023: The `?' operator cannot be applied to operand of type `void' -// Line: 10 - -using System; + // CS0023: The `.' operator cannot be applied to operand of type `null' +// Line: 8 class C { - static void Main () + public static void Main () { - var v = Console.WriteLine ()?[0]; + string s = null.ToString (); } } // CS0023: The `?' operator cannot be applied to operand of type `int' @@ -148,52 +85,82 @@ var r = k?.ToString (); } } - // CS0023: The `?' operator cannot be applied to operand of type `T' -// Line: 8 + // CS0023: The `?' operator cannot be applied to operand of type `method group' +// Line: 14 -class C +class X { - static void Foo<T> (T t) where T : struct + void Test () { - var r = t?.ToString (); } -} - // CS0023: The `?' operator cannot be applied to operand of type `T' -// Line: 11 -class C2<T> -{ - C2<T> i; - T field; - - public void Foo () + public static void Main () { - var x = i?.field; + X x = null; + System.Action n = x?.Test; } } - // CS0023: The `+' operator cannot be applied to operand of type `string' -// Line: 10 + // CS0023: The `.' operator cannot be applied to operand of type `anonymous method' /usr/lib/monodoc/sources/cs-errors.zip/CS0027 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0027 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0027 2039-11-01 23:06:40.000000000 +0100 @@ -2,25 +2,6 @@ CS0027 - // CS0027: Keyword `this' is not available in the current context -// Line: 10 - -// Attention: Here the compiler complains saying that cannot convert implicitly from 'Error0027' to 'int' but -// should also say that the use of keyword 'this' is out of context since it's used outside a constructor, method -// or property. -using System; - -class Error0027 { - int i = this; - int x = 0; - - public static void Main () { - Console.WriteLine ("The compiler should complain: Error CS0027 trying to use 'this' outside context."); - Console.WriteLine ("Trying to assign i to 'this' outside a method, property or ctr."); - } -} - - // CS0007: Keyword `this' is not available in the current context // Line: 14 @@ -63,6 +44,25 @@ } } + + // CS0027: Keyword `this' is not available in the current context +// Line: 10 + +// Attention: Here the compiler complains saying that cannot convert implicitly from 'Error0027' to 'int' but +// should also say that the use of keyword 'this' is out of context since it's used outside a constructor, method +// or property. +using System; + +class Error0027 { + int i = this; + int x = 0; + + public static void Main () { + Console.WriteLine ("The compiler should complain: Error CS0027 trying to use 'this' outside context."); + Console.WriteLine ("Trying to assign i to 'this' outside a method, property or ctr."); + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0029 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0029 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0029 2039-11-01 23:06:40.000000000 +0100 @@ -2,85 +2,17 @@ CS0029 - // 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; - }); - } -} - // CS0029: Cannot implicitly convert type `string' to `Test.String' -// Line: 38 - -using System; - -namespace Test -{ - using Text = System.Text; - using Str = System.String; - - public class String - { - string s; - public String(string s) - { - this.s=s; - } - - public static implicit operator Str (String s1) - { - if(s1==null) return null; - return s1.ToString(); - } - } -} + // CS0029: Cannot implicitly convert type `A.D' to `A' +// Line: 11 -namespace TestCompiler +class A { - using String=Test.String; - - class MainClass - { - public static void Main(string[] args) - { - Console.WriteLine("Hello World!"); - String a="bonjour"; - int i=1; - Console.WriteLine(i+a); - } - } -} - - // CS0029: Cannot implicitly convert type `X' to `bool' -// Line : 11 - -class X { -} + delegate void D (); -class T { - static void Main () + public static void Main () { - X x = new X (); - if (x){ - } + const D d = null; + A a = d; } } @@ -101,58 +33,36 @@ } } - // CS0029: Cannot implicitly convert type `string' to `System.Runtime.InteropServices.CallingConvention' -// Line: 10 + // CS0029: Cannot implicitly convert type `T' to `EventHandler' +// Line: 14 using System; -using System.Runtime.InteropServices; -namespace Tsunami { - public sealed class Gl { - - [DllImport("libGL.so", EntryPoint="glCopyTexSubImage3D", CallingConvention="cdecl", ExactSpelling=true)] - public static extern void CopyTexSubImage3D (); +public delegate void EventHandler (int i, int j); - } -} +public class Button { - - // CS0029: Cannot implicitly convert type `A<int>.B<long>' to `A<long>.B<long>' -// Line: 14 + public event EventHandler Click; -class A<T> -{ - public class B<U> + public void Connect<T> () where T : class { + Click += default (T); } } - -class Test -{ - static A<int>.B<long> a; - static A<long>.B<long> b = a; -} - // CS0029: Cannot implicitly convert type `int' to `System.IDisposable' + // CS0029: Cannot implicitly convert type `T[]' to `U[]' // Line: 8 -class A +class Test { - public static void Main () + static void Main () { - System.IDisposable id = 1; + Foo<int, object> (new int[] { 1 }); } -} - - // CS0029: Cannot implicitly convert type `T' to `int*' -// Line: 8 -// Compiler options: -unsafe -class T -{ - static unsafe void Main () + static U[] Foo<T, U> (T[] arg) where T : U where U : class { - int* a = default (T); + return arg; } } @@ -168,71 +78,100 @@ var res = default (TypedReference).ToString (); } } - // CS0029: Cannot implicitly convert type `anonymous type' to `bool' -// Line: 10 + // CS0029: Cannot implicitly convert type `char' to `char*' +// Line: 15 +// Compiler options: -unsafe +unsafe struct MyStruct +{ + public fixed char Name[32]; +} -public class Test +unsafe class MainClass { - static void Main () + public static void Main () { - var o = new { Value = 1 }; - bool b = o; + var str = new MyStruct (); + str.Name = default (char); } } - // CS0029: Cannot implicitly convert type `string' to `int' + // CS0029: Cannot implicitly convert type `int' to `System.IDisposable' // Line: 8 -class C /usr/lib/monodoc/sources/cs-errors.zip/CS0030 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0030 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0030 2039-11-01 23:06:40.000000000 +0100 @@ -2,31 +2,62 @@ CS0030 - // CS0030: Cannot convert type `object' to `S' + // CS0030: Cannot convert type `X' to `S' +// Line: 10 + +struct S { +} + +class X { + static void Main () + { + S s = (S)default(X); + } +} + + // CS0030: Cannot convert type `Blah' to `float' +// Line: 12 + +public class Blah { + + public static int Main () + { + Blah k; + + k = new Blah (); + + float f = (float) k; + + } +} + + // CS0030: Cannot convert type `string' to `IA' // Line: 13 -// Compiler options: -langversion:latest -ref struct S +interface IA { } -class X +class MainClass { - public static void Foo (object o) + public static void Main () { - var res = (S) o; + string s = "s"; + IA i = (IA) s; } -} - // CS0030: Cannot convert type `System.DateTime' to `string' -// Line: 10 +} + + // CS0030: Cannot convert type `System.Enum' to `int' +// Line: 11 using System; -public class Blah +class MainClass { public static void Main () { - string s = (string)DateTime.Now; + Enum e = null; + int i = (int) e; } } @@ -43,6 +74,23 @@ } } + // 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 () + { } +} + // CS0030: Cannot convert type `T2[]' to `T1[]' // Line: 8 @@ -54,6 +102,39 @@ } } + // CS0030: Cannot convert type `Position' to `Board.Stone' +// Line: 20 + +using System; +using System.Collections; + +public class Position { +} + +public class Board { + public enum Stone : int { + None = 0, + Empty = 1, + Black = 2, + White = 3 + } + + public Stone Get(Position p) + { + return (Stone)p; + } + + public static void Main() { + } + +} + + + + + + + // CS0030: Cannot convert type `System.Enum' to `Blah.S' // Line: 12 @@ -68,47 +149,33 @@ S s = (S)(Enum)E.Val; } } - // CS0030: Cannot convert type `S' to `E' -// Line: 10 - -enum E -{ - V -} + // CS0030: Cannot convert type `bool' to `int' +// Line: 9 -struct S +class X { - public static explicit operator int (S val) + static void Main () { - return 1; + const bool b = true; + int a = (int)(b ? true : false); } } + + // CS0030: Cannot convert type `object' to `S' +// Line: 13 +// Compiler options: -langversion:latest -class C +ref struct S { - E Foo () - { - S s = new S (); - return (E) s; - } - - public static void Main () - { - } } - - // CS0030: Cannot convert type `bool' to `int' -// Line: 9 class X { - static void Main () + public static void Foo (object o) { - const bool b = true; - int a = (int)(b ? true : false); + var res = (S) o; } -} - +} // CS0030: Cannot convert type `TestCase.MyEnum' to `TestCase.OSType' /usr/lib/monodoc/sources/cs-errors.zip/CS0031 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0031 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0031 2039-11-01 23:06:40.000000000 +0100 @@ -2,26 +2,35 @@ CS0031 - // CS0031: Constant value `999999999999999' cannot be converted to a `int' + // CS0031: Constant value `-97' cannot be converted to a `uint' // Line: 9 -class X +public class Test +{ + const uint b = -'a'; +} + // CS0031: Constant value `-1' cannot be converted to a `byte' +// Line: 9 + +public class Test +{ + public static void Main() + { + byte b = -1; + } +} + // CS0031: Constant value `1000M' cannot be converted to a `byte' +// Line: 8 + +class C { public static void Main () { - int i = 3; - i += 999999999999999; + const byte c = unchecked ((byte) 1000M); } } - // CS0031: Constant value `1.42' cannot be converted to a `int' -// Line: 6 - -class X -{ - const int val = 1.42f; -} // CS0031: Constant value `200000000000' cannot be converted to a `int' // Line: 7 // Compiler options: -unsafe @@ -47,14 +56,16 @@ } } - // CS0031: Constant value `-1' cannot be converted to a `byte' + // CS0031: Constant value `1022' cannot be converted to a `byte' // Line: 9 public class Test { public static void Main() { - byte b = -1; + unchecked { + byte b = 1024 - 2; + } } } // CS0031: Constant value `-9' cannot be converted to a `uint' @@ -67,33 +78,22 @@ uint b = -9; } } - // CS0031: Constant value `-97' cannot be converted to a `uint' -// Line: 9 + // CS0031: Constant value `1.42' cannot be converted to a `int' +// Line: 6 -public class Test +class X { - const uint b = -'a'; + const int val = 1.42f; } - // CS0031: Constant value `1022' cannot be converted to a `byte' + // CS0031: Constant value `999999999999999' cannot be converted to a `int' // Line: 9 -public class Test -{ - public static void Main() - { - unchecked { - byte b = 1024 - 2; - } - } -} - // CS0031: Constant value `1000M' cannot be converted to a `byte' -// Line: 8 - -class C +class X { public static void Main () { - const byte c = unchecked ((byte) 1000M); + int i = 3; + i += 999999999999999; } } /usr/lib/monodoc/sources/cs-errors.zip/CS0034 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0034 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0034 2039-11-01 23:06:40.000000000 +0100 @@ -40,40 +40,50 @@ } - // CS0034: Operator `+' is ambiguous on operands of type `null' and `null' -// Line: 8 + // CS0034: Operator `==' is ambiguous on operands of type `Foo' and `Foo' +// Line: 23 -class C +public struct Foo { - public static void Main () + public static implicit operator int? (Foo f) { - const string s3 = null + null; + return 1; } -} - // CS0034: Operator `==' is ambiguous on operands of type `A' and `A' -// Line: 36 -using System; + public static implicit operator bool? (Foo f) + { + return false; + } +} -struct A +class C { - public static implicit operator string (A c) + public static void Main () { - return null; + Foo f; + Foo f2; + var v = f == f2; } +} + // CS0034: Operator `+' is ambiguous on operands of type `A' and `A' +// Line: 22 - public static implicit operator Delegate (A c) +public class A { + public static implicit operator int (A a) { - return null; + return 0; } -} + public static implicit operator string (A a) + { + return "a"; + } -class Program -{ public static void Main () { - bool b = new A () == new A (); + A a = new A (); + object o = a + a; + System.Console.WriteLine (o); } } @@ -116,52 +126,42 @@ } } - // CS0034: Operator `==' is ambiguous on operands of type `Foo' and `Foo' -// Line: 23 + // CS0034: Operator `==' is ambiguous on operands of type `A' and `A' +// Line: 36 -public struct Foo +using System; + +struct A { - public static implicit operator int? (Foo f) + public static implicit operator string (A c) { - return 1; + return null; } - public static implicit operator bool? (Foo f) + public static implicit operator Delegate (A c) { - return false; + return null; } } -class C + +class Program { public static void Main () { - Foo f; - Foo f2; - var v = f == f2; - } -} - // CS0034: Operator `+' is ambiguous on operands of type `A' and `A' -// Line: 22 - -public class A { - public static implicit operator int (A a) - { - return 0; - } - - public static implicit operator string (A a) - { - return "a"; + bool b = new A () == new A (); } +} + + // CS0034: Operator `+' is ambiguous on operands of type `null' and `null' +// Line: 8 +class C +{ public static void Main () { - A a = new A (); - object o = a + a; - System.Console.WriteLine (o); + const string s3 = null + null; } -} - +} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0037 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0037 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0037 2039-11-01 23:06:40.000000000 +0100 @@ -2,43 +2,6 @@ CS0037 - // CS0037: Cannot convert null to `int' because it is a value type -// Line: 6 - -class C -{ - int [,] i = new int [2,null] { { 1 }, { 2 } }; -} - - - // CS0037: Cannot convert null to `bool' because it is a value type -// Line: 13 - -using System; - -public sealed class BoundAttribute : System.Attribute -{ - public bool Dec { set { } get { return false; } } -} - -class C -{ - [Bound (Dec = null)] - double d2; -} - // CS0037: Cannot convert null to `int' because it is a value type -// Line: 9 - -class X { - static void Main () - { - int s = 44; - switch (s) { - case null: break; - } - } -} - // CS0037: Cannot convert null to `S' because it is a value type // Line: 10 struct S { @@ -52,14 +15,6 @@ } } - // CS0037: Cannot convert null to `int' because it is a value type -// Line: 6 - -class C -{ - object [,] i = new int [2,1] { { null }, { 2 } }; -} - // CS0037: Cannot convert null to `char' because it is a value type // Line: 12 @@ -76,21 +31,14 @@ } } - // CS0037: Cannot convert null to `byte' because it is a value type -// Line : 7 - -public class Blah { - - public enum MyEnum : byte { - Foo = null, - Bar - } + // CS0037: Cannot convert null to `int' because it is a value type +// Line: 6 - public static void Main () - { - } +class C +{ + object [,] i = new int [2,1] { { null }, { 2 } }; } - + // CS0037: Cannot convert null to `bool' because it is a value type // Line: 19 @@ -113,6 +61,43 @@ } } + // CS0037: Cannot convert null to `int' because it is a value type +// Line: 9 + +class X { + static void Main () + { + int s = 44; + switch (s) { + case null: break; + } + } +} + + // CS0037: Cannot convert null to `bool' because it is a value type +// Line: 13 + +using System; + +public sealed class BoundAttribute : System.Attribute +{ + public bool Dec { set { } get { return false; } } +} + +class C +{ + [Bound (Dec = null)] + double d2; +} + // CS0037: Cannot convert null to `int' because it is a value type +// Line: 6 + +class C +{ + int [,] i = new int [2,null] { { 1 }, { 2 } }; +} + + // CS0037: Cannot convert null to `char' because it is a value type // Line: 8 @@ -124,5 +109,20 @@ } } + // CS0037: Cannot convert null to `byte' because it is a value type +// Line : 7 + +public class Blah { + + public enum MyEnum : byte { + Foo = null, + Bar + } + + public static void Main () + { + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0038 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0038 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0038 2039-11-01 23:06:40.000000000 +0100 @@ -39,6 +39,26 @@ } } + // CS0038: Cannot access a nonstatic member of outer type `A' via nested type `B.C' +// Line: 15 + +public class A { + public int Foo { get { return 1; } } +} + +public class B : A { + public static void Main () + { + } + + public class C { + public void Baz () + { + int x = Foo; + } + } +} + // CS0038: Cannot access a nonstatic member of outer type `X' via nested type `X.Y' // Line: 15 using System; @@ -62,37 +82,16 @@ } } - // CS0038: Cannot access a nonstatic member of outer type `A' via nested type `C.N' -// Line: 12 - -class A { - protected int n = 0; -} - -class B : A { } - -class C : B { - class N { - internal int foo () { return n; } - } - public static int Main () { - N a = new N (); - return a.foo (); - } -} - - // CS0038: Cannot access a nonstatic member of outer type `A' via nested type `B.C' -// Line: 15 - -public class A { - public int Foo { get { return 1; } } -} + // CS0038: Cannot access a nonstatic member of outer type `B' via nested type `B.C' +// Line: 14 -public class B : A { +public class B { public static void Main () { } + public int Foo { get { return 1; } } + public class C { public void Baz () { @@ -101,21 +100,22 @@ } } - // CS0038: Cannot access a nonstatic member of outer type `B' via nested type `B.C' -// Line: 14 + // CS0038: Cannot access a nonstatic member of outer type `A' via nested type `C.N' +// Line: 12 -public class B { - public static void Main () - { - } +class A { + protected int n = 0; +} - public int Foo { get { return 1; } } +class B : A { } - public class C { - public void Baz () - { - int x = Foo; - } +class C : B { + class N { + internal int foo () { return n; } + } + public static int Main () { + N a = new N (); + return a.foo (); } } /usr/lib/monodoc/sources/cs-errors.zip/CS0051 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0051 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0051 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,15 @@ CS0051 + // 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) {} +} + // CS0051: Inconsistent accessibility: parameter type `NV' is less accessible than method `C1.Foo(NV)' // Line: 14 @@ -35,14 +44,5 @@ } } - // 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) {} -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0052 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0052 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0052 2039-11-01 23:06:40.000000000 +0100 @@ -2,30 +2,27 @@ CS0052 - // CS0052: Inconsistent accessibility: field type `InternalClass' is less accessible than field `PublicClass.member' + // CS0052: Inconsistent accessibility: field type `C' is less accessible than field `PublicClass.member' // Line: 8 -class InternalClass { +class C +{ } -public class PublicClass { - public InternalClass member; +public class PublicClass +{ + public const C member = null; } + - // CS0052: Inconsistent accessibility: field type `A.B' is less accessible than field `A.C.D.b' -// Line: 12 + // CS0052: Inconsistent accessibility: field type `InternalClass' is less accessible than field `PublicClass.member' +// Line: 8 -public class A -{ - private class B { } +class InternalClass { +} - public class C - { - protected class D - { - protected B b; - } - } +public class PublicClass { + public InternalClass member; } // CS0052: Inconsistent accessibility: field type `A.B' is less accessible than field `A.C.D.b' @@ -44,18 +41,21 @@ } } - // CS0052: Inconsistent accessibility: field type `C' is less accessible than field `PublicClass.member' -// Line: 8 + // CS0052: Inconsistent accessibility: field type `A.B' is less accessible than field `A.C.D.b' +// Line: 12 -class C +public class A { -} + private class B { } -public class PublicClass -{ - public const C member = null; + public class C + { + protected class D + { + protected B b; + } + } } - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0060 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0060 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0060 2039-11-01 23:06:40.000000000 +0100 @@ -2,23 +2,19 @@ CS0060 - // CS0060: Inconsistent accessibility: base class `X' is less accessible than class `Y' -// Line: 6 -class X { -} - -public class Y : X { -} - - // CS0060: Inconsistent accessibility: base class `Foo<Bar.Baz>' is less accessible than class `Bar' -// Line: 7 + // CS0060: Inconsistent accessibility: base class `A.B.C' is less accessible than class `A.B.D' +// Line: 10 -public class Foo<K> { -} +public class A +{ + private class B + { + protected class C { } -public class Bar : Foo<Bar.Baz> { - internal class Baz { - } + protected internal class D : C + { + } + } } // CS0060: Inconsistent accessibility: base class `A.B.Base' is less accessible than class `A.B.Derived' @@ -33,55 +29,27 @@ } } - // CS0060: Inconsistent accessibility: base class `A.B.C' is less accessible than class `A.B.D' + // CS0060: Inconsistent accessibility: base class `X.A.D.E' is less accessible than class `X.A.B.F' // Line: 10 -public class A -{ - private class B - { - protected class C { } - - protected internal class D : C - { - } - } -} - - // CS0060: Inconsistent accessibility: base class `B.C.E' is less accessible than class `B.A.D' -// Line: 15 - -public class B +internal class X { - protected class C : A + protected class A { - public class E + protected internal class B { + internal class F : D.E + { + } } - } - protected internal class A - { - protected class D : C.E + protected class D : B { + internal class E { } } } } - // CS0060: Inconsistent accessibility: base class `System.Collections.Generic.List<Foo<T>.Bar>' is less accessible than class `Foo<T>' -// Line: 7 - -using System; -using System.Collections.Generic; - -public class Foo<T> : List<Foo<T>.Bar> -{ - class Bar - { - } -} - - // CS0060: Inconsistent accessibility: base class `A<C>.B' is less accessible than class `D' // Line: 13 @@ -98,24 +66,36 @@ { } - // CS0060: Inconsistent accessibility: base class `X.A.D.E' is less accessible than class `X.A.B.F' -// Line: 10 + // CS0060: Inconsistent accessibility: base class `X' is less accessible than class `Y' +// Line: 6 +class X { +} -internal class X +public class Y : X { +} + + // CS0060: Inconsistent accessibility: base class `System.Collections.Generic.List<Foo<T>.Bar>' is less accessible than class `Foo<T>' +// Line: 7 + +using System; +using System.Collections.Generic; + +public class Foo<T> : List<Foo<T>.Bar> { - protected class A + class Bar { - protected internal class B - { - internal class F : D.E - { - } - } + } +} - protected class D : B - { - internal class E { } - } + + // 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 { } } @@ -130,5 +110,25 @@ } } + // CS0060: Inconsistent accessibility: base class `B.C.E' is less accessible than class `B.A.D' +// Line: 15 + +public class B +{ + protected class C : A + { + public class E + { + } + } + + protected internal class A + { + protected class D : C.E + { + } + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0061 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0061 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0061 2039-11-01 23:06:40.000000000 +0100 @@ -19,23 +19,6 @@ } } - // CS0061: Inconsistent accessibility: base interface `IFoo' is less accessible than interface `IBar' -// Line: 9 - -using System; - -interface IFoo { -} - -public interface IBar : IFoo { -} - -class ErrorCS0061 { - public static void Main () { - } -} - - // CS0061: Inconsistent accessibility: base interface `B.IBase' is less accessible than interface `A.IDerived' // Line: 6 @@ -53,5 +36,22 @@ } } + // CS0061: Inconsistent accessibility: base interface `IFoo' is less accessible than interface `IBar' +// Line: 9 + +using System; + +interface IFoo { +} + +public interface IBar : IFoo { +} + +class ErrorCS0061 { + public static void Main () { + } +} + + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0066 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0066 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0066 2039-11-01 23:06:40.000000000 +0100 @@ -2,12 +2,6 @@ CS0066 - // CS0066: `Sample.reference': event must be of a delegate type -// Line: 5 - -public class Sample { - event object reference; -} // CS0066: `Button.Click': event must be of a delegate type // Line : 10 @@ -34,5 +28,11 @@ } + // CS0066: `Sample.reference': event must be of a delegate type +// Line: 5 + +public class Sample { + event object reference; +} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0067 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0067 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0067 2039-11-01 23:06:40.000000000 +0100 @@ -13,23 +13,6 @@ public static event EventHandler EH; } - // CS0067: The event `Foo.OnFoo' is never used -// Line: 12 -// Compiler options: -warnaserror -warn:3 - -using System; - -class Foo -{ - public event FooHandler OnFoo; - public delegate void FooHandler (); - - public static void Main () - { - } -} - - // CS0067: The event `EventTestClass.Elapsed' is never used // Line: 8 // Compiler options: -warnaserror @@ -63,6 +46,23 @@ } } + + // CS0067: The event `Foo.OnFoo' is never used +// Line: 12 +// Compiler options: -warnaserror -warn:3 + +using System; + +class Foo +{ + public event FooHandler OnFoo; + public delegate void FooHandler (); + + public static void Main () + { + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0071 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0071 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0071 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,26 @@ CS0071 + // CS0071: `Test.IBlah.Foo': An explicit interface implementation of an event must use property syntax +// Line: 14 + +using System; + +delegate void Delegate (); + +interface IBlah +{ + event Delegate Foo; +} + +class Test : IBlah { + event Delegate IBlah.Foo; + + public static void Main () + { + } +} + // CS0071: `ErrorCS0071.IFoo.OnFoo': An explicit interface implementation of an event must use property syntax // Line: 13 @@ -39,25 +59,5 @@ } - // CS0071: `Test.IBlah.Foo': An explicit interface implementation of an event must use property syntax -// Line: 14 - -using System; - -delegate void Delegate (); - -interface IBlah -{ - event Delegate Foo; -} - -class Test : IBlah { - event Delegate IBlah.Foo; - - public static void Main () - { - } -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0079 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0079 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0079 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,52 @@ CS0079 + // CS0079: The event `ErrorCS0079.OnFoo' can only appear on the left hand side of `+=' or `-=' operator +// Line: 19 + +using System; + +class ErrorCS0079 { + public delegate void Handler (); + event Handler privateEvent; + public event Handler OnFoo { + add { + privateEvent += value; + } + remove { + privateEvent -= value; + } + } + void Callback() { + if (privateEvent != null) + OnFoo(); + } + + public static void Main () { + } +} + + + + // CS0079: The event `Foo.Event2' can only appear on the left hand side of `+=' or `-=' operator +// Line: 11 + +using System; + +public class Foo { + EventHandler event2; + + public Foo () + { + Event2 = null; + } + + public event EventHandler Event2 { + add { event2 += value; } + remove {event2 -= value; } + } +} + // CS0079: The event `Foo.BaseFoo.Changed' can only appear on the left hand side of `+=' or `-=' operator // Line: 16 @@ -11,9 +57,9 @@ { public delegate void VoidHandler (); - public abstract class BaseFoo + public class BaseFoo { - public abstract event VoidHandler Changed; + public extern event VoidHandler Changed; public string Name { set { @@ -40,25 +86,6 @@ } } - // CS0079: The event `Foo.Event2' can only appear on the left hand side of `+=' or `-=' operator -// Line: 11 - -using System; - -public class Foo { - EventHandler event2; - - public Foo () - { - Event2 = null; - } - - public event EventHandler Event2 { - add { event2 += value; } - remove {event2 -= value; } - } -} - // CS0079: The event `Foo.BaseFoo.Changed' can only appear on the left hand side of `+=' or `-=' operator // Line: 16 @@ -68,9 +95,9 @@ { public delegate void VoidHandler (); - public class BaseFoo + public abstract class BaseFoo { - public extern event VoidHandler Changed; + public abstract event VoidHandler Changed; public string Name { set { @@ -80,32 +107,5 @@ } } - // CS0079: The event `ErrorCS0079.OnFoo' can only appear on the left hand side of `+=' or `-=' operator -// Line: 19 - -using System; - -class ErrorCS0079 { - public delegate void Handler (); - event Handler privateEvent; - public event Handler OnFoo { - add { - privateEvent += value; - } - remove { - privateEvent -= value; - } - } - void Callback() { - if (privateEvent != null) - OnFoo(); - } - - public static void Main () { - } -} - - - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0081 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0081 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0081 2039-11-01 23:06:40.000000000 +0100 @@ -10,16 +10,6 @@ } // CS0081: Type parameter declaration must be an identifier not a type -// Line: 6 - -class D -{ - public void Foo<int>() - { - } -} - - // CS0081: Type parameter declaration must be an identifier not a type // Line: 4 partial class A<T, bool> @@ -30,5 +20,15 @@ { } + // CS0081: Type parameter declaration must be an identifier not a type +// Line: 6 + +class D +{ + public void Foo<int>() + { + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0082 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0082 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0082 2039-11-01 23:06:40.000000000 +0100 @@ -2,15 +2,27 @@ CS0082 - // CS0082: A member `Test.get_Value()' is already reserved + // CS0082: A member `ISample.set_Item(int, int)' is already reserved // Line: 6 -public class Test +public interface ISample { + int this[int i] { set; } + void set_Item (int a, int b); +} + + // CS0082: A member `Test.get_Value()' is already reserved +// Line: 7 + +public partial class Test +{ + public string get_Value () { return null; } +} + +public partial class Test { public string Value { - set { } + get { } } - public string get_Value () { return null; } } // CS0082: A member `ISample.set_Item(int, int)' is already reserved @@ -21,6 +33,17 @@ int this[int i] { set; } } + // CS0082: A member `Test.get_Value()' is already reserved +// Line: 7 + +public class Test +{ + public string get_Value () { return null; } + public string Value { + get { } + } +} + // CS0082: A member `ErrorClass.get_Blah(int)' is already reserved // Line: 8 @@ -38,6 +61,17 @@ } } + // CS0082: A member `Test.set_Item(int, string)' is already reserved +// Line : 6 + +public class Test +{ + public string this [int i] { + get { return ""; } + } + public void set_Item (int i, string s) { } +} + // CS0082: A member `Test.add_XX(Test.MyEvent)' is already reserved // Line: 12 @@ -53,43 +87,6 @@ } - // CS0082: A member `Test.get_Value()' is already reserved -// Line: 7 - -public partial class Test -{ - public string get_Value () { return null; } -} - -public partial class Test -{ - public string Value { - get { } - } -} - - // CS0082: A member `Test.get_Value()' is already reserved -// Line: 7 - -public class Test -{ - public string get_Value () { return null; } - public string Value { - get { } - } -} - - // CS0082: A member `Test.set_Item(int, string)' is already reserved -// Line : 6 - -public class Test -{ - public string this [int i] { - get { return ""; } - } - public void set_Item (int i, string s) { } -} - // CS0082: A member `I.set_Item(int[], params int[])' is already reserved // Line : 7 @@ -99,12 +96,15 @@ int[] this [params int[] ii] { get; } } - // CS0082: A member `ISample.set_Item(int, int)' is already reserved + // CS0082: A member `Test.get_Value()' is already reserved // Line: 6 -public interface ISample { - int this[int i] { set; } - void set_Item (int a, int b); +public class Test +{ + public string Value { + set { } + } + public string get_Value () { return null; } } /usr/lib/monodoc/sources/cs-errors.zip/CS0100 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0100 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0100 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,39 @@ CS0100 + // CS0100: The parameter name `obj' is a duplicate +// Line: 4 + +class C +{ + public extern C (object obj, object obj); +} + + // CS0100: The parameter name `a' is a duplicate +// Line: 6 +// +// Author: +// Alejandro Snchez Acosta <raciel@es.gnu.org> +// +// (C) Alejandro Snchez Acosta +// + +public class X +{ + public void Add (int a, int a) + { + int c; + c= a + a; + Console.WriteLine (c); + } + + static void Main () + { + this.Add (3, 5); + } +} + + // CS0100: The parameter name `a' is a duplicate // Line: 10 @@ -20,30 +53,15 @@ class C { - public extern C (object obj, object obj); -} - - // CS0100: The parameter name `obj' is a duplicate -// Line: 4 - -public delegate void D (object obj, object obj); - - // CS0100: The parameter name `obj' is a duplicate -// Line: 4 - -abstract class C -{ - public abstract int this [object obj, object obj] { - set; - } + public static extern bool operator +(C obj, C obj); } // CS0100: The parameter name `obj' is a duplicate -// Line: 4 +// Line: 6 -class C +public abstract class TestClass { - public static extern bool operator +(C obj, C obj); + public abstract void TestMethod (object obj, object obj); } // CS100: The parameter name `obj' is a duplicate @@ -54,37 +72,19 @@ public abstract int this [object obj, object obj] => 1; } // CS0100: The parameter name `obj' is a duplicate -// Line: 6 +// Line: 4 -public abstract class TestClass -{ - public abstract void TestMethod (object obj, object obj); -} +public delegate void D (object obj, object obj); - // CS0100: The parameter name `a' is a duplicate -// Line: 6 -// -// Author: -// Alejandro Snchez Acosta <raciel@es.gnu.org> -// -// (C) Alejandro Snchez Acosta -// + // CS0100: The parameter name `obj' is a duplicate +// Line: 4 -public class X +abstract class C { - public void Add (int a, int a) - { - int c; - c= a + a; - Console.WriteLine (c); - } - - static void Main () - { - this.Add (3, 5); + public abstract int this [object obj, object obj] { + set; } } - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0101 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0101 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0101 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,15 @@ CS0101 + // CS0101: The namespace `global::' already contains a definition for `Test' +// Line: 6 + +class Test {} + +namespace Test +{ +} + // CS0101: The namespace `N' already contains a definition for `Test<T>' // Line: 7 // Compiler options: CS0101-9-2.cs @@ -26,63 +35,22 @@ { } } - // CS0101: The namespace `Test' already contains a definition for `Foo' -// Line: 10 - -namespace Test -{ - public class Foo - { - } - - namespace Foo.PP - { - } -} - // CS0101: The namespace `global::' already contains a definition for `Test' -// Line: 6 +// Line: 5 +// Compiler options: CS0101-7-2.cs class Test {} - -namespace Test -{ -} - // CS0101: The namespace `global::' already contains a definition for `SomeEnum' -// Line: 10 -using System; - -public enum SomeEnum { - Something1, - Something2 -} + // CS0101: The namespace `global::' already contains a definition for `I<T>' +// Line: 8 -public enum SomeEnum { - Dog, - Fish, - Cat +interface I<T> +{ } -public class DupeEnumTest { - public static void Main(string[] args) { - SomeEnum someEnum = SomeEnum.Dog; - Console.WriteLine("SomeEnum Result: " + someEnum.ToString -()); - } +partial class I<T> +{ } - - - - - - - - // CS0101: The namespace `global::' already contains a definition for `Test' -// Line: 5 -// Compiler options: CS0101-7-2.cs - -class Test {} // CS0101: The namespace `AA.VV' already contains a definition for `SomeEnum' // Line: 10 @@ -117,16 +85,48 @@ } } - // CS0101: The namespace `global::' already contains a definition for `I<T>' -// Line: 8 + // CS0101: The namespace `Test' already contains a definition for `Foo' +// Line: 10 -interface I<T> +namespace Test { + public class Foo + { + } + + namespace Foo.PP + { + } +} + + // CS0101: The namespace `global::' already contains a definition for `SomeEnum' +// Line: 10 +using System; + +public enum SomeEnum { + Something1, + Something2 } -partial class I<T> -{ +public enum SomeEnum { + Dog, + Fish, + Cat } + +public class DupeEnumTest { + public static void Main(string[] args) { + SomeEnum someEnum = SomeEnum.Dog; + Console.WriteLine("SomeEnum Result: " + someEnum.ToString +()); + } +} + + + + + + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0102 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0102 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0102 2039-11-01 23:06:40.000000000 +0100 @@ -2,14 +2,72 @@ CS0102 - // CS0102: The type `SampleClass' already contains a definition for `A' + // CS0102: The type `ErrorClass' already contains a definition for `Method' +// Line: 6 + +public class ErrorClass { + protected int Method () { return 2; } + public bool Method; +} + // CS0102: The type `SampleClass' already contains a definition for `set_Item' // Line: 7 public class SampleClass { - class A {} + protected const int set_Item = 3; + public int Item { + set {} + } +} + + // CS0102: The type `SampleClass' already contains a definition for `set_Item' +// Line: 6 + +public class SampleClass { + protected int set_Item; + public int this[int index] { set {} } +} + // CS0102: The type `X' already contains a definition for `False' +// Line: 11 + +class X +{ + bool False<T> () + { + return false; + } + + bool False { + get { + return false; + } + } +} + // CS0102: The type `SampleClass' already contains a definition for `MyEvent' +// Line: 7 + +public class SampleClass { + public delegate void MyEvent (); - public void A () {} + public void MyEvent () {} +} + // CS0102: The type `SampleClass' already contains a definition for `Item' +// Line: 6 + +public class SampleClass { + protected int Item { set {} } + public bool Item; } + // CS0102: The type `C' already contains a definition for `get_Foo' +// Line: 9 + +class C +{ + int Foo { + get { } + } + int get_Foo; +} + // CS0102: The type `CS0102' already contains a definition for `Clone' // Line: 6 @@ -25,13 +83,42 @@ } } - // CS0102: The type `SampleClass' already contains a definition for `EE' + // CS0102: The type `SampleEnum' already contains a definition for `Label' // Line: 6 +public enum SampleEnum { + Label, + Label +} + // CS0102: The type `C<get_Foo>' already contains a definition for `get_Foo' +// Line: 6 + +class C<get_Foo> +{ + string Foo { + set { } + } +} + + // CS0102: The type `SampleClass' already contains a definition for `op_Implicit' +// Line: 10 + public class SampleClass { - public delegate void EE (); - public event EE EE; + + static public implicit operator SampleClass (byte value) { + return new SampleClass(); + } + + public bool op_Implicit; } + // CS0102: The type `T' already contains a definition for `A' +// Line: 6 + +class T{ + public string A { get { return "a"; } } + public string A (int a) { return "a"; } +} + // CS0102: The type `C' already contains a definition for `Item' // Line: 7 @@ -41,12 +128,20 @@ bool Item (int i) { return false; } } - // CS0102: The type `SampleClass' already contains a definition for `Item' + // CS0102: The type `SampleClass' already contains a definition for `A' +// Line: 7 + +public class SampleClass { + class A {} + + public void A () {} +} + // CS0102: The type `SampleClass' already contains a definition for `EE' // Line: 6 public class SampleClass { - protected int Item { set {} } - public bool Item; + public delegate void EE (); + public event EE EE; } // CS0102: The type `ErrorClass' already contains a definition for `Blah' // Line: 7 @@ -61,28 +156,6 @@ public int Blah; } - // CS0102: The type `SampleClass' already contains a definition for `add_XX' -// Line: 13 - -public class SampleClass { - public delegate void MyEvent (); - public event MyEvent XX { - add { } - remove { } - } - - bool add_XX; -} - // CS0102: The type `C<get_Foo>' already contains a definition for `get_Foo' -// Line: 6 - -class C<get_Foo> -{ - string Foo { - set { } - } -} - // CS0102: The type `SampleClass' already contains a definition for `set_Item' // Line: 6 @@ -90,12 +163,12 @@ protected const int set_Item = 3; const int set_Item = 5; } - // CS0102: The type `T' already contains a definition for `A' + // CS0102: The type `X' already contains a definition for `A' // Line: 6 -class T{ - public string A { get { return "a"; } } - public string A (int a) { return "a"; } +class X { + const int A = 10; + int A () {} } // CS0102: The type `SampleClass' already contains a definition for `A' @@ -106,21 +179,6 @@ public void A () {} } - // CS0102: The type `SampleClass' already contains a definition for `set_Item' -// Line: 6 /usr/lib/monodoc/sources/cs-errors.zip/CS0103 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0103 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0103 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,21 @@ CS0103 + // 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; + } +} + // CS0103: The name `test' does not exist in the current context // Line: 11 @@ -22,16 +37,6 @@ } - // CS0103: The name `List' does not exist in the current context -// Line: 8 - -class X -{ - public static void Main () - { - var r = nameof (List<int2>); - } -} // CS0103: The name `value' does not exist in the current context // Line: 8 // Compiler options: -langversion:experimental @@ -46,82 +51,64 @@ } - // CS0103: The name `Console' does not exist in the current context -// Line: 10 + // CS0103: The name `Value' does not exist in the current context +// Line: 9 -class C +public class Test { - delegate void WithOutParam (string value); - - static void Main() + static void Main () { - WithOutParam o = (s) => Console.WriteLine(); + var v = new { Field = Value }; } } - // CS0103: The name `i' does not exist in the current context -// Line: 9 -// Compiler options: -r:CS0103-2-lib.dll + // CS0103: The name `count' does not exist in the current context +// Line: 6 -class A : C -{ - void Test () - { - i = 0; - } +class ClassMain { + public static void Main () { + count++; + } } + - // CS0103: The name `a' does not exist in the current context -// Line: 11 + // CS0103: The name `Foo' does not exist in the current context +// Line: 17 -using System.Linq; +using static S; -class C +class S { - public static void Main () + public void Foo () { - var e = from a in "abcd" - join b in "defg" on "a" equals a - select a; } } - - // CS0103: The name `bar' does not exist in the current context -// Line: 8 -public class Test +class Test { - static void Main () + public static void Main () { - if (false && bar ()) { - } + Foo (); } } - // CS0103: The name `owner' does not exist in the current context -// Line: 6 + // CS0103: The name `_' does not exist in the current context +// Line: 8 class C { - public readonly object A = owner.Foo; - - public C () + void Test () { - int owner = 1; + _.ToString (); } +} + // CS0103: The name `de' does not exist in the current context +// Line: 4 + +[assembly: System.Reflection.AssemblyCulture(de)] +public class Hello { } - // C0103: The name `s' does not exist in the current context -// Line: 7 -// Compiler options: -langversion:experimental - -class Test(string s) -{ - public Test () - : this (s) - { - } -} // CS0103: The name `nameof' does not exist in the current context // Line: 8 @@ -132,28 +119,38 @@ string s = nameof (nameof); } } - // CS0103: The name `Value' does not exist in the current context -// Line: 9 - + // CS0103: The name `List' does not exist in the current context +// Line: 8 -public class Test +class X { - static void Main () + public static void Main () { - var v = new { Field = Value }; + var r = nameof (List<int2>); } -} - - // CS0103: The name `count' does not exist in the current context +} + // CS0103: The name `i' does not exist in the current context // Line: 6 -class ClassMain { - public static void Main () { - count++; - } +class X { + void Y () { + for (; true; ++i) { break; } + } } + // CS0103: The name `i' does not exist in the current context +// Line: 9 +// Compiler options: -r:CS0103-2-lib.dll + +class A : C +{ + void Test () + { + i = 0; /usr/lib/monodoc/sources/cs-errors.zip/CS0104 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0104 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0104 2039-11-01 23:06:40.000000000 +0100 @@ -36,35 +36,6 @@ } } - // CS0104: `Graphics' is an ambiguous reference between `Gdk.Graphics' and `System.Drawing.Graphics' -// Line: 16 - -using Gdk; -using System.Drawing; - -public class Plot { - void M () - { - Graphics g; - } - - - static void Main () - { - } -} - - -namespace Gdk { - public class Graphics { - } -} - -namespace System.Drawing { - public class Graphics { - } -} - // CS0104: `X' is an ambiguous reference between `A.X' and `B.X' // Line: 16 namespace A { @@ -122,6 +93,35 @@ } } + // CS0104: `Graphics' is an ambiguous reference between `Gdk.Graphics' and `System.Drawing.Graphics' +// Line: 16 + +using Gdk; +using System.Drawing; + +public class Plot { + void M () + { + Graphics g; + } + + + static void Main () + { + } +} + + +namespace Gdk { + public class Graphics { + } +} + +namespace System.Drawing { + public class Graphics { + } +} + // CS0104: `XAttribute' is an ambiguous reference between `A.XAttribute' and `B.XAttribute' // Line: 21 /usr/lib/monodoc/sources/cs-errors.zip/CS0106 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0106 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0106 2039-11-01 23:06:40.000000000 +0100 @@ -2,39 +2,11 @@ CS0106 - // CS0106: The modifier `volatile' is not valid for this item -// Line: 8 -// Compiler options: -unsafe - -public unsafe struct S -{ - volatile fixed char b[8]; -} - - - // CS0106: The modifier `async' is not valid for this item -// Line: 6 - -interface I -{ - async void M (); -} - - // CS0106: The modifier `public' is not valid for this item + // CS0106: The modifier `readonly' is not valid for this item // Line: 6 +// Compiler option: -langversion:latest -class C -{ - public ~C () - { - } -} - - // CS0106: The modifier `unsafe' is not valid for this item -// Line: 5 -// Compiler options: -unsafe - -unsafe enum E +readonly interface I { } @@ -61,6 +33,14 @@ } } + // CS0106: The modifier `unsafe' is not valid for this item +// Line: 5 +// Compiler options: -unsafe + +unsafe enum E +{ +} + // CS0106: The modifier `public' is not valid for this item // Line: 6 @@ -69,23 +49,15 @@ public void Foo (); } - // CS0106: The modifier `virtual' is not valid for this item -// Line: 7 + // CS0106: The modifier `volatile' is not valid for this item +// Line: 8 +// Compiler options: -unsafe -class C +public unsafe struct S { - public int Foo { - virtual set { } - } + volatile fixed char b[8]; } - - // CS0106: The modifier `readonly' is not valid for this item -// Line: 6 -// Compiler option: -langversion:latest -readonly interface I -{ -} // CS0106: The modifier `sealed' is not valid for this item // Line: 6 @@ -106,5 +78,33 @@ public static delegate int Count (); } + // CS0106: The modifier `public' is not valid for this item +// Line: 6 + +class C +{ + public ~C () + { + } +} + + // CS0106: The modifier `virtual' is not valid for this item +// Line: 7 + +class C +{ + public int Foo { + virtual set { } + } +} + + // CS0106: The modifier `async' is not valid for this item +// Line: 6 + +interface I +{ + async void M (); +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0108 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0108 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0108 2039-11-01 23:06:40.000000000 +0100 @@ -2,16 +2,18 @@ CS0108 - // CS0108: `Derived.Test(bool)' hides inherited member `BaseInterface.Test(bool)'. Use the new keyword if hiding was intended -// Line: 9 -// Compiler options: -warnaserror -warn:2 -t:library + // CS0108: `B.D' hides inherited member `A.D'. Use the new keyword if hiding was intended +// Line: 15 +// Compiler options: -warnaserror -warn:2 -interface BaseInterface { - void Test (bool arg); +public class B : A +{ + public delegate void D (); } -interface Derived : BaseInterface { - void Test (bool arg); +public class A +{ + public int D; } // CS0108: `BaseConcrete.InnerDerived<T>()' hides inherited member `BaseGeneric<string>.InnerDerived'. Use the new keyword if hiding was intended @@ -32,63 +34,18 @@ } } - // CS0108: `Derived.Prop' hides inherited member `Base.Prop'. Use the new keyword if hiding was intended -// Line: 10 -// Compiler options: -warnaserror -warn:2 - -class Base { - public bool Prop = false; -} - -class Derived : Base { - public int Prop { - get { - return 0; - } - } -} - - // CS0118: `B.Factory' hides inherited member `A.Factory(object)'. Use the new keyword if hiding was intended + // CS0108: `Derived.Action<U>' hides inherited member `Base.Action<U>'. Use the new keyword if hiding was intended // Line: 12 -// Compiler options: -warnaserror -warn:2 - -public abstract class A -{ - public void Factory (object data) { } -} - -public class B : A -{ - public delegate void Factory (object data, object fail); -} - - // CS0108: `IB.Foo(int)' hides inherited member `IA.Foo'. Use the new keyword if hiding was intended -// Line: 13 // Compiler options: -warnaserror -interface IA +public abstract class Base { - bool Foo { get; } + public delegate void Action<U> (U val); } -interface IB : IA +public class Derived : Base { - new void Foo (); - void Foo (int a); -} - - // CS0108: `Derived.EE' hides inherited member `Base.EE'. Use the new keyword if hiding was intended -// Line: 12 -// Compiler options: -warnaserror -warn:2 - -class Base { - public enum EE { - Item - }; -} - -class Derived : Base { - public int EE; + public delegate void Action<U> (U i); } // CS0108: `A.B.AnInt' hides inherited member `A.AnInt'. Use the new keyword if hiding was intended @@ -105,82 +62,72 @@ } } - // CS0108: `Derived.Prop' hides inherited member `Base.Prop'. Use the new keyword if hiding was intended -// Line: 14 -// Compiler options: -warnaserror -warn:2 + // CS0108: `IB.Foo(int)' hides inherited member `IA.Foo'. Use the new keyword if hiding was intended +// Line: 13 +// Compiler options: -warnaserror -class Base { - public int Prop { - get { - return 0; - } - } +interface IA +{ + bool Foo { get; } } -class Derived : Base { - public bool Prop = false; +interface IB : IA +{ + new void Foo (); + void Foo (int a); } - // CS0108: `Outer.Inner' hides inherited member `Base.Inner'. Use the new keyword if hiding was intended -// Line: 13 + // CS0108: `B.Adapter' hides inherited member `A.Adapter'. Use the new keyword if hiding was intended +// Line: 14 // Compiler options: -warnaserror -warn:2 -public class Base +class A { - public int Inner { set { } } + public abstract class Adapter + { + } } -class Outer: Base +class B : A { - public void M () {} - - public class Inner - { - } + public int Adapter { get; set; } } - // CS0108: `Bar.this[int, int]' hides inherited member `Foo.this[int, int]'. Use the new keyword if hiding was intended -// Line: 15 + // CS0108: `Derived.Prop(bool)' hides inherited member `Base.Prop'. Use the new keyword if hiding was intended +// Line: 13 // Compiler options: -warnaserror -warn:2 -public class Foo -{ - public long this [int start, int count] { - set { - } - } +class Base { + public bool Prop = false; } -public class Bar : Foo -{ - public virtual long this [int i, int length] { - set { - } - } +class Derived : Base { + public void Prop (bool b) {} } - // CS0108: `Derived.Method()' hides inherited member `Base.Method()'. Use the new keyword if hiding was intended -// Line: 11 -// Compiler options: -warnaserror -warn:2 + // CS0108: `Derived.Test(bool)' hides inherited member `BaseInterface.Test(bool)'. Use the new keyword if hiding was intended +// Line: 9 +// Compiler options: -warnaserror -warn:2 -t:library -class Base { - public bool Method () { return false; } - public void Method (int a) {} +interface BaseInterface { + void Test (bool arg); } -class Derived : Base { - public void Method () {} +interface Derived : BaseInterface { + void Test (bool arg); } - // CS0108: `Derived.Prop(bool)' hides inherited member `Base.Prop'. Use the new keyword if hiding was intended -// Line: 13 /usr/lib/monodoc/sources/cs-errors.zip/CS0109 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0109 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0109 2039-11-01 23:06:40.000000000 +0100 @@ -2,49 +2,37 @@ CS0109 - // CS0109: The member `DerivedClass.get_Value()' does not hide an inherited member. The new keyword is not required -// Line: 14 + // CS0109: The member `Outer.Inner' does not hide an inherited member. The new keyword is not required +// Line: 7 // Compiler options: -warnaserror -warn:4 -class BaseClass { - protected virtual int Value { - get { - return 0; - } - set { } - } -} - -abstract class DerivedClass: BaseClass { - protected new int get_Value () { - return 1; - } -} - +class Outer +{ + public new class Inner + { + } +} + // CS0109: The member `Wrapper.DerivedClass.AnInt' does not hide an inherited member. The new keyword is not required +// Line: 18 +// Compiler options: -warnaserror -class ErrorClass: DerivedClass { - protected override int Value { - get { - return 0; - } - set { } - } +public abstract class BaseClass +{ + private static readonly int AnInt = 1; - static void Main () {} + public static void Main () + { + } } - - // CS0109: The member `Derived.Test()' does not hide an inherited member. The new keyword is not required -// Line: 10 -// Compiler options: -warnaserror -warn:4 - -class Base { - void Test (bool arg) {} +public static class Wrapper +{ + public class DerivedClass : BaseClass + { + private new static readonly int AnInt = 2; + } } - -class Derived : Base { - new void Test () {} -} + // CS0109: The member `BaseClass.Location' does not hide an inherited member. The new keyword is not required // Line: 6 // Compiler options: -warnaserror -warn:4 @@ -52,20 +40,17 @@ class BaseClass { public new int Location { set { } } } - // CS0109: The member `Derived<U>.Action' does not hide an inherited member. The new keyword is not required -// Line: 12 + // CS0109: The member `Derived.Test()' does not hide an inherited member. The new keyword is not required +// Line: 10 // Compiler options: -warnaserror -warn:4 -public abstract class Base -{ - public delegate void Action<U>(U val); +class Base { + void Test (bool arg) {} } -public class Derived<U> : Base -{ - new internal Action<U> Action; -} - +class Derived : Base { + new void Test () {} +} // CS0109: The member `BaseClass.Location' does not hide an inherited member. The new keyword is not required // Line: 6 // Compiler options: -warnaserror -warn:4 @@ -73,16 +58,22 @@ class BaseClass { public new int Location; } - // CS0109: The member `Outer.Inner' does not hide an inherited member. The new keyword is not required -// Line: 7 + // CS0109: The member `Test.this[string]' does not hide an inherited member. The new keyword is not required +// Line: 9 // Compiler options: -warnaserror -warn:4 -class Outer +using System.Collections; + +public class Test: ArrayList { - public new class Inner + public new string this[string index] { + set + { + } } -} +} + // CS0109: The member `Derived.this[string]' does not hide an inherited member. The new keyword is not required // Line: 10 // Compiler options: -warnaserror -warn:4 @@ -95,63 +86,72 @@ public new bool this [string arg] { set {} } } - // CS0109: The member `Test.this[string]' does not hide an inherited member. The new keyword is not required -// Line: 9 + // CS0109: The member `BaseClass.Val' does not hide an inherited member. The new keyword is not required +// Line: 6 // Compiler options: -warnaserror -warn:4 -using System.Collections; - -public class Test: ArrayList -{ - public new string this[string index] - { - set - { - } - } -} - - // CS0109: The member `Wrapper.DerivedClass.AnInt' does not hide an inherited member. The new keyword is not required -// Line: 18 -// Compiler options: -warnaserror +class BaseClass { + public new const bool Val = false; +} + // 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 BaseClass +public abstract class Base { - private static readonly int AnInt = 1; - - public static void Main () - { - } + public delegate void Action<U> (U val); } -public static class Wrapper +public class Derived : Base { - public class DerivedClass : BaseClass - { - private new static readonly int AnInt = 2; - } + public new delegate void Action<T, U> (U val); } - // CS0109: The member `Derived.Action<T,U>' does not hide an inherited member. The new keyword is not required + // 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 delegate void Action<U>(U val); } -public class Derived : Base +public class Derived<U> : Base { - public new delegate void Action<T, U> (U val); /usr/lib/monodoc/sources/cs-errors.zip/CS0110 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0110 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0110 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,16 @@ CS0110 + // CS0110: The evaluation of the constant value for `E.a' involves a circular definition +// Line: 6 + +enum E +{ + a = b, + b = c, + c = a +} + // CS0110: The evaluation of the constant value for `A.B.C.X' involves a circular definition // Line: 9 @@ -39,15 +49,5 @@ } - // CS0110: The evaluation of the constant value for `E.a' involves a circular definition -// Line: 6 - -enum E -{ - a = b, - b = c, - c = a -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0111 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0111 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0111 2039-11-01 23:06:40.000000000 +0100 @@ -2,47 +2,96 @@ CS0111 - // CS0111: A member `Dictionary<K,V>.Add(V)' is already defined. Rename this member or use different parameter types -// Line: 14 + // CS0111: A member `C.I<int>.Prop' is already defined. Rename this member or use different parameter types +// Line: 12 -using System; -using System.Collections.Generic; +interface I<T> +{ + T Prop { get; set; } +} -public class Dictionary<K,V> +class C : I<int> { - public void Add (V key) - { - throw new InvalidOperationException (); - } + int I<int>.Prop { get; set; } + int I<int>.Prop { get; set; } +} + + // CS0111: A member `Blah.I.M()' is already defined. Rename this member or use different parameter types +// Line : 12 - public void Add (V value) - { - throw new InvalidOperationException (); - } +public interface I +{ + void M (); +} + +public class Blah: I +{ + void I.M () {} + void I.M () {} } - // CS0111: A member `ISample.Blah()' is already defined. Rename this member or use different parameter types + // CS0111: A member `C.this[int]' is already defined. Rename this member or use different parameter types // Line: 6 -public interface ISample { - int Blah (); - int Blah (); +class C +{ + bool this [int i] { get { return false; } } + bool this [int i] { get { return true; } } } - // CS0111: A member `C.Method(object)' is already defined. Rename this member or use different parameter types -// Line: 10 + // CS0111: A member `C.Foo<U>(U)' is already defined. Rename this member or use different parameter types +// Line : 12 -class C +public class C { - void Method (dynamic d) + void Foo<T> (T i) + { + } + + void Foo<U> (U i) { } +} + + // CS0111: A member `Test.EmptyClass.~EmptyClass()' is already defined. Rename this member or use different parameter types +// Line: 12 - void Method (object d) +namespace Test +{ + public class EmptyClass { + ~EmptyClass () + { + } + + ~EmptyClass () + { + } } } + // CS0111: A member `T.T()' is already defined. Rename this member or use different parameter types +// Line: 9 + +partial class T { + T () {} +} + +partial class T { + T () {} +} + + // CS0111: A member `Class.op_Implicit(byte)' is already defined. Rename this member or use different parameter types +// Line: 9 + +public class Class { + static public implicit operator Class(byte value) { + return new Class(); + } + + public static void op_Implicit (byte value) {} +} + // CS0111: A member `Blah.Foo(int, int)' is already defined. Rename this member or use different parameter types // Line : 10 @@ -65,32 +114,30 @@ } } - // CS0111: A member `Test.EmptyClass.~EmptyClass()' is already defined. Rename this member or use different parameter types -// Line: 12 + // CS0111: A member `N.MyClass.N.IMyInterface.MyEvent' is already defined. Rename this member or use different parameter types +// Line: 18 -namespace Test +namespace N { - public class EmptyClass + interface IMyInterface { - ~EmptyClass () + bool MyEvent { set; } + } + + public class MyClass : IMyInterface + { + bool IMyInterface.MyEvent { + set { } } - ~EmptyClass () + bool N.IMyInterface.MyEvent { + set { } } } } - // CS0111: A member `C.this[int]' is already defined. Rename this member or use different parameter types -// Line: 6 - -class C -{ - bool this [int i] { get { return false; } } - bool this [int i] { get { return true; } } -} - // CS0111: A member `C.Foo<U>(G<U>)' is already defined. Rename this member or use different parameter types // Line : 14 @@ -109,74 +156,46 @@ } } - // 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; } -} + // CS0111: A member `Dictionary<K,V>.Add(V)' is already defined. Rename this member or use different parameter types +// Line: 14 -class C : I<int> -{ - int I<int>.Prop { get; set; } - int I<int>.Prop { get; set; } -} - - // CS0111: A member `C.Foo<U>(U)' is already defined. Rename this member or use different parameter types -// Line : 12 +using System; +using System.Collections.Generic; -public class C +public class Dictionary<K,V> { - void Foo (int i) - { - } - - void Foo<T> (T i) /usr/lib/monodoc/sources/cs-errors.zip/CS0114 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0114 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0114 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,18 @@ CS0114 + // CS0114: `Y.XX()' hides inherited member `X.XX()'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword +// Line: 10 +// Compiler options: -warnaserror -warn:2 + +public abstract class X { + public abstract void XX (); +} + +class Y : X { + void XX () {} +} + // CS0114: `B.MyEvent' hides inherited member `A.MyEvent'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword // Line: 12 // Compiler options: -warnaserror -warn:2 @@ -16,17 +28,5 @@ public event EventHandler MyEvent; } - // CS0114: `Y.XX()' hides inherited member `X.XX()'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword -// Line: 10 -// Compiler options: -warnaserror -warn:2 - -public abstract class X { - public abstract void XX (); -} - -class Y : X { - void XX () {} -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0115 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0115 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0115 2039-11-01 23:06:40.000000000 +0100 @@ -2,50 +2,6 @@ CS0115 - // CS0115: `B.Foo(ref int)' is marked as an override but no suitable method found to override -// Line: 13 - -class A -{ - public virtual void Foo (out int i) - { - } -} - -class B : A -{ - public override void Foo (ref int i) - { - } -} - - // CS0115: `X.Bla()' is marked as an override but no suitable method found to override -// Line: 5 - -class X { - public override void Bla () - { - } -} - - // CS0115: `C.P' is marked as an override but no accessible `set' accessor found to override -// Line: 11 - -abstract class B -{ - public virtual int P { - get; - private set; - } -} - -class C : B -{ - public override int P { - get { return 5; } - set { } - } -} // CS0115: `MyTestExtended.GetName()' is marked as an override but no suitable method found to override // Line: 12 // Compiler options: -r:CS0534-4-lib.dll @@ -68,17 +24,24 @@ } - // CS0115: `B.MyMissingSuperclassEvent' is marked as an override but no suitable event found to override -// Line: 10 - -using System; + // CS0115: `X.this[int]' is marked as an override but no suitable indexer found to override +// Line: 5 -class A { +class X { + public override long this [int i] { + set { } + } } + + // CS0115: `X.Bla()' is marked as an override but no suitable method found to override +// Line: 5 -class B : A { - public override event EventHandler MyMissingSuperclassEvent; -} +class X { + public override void Bla () + { + } +} + // CS0115: `DerivedClass.get_Value()' is marked as an override but no suitable method found to override // Line: 13 @@ -98,14 +61,51 @@ static void Main () {} } - // CS0115: `X.this[int]' is marked as an override but no suitable indexer found to override -// Line: 5 + // CS0115: `B.Foo(ref int)' is marked as an override but no suitable method found to override +// Line: 13 -class X { - public override long this [int i] { - set { } +class A +{ + public virtual void Foo (out int i) + { + } +} + +class B : A +{ + public override void Foo (ref int i) + { } } + // CS0115: `C.P' is marked as an override but no accessible `set' accessor found to override +// Line: 11 + +abstract class B +{ + public virtual int P { + get; + private set; + } +} + +class C : B +{ + public override int P { + get { return 5; } + set { } + } +} + // CS0115: `B.MyMissingSuperclassEvent' is marked as an override but no suitable event found to override +// Line: 10 + +using System; + +class A { +} + +class B : A { + public override event EventHandler MyMissingSuperclassEvent; +} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0117 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0117 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0117 2039-11-01 23:06:40.000000000 +0100 @@ -2,32 +2,37 @@ CS0117 - // CS0117: `X' does not contain a definition for `P' -// Line: 11 + // CS0117: `A' does not contain a definition for `CODE' +// Line: 6 class X { - public void Test () + public static void Foo (int i, string code = A.CODE) { - Foo (); } +} - public static void Foo (string Product = X.P) - { - } +class A +{ } - // CS0117: `string' does not contain a definition for `Parse' -// Line: 10 + // CS0117: `Data' does not contain a definition for `Count' +// Line: 15 + using System; -class string_parse +class Data { - public static void Main () +} + +public class Test +{ + static void Main () { - string drawBackLabel = string.Parse("absDrawBack"); + var c = new Data { Count = 10 }; } -} +} + // CS0117: `Color' does not contain a definition for `Transparent' // Line: @@ -53,99 +58,94 @@ } } - // CS0117: `System.Reflection.BindingFlags' does not contain a definition for `Private' -// Line: 8 - -using System; -using System.Reflection; + // CS0117: `System.Runtime.CompilerServices.IndexerNameAttribute' does not contain a definition for `errorarg' +// Line: -public class Test { - const BindingFlags Def = BindingFlags.Private | BindingFlags.Static; - const BindingFlags SetBindingFlags = Def | BindingFlags.SetProperty; +using System.Runtime.CompilerServices; - static void Main () - { - } +public class E +{ + [IndexerName("xxx", errorarg = "")] + public int this[int index] { + get { + return 0; + } + } } - // CS0117: `Data' does not contain a definition for `Count' -// Line: 15 - + // CS0117: `System.Console' does not contain a definition for `WriteLINE' +// Line: 10 using System; -class Data -{ -} - public class Test { - static void Main () + public static void Main () { - var c = new Data { Count = 10 }; + var x = nameof (Console.WriteLINE); } } - // CS0117: `A' does not contain a definition for `Method' -// Line: 8 + // CS0117: `string' does not contain a definition for `Parse' +// Line: 10 -public class E : A +using System; + +class string_parse { - void Test () + public static void Main () { - base.Method (); + string drawBackLabel = string.Parse("absDrawBack"); } -} +} + // CS0117: `X' does not contain a definition for `P' +// Line: 11 -static class S +class X { - public static void Method (this A a) + public void Test () { + Foo (); } -} -public class A -{ + public static void Foo (string Product = X.P) + { + } } - // CS0117: `System.Console' does not contain a definition for `WriteLINE' -// Line: 10 + // CS0117: `System.Reflection.BindingFlags' does not contain a definition for `Private' +// Line: 8 using System; +using System.Reflection; -public class Test -{ - public static void Main () +public class Test { + const BindingFlags Def = BindingFlags.Private | BindingFlags.Static; + const BindingFlags SetBindingFlags = Def | BindingFlags.SetProperty; + + static void Main () { - var x = nameof (Console.WriteLINE); } } - // CS0117: `System.Runtime.CompilerServices.IndexerNameAttribute' does not contain a definition for `errorarg' -// Line: - -using System.Runtime.CompilerServices; + // CS0117: `A' does not contain a definition for `Method' +// Line: 8 -public class E +public class E : A { - [IndexerName("xxx", errorarg = "")] - public int this[int index] { - get { - return 0; - } - } + void Test () + { + base.Method (); + } } - - // CS0117: `A' does not contain a definition for `CODE' -// Line: 6 -class X +static class S { - public static void Foo (int i, string code = A.CODE) + public static void Method (this A a) { } } -class A +public class A { /usr/lib/monodoc/sources/cs-errors.zip/CS0118 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0118 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0118 2039-11-01 23:06:40.000000000 +0100 @@ -2,30 +2,38 @@ CS0118 - // CS0118: `M.N' is a `namespace' but a `variable' was expected -// Line: 10 + // CS0118: `Martin.Test' is a `namespace' but a `type' was expected +// Line: 15 +using System; +using Foo; -namespace M.N +namespace Foo { - public class Foo + public class Test : Attribute { - public Foo (object value) - { - N = value; - } } } - - // CS0118: `N' is a `namespace' but a `type' was expected -// Line: 8 -namespace N +namespace Martin.Test { + [Test] + public class X + { + } } + + // CS0118: `X.s' is a `field' but a `type' was expected +// Line: 6 +class X { + string s; -public class C<T> where T : N -{ -} + s MyProperty { + get { + return s; + } + } +} + // CS0118: `MonoTests.System.Data.Test' is a `namespace' but a `type' was expected // Line: 22 using NUnit.Framework; @@ -57,6 +65,17 @@ } } + // CS0118: `System' is a `namespace' but a `type' was expected +// Line: 9 + +public class C +{ + public object Test (object a) + { + return (System)(a); + } +} + // CS0118: `A.s' is a `field' but a `type' was expected // Line: 11 @@ -74,41 +93,18 @@ } } - // CS0118: `X.s' is a `field' but a `type' was expected -// Line: 6 -class X { - string s; - - s MyProperty { - get { - return s; - } - } -} - - // CS0118: `A.B' is a `namespace' but a `type' was expected -// Line: 9 -// Compiler options: -r:CS0118-2-lib.dll - -using A.B.C; - -namespace A.D { - class Test { - static public void Main () - { - B c = new B (); - } - } + // CS0118: `Foo<X>' is a `type' but a `variable' was expected +// Line: 12 + +public class Foo<T> +{ } - - // CS0118: `C' is a `type' but a `variable' was expected -// Line: 8 - -class C + +class X { - public static void Main () + static void Main () { - int i = (C) +1; + Foo<X> = new Foo<X> (); } } @@ -129,79 +125,65 @@ A a = new A.Foo ("test"); } } - // CS0118: `Foo<X>' is a `type' but a `variable' was expected -// Line: 12 - -public class Foo<T> -{ -} - -class X + // CS0118: `M.N' is a `namespace' but a `variable' was expected +// Line: 10 + +namespace M.N { - static void Main () + public class Foo { - Foo<X> = new Foo<X> (); + public Foo (object value) + { + N = value; + } } } - // CS0118: `Martin.Test' is a `namespace' but a `type' was expected -// Line: 15 -using System; -using Foo; + // CS0118: `N' is a `namespace' but a `type' was expected +// Line: 8 -namespace Foo +namespace N { - public class Test : Attribute - { - } } -namespace Martin.Test +public class C<T> where T : N { - [Test] - public class X - { - } -} - - // CS0118: `x.a.B' is a `property' but a `type' was expected +} + // CS0118: `A.B' is a `namespace' but a `type' was expected // Line: 9 +// Compiler options: -r:CS0118-2-lib.dll -using System; +using A.B.C; -namespace x -{ - class a - { - bool B { set {} } - - void Test (B b) {} +namespace A.D { + class Test { + static public void Main () + { + B c = new B (); + } } /usr/lib/monodoc/sources/cs-errors.zip/CS0119 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0119 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0119 2039-11-01 23:06:40.000000000 +0100 @@ -2,17 +2,33 @@ CS0119 - // CS0119: Expression denotes a `method group', where a `variable', `value' or `type' was expected -// Line: 8 + // CS0119: Expression denotes a `variable', where a `method group' was expected +// Line: 11 -class C +using System; + +class X { static void Main () { - throw Main; + Delegate d = null; + Console.WriteLine (d (null, null)); } } + // CS0119: Expression denotes a `variable', where a `type' or `method group' was expected +// Line: 10 + +delegate void D (); + +class C +{ + public void Foo (int i) + { + D d = new D (i); + } +} + // CS0119: Expression denotes a `type', where a `variable' or `value' was expected // Line: 15 @@ -31,19 +47,29 @@ } } - // CS0119: Expression denotes a `variable', where a `type' was expected -// Line: 9 + // CS0119: Expression denotes a `type', where a `variable', `value' or `method group' was expected +// Line: 10 class A { - private string test; - public void f () - { - this.test bad = null; - } - static void Main () {} + delegate string Test (string t); + + public static void Main () + { + Test ("t"); + } } + + // CS0119: Expression denotes a `method group', where a `variable', `value' or `type' was expected +// Line: 8 +class C +{ + static void Main () + { + throw Main; + } +} // CS0119: Expression denotes a `type parameter', where a `variable', `value' or `type' was expected // Line: 15 @@ -63,34 +89,6 @@ } } - // CS0119: Expression denotes a `type', where a `variable', `value' or `method group' was expected -// Line: 14 - -using System; - -namespace Test -{ - public delegate void SomeDel (Action a); - - public class TestClass - { - public void TestMethod () - { - SomeDel (() => { }); - } - } -} - // CS0119: Expression denotes a `type parameter', where a `variable', `value' or `type' was expected -// Line: 8 - -class C -{ - static void Foo<T> () - { - T.ToString (); - } -} - // CS0119: Expression denotes a `namespace', where a `variable', `value' or `method group' was expected // Line: 8 @@ -101,45 +99,19 @@ System.Collections.Generic (""); } } - // CS0119: Expression denotes a `variable', where a `type' or `method group' was expected -// Line: 10 - -delegate void D (); - -class C -{ - public void Foo (int i) - { - D d = new D (i); - } -} - - // CS0119: Expression denotes a `variable', where a `method group' was expected -// Line: 11 - -using System; - -class X -{ - static void Main () - { - Delegate d = null; - Console.WriteLine (d (null, null)); - } -} - - // CS0119: Expression denotes a `type', where a `variable', `value' or `method group' was expected -// Line: 10 + // CS0119: Expression denotes a `variable', where a `type' was expected +// Line: 9 class A { - delegate string Test (string t); - - public static void Main () - { - Test ("t"); - } + private string test; + public void f () + { + this.test bad = null; + } + static void Main () {} } + // CS0119: Expression denotes a `variable', where a `type' was expected // Line: 8 @@ -154,5 +126,33 @@ } + // CS0119: Expression denotes a `type parameter', where a `variable', `value' or `type' was expected +// Line: 8 + +class C +{ + static void Foo<T> () + { + T.ToString (); + } +} + + // CS0119: Expression denotes a `type', where a `variable', `value' or `method group' was expected +// Line: 14 + +using System; + +namespace Test +{ + public delegate void SomeDel (Action a); + + public class TestClass + { + public void TestMethod () + { + SomeDel (() => { }); + } + } +} /usr/lib/monodoc/sources/cs-errors.zip/CS0120 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0120 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0120 2039-11-01 23:06:40.000000000 +0100 @@ -2,127 +2,30 @@ CS0120 - // CS0120: An object reference is required to access non-static member `C.Test(string)' -// Line: 8 - -class C -{ - static void Test (int i) - { - Test ("a"); - } - - void Test (string s) - { - } -} - - // CS0120: An object reference is required to access non-static member `Program.x' -// Line: 6 - -class Program { - int x; - const int y = x; -} - - // CS0120: An object reference is required to access non-static member `C.i' -// Line: 16 - -class B -{ - public B (object o) - { - } -} - -class C : B -{ - int i; - - public C () - : base (i) - { - } -} - - - // CS0120: An object reference is required to access non-static member `Derived.Foo()' -// Line: 16 - -using System; + // CS0120: An object reference is required to access non-static member `MainClass.Test' +// Line: 20 -public class Base +public class Test { - public Base (Action a) + public void Foo () { } } -public class Derived : Base +public class MainClass { - public Derived () - : base (() => Foo ()) - { - } - - void Foo () - { - } -} - // CS0120: An object reference is required to access non-static member `X.Y' -// Line: 11 - -using System; - -class X { - // Public properties and variables. - public string Y; - - // Constructors. - public X() + public Test Test { + get; + set; } - // Public static methods. - public static void Main(string[] Arguments) + public static void Main (string[] args) { - X.Y = ""; + Test.Foo (); } } - - - - - - - // CS0120: An object reference is required to access non-static member `MainClass.Callback()' -// Line: 9 - -using System; - -class MainClass : BaseClass -{ - public MainClass (string a, Action callback) - : base (a, () => Callback ()) - { - } - - private void Callback () - { - } -} - -public class BaseClass -{ - public BaseClass (string a, int b) - { - } - - public BaseClass (string a, Action callback) - { - } -} // CS0120: An object reference is required to access non-static member `Test.Add8(int)' // Line: 12 @@ -177,43 +80,47 @@ } } - // CS0120: An object reference is required to access non-static member `App.Test' -// Line: 15 + // CS0120: An object reference is required to access non-static member `X.Y' +// Line: 11 -class App -{ - Test a = new Test (); +using System; - public Test Test +class X { + // Public properties and variables. + public string Y; + + // Constructors. + public X() { - get { return a; } } - public static void Main (string[] args) + // Public static methods. + public static void Main(string[] Arguments) { - Test.Run (); + X.Y = ""; } } -class Test -{ - public void Run () { } -} + + + + + - // CS0120: An object reference is required to access non-static member `MemRefMonoBug.String' + // CS0120: An object reference is required to access non-static member `X.method()' // Line: 11 -using System; +class X { -public class MemRefMonoBug { - private string String; // this member has the same name as System.String class - public static void Main () + void method () { - new MemRefMonoBug ().String = ""; // this line causes no problem - String = ""; // mcs crashes in this line + } + /usr/lib/monodoc/sources/cs-errors.zip/CS0121 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0121 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0121 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,43 @@ CS0121 + // CS0121: The call is ambiguous between the following methods or properties: `X.a(int, double)' and `X.a(double, int)' +// Line: 15 + +class X { + static void a (int i, double d) + { + } + + static void a (double d, int i) + { + } + + public static void Main () + { + a (0, 0); + } +} + + // CS0121: The call is ambiguous between the following methods or properties: `C.C(double[], int, object)' and `C.C(double[], int, string[])' +// Line: 16 + +class C +{ + C (double[] o, int i = -1, object ii = null) + { + } + + C (double[] o, int i = -1, string[] s = null) + { + } + + public static void Main () + { + new C (null, 1); + } +} + // CS0121: The call is ambiguous between the following methods or properties: `V2.operator -(V2, V2)' and `V3.operator -(V3, V3)' // Line: 45 @@ -50,104 +87,81 @@ } } - // CS0121: The call is ambiguous between the following methods or properties: `D.Test(string)' and `D.Test(int, string)' -// Line: 16 + // CS0121: The call is ambiguous between the following methods or properties: `C.Foo(int, long, params string[])' and `C.Foo(long, int, params string[])' +// Line: 9 -public class D +class C { - static void Test (string a = "s") - { - } - - static void Test (int i = 9, string a = "b") - { - } - public static void Main () { - Test (); + var d = new C (); + d.Foo (b: 1, x: "", a : 2); } -} - - // CS0121: The call is ambiguous between the following methods or properties: `X.Add(float, float, float)' and `X.Add(params decimal[])' -// Line: 7 -class X { - static void Add (float f1, float f2, float f3) {} - static void Add (params decimal [] ds) {} - public static void Main () { Add (1, 2, 3); } -} - - // CS0121: The call is ambiguous between the following methods or properties: `A.operator +(A, B)' and `B.operator +(A, B)' -// Line: 21 - -class A -{ - public static A operator + (A a, B b) + public void Foo (int a, long b, params string[] x) { - return null; } -} -class B -{ - public static A operator + (A a, B b) - { - return null; - } - - static void Main () + public void Foo (long b, int a, params string[] x) { - object o = new A () + new B (); } } - // CS0122: The call is ambiguous between the following methods or properties: `Test.Foo(IIn<string>)' and `Test.Foo(IIn<Test>)' + // 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 -interface IIn<in T> -{ -} +using System; +using System.Linq; +using System.Linq.Expressions; class Test { - - static void Foo (IIn<string> f) + static int Foo<T, R> (T t, Expression<Func<T, R>> e) { + return 5; } - - static void Foo (IIn<Test> f) + + static int Foo<T, R> (T t, Func<T, R> e) { + return 0; } - public static int Main () + static void Main () { - IIn<object> test = null; - Foo (test); - - return 0; + Foo (1, i => i); } } + - // CS0121: The call is ambiguous between the following methods or properties: `X.a(int, double)' and `X.a(double, int)' -// Line: 15 + // CS0121: The call is ambiguous between the following methods or properties: `X.Add(float, float, float)' and `X.Add(params decimal[])' +// Line: 7 class X { - static void a (int i, double d) + static void Add (float f1, float f2, float f3) {} + static void Add (params decimal [] ds) {} + public static void Main () { Add (1, 2, 3); } +} + + // CS0121: The call is ambiguous between the following methods or properties: `Test.Foo(string, params object[])' and `Test.Foo(string, params int[])' +// Line: 16 + +public class Test +{ + static void Foo (string s, params object[] args) { } - - static void a (double d, int i) + + static void Foo (string s, params int[] args) { } - + public static void Main () { - a (0, 0); + Foo ("a"); } -} +} - // CS0121: The call is ambiguous between the following methods or properties: `C.Foo(int, long, params string[])' and `C.Foo(long, int, params string[])' + // CS0121: The call is ambiguous between the following methods or properties: `C.Foo(int, params string[])' and `C.Foo(string[], int)' // Line: 9 class C @@ -155,93 +169,52 @@ public static void Main () { var d = new C (); - d.Foo (b: 1, x: "", a : 2); + d.Foo (x: 1, y: new [] { "" }); } - public void Foo (int a, long b, params string[] x) + public void Foo (int x, params string[] y) { /usr/lib/monodoc/sources/cs-errors.zip/CS0122 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0122 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0122 2039-11-01 23:06:40.000000000 +0100 @@ -2,161 +2,74 @@ CS0122 - // CS0122: `Test.Method' is inaccessible due to its protection level + // CS0122: `Test.TestClass.TestClass()' is inaccessible due to its protection level // Line: 17 -public class Test -{ - protected void Method () - { - } - - private void Method (int i) - { - } -} - -public class C -{ - string str = nameof (Test.Method); -} - // CS0122: `X.Y.Y(string)' is inaccessible due to its protection level -// Line: 9 -// Compiler options: -r:CS0122-10-lib.dll - -using System; -using X; - -class T : Y { - public T(String test, String test1) : base(test) { - } - static void Main () {} -} - - // CS0122: `Test.foo' is inaccessible due to its protection level -// Line: 10 - -internal class Test -{ - protected const int foo = 0; -} -internal class Rest -{ - protected const int foo = Test.foo; - - static void Main () {} -} - - // CS0122: `Test.A.B' is inaccessible due to its protection level -// Line: 6 - namespace Test { - public sealed class A + public class TestClass { - private class B + private TestClass() : base() { - public static void Method () - { - } } } - - class MainClass + + class Class1 { - public static void Main(string[] args) + static void Main(string[] args) { - A.B.Method (); + TestClass test = new TestClass(); } } -} - - // CS0122: `A.B' is inaccessible due to its protection level -// Line: 4 +} + // CS0122: `A.X' is inaccessible due to its protection level +// Line: 18 -using C = A.B; +using System; class A { - class B {} -} - // CS0122: `Test<A>' is inaccessible due to its protection level -// Line: 8 -// Compiler options: -r:CS0122-35-lib.dll - -class X -{ - static void Main () + class X { - Test<float> test = new Test<float> (); + public static string V = "a"; } } - - // CS0122: `Y.x()' is inaccessible due to its protection level -// Line: 15 -using System; - -class Y { - void x () {} - -} - -class X { - static int Main () +class C : A +{ + public static void Main () { - Y y = new Y (); - - y.x (); - return 0; + Console.WriteLine (X.V); } } - // CS0122: `Data.Count' is inaccessible due to its protection level -// Line: 13 + // CS0122: `Test.SomeValue' is inaccessible due to its protection level +// Line: 7 +// Compiler options: -r:CS0122-14-lib.dll -class Data +public class MyEnum { - int Count; + int Unknown = Test.SomeValue; + static void Main () {} } -public class Test -{ - static void Main () - { - var c = new Data { Count = 10 }; - } -} - // CS0122: `M.Test<S.P>(I<S.P>)' is inaccessible due to its protection level -// Line: 27 - -interface I<T> -{ -} + // CS0122: `G.GG' is inaccessible due to its protection level +// Line: 14 -struct S +class G { - class P - { - } - - public class C : I<P> + private class GG { + public class F { } } } -class M +class X { - static void Test<T>(I<T> iface) - { - } - - static void Test() - { - Test (new S.C ()); - } + G.GG.F foo; } + // CS0122: `A.prop' is inaccessible due to its protection level // Line: 19 @@ -180,68 +93,95 @@ } } - // CS0122: `AAttribute.AAttribute()' is inaccessible due to its protection level /usr/lib/monodoc/sources/cs-errors.zip/CS0123 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0123 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0123 2039-11-01 23:06:40.000000000 +0100 @@ -2,57 +2,34 @@ CS0123 - // CS0123: A method or delegate `object.ToString()' parameters do not match delegate `System.Func<string>()' parameters -// Line: 16 - -using System; - -class Test -{ - public static void Main () - { - Func<string> f = default (TypedReference).ToString; - } -} - // CS0123: A method or delegate `C.Button1_Click(params object[])' parameters do not match delegate `EventHandler(params int[])' parameters -// Line: 20 - -using System; + // CS0123: A method or delegate `MainClass.Delegate()' parameters do not match delegate `TestDelegate(bool)' parameters +// Line: 12 -public delegate void EventHandler (params int[] args); +delegate int TestDelegate(bool b); -public class C -{ - public void Connect () - { - EventHandler Click = new EventHandler (Button1_Click); - } +public class MainClass { + public static int Delegate() { + return 0; + } - public void Button1_Click (params object[] i) - { - } + public static void Main() { + TestDelegate delegateInstance = new TestDelegate (Delegate); + } } - - // CS0123: A method or delegate `TestDelegateA(bool)' parameters do not match delegate `TestDelegateB(int)' parameters -// Line: 12 -delegate int TestDelegateA (bool b); -delegate int TestDelegateB (int b); + + // CS0123: A method or delegate `A<T,U>.M(T)' parameters do not match delegate `A<T,U>.D(U)' parameters +// Line: 10 -public class MainClass +class A<T, U> where T : U { - public static int Delegate(bool b) - { - return 0; - } + delegate void D (U u); - public static void Main() + static void M (T t) { - TestDelegateA a = new TestDelegateA (Delegate); - TestDelegateB b = new TestDelegateB (a); + D d = M; } } - // CS0123: A method or delegate `X.f1(int, object)' parameters do not match delegate `X.Function(int, int)' parameters // Line: 13 @@ -76,21 +53,54 @@ } } - // CS0123: A method or delegate `MainClass.Delegate()' parameters do not match delegate `TestDelegate(bool)' parameters -// Line: 12 + // CS0123: A method or delegate `object.ToString()' parameters do not match delegate `System.Func<string>()' parameters +// Line: 16 -delegate int TestDelegate(bool b); +using System; -public class MainClass { - public static int Delegate() { - return 0; - } +class Test +{ + public static void Main () + { + Func<string> f = default (TypedReference).ToString; + } +} + // CS0123: A method or delegate `object.ToString()' parameters do not match delegate `System.Func<string>()' parameters +// Line: 16 +// Compiler options: -langversion:latest - public static void Main() { - TestDelegate delegateInstance = new TestDelegate (Delegate); - } +using System; + +public ref struct S +{ } +class Test +{ + public static void Main () + { + var s = new S (); + Func<string> f = s.ToString; + } +} + // CS0123: A method or delegate `C.Button1_Click(params object[])' parameters do not match delegate `EventHandler(params int[])' parameters +// Line: 20 + +using System; + +public delegate void EventHandler (params int[] args); + +public class C +{ + public void Connect () + { + EventHandler Click = new EventHandler (Button1_Click); + } + + public void Button1_Click (params object[] i) + { + } +} // CS0123: A method or delegate `MainClass.Delegate()' parameters do not match delegate `TestDelegate(bool)' parameters // Line: 17 @@ -113,56 +123,46 @@ } - // CS0123: A method or delegate `Program.method(A)' parameters do not match delegate `D(dynamic)' parameters -// Line: 19 - -delegate object D (dynamic b); + // CS0123: A method or delegate `TestDelegateA(bool)' parameters do not match delegate `TestDelegateB(int)' parameters +// Line: 12 -class A -{ -} +delegate int TestDelegateA (bool b); +delegate int TestDelegateB (int b); -class Program +public class MainClass { - static string method (A a) + public static int Delegate(bool b) { - return ""; + return 0; } - static void Main () + public static void Main() { - var d = new D (method); + TestDelegateA a = new TestDelegateA (Delegate); + TestDelegateB b = new TestDelegateB (a); } } + - // CS0123: A method or delegate `object.ToString()' parameters do not match delegate `System.Func<string>()' parameters -// Line: 16 -// Compiler options: -langversion:latest + // CS0123: A method or delegate `Program.method(A)' parameters do not match delegate `D(dynamic)' parameters +// Line: 19 -using System; +delegate object D (dynamic b); -public ref struct S +class A { } -class Test +class Program { - public static void Main () + static string method (A a) { - var s = new S (); /usr/lib/monodoc/sources/cs-errors.zip/CS0126 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0126 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0126 2039-11-01 23:06:40.000000000 +0100 @@ -2,16 +2,6 @@ CS0126 - // CS0126: An object of a type convertible to `int' is required for the return statement -// Line: 7 - -class X { - int Y () - { - return; - } -} - // CS0126: An object of a type convertible to `string' is required for the return statement // Line: 7 @@ -31,6 +21,16 @@ } } + // CS0126: An object of a type convertible to `int' is required for the return statement +// Line: 7 + +class X { + int Y () + { + return; + } +} + // CS0126: An object of a type convertible to `int' is required for the return statement // Line: 15 /usr/lib/monodoc/sources/cs-errors.zip/CS0128 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0128 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0128 2039-11-01 23:06:40.000000000 +0100 @@ -2,37 +2,6 @@ CS0128 - // CS0128: A local variable named `x' is already defined in this scope -// Line: 8 - -class x { - static int y () - { - int x = 1; - int x = 2; - - return x + x; - } -} - - // CS0128: A local variable named `res' is already defined in this scope -// Line: 13 - -class C -{ - static void Foo (int arg) - { - switch (arg) { - case 1: - int res = 1; - break; - case 2: - int res = 2; - break; - } - } -} - // CS0128: A local variable named `s' is already defined in this scope // Line: 12 @@ -74,5 +43,36 @@ var (xx, yy) = (1, 'g'); } } + // CS0128: A local variable named `res' is already defined in this scope +// Line: 13 + +class C +{ + static void Foo (int arg) + { + switch (arg) { + case 1: + int res = 1; + break; + case 2: + int res = 2; + break; + } + } +} + + // CS0128: A local variable named `x' is already defined in this scope +// Line: 8 + +class x { + static int y () + { + int x = 1; + int x = 2; + + return x + x; + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0131 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0131 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0131 2039-11-01 23:06:40.000000000 +0100 @@ -3,22 +3,27 @@ CS0131 // CS0131: The left-hand side of an assignment must be a variable, a property or an indexer -// Line: 17 +// Line: 12 -public class Person -{ - string _name; +using System; +using System.Collections; - public string Name - { - get { return _name; } - set { _name = value; } +class Test { + public static void Main(string[] args) { + ArrayList al = new ArrayList(); + al[0] = 0; + + Console.WriteLine(((int)al[0])++); } +} + + // CS0131: The left-hand side of an assignment must be a variable, a property or an indexer +// Line: 7 - public static void Main () +class X { + void A () { - Person johnDoe = new Person (); - (string) johnDoe.Name = "John Doe"; + 5 = 4; } } @@ -41,40 +46,35 @@ } // CS0131: The left-hand side of an assignment must be a variable, a property or an indexer -// Line: 10 -using System; +// Line: 17 -class X +public class Person { - static void Main () + string _name; + + public string Name { - int a = 7; - +a = 9; + get { return _name; } + set { _name = value; } } -} - - // CS0131: The left-hand side of an assignment must be a variable, a property or an indexer -// Line: 12 - -using System; -using System.Collections; -class Test { - public static void Main(string[] args) { - ArrayList al = new ArrayList(); - al[0] = 0; - - Console.WriteLine(((int)al[0])++); + public static void Main () + { + Person johnDoe = new Person (); + (string) johnDoe.Name = "John Doe"; } } // CS0131: The left-hand side of an assignment must be a variable, a property or an indexer -// Line: 7 +// Line: 10 +using System; -class X { - void A () +class X +{ + static void Main () { - 5 = 4; + int a = 7; + +a = 9; } } /usr/lib/monodoc/sources/cs-errors.zip/CS0133 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0133 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0133 2039-11-01 23:06:40.000000000 +0100 @@ -2,29 +2,17 @@ CS0133 - // CS0133: The expression being assigned to `Foo' must be a constant or default value -// Line: 8 - -class T -{ - public void FooBar () - { - const string Foo = Foo; - } -} - - // CS0133: The expression being assigned to `S.pathName' must be a constant or default value -// Line: 12 -// Compiler options: -unsafe + // CS0133: The expression being assigned to `c' must be a constant or default value +// Line: 10 class C { - public static int i = 4; -} - -public unsafe struct S -{ - private fixed char pathName [C.i]; + void Foo () + { + int[] array; + int idx; + const int c = array [idx]; + } } // CS0133: The expression being assigned to `b' must be a constant or default value @@ -38,19 +26,6 @@ } } - // CS0133: The expression being assigned to `c' must be a constant or default value -// Line: 10 - -class C -{ - void Foo () - { - int[] array; - int idx; - const int c = array [idx]; - } -} - // CS0133: The expression being assigned to `x' must be a constant or default value // Line: 7 @@ -68,9 +43,34 @@ { void Foo () { - const object o = null ?? ""; + const object o = "" ?? null; } } + // CS0133: The expression being assigned to `S.pathName' must be a constant or default value +// Line: 12 +// Compiler options: -unsafe + +class C +{ + public static int i = 4; +} + +public unsafe struct S +{ + private fixed char pathName [C.i]; +} + + // CS0133: The expression being assigned to `Foo' must be a constant or default value +// Line: 8 + +class T +{ + public void FooBar () + { + const string Foo = Foo; + } +} + // CS0133: The expression being assigned to `o' must be a constant or default value // Line: 8 @@ -78,7 +78,7 @@ { void Foo () { - const object o = "" ?? null; + const object o = null ?? ""; } } /usr/lib/monodoc/sources/cs-errors.zip/CS0134 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0134 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0134 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,17 @@ CS0134 + // CS0134: A constant `o' of reference type `object' can only be initialized with null +// Line: 8 + +public class C +{ + public static void Main () + { + const object o = 1; + } +} + // CS0134: A constant `C.o' of reference type `object' can only be initialized with null // Line: 6 @@ -33,16 +44,5 @@ const decimal[] i = new decimal [] { 2m }; } - // CS0134: A constant `o' of reference type `object' can only be initialized with null -// Line: 8 - -public class C -{ - public static void Main () - { - const object o = 1; - } -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0136 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0136 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0136 2039-11-01 23:06:40.000000000 +0100 @@ -2,43 +2,8 @@ CS0136 - // CS0136: A local variable named `j' cannot be declared in this scope because it would give a different meaning to `j', which is already used in a `parent or current' scope to denote something else -// Line: 7 - -class X { - public static void Bar (int j, params int [] args) - { - foreach (int j in args) - ; - } -} - - // CS0136: A local variable named `t' cannot be declared in this scope because it would give a different meaning to `t', which is already used in a `child' scope to denote something else -// Line: 20 -using System; - -public delegate void Hello (Test test); - -public class Test -{ - public void Whatever () - { } - - static void Main () - { - Hello hello = delegate (Test test) { - Hello hello2 = delegate (Test t) { - t.Whatever (); - }; - hello2 (test); - }; - Test t = new Test (); - hello (t); - } -} - // CS0136: A local variable named `t' cannot be declared in this scope because it would give a different meaning to `t', which is already used in a `parent or current' scope to denote something else -// Line: 15 +// Line: 14 using System; public delegate void Hello (Test test); @@ -50,8 +15,7 @@ static void RunIt (Test t) { - Hello hello = delegate (Test test) { - Test t = test; + Hello hello = delegate (Test t) { t.Whatever (); }; hello (t); @@ -64,25 +28,6 @@ } } - // 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 `child' scope to denote something else -// Line: 15 -delegate string Fun (); - -class X -{ - static void Main () - { - for (int j = 0; j < 5; j++) { - Fun m = delegate { - int i = j; - return "<<" + i + ">>"; - }; - - int i = j; - } - } -} - // CS0136: A local variable named `s' cannot be declared in this scope because it would give a different meaning to `s', which is already used in a `parent or current' scope to denote something else // Line: 11 @@ -99,8 +44,24 @@ } } } - // CS0136: A local variable named `t' cannot be declared in this scope because it would give a different meaning to `t', which is already used in a `parent or current' scope to denote something else -// Line: 15 + // 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 +delegate string Fun (int i); + +class X +{ + static void Main () + { + for (int i = 0; i < 5; i++) { + Fun m = delegate (int i) { + return "<<" + i + ">>"; + }; + } + } +} + + // CS0136: A local variable named `t' cannot be declared in this scope because it would give a different meaning to `t', which is already used in a `child' scope to denote something else +// Line: 17 using System; public delegate void Hello (Test test); @@ -112,92 +73,77 @@ static void Main () { - Test t = new Test (); Hello hello = delegate (Test t) { t.Whatever (); }; + Test t = new Test (); hello (t); } } - // 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 `child' scope to denote something else -// Line: 9 -class X { - void b () + // 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 () { - { - string i; - } - int i; + var l = from v in "abcd" select (v => v); } } + + // CS0136: A local variable named `t' cannot be declared in this scope because it would give a different meaning to `t', which is already used in a `child' scope to denote something else +// Line: 17 +using System; +public delegate void Hello (Test test); +public class Test +{ + public void Whatever () + { } + + static void Main () + { + Hello hello = delegate (Test t) { + t.Whatever (); + }; + Test t = new Test (); + hello (t); + } +} - // CS0136: A local variable named `s' cannot be declared in this scope because it would give a different meaning to `s', which is already used in a `parent or current' scope to denote something else + // 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 -internal class Program +using System; + +class T { - public static void Main () + public void Foo (int i) { - object o = null; - if (o is string s) { - int s = 1; - } + Action<int> v = x => { int i = 9; }; } -} - // 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 +} + + // 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 `child' scope to denote something else // Line: 9 - class X { void b () { - int i; { string i; } + int i; } } /usr/lib/monodoc/sources/cs-errors.zip/CS0139 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0139 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0139 2039-11-01 23:06:40.000000000 +0100 @@ -3,27 +3,22 @@ CS0139 // CS0139: No enclosing loop out of which to break or continue -// Line: 9 - -class Foo { - static void Main () +// Line: 6 +class X { + void A () { - try { - } catch { - continue; - } finally { - throw new System.Exception (); - } + continue; } } // CS0139: No enclosing loop out of which to break or continue -// Line: 8 +// Line: 9 class Foo { static void Main () { try { + } catch { continue; } finally { throw new System.Exception (); @@ -32,15 +27,6 @@ } // CS0139: No enclosing loop out of which to break or continue -// Line: 6 -class X { - void A () - { - continue; - } -} - - // CS0139: No enclosing loop out of which to break or continue // Line: 9 class Foo { @@ -72,13 +58,12 @@ // CS0139: No enclosing loop out of which to break or continue -// Line: 9 +// Line: 8 class Foo { static void Main () { try { - } catch { break; } finally { throw new System.Exception (); @@ -101,16 +86,31 @@ // CS0139: No enclosing loop out of which to break or continue -// Line: 8 +// Line: 9 class Foo { static void Main () { try { + } catch { break; } finally { throw new System.Exception (); } + } +} + + // CS0139: No enclosing loop out of which to break or continue +// Line: 8 + +class Foo { + static void Main () + { + try { + continue; + } finally { + throw new System.Exception (); + } } } /usr/lib/monodoc/sources/cs-errors.zip/CS0144 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0144 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0144 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,17 @@ CS0144 + // CS0144: Cannot create an instance of the abstract class or interface `ITest' +// Line: 9 +// Compiler options: -r:CS0144-3-lib.dll + +public class SampleClass { + public void Main () + { + ITest modelo; + modelo= new ITest (); + } +} // CS0144: Cannot create an instance of the abstract class or interface `X' // Line: 11 abstract class X { @@ -30,16 +41,5 @@ } } - // CS0144: Cannot create an instance of the abstract class or interface `ITest' -// Line: 9 -// Compiler options: -r:CS0144-3-lib.dll - -public class SampleClass { - public void Main () - { - ITest modelo; - modelo= new ITest (); - } -} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0146 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0146 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0146 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,14 @@ CS0146 + // CS0146: Circular base class dependency involving `Baz' and `Foo.Bar' +// Line: 5 + +class Foo : Baz { + public class Bar {} +} +class Baz : Foo.Bar {} + // CS0146: Circular base class dependency involving `B<T>' and `A<float>' // Line: 8 @@ -18,26 +26,6 @@ { } } - // CS0146: Circular base class dependency involving `Generic<P>.Status' and `Generic<P>.Status' -// Line: 6 - -public class Generic<P> -{ - public class Status : Status - { - Status (Foo foo) : base (foo) - { - } - } -} - - // CS0146: Circular base class dependency involving `Foo' and `Foo.Bar' -// Line: 5 - -class Foo : Foo.Bar { - public class Bar {} -} - // CS0146: Circular base class dependency involving `A' and `A' // Line: 4 @@ -56,13 +44,12 @@ { } - // CS0146: Circular base class dependency involving `Baz' and `Foo.Bar' + // CS0146: Circular base class dependency involving `Foo' and `Foo.Bar' // Line: 5 -class Foo : Baz { +class Foo : Foo.Bar { public class Bar {} } -class Baz : Foo.Bar {} // CS0146: Circular base class dependency involving `B' and `A' // Line: 7 @@ -73,5 +60,18 @@ class B : A { } + // CS0146: Circular base class dependency involving `Generic<P>.Status' and `Generic<P>.Status' +// Line: 6 + +public class Generic<P> +{ + public class Status : Status + { + Status (Foo foo) : base (foo) + { + } + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0149 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0149 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0149 2039-11-01 23:06:40.000000000 +0100 @@ -24,28 +24,28 @@ // CS0149: Method name expected -// Line: 10 +// Line: 8 -delegate void D (); +delegate void TestDelegate(); public class MainClass { public static void Main () { - D delegateInstance = new D (Main, null); + TestDelegate delegateInstance = new TestDelegate (); } } // CS0149: Method name expected -// Line: 8 +// Line: 10 -delegate void TestDelegate(); +delegate void D (); public class MainClass { public static void Main () { - TestDelegate delegateInstance = new TestDelegate (); + D delegateInstance = new D (Main, null); } } /usr/lib/monodoc/sources/cs-errors.zip/CS0150 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0150 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0150 2039-11-01 23:06:40.000000000 +0100 @@ -3,21 +3,6 @@ CS0150 // CS0150: A constant value is expected -// Line : 12 - -using System; - -public class Blah { - - public static void Main () - { - int foo = 6; - - int [] i = new int [foo] { 0, 1, 2, 3, 4, 5 }; - } -} - - // CS0150: A constant value is expected // Line: 13 class Program @@ -43,6 +28,21 @@ } } + // CS0150: A constant value is expected +// Line : 12 + +using System; + +public class Blah { + + public static void Main () + { + int foo = 6; + + int [] i = new int [foo] { 0, 1, 2, 3, 4, 5 }; + } +} + // CS0150: A constant value is expected // Line : 14 /usr/lib/monodoc/sources/cs-errors.zip/CS0151 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0151 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0151 2039-11-01 23:06:40.000000000 +0100 @@ -2,53 +2,68 @@ CS0151 - // CS0151: A switch expression of type `Y' cannot be converted to an integral type, bool, char, string, enum or nullable type -// Line: 13 + // CS0151: A switch expression of type `S1?' cannot be converted to an integral type, bool, char, string, enum or nullable type +// Line: 25 +// Compiler options: -langversion:5 -class Y { - byte b; -} +using System; -class X { - static void Main () +struct S1 +{ + public static implicit operator int? (S1? s) { - Y y = new Y (); + throw new ApplicationException (); + } - switch (y){ - case 0: - break; - case 1: - break; - } + public static implicit operator int (S1? s) + { + throw new ApplicationException (); } } - - // CS0151: A switch expression of type `Y' cannot be converted to an integral type, bool, char, string, enum or nullable type -// Line: 28 -class Y { - byte b; - - public static implicit operator int (Y i) +class C +{ + public static int Main () { - return i.b; + S1? s1 = new S1 (); + switch (s1) + { + default: + return 1; + } } +} + // CS0151: A switch expression of type `X?' cannot be converted to an integral type, bool, char, string, enum or nullable type +// Line: 19 - public static implicit operator byte (Y i) +struct X +{ + public static implicit operator int? (X x) { - return i.b; + return 1; } - public Y (byte b) + static void Main () { - this.b = b; - } + X? x = null; + switch (x) { + default: + break; + } + } +} + + // CS0151: A switch expression of type `Y' cannot be converted to an integral type, bool, char, string, enum or nullable type +// Line: 13 + +class Y { + byte b; } class X { static void Main () { - Y y = new Y (1); + Y y = new Y (); switch (y){ case 0: @@ -56,20 +71,18 @@ case 1: break; } - - int a = y; } } // CS0151: A switch expression of type `X?' cannot be converted to an integral type, bool, char, string, enum or nullable type -// Line: 19 +// Line: 15 struct X { - public static implicit operator int? (X x) - { - return 1; - } + public static implicit operator int (X x) + { + return 1; + } static void Main () { @@ -81,54 +94,41 @@ } } - // CS0151: A switch expression of type `S1?' cannot be converted to an integral type, bool, char, string, enum or nullable type -// Line: 25 -// Compiler options: -langversion:5 - -using System; + // CS0151: A switch expression of type `Y' cannot be converted to an integral type, bool, char, string, enum or nullable type +// Line: 28 -struct S1 -{ - public static implicit operator int? (S1? s) +class Y { + byte b; + + public static implicit operator int (Y i) { - throw new ApplicationException (); + return i.b; } - public static implicit operator int (S1? s) + public static implicit operator byte (Y i) { - throw new ApplicationException (); + return i.b; } -} -class C -{ - public static int Main () + public Y (byte b) { - S1? s1 = new S1 (); - switch (s1) - { - default: - return 1; - } - } -} - // CS0151: A switch expression of type `X?' cannot be converted to an integral type, bool, char, string, enum or nullable type -// Line: 15 - -struct X -{ - public static implicit operator int (X x) - { - return 1; - } + this.b = b; + } +} +class X { static void Main () { - X? x = null; - switch (x) { - default: + Y y = new Y (1); + + switch (y){ + case 0: + break; + case 1: break; } + + int a = y; } /usr/lib/monodoc/sources/cs-errors.zip/CS0152 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0152 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0152 2039-11-01 23:06:40.000000000 +0100 @@ -2,20 +2,6 @@ CS0152 - // CS0152: The label `case 1:' already occurs in this switch statement -// Line: 9 -class X { - void f (int i) - { - switch (i){ - case 1: - break; - case 1: - break; - } - } -} - // CS0152: The label `case 0:' already occurs in this switch statement // Line: 13 @@ -56,6 +42,20 @@ } } } + + // CS0152: The label `case 1:' already occurs in this switch statement +// Line: 9 +class X { + void f (int i) + { + switch (i){ + case 1: + break; + case 1: + break; + } + } +} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0154 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0154 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0154 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,26 @@ CS0154 + // CS0154: The property or indexer `BugReport.MyProperty' cannot be used in this context because it lacks the `get' accessor +// Line: 16 + +static class BugReport +{ + static float MyProperty { + set { } + } + + static void MyExtension (this float val) + { + } + + public static void Main () + { + MyProperty.MyExtension (); + } +} + + // CS0154: The property or indexer `A.name' cannot be used in this context because it lacks the `get' accessor // Line: 21 @@ -26,48 +46,6 @@ } - // CS0154: The property or indexer `A.this[int]' cannot be used in this context because it lacks the `get' accessor -// Line: 18 - -public class A -{ - public int this[int i] { set { } } -} - -public class B : A -{ - public int this[string i] { get { return 9; } } -} - -class Test -{ - public static void Main () - { - int i = new B ()[1]; - } -} - - - // CS0154: The property or indexer `BugReport.MyProperty' cannot be used in this context because it lacks the `get' accessor -// Line: 16 - -static class BugReport -{ - static float MyProperty { - set { } - } - - static void MyExtension (this float val) - { - } - - public static void Main () - { - MyProperty.MyExtension (); - } -} - - // CS0154: The property or indexer `B.Foo' cannot be used in this context because it lacks the `get' accessor // Line: 13 // this is bug 55780. @@ -99,5 +77,27 @@ } } + // CS0154: The property or indexer `A.this[int]' cannot be used in this context because it lacks the `get' accessor +// Line: 18 + +public class A +{ + public int this[int i] { set { } } +} + +public class B : A +{ + public int this[string i] { get { return 9; } } +} + +class Test +{ + public static void Main () + { + int i = new B ()[1]; + } +} + + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0155 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0155 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0155 2039-11-01 23:06:40.000000000 +0100 @@ -11,6 +11,16 @@ } // CS0155: The type caught or thrown must be derived from System.Exception +// Line: 7 +class X { + static void Main () + { + int a = 9; + throw a; + } +} + + // CS0155: The type caught or thrown must be derived from System.Exception // Line: 8 class X { static void Main () @@ -36,16 +46,6 @@ // CS0155: The type caught or thrown must be derived from System.Exception -// Line: 7 -class X { - static void Main () - { - int a = 9; - throw a; - } -} - - // CS0155: The type caught or thrown must be derived from System.Exception // Line: 9 class Test /usr/lib/monodoc/sources/cs-errors.zip/CS0157 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0157 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0157 2039-11-01 23:06:40.000000000 +0100 @@ -3,19 +3,6 @@ CS0157 // CS0157: Control cannot leave the body of a finally clause -// Line: 9 - -class X { - void A () - { - try { - } finally { - return; - } - } -} - - // CS0157: Control cannot leave the body of a finally clause // Line: 11 class T { @@ -48,7 +35,7 @@ } } // CS0157: Control cannot leave the body of a finally clause -// Line: 11 +// Line: 12 class T { static void Main () @@ -57,13 +44,16 @@ try { System.Console.WriteLine ("trying"); } finally { - break; + try { + break; + } + catch {} } } } } // CS0157: Control cannot leave the body of a finally clause -// Line: 12 +// Line: 11 class T { static void Main () @@ -72,15 +62,25 @@ try { System.Console.WriteLine ("trying"); } finally { - try { - break; - } - catch {} + break; } } } } // CS0157: Control cannot leave the body of a finally clause +// Line: 9 + +class X { + void A () + { + try { + } finally { + return; + } + } +} + + // CS0157: Control cannot leave the body of a finally clause // Line: 10 class Foo { /usr/lib/monodoc/sources/cs-errors.zip/CS0158 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0158 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0158 2039-11-01 23:06:40.000000000 +0100 @@ -15,8 +15,8 @@ static void RunIt (Test t) { + Foo: Hello hello = delegate (Test test) { - Foo: Hello hello2 = delegate (Test test2) { Foo: test2.Whatever (); @@ -33,6 +33,20 @@ } } + // CS0158: The label `start' shadows another label by the same name in a contained scope +// Line: 9 + +class ClassMain { + public static void Main() { + start: + { + start: + goto start; + } + } +} + + // CS0158: The label `Foo' shadows another label by the same name in a contained scope // Line: 17 using System; @@ -64,6 +78,24 @@ } } + // CS0158: The label `a' shadows another label by the same name in a contained scope +// Line: 11 + +class Foo +{ + static void Main () + { + int i = 1; + goto a; + if (i == 9) { + a: + return; + } +a: + return; + } +} + // CS0158: The label `Foo' shadows another label by the same name in a contained scope // Line: 17 using System; @@ -77,8 +109,8 @@ static void RunIt (Test t) { - Foo: Hello hello = delegate (Test test) { + Foo: Hello hello2 = delegate (Test test2) { Foo: test2.Whatever (); @@ -95,24 +127,6 @@ } } - // CS0158: The label `a' shadows another label by the same name in a contained scope -// Line: 11 - -class Foo -{ - static void Main () - { - int i = 1; - goto a; - if (i == 9) { - a: - return; - } -a: - return; - } -} - // CS0158: The label `LBL4' shadows another label by the same name in a contained scope // Line: 17 @@ -144,19 +158,5 @@ } - // CS0158: The label `start' shadows another label by the same name in a contained scope -// Line: 9 - -class ClassMain { - public static void Main() { - start: - { - start: - goto start; - } - } -} - - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0159 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0159 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0159 2039-11-01 23:06:40.000000000 +0100 @@ -3,20 +3,35 @@ CS0159 // CS0159: The label `a:' could not be found within the scope of the goto statement -// Line: 8 +// Line: 9 class Foo { static void Main () { int i = 9; goto a; - if (i == 9) { + while (i != 9) { a: throw new System.Exception ("huh?"); } } } + // CS0159: The label `a:' could not be found within the scope of the goto statement +// Line: 9 + +class Foo { + static void Main () + { + int i = 9; + goto a; + do { + a: + throw new System.Exception ("huh?"); + } while (i != 9); + } +} + // CS0159: The label `case 20:' could not be found within the scope of the goto statement // Line: 13 @@ -107,29 +122,14 @@ // CS0159: The label `a:' could not be found within the scope of the goto statement -// Line: 9 - -class Foo { - static void Main () - { - int i = 9; - goto a; - do { - a: - throw new System.Exception ("huh?"); - } while (i != 9); - } -} - - // CS0159: The label `a:' could not be found within the scope of the goto statement -// Line: 9 +// Line: 8 class Foo { static void Main () { int i = 9; goto a; - while (i != 9) { + if (i == 9) { a: throw new System.Exception ("huh?"); } /usr/lib/monodoc/sources/cs-errors.zip/CS0161 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0161 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0161 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,31 @@ CS0161 + // CS0161: `Test.Main()': not all code paths return a value +// Line: 4 +class Test { + static int Main () { + bool b = false; + while (true) { + if (b) + break; + else + break; + } + } +} + + + // CS0161: `A.Main()': not all code paths return a value +// Line: 6 + +class A +{ + public static int Main () + { + } +} + // CS0161: `A.Test()': not all code paths return a value // Line: 8 @@ -20,30 +45,5 @@ } } - // CS0161: `A.Main()': not all code paths return a value -// Line: 6 - -class A -{ - public static int Main () - { - } -} - - // CS0161: `Test.Main()': not all code paths return a value -// Line: 4 -class Test { - static int Main () { - bool b = false; - while (true) { - if (b) - break; - else - break; - } - } -} - - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0162 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0162 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0162 2039-11-01 23:06:40.000000000 +0100 @@ -3,62 +3,43 @@ CS0162 // CS0162: Unreachable code detected -// Line: 9 -// Compiler options: -warnaserror -warn:2 - -class Foo { - static void Main () - { - goto skip; - a: - throw new System.Exception (); - goto a; - skip: - return; - } -} - - // CS0162: Unreachable code detected // Line: 12 -// Compiler options: -warnaserror -warn:2 +// Compiler options: -warnaserror -class Program +using System; + +public class Driver { - static int Main () + public static void Main () { - int ctc_f = 0; - - if ((++ctc_f == 0 && false)) { - return 1; + int yyTop = 0; + for (; ; ++yyTop) { + if (yyTop > 0) + break; + else + return; } - - return 0; } } // CS0162: Unreachable code detected -// Line: 18 +// Line: 13 // Compiler options: -warnaserror -warn:2 using System; class C { - public enum Flags { - Removed = 0, - Public = 1 - } + bool T () { return true; } - public Flags _enumFlags; - - internal void Close() + void Close() { - if ((Flags.Removed & _enumFlags) != (Flags.Removed & _enumFlags)) + if (T () && false) Console.WriteLine ("error"); } - - static void Main () {} } + +class XXXX { static void Main () {} } // CS0162: Unreachable code detected // Line: 12 @@ -76,23 +57,32 @@ } // CS0162: Unreachable code detected -// Line: 18 +// Line: 11 // Compiler options: -warnaserror -warn:2 -using System; - -class C { - public enum Flags { - Removed = 0, - Public = 1 +class Error +{ + void Test () + { + switch (10) + { + case 9: + break; + } } - public Flags _enumFlags; - - internal void Close() - { - if ((_enumFlags & Flags.Removed) != 0) - Console.WriteLine ("error"); +} + + // CS0162: Unreachable code detected +// Line: 10 +// Compiler options: -warnaserror -warn:2 + +class C +{ + static int Main () + { + while (!new bool {}); + return 1; } } @@ -115,48 +105,91 @@ } } // CS0162: Unreachable code detected -// Line: 9 +// Line: 11 // Compiler options: -warnaserror -warn:2 -class C +public class Test { - public static int Main () + public static void Main () { - if (true == false) - return 1; - - return 2; + return; + + Test testStr; + return; } -} +} + // CS0162: Unreachable code detected -// Line: 10 +// Line: 9 // Compiler options: -warnaserror -warn:2 +class Foo { + static void Main () + { + goto skip; + a: + goto a; + skip: + return; + } +} + + // CS0162: Unreachable code detected +// Line: 10 +// Compiler options: -warnaserror + class C { - static int Main () + void Test (int a) { - while (!new bool {}); - return 1; + return; + if (a > 0) { + int x = a + 20; + return; + } + } +} + // CS0162: Unreachable code detected +// Line: 18 +// Compiler options: -warnaserror -warn:2 + +using System; + +class C { + public enum Flags { + Removed = 0, + Public = 1 + } + /usr/lib/monodoc/sources/cs-errors.zip/CS0163 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0163 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0163 2039-11-01 23:06:40.000000000 +0100 @@ -3,6 +3,19 @@ CS0163 // CS0163: Control cannot fall through from one case label `case 1:' to another +// Line: 9 + +public class Program +{ + public static void Main () + { + switch (1) { + case 1: {} + default: {} + } + } +} + // CS0163: Control cannot fall through from one case label `case 1:' to another // Line: 14 using System; @@ -22,18 +35,5 @@ } } } - // CS0163: Control cannot fall through from one case label `case 1:' to another -// Line: 9 - -public class Program -{ - public static void Main () - { - switch (1) { - case 1: {} - default: {} - } - } -} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0165 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0165 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0165 2039-11-01 23:06:40.000000000 +0100 @@ -2,80 +2,89 @@ CS0165 - // CS0165: Use of unassigned local variable `errors' -// Line: 9 + // CS0165: Use of unassigned local variable `s' +// Line: 12 -class T +class X { - static void Main () - { - dynamic errors; - errors.Call (); - } + static string Foo (object arg) + { + if (arg is string s) { + + } + + return s; + } +} + // CS0165: Use of unassigned local variable `s' +// Line: 16 + +using System; + +public class Test +{ + public int i; + + public void Hoge () + { + if (i > 0) + goto Fuga; + string s = "defined later"; + Fuga: + Console.WriteLine (s); + } } - // CS0165: Use of unassigned local variable `u' -// Line: 15 + // CS0165: Use of unassigned local variable `g' +// Line: 10 -class X +public class A { - public static void Main () + static bool Test7 () { - int i = 0; - int u; - switch (i) { - case 1: - A1: - goto case 2; - case 2: - i = u; - goto case 3; - case 3: - goto case 4; - case 4: - goto A1; - } + int f = 1; + int g; + return f > 1 && OutCall (out g) || g > 1; + } + + static bool OutCall (out int arg) + { + arg = 1; + return false; } } - // CS0165: Use of unassigned local variable `service' -// Line: 17 -using System; + // CS0165: Use of unassigned local variable `a' +// Line: 9 -public class Foo +class C { static void Main () { - int service; - - foreach (char b in "hola") { - Console.WriteLine (b); - service = 1; - break; - } + int a; + Foo (out a, a); + } - Console.WriteLine (service); + static void Foo (out int a, int b) + { + a = b; } -} - - // CS0165: Use of unassigned local variable `v' -// Line: 17 +} + // CS0165: Use of unassigned local variable `a' +// Line: 13 using System; -class C +class Program { - void Test (int arg) + public static void Main () { - int v; - switch (arg) { - case 1: - v = 0; - break; - } - - Console.WriteLine (v); + int a; + string s = ""; + var res = s == null || ((a = 1) > 0); + Console.WriteLine (a); } -} +} + // CS0165: Use of unassigned local variable `i' // Line: 9 @@ -88,170 +97,53 @@ } } - // CS0165: Use of unassigned local variable `x' -// Line: 21 + // CS0165: Use of unassigned local variable `v' +// Line: 19 using System; class X { - static bool Foo (out int x) - { - x = 5; - return false; - } - - public static int Main () - { - int x; - try { - throw new ApplicationException (); - } catch when (Foo (out x)) { - return 1; - } catch when (x > 0) { - return 0; - } - } -} - // CS0165: Use of unassigned local variable `res' -// Line: 23 - -class A -{ - public B b; -} - -class B -{ - public void Foo (int arg) + void Foo (out int value) { + value = 1; } -} -class X -{ public static void Main () { - A a = null; - int res; - a?.b.Foo(res = 3); /usr/lib/monodoc/sources/cs-errors.zip/CS0168 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0168 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0168 2039-11-01 23:06:40.000000000 +0100 @@ -2,21 +2,6 @@ CS0168 - // CS0168: The variable `e' is declared but never used -// Line: 10 -// Compiler options: -warn:3 -warnaserror - -using System; - -public class ConsoleStub { - public static void Main(string[] args) { - try { - } catch (Exception e) { - } - } -} - - // CS0168: The variable `y2' is declared but never used // Line: 9 // Compiler options: -warn:3 -warnaserror @@ -41,5 +26,20 @@ } } + // CS0168: The variable `e' is declared but never used +// Line: 10 +// Compiler options: -warn:3 -warnaserror + +using System; + +public class ConsoleStub { + public static void Main(string[] args) { + try { + } catch (Exception e) { + } + } +} + + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0170 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0170 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0170 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,30 @@ CS0170 + // CS0170: Use of possibly unassigned field `p' +// Line: 21 + +using System; + +struct S2 +{ + public int p; +} + +struct S +{ + public S2 s2; +} + +class C +{ + static void Main() + { + S s; + Console.WriteLine (s.s2.p); + } +} + // CS0170: Use of possibly unassigned field `c' // Line: 21 @@ -26,6 +50,20 @@ } } + // CS0170: Use of possibly unassigned field `c' +// Line: 11 + +struct A +{ + public long b; + public float c; + + public A (int foo) + { + b = (long) c; + c = 1; + } +} // CS0170: Use of possibly unassigned field `a' // Line: 17 @@ -98,43 +136,5 @@ } } - // CS0170: Use of possibly unassigned field `p' -// Line: 21 - -using System; - -struct S2 -{ - public int p; -} - -struct S -{ - public S2 s2; -} - -class C -{ - static void Main() - { - S s; - Console.WriteLine (s.s2.p); - } -} - - // CS0170: Use of possibly unassigned field `c' -// Line: 11 - -struct A -{ - public long b; - public float c; - - public A (int foo) - { - b = (long) c; - c = 1; - } -} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0171 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0171 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0171 2039-11-01 23:06:40.000000000 +0100 @@ -19,55 +19,34 @@ } } - // CS0171: Field `Test.x' must be fully assigned before control leaves the constructor -// Line: 10 - -public struct Test -{ - internal int x; + // CS0171: Field `X.x' must be fully assigned before control leaves the constructor +// Line: +struct X { + public readonly int x; - public Test (int x) + X (int a) { - X = x; } - public int X - { - get { return x; } - set { x = value; } - } + static void Main () {} } - // CS0171: Field `S1.s2' must be fully assigned before control leaves the constructor -// Line: 11 + // CS0171: Field `S.value' must be fully assigned before control leaves the constructor +// Line: 10 using System; -struct S1 +struct S { - S2 s2; + internal string value; - public S1 (int arg) + public S (int arg) { - } -} - -struct S2 -{ - int field; -} - - // CS0171: Field `S.ev' must be fully assigned before control leaves the constructor -// Line: 12 - -using System; + if (arg > 0) { + return; + } -struct S -{ - public event EventHandler ev; - - public S (int i) - { + throw new ApplicationException (); } } @@ -94,36 +73,57 @@ } } - // CS0171: Field `X.x' must be fully assigned before control leaves the constructor -// Line: -struct X { - public readonly int x; + // CS0171: Field `S.ev' must be fully assigned before control leaves the constructor +// Line: 12 - X (int a) +using System; + +struct S +{ + public event EventHandler ev; + + public S (int i) { } - - static void Main () {} } - // CS0171: Field `S.value' must be fully assigned before control leaves the constructor + // CS0171: Field `Test.x' must be fully assigned before control leaves the constructor // Line: 10 +public struct Test +{ + internal int x; + + public Test (int x) + { + X = x; + } + + public int X + { + get { return x; } + set { x = value; } + } +} + + // CS0171: Field `S1.s2' must be fully assigned before control leaves the constructor +// Line: 11 + using System; -struct S +struct S1 { - internal string value; + S2 s2; - public S (int arg) + public S1 (int arg) { - if (arg > 0) { - return; - } - - throw new ApplicationException (); } } + +struct S2 +{ + int field; +} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0173 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0173 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0173 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,17 @@ CS0173 + // CS0173: Type of conditional expression cannot be determined because there is no implicit conversion between `null' and `null' +// Line: 8 + +class X +{ + static void Main (string[] args) + { + bool b = args.Length > 0 ? null : null; + } +} + // CS0173: Type of conditional expression cannot be determined because there is no implicit conversion between `dynamic' and `void' // Line: 19 @@ -14,16 +25,20 @@ } } - // CS0173: Type of conditional expression cannot be determined because there is no implicit conversion between `throw expression' and `throw expression' -// Line: 8 + // CS0173: Type of conditional expression cannot be determined because there is no implicit conversion between `null' and `null' +// Line: 10 -class C +using System; + +class X { - public static void Test (bool b) + static int Main (string[] args) { - var s = b ? throw null : throw null; + int[] t = args.Length > 0 ? null : null; + return t == null ? 0 : 1; } -} +} + // CS0173: Type of conditional expression cannot be determined because there is no implicit conversion between `anonymous method' and `anonymous method' // Line: 11 @@ -48,30 +63,15 @@ } } - // CS0173: Type of conditional expression cannot be determined because there is no implicit conversion between `null' and `null' + // CS0173: Type of conditional expression cannot be determined because there is no implicit conversion between `throw expression' and `throw expression' // Line: 8 -class X -{ - static void Main (string[] args) - { - bool b = args.Length > 0 ? null : null; - } -} - - // CS0173: Type of conditional expression cannot be determined because there is no implicit conversion between `null' and `null' -// Line: 10 - -using System; - -class X +class C { - static int Main (string[] args) + public static void Test (bool b) { - int[] t = args.Length > 0 ? null : null; - return t == null ? 0 : 1; + var s = b ? throw null : throw null; } -} - +} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0176 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0176 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0176 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,21 @@ CS0176 + // CS0176: Static member `X.CONST' cannot be accessed with an instance reference, qualify it with a type name instead +// Line: 12 + +public class X { + public const double CONST = 1; +} + +public class Y: X { + + void D (X x) + { + double d = x.CONST; + } +} + // CS0176: Static member `string.Empty' cannot be accessed with an instance reference, qualify it with a type name instead // Line: 9 @@ -33,21 +48,37 @@ } } - // CS0176: Static member `X.CONST' cannot be accessed with an instance reference, qualify it with a type name instead + // CS0176: Static member `A.X' cannot be accessed with an instance reference, qualify it with a type name instead // Line: 12 +using System; -public class X { - public const double CONST = 1; +class A { + public static int X; } -public class Y: X { +class T { + static void Main () { + A T = new A (); + System.Console.WriteLine (T.X); + } +} + // CS0176: Static member `A.X' cannot be accessed with an instance reference, qualify it with a type name instead +// Line: 12 +using System; - void D (X x) +class A +{ + public static int X { get { return 2; } } +} + +class T { - double d = x.CONST; + static void Main () + { + A T = new A (); + System.Console.WriteLine (T.X); } -} - +} // CS0176: Static member `X.void_method()' cannot be accessed with an instance reference, qualify it with a type name instead // Line: 15 class X { @@ -66,20 +97,25 @@ } } - // CS0176: Static member `A.X' cannot be accessed with an instance reference, qualify it with a type name instead -// Line: 12 -using System; + // CS0176: Static member `MyEnum.Foo' cannot be accessed with an instance reference, qualify it with a type name instead +// Line: 14 -class A { - public static int X; +public enum MyEnum +{ + Foo = 1 } -class T { - static void Main () { - A T = new A (); - System.Console.WriteLine (T.X); +public class Test +{ + static void Main () + { + MyEnum theEnum = MyEnum.Foo; + if (theEnum == theEnum.Foo) + { + } } -} +} + // CS0176: Static member `A.Foo()' cannot be accessed with an instance reference, qualify it with a type name instead // Line: 21 @@ -105,41 +141,5 @@ } } - // CS0176: Static member `MyEnum.Foo' cannot be accessed with an instance reference, qualify it with a type name instead -// Line: 14 - -public enum MyEnum -{ - Foo = 1 -} - -public class Test -{ - static void Main () - { - MyEnum theEnum = MyEnum.Foo; - if (theEnum == theEnum.Foo) - { - } - } -} - - // CS0176: Static member `A.X' cannot be accessed with an instance reference, qualify it with a type name instead -// Line: 12 -using System; - -class A -{ - public static int X { get { return 2; } } -} - -class T - { - static void Main () - { - A T = new A (); - System.Console.WriteLine (T.X); - } -} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0177 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0177 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0177 2039-11-01 23:06:40.000000000 +0100 @@ -2,59 +2,45 @@ CS0177 - // CS0177: The out parameter `arg' must be assigned to before control leaves the current method -// Line: 12 + // CS0177: The out parameter `a' must be assigned to before control leaves the current method +// Line: 21 -class C +using System; + +class OutputParam { - delegate void D (string s, out int arg); + public static void Main(string[] args) + { + int a; + Method(out a); + Console.WriteLine(a); + } - public static void Main () - { - D d = delegate (string s, out int arg) - { - return; - }; - } -} - - // CS0177: The out parameter `f' must be assigned to before control leaves the current method -// Line: 5 + public static void Method(out int a) + { + int b; -class ClassMain { - public static void test2 (int a, out float f) - { - // CS0177 - if (a == 5) - return; + try { + b = 5; + } catch (Exception) { return; } - f = 8.53F; - } + a = b; + } } - - // CS0177: The out parameter `val' must be assigned to before control leaves the current method -// Line: 12 + // CS0177: The out parameter `output' must be assigned to before control leaves the current method +// Line: 10 -public class A +class Test { - public bool GetValue (out int val) - { - val = 0; - return true; - } - - public void ReallyGetValue (out int val) - { - if (AlwaysReturnTrue () || GetValue (out val)) { - } - } + delegate T Creator<T> (); - public bool AlwaysReturnTrue () + static bool TryAction<T> (Creator<T> creator, out T output) where T : struct { - return true; + return false; } -} +} + // CS0177: The out parameter `display' must be assigned to before control leaves the current method // Line: 5 @@ -67,43 +53,25 @@ } - // CS0177: The out parameter `x' must be assigned to before control leaves the current method -// Line: 6 - -public class GotoWithOut -{ - public static void Test (bool cond, out int x) - { - if (cond) - { - goto Label2; - } - else - { - goto Label; - } - Label: - x = 0; - Label2: - return; - } -} - // CS0177: The out parameter `output' must be assigned to before control leaves the current method -// Line: 8 + // CS0177: The out parameter `f' must be assigned to before control leaves the current method +// Line: 5 -class Test -{ - static bool TryAction<T> (out T output) +class C { + public static void test (int a, out float f) { - return false; - } + do { + // CS0177 + if (a == 8) { + System.Console.WriteLine ("Hello"); + return; + } + } while (false); - static void Main () - { - Test value; - TryAction<Test> (out value); + f = 1.3F; + return; } } + // CS0177: The out parameter `baz' must be assigned to before control leaves the current method // Line: 6 @@ -119,17 +87,39 @@ } } } - // CS0177: The out parameter `output' must be assigned to before control leaves the current method -// Line: 10 + // CS0177: The out parameter `o' must be assigned to before control leaves the current method +// Line: 4 +// Compiler options: -langversion:experimental -class Test +class Test(out int o) { - delegate T Creator<T> (); +} + + // CS0177: The out parameter `a' must be assigned to before control leaves the current method +// Line: 21 - static bool TryAction<T> (Creator<T> creator, out T output) where T : struct - { - return false; - } +using System; + +class OutputParam +{ + public static void Main(string[] args) + { + int a; + Method(out a); + Console.WriteLine(a); + } + + public static void Method(out int a) + { + int b; + + try { + b = 5; + return; + } catch (Exception) { throw; } + + a = b; + } } // CS0177: The out parameter `f' must be assigned to before control leaves the current method @@ -147,6 +137,39 @@ } + // CS0177: The out parameter `arg' must be assigned to before control leaves the current method /usr/lib/monodoc/sources/cs-errors.zip/CS0179 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0179 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0179 2039-11-01 23:06:40.000000000 +0100 @@ -13,21 +13,6 @@ } - // CS0179: `Bar.OnFoo.add' cannot declare a body because it is marked extern -// Line: 9 - -using System; - -public delegate void FooHandler (); - -class Bar { - extern event FooHandler OnFoo { - add { } - remove { } - } -} - - // CS0179: `X.extern_method()' cannot declare a body because it is marked extern // Line: @@ -43,5 +28,20 @@ } + // CS0179: `Bar.OnFoo.add' cannot declare a body because it is marked extern +// Line: 9 + +using System; + +public delegate void FooHandler (); + +class Bar { + extern event FooHandler OnFoo { + add { } + remove { } + } +} + + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0181 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0181 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0181 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,23 @@ CS0181 + // CS0181: Attribute constructor parameter has type `System.Attribute', which is not a valid attribute parameter type +// Line: 6 + +using System; + +[BAttribute (null)] +public class BAttribute : Attribute +{ + public BAttribute (Attribute a) + { + } + + public static void Main () + { + } +} + // CS0181: Attribute constructor parameter has type `System.Enum', which is not a valid attribute parameter type // Line: 18 @@ -56,22 +73,5 @@ System.Reflection.MethodBase.GetCurrentMethod().GetCustomAttributes (true); } } - // CS0181: Attribute constructor parameter has type `System.Attribute', which is not a valid attribute parameter type -// Line: 6 - -using System; - -[BAttribute (null)] -public class BAttribute : Attribute -{ - public BAttribute (Attribute a) - { - } - - public static void Main () - { - } -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0182 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0182 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0182 2039-11-01 23:06:40.000000000 +0100 @@ -5,17 +5,6 @@ // CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression // Line: 4 -[A (true is bool)] -class AAttribute : System.Attribute -{ - public AAttribute (bool b) - { - } -} - - // CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression -// Line: 4 - [A (false ? new object () : null)] class AAttribute : System.Attribute { @@ -25,61 +14,49 @@ } // CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression -// Line: 6 - -using System.Reflection; - -[assembly: AssemblyKeyFile(string.Empty)] - - // CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression -// Line: 13 - +// Line: 14 using System; +using System.Reflection; -class MyAttribute : Attribute { - - public MyAttribute (string s) +[AttributeUsage (AttributeTargets.All)] +public class MineAttribute : Attribute { + public MineAttribute (Type [] t) { } } -[My (null as string)] -class X { - static void Main () +[Mine(new Type [2])] +public class Foo { + public static int Main () { + return 0; } } + + + + + + // CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression -// Line: 8 +// Line: 6 -using System.Runtime.CompilerServices; +using System.Reflection; -public class C -{ - [IndexerName ("1" + 2)] - public string this [int i] { - set { } - } -} +[assembly: AssemblyKeyFile(string.Empty)] // CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression -// Line: 13 - -using System; +// Line: 4 -class MyAttribute : Attribute +[A (true is bool)] +class AAttribute : System.Attribute { - public MyAttribute (object s) + public AAttribute (bool b) { } } - -[My (decimal.MaxValue)] -class X -{ -} // CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression // Line: 14 @@ -103,28 +80,6 @@ } // CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression -// Line: 10 - -using System.Runtime.InteropServices; - -class X { - static string dll = "some.dll"; - - [DllImport (dll)] - extern static void Blah (); -} - - // CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression -// Line: 8 - -using System.Runtime.InteropServices; - -class X { - [DllImport ("1" + 9)] - extern static void Blah (); -} - - // CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression // Line: 13 using System; @@ -143,9 +98,31 @@ } } // CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression -// Line: 14 +// Line: 8 + +using System.Runtime.InteropServices; + +class X { + [DllImport ("1" + 9)] + extern static void Blah (); +} + + // CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression +// Line: 10 + +using System.Runtime.InteropServices; + +class X { + static string dll = "some.dll"; + + [DllImport (dll)] + extern static void Blah (); +} + + // CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression +// Line: 13 + using System; -using System.Reflection; [AttributeUsage (AttributeTargets.All)] public class MineAttribute : Attribute { @@ -154,13 +131,9 @@ } } - -[Mine(new Type [2])] -public class Foo { - public static int Main () - { - return 0; - } +[Mine(new Type [(ulong) 3])] +public class Foo +{ } @@ -174,23 +147,50 @@ using System; -[AttributeUsage (AttributeTargets.All)] -public class MineAttribute : Attribute { - public MineAttribute (Type [] t) +class MyAttribute : Attribute { + + public MyAttribute (string s) { } } -[Mine(new Type [(ulong) 3])] -public class Foo /usr/lib/monodoc/sources/cs-errors.zip/CS0183 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0183 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0183 2039-11-01 23:06:40.000000000 +0100 @@ -17,19 +17,17 @@ } } - // CS0183: The given expression is always of the provided (`System.Enum') type -// Line: 13 -// Compiler options: -warnaserror - -using System; - -enum E { Item }; + // CS0183: The given expression is always of the provided (`int?') type +// Line: 10 +// Compiler options: -warnaserror -warn:1 -class C +class X { - static bool Check (E e) + public void Foo () { - return e is Enum; + int? x = null; + if (x is int?) { + } } } @@ -50,20 +48,23 @@ } } - // CS0183: The given expression is always of the provided (`T') type -// Line: 10 -// Compiler options: -warnaserror -warn:1 + // CS0183: The given expression is always of the provided (`System.Enum') type +// Line: 13 +// Compiler options: -warnaserror -class X +using System; + +enum E { Item }; + +class C { - static bool Foo<T> () where T : struct + static bool Check (E e) { - T o = default (T); - return o is T; + return e is Enum; } } - // CS0183: The given expression is always of the provided (`int?') type + // CS0183: The given expression is always of the provided (`object') type // Line: 10 // Compiler options: -warnaserror -warn:1 @@ -71,23 +72,22 @@ { public void Foo () { - int? x = null; - if (x is int?) { + int x = 1; + if (x is object) { } } } - // CS0183: The given expression is always of the provided (`object') type + // CS0183: The given expression is always of the provided (`T') type // Line: 10 // Compiler options: -warnaserror -warn:1 class X { - public void Foo () + static bool Foo<T> () where T : struct { - int x = 1; - if (x is object) { - } + T o = default (T); + return o is T; } } /usr/lib/monodoc/sources/cs-errors.zip/CS0184 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0184 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0184 2039-11-01 23:06:40.000000000 +0100 @@ -2,20 +2,19 @@ CS0184 - // CS0184: The given expression is never of the provided (`bool') type + // CS0184: The given expression is never of the provided (`object') type // Line: 13 // Compiler options: -warnaserror -warn:1 -using System; - -class X +public class Test { - void Foo () + static void Foo () { - int? i = null; - - if (i is bool) { - } + } + + public static void Main() + { + bool b = Foo () is object; } } @@ -33,35 +32,35 @@ } } - // CS0184: The given expression is never of the provided (`decimal') type -// Line: 7 + // CS0184: The given expression is never of the provided (`B') type +// Line: 9 // Compiler options: -warnaserror -warn:1 -class A +class B { - static void Main () - { - System.Console.WriteLine (1 is decimal); + static void Foo () + { + if (1 is B) { + } } } - // CS0184: The given expression is never of the provided (`object') type -// Line: 13 + // CS0184: The given expression is never of the provided (`byte') type +// Line: // Compiler options: -warnaserror -warn:1 -public class Test -{ - static void Foo () - { - } - - public static void Main() +class X { + + static void Main () { - bool b = Foo () is object; + int a = 1; + + if (a is byte){ + } } } - // CS0184: The given expression is never of the provided (`bool?') type + // CS0184: The given expression is never of the provided (`bool') type // Line: 13 // Compiler options: -warnaserror -warn:1 @@ -73,25 +72,30 @@ { int? i = null; - if (i is bool?) { + if (i is bool) { } } } - // CS0184: The given expression is never of the provided (`byte') type -// Line: 13 + // CS0184: The given expression is never of the provided (`decimal') type +// Line: 7 // Compiler options: -warnaserror -warn:1 -class S {} - -class X +class A { static void Main () - { - const S x = null; - - if (x is byte) { - } + { + System.Console.WriteLine (1 is decimal); + } +} + + // CS0184: The given expression is never of the provided (`string') type +// Line: 7 +// Compiler options: -warnaserror -warn:1 + +class A { + static void Main () { + System.Console.WriteLine (null is string); } } @@ -113,15 +117,19 @@ } } - // CS0184: The given expression is never of the provided (`B') type -// Line: 9 + // CS0184: The given expression is never of the provided (`byte') type +// Line: 13 // Compiler options: -warnaserror -warn:1 -class B +class S {} + +class X { - static void Foo () + static void Main () { - if (1 is B) { + const S x = null; + + if (x is byte) { } } } @@ -139,27 +147,19 @@ } } - // CS0184: The given expression is never of the provided (`string') type -// Line: 7 -// Compiler options: -warnaserror -warn:1 - -class A { - static void Main () { - System.Console.WriteLine (null is string); - } -} - - // CS0184: The given expression is never of the provided (`byte') type -// Line: + // CS0184: The given expression is never of the provided (`bool?') type +// Line: 13 // Compiler options: -warnaserror -warn:1 -class X { +using System; - static void Main () +class X +{ + void Foo () { - int a = 1; + int? i = null; - if (a is byte){ + if (i is bool?) { } } } /usr/lib/monodoc/sources/cs-errors.zip/CS0188 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0188 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0188 2039-11-01 23:06:40.000000000 +0100 @@ -3,34 +3,18 @@ CS0188 // CS0188: The `this' object cannot be used before all of its fields are assigned to -// Line: 10 - -struct S -{ - public int x; - - S (dynamic d) - { - Foo (d); - x = 44; - } - - void Foo (int a) - { - } -} - - // CS0188: The `this' object cannot be used before all of its fields are assigned to // Line: 8 struct Sample { public Sample (int arg) { - text = base.ToString (); + text = this.Prop; } + + int Prop { get { return 1; } } - internal string text; + public int text; } // CS0188: The `this' object cannot be used before all of its fields are assigned to // Line: 10 @@ -41,27 +25,12 @@ public B (int foo) { - Test (this); - a = 1; - } - - static void Test (B b) - { + Test (); } -} - // CS0188: The `this' object cannot be used before all of its fields are assigned to -// Line: 8 -struct Sample -{ - public Sample (int arg) + public void Test () { - text = this.Prop; } - - int Prop { get { return 1; } } - - public int text; } // CS0188: The `this' object cannot be used before all of its fields are assigned to // Line: 16 @@ -83,59 +52,71 @@ } // CS0188: The `this' object cannot be used before all of its fields are assigned to -// Line: 10 +// Line: 16 -public struct Test +struct Foo { - internal int x; + public int bar; + public int baz; - public Test (int x) - { - X = x; + public int this [int i] { + get { return bar; } } - public int X + public Foo (int baz) { - get { return x; } - set { x = value; } + this.baz = baz; + bar = this [2] - 1; } } // CS0188: The `this' object cannot be used before all of its fields are assigned to // Line: 10 -struct B +struct S { - public int a; + public int x; + + S (dynamic d) + { + Foo (d); + x = 44; + } - public B (int foo) + void Foo (int a) { - Test (); } +} + + // CS0188: The `this' object cannot be used before all of its fields are assigned to +// Line: 8 - public void Test () +struct Sample +{ + public Sample (int arg) { + text = base.ToString (); } + + internal string text; } // CS0188: The `this' object cannot be used before all of its fields are assigned to -// Line: 16 +// Line: 10 -struct Foo +struct B { - public int bar; - public int baz; + public int a; - public int this [int i] { - get { return bar; } + public B (int foo) + { + Test (this); + a = 1; } - public Foo (int baz) + static void Test (B b) { - this.baz = baz; - bar = this [2] - 1; } -} - +} // CS0188: The `this' object cannot be used before all of its fields are assigned to // Line: 6 @@ -150,5 +131,24 @@ public string text; } + // CS0188: The `this' object cannot be used before all of its fields are assigned to +// Line: 10 + +public struct Test +{ + internal int x; + + public Test (int x) + { + X = x; + } + + public int X + { + get { return x; } + set { x = value; } + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0190 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0190 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0190 2039-11-01 23:06:40.000000000 +0100 @@ -3,16 +3,6 @@ CS0190 // CS0190: The __arglist construct is valid only within a variable argument method -// Line: 8 - -public class Test -{ - public static void Foo () - { - object o = __arglist; - } -} - // CS0190: The __arglist construct is valid only within a variable argument method // Line: 11 public class Test @@ -34,5 +24,15 @@ Foo (__arglist ()); } } + // CS0190: The __arglist construct is valid only within a variable argument method +// Line: 8 + +public class Test +{ + public static void Foo () + { + object o = __arglist; + } +} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0192 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0192 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0192 2039-11-01 23:06:40.000000000 +0100 @@ -3,44 +3,44 @@ CS0192 // CS0192: A readonly field `A.a' cannot be passed ref or out (except in a constructor) -// Line: 17 - -using System; +// Line: 15 class A { - public readonly int a=5; + public readonly int a; - public void Inc (ref int a) + public void Inc (out int a) { - ++a; + a = 3; } public void IncCall () { - Inc (ref a); - } - - static void Main () - { + Inc (out a); } } // CS0192: A readonly field `A.a' cannot be passed ref or out (except in a constructor) -// Line: 15 +// Line: 17 + +using System; class A { - public readonly int a; + public readonly int a=5; - public void Inc (out int a) + public void Inc (ref int a) { - a = 3; + ++a; } public void IncCall () { - Inc (out a); + Inc (ref a); + } + + static void Main () + { } } /usr/lib/monodoc/sources/cs-errors.zip/CS0199 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0199 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0199 2039-11-01 23:06:40.000000000 +0100 @@ -2,18 +2,6 @@ CS0199 - // CS0199: A static readonly field `X.f' cannot be passed ref or out (except in a static constructor) -// Line: 10 - -class X -{ - static readonly int f = 0; - - public static void Main () - { - ref int j = ref f; - } -} // CS0199: A static readonly field `ClassMain.index' cannot be passed ref or out (except in a static constructor) // Line: 19 @@ -37,5 +25,17 @@ } + // CS0199: A static readonly field `X.f' cannot be passed ref or out (except in a static constructor) +// Line: 10 + +class X +{ + static readonly int f = 0; + + public static void Main () + { + ref int j = ref f; + } +} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0200 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0200 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0200 2039-11-01 23:06:40.000000000 +0100 @@ -2,21 +2,6 @@ CS0200 - // CS0200: Property or indexer `A.X' cannot be assigned to (it is read-only) -// Line: 13 - -public class A -{ - public int X { get; } -} - -public class B : A -{ - public B () - { - base.X = 1; - } -} // CS0200: Property or indexer `C.P' cannot be assigned to (it is read-only) // Line: 10 @@ -30,20 +15,23 @@ } } - // CS0200: Property or indexer `MyClass.Type' cannot be assigned to (it is read-only) -// Line: 12 - -using System; + // CS0200: Property or indexer `X.P' cannot be assigned to (it is read-only) +// Line: 13 - public class MyClass - { - Type Type { get; } +class X { + static int P { + get { + return 1; + } + } - public void Test () + static int Main () { - Type = typeof (string); + P = 10; + return 1; } -} +} + // CS0200: Property or indexer `C.S' cannot be assigned to (it is read-only) // Line: 10 @@ -57,11 +45,25 @@ } } - // CS0200: Property or indexer `X.P' cannot be assigned to (it is read-only) -// Line: 13 + // CS0200: Property or indexer `MyClass.Type' cannot be assigned to (it is read-only) +// Line: 12 + +using System; + + public class MyClass + { + Type Type { get; } + + public void Test () + { + Type = typeof (string); + } +} + // CS0200: Property or indexer `X.this[int]' cannot be assigned to (it is read-only) +// Line: 14 class X { - static int P { + int this[int i] { get { return 1; } @@ -69,11 +71,27 @@ static int Main () { - P = 10; + X x = new X (); + x[0] = 10; return 1; } } + // CS0200: Property or indexer `A.X' cannot be assigned to (it is read-only) +// Line: 13 + +public class A +{ + public int X { get; } +} + +public class B : A +{ + public B () + { + base.X = 1; + } +} // CS0200: Property or indexer `A.Counter' cannot be assigned to (it is read-only) // Line: 9 @@ -93,23 +111,5 @@ } } - // CS0200: Property or indexer `X.this[int]' cannot be assigned to (it is read-only) -// Line: 14 - -class X { - int this[int i] { - get { - return 1; - } - } - - static int Main () - { - X x = new X (); - x[0] = 10; - return 1; - } -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0201 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0201 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0201 2039-11-01 23:06:40.000000000 +0100 @@ -3,28 +3,15 @@ CS0201 // CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement -// Line: 9 - -class D -{ - void Foo () - { - System.Threading.Tasks.TaskFactory m = null; - m.StartNew (() => delegate { }); - } -} - - // CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement // Line: 11 using System; -using System.Threading.Tasks; -class C +public class X { - async Task<int> Test () + public static void Main () { - Func<int> r = await Task.Factory.StartNew (() => () => 1); + 2 * 3; } } @@ -41,29 +28,52 @@ } } // CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement -// Line: 11 - -using System; +// Line: 8 -public class X +class MainClass { public static void Main () { - 2 * 3; + for (int i = 0; i++; i < 8) { + } } } + + + // CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement +// Line: 7 + +class T { + static string XX; + static void Main () { + T.XX; + } +} + + // CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement +// Line: 7 + +class T { + static string XX { + get {return "";} + } + static void Main () { + T.XX; + } +} // CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement // Line: 9 -public class X +class D { - public static void Main () + void Foo () { - return; - 1+1; + System.Threading.Tasks.TaskFactory m = null; + m.StartNew (() => delegate { }); } -} +} + // CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement // Line: 13 @@ -83,63 +93,53 @@ // CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement // Line: 10 -using System.Linq; - -class C +class TestClass { - public static void Main () + delegate void test_delegate (int arg); + + public TestClass () { - from s in "string" select s; + test_delegate D = (b) => "a"; } -} - // CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement -// Line: 7 - -class T { - static string XX; - static void Main () { - T.XX; - } } + // CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement -// Line: 8 +// Line: 9 -class MainClass +public class X { public static void Main () { - for (int i = 0; i++; i < 8) { - } + return; + 1+1; } -} - - +} // CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement -// Line: 7 +// Line: 11 -class T { - static string XX { - get {return "";} - } - static void Main () { - T.XX; - } +using System; +using System.Threading.Tasks; + +class C +{ + async Task<int> Test () + { + Func<int> r = await Task.Factory.StartNew (() => () => 1); + } } // CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement // Line: 10 -class TestClass -{ - delegate void test_delegate (int arg); +using System.Linq; - public TestClass () +class C +{ + public static void Main () { - test_delegate D = (b) => "a"; + from s in "string" select s; } -} - - +} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0202 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0202 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0202 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,25 @@ CS0202 + // 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; + } +} + // CS0202: foreach statement requires that the return type `Foo.E[]' of `Foo.P.GetEnumerator()' must have a suitable public MoveNext method and public Current property // Line: 18 @@ -26,24 +45,5 @@ } } - // 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; - } -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0205 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0205 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0205 2039-11-01 23:06:40.000000000 +0100 @@ -27,41 +27,6 @@ } } - // CS0205: Cannot call an abstract base member `A.Foobar.set' -// Line: 13 - -public abstract class A -{ - public abstract int Foobar { set; } -} - -public class B: A -{ - public override int Foobar { - set { - base.Foobar = value; - } - } -} - - - // CS0205: Cannot call an abstract base member `A.this[int].set' -// Line: 13 - -public abstract class A -{ - public abstract int this[int i] { set; } -} - -public class B: A -{ - public override int this[int i] { - set { - base[i] = value; - } - } -} - // CS0205: Cannot call an abstract base member `A.Foobar.get' // Line: 18 // Compiler options: -r:CS0205-3-lib.dll @@ -136,5 +101,40 @@ } + // CS0205: Cannot call an abstract base member `A.this[int].set' +// Line: 13 + +public abstract class A +{ + public abstract int this[int i] { set; } +} + +public class B: A +{ + public override int this[int i] { + set { + base[i] = value; + } + } +} + + // CS0205: Cannot call an abstract base member `A.Foobar.set' +// Line: 13 + +public abstract class A +{ + public abstract int Foobar { set; } +} + +public class B: A +{ + public override int Foobar { + set { + base.Foobar = value; + } + } +} + + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0206 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0206 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0206 2039-11-01 23:06:40.000000000 +0100 @@ -15,22 +15,24 @@ } } // CS0206: A property, indexer or dynamic member access may not be passed as `ref' or `out' parameter -// Line: 15 +// Line: 16 -class X { - static int P { get { return 1; } set { } } +using System; - static int m (out int v) +public class Test +{ + public static void WriteOutData (out dynamic d) { - v = 1; - return 1; + d = 5.0; } - - static void Main () + + public static void Main (string[] args) { - m (out P); + dynamic d = null; + WriteOutData (out d.Foo); } } + // CS0206: A property, indexer or dynamic member access may not be passed as `ref' or `out' parameter // Line: 14 @@ -78,24 +80,22 @@ // CS0206: A property, indexer or dynamic member access may not be passed as `ref' or `out' parameter -// Line: 16 +// Line: 15 -using System; +class X { + static int P { get { return 1; } set { } } -public class Test -{ - public static void WriteOutData (out dynamic d) + static int m (out int v) { - d = 5.0; + v = 1; + return 1; } - - public static void Main (string[] args) + + static void Main () { - dynamic d = null; - WriteOutData (out d.Foo); + m (out P); } } - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0208 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0208 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0208 2039-11-01 23:06:40.000000000 +0100 @@ -2,20 +2,21 @@ CS0208 - // CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type `X<A>' -// Line: 12 + // CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type `Foo' +// Line: 11 // Compiler options: -unsafe -class X <Y> { +public unsafe partial struct Foo +{ } -unsafe class A { - - static void Main () - { - int size = sizeof (X<A>); - } +public unsafe partial struct Foo +{ + public Foo *foo; + string x; } + + // CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type `foo' // Line: 11 @@ -32,44 +33,23 @@ } } - // CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type `Foo.P' -// Line: 18 + // CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type `_Port' +// Line: 16 // Compiler options: -unsafe -public unsafe class Foo -{ - public class P - { - public P* GetEnumerator () - { - return null; - } - } - - public static void Main () - { - P o = new P (); - foreach (P p in o) - { - } - } -} - - // CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type `Foo' -// Line: 11 -// Compiler options: -unsafe +using System.Runtime.InteropServices; -public unsafe partial struct Foo -{ +[StructLayout(LayoutKind.Sequential)] +internal unsafe struct _Port { + [MarshalAs(UnmanagedType.ByValTStr, SizeConst=128)] char[] port; } -public unsafe partial struct Foo -{ - public Foo *foo; - string x; +unsafe class d { + static void Main () + { + _Port * port = null; + } } - - // CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type `T' // Line: 7 @@ -105,55 +85,42 @@ } } - // CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type `CS208.Foo' -// Line: 20 + // CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type `X' +// Line: 8 // Compiler options: -unsafe -namespace CS208 -{ - public class Foo - { - } - - public class Bar - { - unsafe static void Main () - { - Foo f = new Foo (); - Foo *s = &f; - } +unsafe struct X { + string a; + static void Main () { + X x; + void* y = &x; } } + - // CS0208: 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 + // CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type `T' +// Line: 8 -public class Splay<T> +class X { - unsafe private class Node - { - private Node * parent; - private T data; - } + public static void Foo<T> (T t) + { + object o = sizeof (T); + } } - - // CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type `_Port' -// Line: 16 + // CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type `X<A>' +// Line: 12 // Compiler options: -unsafe -using System.Runtime.InteropServices; - -[StructLayout(LayoutKind.Sequential)] -internal unsafe struct _Port { - [MarshalAs(UnmanagedType.ByValTStr, SizeConst=128)] char[] port; +class X <Y> { } -unsafe class d { +unsafe class A { + static void Main () { - _Port * port = null; + int size = sizeof (X<A>); } } @@ -190,41 +157,70 @@ } } - // CS0208: 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. + // CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type `CS208.Foo' +// Line: 20 +// Compiler options: -unsafe -public class Splay<T> +namespace CS208 { - unsafe private struct Node - { - private Node * parent; - } -} + public class Foo + { + public int Add (int a, int b) + { + return a + b; + } + } + public class Bar + { + unsafe static void Main () + { + Foo f = new Foo (); + void *s = &f; /usr/lib/monodoc/sources/cs-errors.zip/CS0210 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0210 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0210 2039-11-01 23:06:40.000000000 +0100 @@ -3,6 +3,18 @@ CS0210 // CS0210: You must provide an initializer in a fixed or using statement declaration +// Line: 7 +// Compiler options: -unsafe + +public class MainClass { + unsafe static void Main () { + fixed (int* p) { + } + } +} + + + // CS0210: You must provide an initializer in a fixed or using statement declaration // Line: 8 using System.Resources; @@ -34,17 +46,5 @@ } - // CS0210: You must provide an initializer in a fixed or using statement declaration -// Line: 7 -// Compiler options: -unsafe - -public class MainClass { - unsafe static void Main () { - fixed (int* p) { - } - } -} - - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0212 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0212 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0212 2039-11-01 23:06:40.000000000 +0100 @@ -3,27 +3,6 @@ CS0212 // CS0212: You can only take the address of unfixed expression inside of a fixed statement initializer -// Line: 19 -// Compiler options: -unsafe - -using System; - -class X -{ - public int x; - public X () - { - this.x = 4; - } - - public unsafe static void Main () - { - X x = new X (); - int *p = &x.x; - } -} - - // CS0212: You can only take the address of unfixed expression inside of a fixed statement initializer // Line: 10 // Compiler options: -unsafe @@ -65,5 +44,26 @@ } } + // CS0212: You can only take the address of unfixed expression inside of a fixed statement initializer +// Line: 19 +// Compiler options: -unsafe + +using System; + +class X +{ + public int x; + public X () + { + this.x = 4; + } + + public unsafe static void Main () + { + X x = new X (); + int *p = &x.x; + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0214 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0214 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0214 2039-11-01 23:06:40.000000000 +0100 @@ -10,52 +10,27 @@ void *a; } - // CS0214: Pointers and fixed size buffers may only be used in an unsafe context -// Line: 9 -// Compiler options: -unsafe - -public class Test -{ - public void Foo () - { - Foo (null); - } - - public static unsafe void Foo (int* buf) { } -} - - - - // CS0214: Pointers and fixed size buffers may only be used in an unsafe context -// Line: 17 + // CS214: Pointers and fixed size buffers may only be used in an unsafe context +// Line: 21 // Compiler options: -unsafe -public unsafe delegate void Bar (int* x); +public unsafe delegate int* Bar (); class X { - public X (Bar bar) - { } - - unsafe static void Test (int* b) - { } - - static void Main () + unsafe static int* Test () { - X x = new X (Test); + return null; } -} - - // CS0214: Pointers and fixed size buffers may only be used in an unsafe context -// Line: 7 -// Compiler options: -unsafe -class C -{ - int*[] data = new int*[16]; - - unsafe C () + static void Main () { + Bar b; + unsafe { + b = Test; + } + + b (); } } @@ -73,31 +48,31 @@ } // CS0214: Pointers and fixed size buffers may only be used in an unsafe context -// Line: 8 +// Line: 12 +// Compiler options: -unsafe -public class G<T> {} +using System; -abstract class A -{ - public abstract G<int*[]> Foo1 (); +class X { + public unsafe int* this [int i] { set { } } + + void Foo () + { + this [0] = null; + } } // CS0214: Pointers and fixed size buffers may only be used in an unsafe context -// Line: 16 +// Line: 11 // Compiler options: -unsafe -using System; - -public class Driver +public class C { - public static unsafe byte* Frob - { - get { return (byte *) 0; } - } - - public static void Main () + unsafe int* i; + + public static void Main () { - IntPtr q = (IntPtr) Frob; + var v = new C().i; } } @@ -115,34 +90,35 @@ // CS0214: Pointers and fixed size buffers may only be used in an unsafe context -// Line: 12 +// Line: 17 // Compiler options: -unsafe -using System; +public unsafe delegate void Bar (int* x); -class X { - public unsafe int* A { set { } } - - void Foo () +class X +{ + public X (Bar bar) + { } + + unsafe static void Test (int* b) + { } + + static void Main () { - A = null; + X x = new X (Test); } - - static void Main () {} } // CS0214: Pointers and fixed size buffers may only be used in an unsafe context -// Line: 12 +// Line: 7 // Compiler options: -unsafe -using System; - -class X { - public unsafe int* this [int i] { set { } } +class C +{ + int*[] data = new int*[16]; - void Foo () + unsafe C () { - this [0] = null; } } @@ -162,28 +138,21 @@ } } - // CS214: Pointers and fixed size buffers may only be used in an unsafe context -// Line: 21 + // CS0214: Pointers and fixed size buffers may only be used in an unsafe context +// Line: 13 // Compiler options: -unsafe -public unsafe delegate int* Bar (); - -class X -{ - unsafe static int* Test () - { - return null; - } +struct X { + static unsafe void *a () + { + return null; + } static void Main () - { - Bar b; - unsafe { - b = Test; + { + a (); } - /usr/lib/monodoc/sources/cs-errors.zip/CS0219 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0219 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0219 2039-11-01 23:06:40.000000000 +0100 @@ -2,21 +2,17 @@ CS0219 - // CS0219: The variable `o' is assigned but its value is never used -// Line: 10 + // CS0219: The variable `next' is assigned but its value is never used +// Line: 9 // Compiler options: -warn:3 -warnaserror -public class MyClass2 +class A { - static public bool b; - static public void Main () + public static void Main () { - object o; - if (b) - o = null; + int n\U00000065xt = 0; } -} - +} // CS0219: The variable `p' is assigned but its value is never used // Line: 9 // Compiler options: -warn:3 -warnaserror @@ -29,45 +25,50 @@ } } - // CS0219: The variable `next' is assigned but its value is never used + // CS0219: The constant `C' is never used // Line: 9 // Compiler options: -warn:3 -warnaserror -class A +class C { public static void Main () { - int n\U00000065xt = 0; + const int C = 1; } } - // CS0219: The variable `e' is assigned but its value is never used -// Line: 12 + // CS0219: The variable `o' is assigned but its value is never used +// Line: 10 // Compiler options: -warn:3 -warnaserror -using System; -public class ConsoleStub +public class MyClass2 { - public static void Main() - { - try { - } catch (Exception e) { - e = null; - } - } + static public bool b; + static public void Main () + { + object o; + switch (b) { + case true: + o = "yo"; + break; + } + } } - - // CS0219: The constant `C' is never used -// Line: 9 + // CS0219: The variable `o' is assigned but its value is never used +// Line: 10 // Compiler options: -warn:3 -warnaserror -class C +public class MyClass2 { - public static void Main () + static public bool b; + static public void Main () { - const int C = 1; + object o; + if (b) + o = null; } -} +} + // CS0219: The variable `i' is assigned but its value is never used // Line: 14 // Compiler options: -warn:3 -warnaserror @@ -85,23 +86,22 @@ } } } - // CS0219: The variable `o' is assigned but its value is never used -// Line: 10 + // CS0219: The variable `e' is assigned but its value is never used +// Line: 12 // Compiler options: -warn:3 -warnaserror -public class MyClass2 +using System; +public class ConsoleStub { - static public bool b; - static public void Main () - { - object o; - switch (b) { - case true: - o = "yo"; - break; - } - } + public static void Main() + { + try { + } catch (Exception e) { + e = null; + } + } } + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0220 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0220 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0220 2039-11-01 23:06:40.000000000 +0100 @@ -3,18 +3,6 @@ CS0220 // CS0220: The operation overflows at compile time in checked mode -// Line: 7 - -public class MainClass { - static void Main () { - const long a = long.MaxValue; - long b = 2 * a; - } -} - - - - // CS0220: The operation overflows at compile time in checked mode // Line: 10 // Compiler options: -unsafe @@ -29,6 +17,18 @@ // CS0220: The operation overflows at compile time in checked mode // Line: 7 +public class MainClass { + static void Main () { + const long a = long.MaxValue; + long b = 2 * a; + } +} + + + + // CS0220: The operation overflows at compile time in checked mode +// Line: 7 + enum E1 : byte { A = 2 /usr/lib/monodoc/sources/cs-errors.zip/CS0221 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0221 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0221 2039-11-01 23:06:40.000000000 +0100 @@ -2,19 +2,26 @@ CS0221 - // CS0221: Constant value `256' cannot be converted to a `byte' (use `unchecked' syntax to override) -// Line: 13 + // CS0221: Constant value `-200' cannot be converted to a `byte' (use `unchecked' syntax to override) +// Line: 6 -class Test +enum AA : byte { a, b = 200 } + +public class C { - public static explicit operator Test (byte b) + public static void Main () { - return null; + const int b = AA.a - AA.b; } +} + + // CS0221: Constant value `3.402823E+38' cannot be converted to a `ulong' (use `unchecked' syntax to override) +// Line: 6 - static void Main () - { - var a = (Test) 256UL; +class X { + static void Main () { + const float d = float.MaxValue; + ulong b = (ulong) d; } } @@ -27,90 +34,101 @@ } } - // CS0221: Constant value `-9' cannot be converted to a `E' (use `unchecked' syntax to override) -// Line: 10 - -enum E:byte { - Min = 9 -} + // CS0221: Constant value `-10.1' cannot be converted to a `byte' (use `unchecked' syntax to override) +// Line: 6 class T { static void Main () { - E error = (E)(-9); - System.Console.WriteLine (error); + byte d = (byte)-10.1d; } } - // CS0221: Constant value `NaN' cannot be converted to a `int' (use `unchecked' syntax to override) -// Line: 6 + // CS0221: Constant value `-1' cannot be converted to a `ushort' (use `unchecked' syntax to override) +// Line: 11 -class X { - static void Main () { - System.Console.WriteLine ((int)double.NaN); +class C +{ + delegate void D (); + + static void Main () + { + D d = unchecked (delegate { + const ushort s = (ushort) -1; + }); } } - // CS0221: Constant value `4294967295' cannot be converted to a `int' (use `unchecked' syntax to override) -// Line: 5 + // CS0221: Constant value `NaN' cannot be converted to a `int' (use `unchecked' syntax to override) +// Line: 6 class X { - int a = (int) 0xffffffff; - - static void Main () - { - + static void Main () { + System.Console.WriteLine ((int)double.NaN); } } - // CS0221: Constant value `3.402823E+38' cannot be converted to a `ulong' (use `unchecked' syntax to override) + // CS0221: Constant value `NaN' cannot be converted to a `char' (use `unchecked' syntax to override) // Line: 6 class X { static void Main () { - const float d = float.MaxValue; - ulong b = (ulong) d; + System.Console.WriteLine ((char)float.NaN); } } - // CS0221: Constant value `-1' cannot be converted to a `char' (use `unchecked' syntax to override) -// Line: 10 + // CS0221: Constant value `256' cannot be converted to a `byte' (use `unchecked' syntax to override) +// Line: 13 -class C +class Test { + public static explicit operator Test (byte b) + { + return null; + } + static void Main () { - unchecked { - checked { - const char c = (char) -1; - } - } + var a = (Test) 256UL; } } - // CS0221: Constant value `Infinity' cannot be converted to a `uint' (use `unchecked' syntax to override) -// Line: 6 + // CS0221: Constant value `-91' cannot be converted to a `E' (use `unchecked' syntax to override) +// Line: 10 -class X { - static void Main () { - System.Console.WriteLine ((uint)double.PositiveInfinity); - } +enum E:byte { + Min = 9 } - - // CS0221: Constant value `-10.1' cannot be converted to a `byte' (use `unchecked' syntax to override) -// Line: 6 class T { static void Main () { - byte d = (byte)-10.1d; + E error = E.Min - 100; + System.Console.WriteLine (error); } } - // CS0221: Constant value `NaN' cannot be converted to a `char' (use `unchecked' syntax to override) -// Line: 6 + // CS0221: Constant value `4294967295' cannot be converted to a `int' (use `unchecked' syntax to override) +// Line: 5 class X { + int a = (int) 0xffffffff; + + static void Main () + { + + } +} + + // CS0221: Constant value `-9' cannot be converted to a `E' (use `unchecked' syntax to override) +// Line: 10 + +enum E:byte { + Min = 9 +} + +class T { static void Main () { - System.Console.WriteLine ((char)float.NaN); + E error = (E)(-9); + System.Console.WriteLine (error); } } @@ -126,30 +144,18 @@ [My3((byte)-1)] public class Test { } - // CS0221: Constant value `-91' cannot be converted to a `E' (use `unchecked' syntax to override) + // CS0221: Constant value `-1' cannot be converted to a `char' (use `unchecked' syntax to override) // Line: 10 -enum E:byte { - Min = 9 -} - -class T { - static void Main () { - E error = E.Min - 100; - System.Console.WriteLine (error); - } /usr/lib/monodoc/sources/cs-errors.zip/CS0227 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0227 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0227 2039-11-01 23:06:40.000000000 +0100 @@ -6,20 +6,20 @@ // Line: 5 class UnsafeClass { - UnsafeClass () - { - unsafe {} - } + unsafe UnsafeClass () {} } + + // CS0227: Unsafe code requires the `unsafe' command line option to be specified // Line: 5 class UnsafeClass { - unsafe UnsafeClass () {} + UnsafeClass () + { + unsafe {} + } } - - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0229 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0229 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0229 2039-11-01 23:06:40.000000000 +0100 @@ -2,52 +2,49 @@ CS0229 - // CS0229: Ambiguity between `Program.I1.Id' and `Program.I2.Id' -// Line: 18 - -static class Program -{ - public interface I1 - { - string Id { get; } - } + // CS0229: Ambiguity between `A.N' and `B.N' +// Line: 26 - public interface I2 - { - int Id { get; } - } +using static A; +using static B; - static void Generic<T> (T item) where T : I1, I2 +class A +{ + public class N { - var a = item.Id; + public static void Foo () + { + } } } - - // CS0229: Ambiguity between `TestLib.FOO()' and `TestLib.FOO' -// Line: 9 -// Compiler options: -r:CS0229-4-lib.dll -public class Test +class B { - public static void Main() - { - System.Console.WriteLine(TestLib.FOO); - } + public static int N; } - - // CS0229: Ambiguity between `IList.Count' and `ICounter.Count' -// Line: 24 + +class Test +{ + public static void Main () + { + N.Foo (); + } +} + // CS0229: Ambiguity between `IList.Test' and `ICounter.Test' +// Line: 26 using System; +delegate void Foo (); + interface IList { - int Count { set; } + event Foo Test; } interface ICounter { - int Count { set; } + event Foo Test; } interface IListCounter: IList, ICounter @@ -58,24 +55,22 @@ { static void Foo (IListCounter t) { - t.Count = 9; + t.Test += null; } } - // CS0229: Ambiguity between `IList.Test' and `ICounter.Test' -// Line: 26 + // CS0229: Ambiguity between `IList.Count' and `ICounter.Count' +// Line: 24 using System; -delegate void Foo (); - interface IList { - event Foo Test; + int Count { set; } } interface ICounter { - event Foo Test; + int Count { set; } } interface IListCounter: IList, ICounter @@ -86,40 +81,45 @@ { static void Foo (IListCounter t) { - t.Test += null; + t.Count = 9; } } - // CS0229: Ambiguity between `A.N' and `B.N' -// Line: 26 + // CS0229: Ambiguity between `TestLib.FOO' and `TestLib.FOO' +// Line: 9 +// Compiler options: -r:CS0229-3-lib.dll -using static A; -using static B; +public class Test +{ + public static void Main() + { + System.Console.WriteLine(TestLib.FOO); + } +} + + // CS0229: Ambiguity between `Program.I1.Id' and `Program.I2.Id' +// Line: 18 -class A +static class Program { - public class N + public interface I1 { - public static void Foo () - { - } + string Id { get; } } -} -class B -{ - public static int N; -} + public interface I2 + { + int Id { get; } + } -class Test -{ - public static void Main () + static void Generic<T> (T item) where T : I1, I2 { - N.Foo (); + var a = item.Id; } -} - // CS0229: Ambiguity between `TestLib.FOO' and `TestLib.FOO' +} + + // CS0229: Ambiguity between `TestLib.FOO()' and `TestLib.FOO' // Line: 9 -// Compiler options: -r:CS0229-3-lib.dll +// Compiler options: -r:CS0229-4-lib.dll public class Test { /usr/lib/monodoc/sources/cs-errors.zip/CS0231 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0231 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0231 2039-11-01 23:06:40.000000000 +0100 @@ -6,7 +6,7 @@ // Line: 5 class Test { - void Foo (int i, params object[] o, params bool[] b) {} + void Foo (params object[] o, params bool[] b) {} } @@ -14,7 +14,7 @@ // Line: 5 class Test { - void Foo (params object[] o, params bool[] b) {} + void Foo (params object[] o, bool b) {} } @@ -30,7 +30,7 @@ // Line: 5 class Test { - void Foo (params object[] o, bool b) {} + void Foo (int i, params object[] o, params bool[] b) {} } /usr/lib/monodoc/sources/cs-errors.zip/CS0236 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0236 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0236 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,24 @@ CS0236 + // CS0236: A field initializer cannot reference the nonstatic field, method, or property `X.Foo' +// Line: 12 + +class X +{ + int Foo { + get { + return 9; + } + } + + long Bar = Foo; + + static void Main () { + } +} + + // CS0236: A field initializer cannot reference the nonstatic field, method, or property `C.stuff' // Line: 6 @@ -14,19 +32,6 @@ } } - // CS0236: A field initializer cannot reference the nonstatic field, method, or property `C1.CC' -// Line: 11 - -class C1 -{ - public double CC = 0; -} - -class C2 -{ - public static readonly double X_Small2 = C1.CC; -} - // CS0236: A field initializer cannot reference the nonstatic field, method, or property `Test.o1' // Line: 8 delegate void Foo (); @@ -41,23 +46,18 @@ } - // CS0236: A field initializer cannot reference the nonstatic field, method, or property `X.Foo' -// Line: 12 + // CS0236: A field initializer cannot reference the nonstatic field, method, or property `C1.CC' +// Line: 11 -class X +class C1 { - int Foo { - get { - return 9; - } - } - - long Bar = Foo; - - static void Main () { - } + public double CC = 0; } +class C2 +{ + public static readonly double X_Small2 = C1.CC; +} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0242 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0242 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0242 2039-11-01 23:06:40.000000000 +0100 @@ -3,19 +3,6 @@ CS0242 // CS0242: The operation in question is undefined on void pointers -// Line: 10 -// Compiler options: -unsafe - -unsafe class C -{ - public static void Main () - { - void* v = null; - int b = *v is string; - } -} - - // CS0242: The operation in question is undefined on void pointers // Line: 11 // Compiler options: -unsafe @@ -31,5 +18,18 @@ } + // CS0242: The operation in question is undefined on void pointers +// Line: 10 +// Compiler options: -unsafe + +unsafe class C +{ + public static void Main () + { + void* v = null; + int b = *v is string; + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0243 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0243 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0243 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,18 @@ CS0243 + // CS0243: Conditional not valid on `MyClass.GetHashCode()' because it is an override method +// Line: 6 + +public class MyClass +{ + [System.Diagnostics.Conditional ("WOOHOO")] + public override int GetHashCode () + { + return base.GetHashCode (); + } +} + // CS0243: Conditional not valid on `DerivedClass.Show()' because it is an override method // Line: 10 @@ -16,17 +28,5 @@ } - // CS0243: Conditional not valid on `MyClass.GetHashCode()' because it is an override method -// Line: 6 - -public class MyClass -{ - [System.Diagnostics.Conditional ("WOOHOO")] - public override int GetHashCode () - { - return base.GetHashCode (); - } -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0244 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0244 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0244 2039-11-01 23:06:40.000000000 +0100 @@ -3,18 +3,6 @@ CS0244 // CS0244: The `is' operator cannot be applied to an operand of pointer type -// Line: 9 -// Compiler options: -unsafe - -class C -{ - static unsafe void Main() - { - bool p = null is int*; - } -} - - // CS0244: The `is' operator cannot be applied to an operand of pointer type // Line: 7 // Compiler options: -unsafe @@ -26,5 +14,17 @@ + // CS0244: The `is' operator cannot be applied to an operand of pointer type +// Line: 9 +// Compiler options: -unsafe + +class C +{ + static unsafe void Main() + { + bool p = null is int*; + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0246 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0246 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0246 2039-11-01 23:06:40.000000000 +0100 @@ -2,88 +2,91 @@ CS0246 - // CS0246: The type or namespace name `B' could not be found. Are you missing an assembly reference? + // CS0246: The type or namespace name `Foo' could not be found. Are you missing an assembly reference? // Line: 4 -interface A : B { -} -class X { - static void Main () { - } -} +using Foo; + + // CS0246: The type or namespace name `X' could not be found. Are you missing an assembly reference? +// Line: 4 +class A<T> where T : X +{ + public class X {} +} - // CS0246: The type or namespace name `Etp' could not be found. Are you missing an assembly reference? -// Line: 8 + // CS0246: The type or namespace name `M' could not be found. Are you missing an assembly reference? +// Line: 11 -class Test +interface I<T> { - static void Main () + void G<TT> (); +} + +class C +{ + void I<M>.G<M> () + { + } + + public static void Main () { - try { - } catch (Etp e) { - } catch { - } } } - // CS0246: The type or namespace name `B' could not be found. Are you missing an assembly reference? -// Line: 4 + // CS0246: The type or namespace name `NotExist' could not be found. Are you missing an assembly reference? +// Line: 6 -class A : B +class X { - public class B - { } + NotExist<float> foo; } - // CS0246: The type or namespace name `DllImport' could not be found. Are you missing an assembly reference? -// Line: 16 - + // CS0246: The type or namespace name `class' could not be found. Are you missing an assembly reference? +// Line: 9 using System; -using System.Threading; -public class Test +public class classAttribute : Attribute { - static void Main () - { - var tr = new Thread (delegate () { - Foo (); - }); - } +} - [DllImport ("Foo")] - extern static void Foo (); -} +[@class] +class Foo +{ +} - // CS0246: The type or namespace name `TypeMe' could not be found. Are you missing an assembly reference? -// Line: 12 + // CS0246: The type or namespace name `var' could not be found. Are you missing an assembly reference? +// Line: 8 -class C -{ - static void Foo<T> (int i) - { - } - public static void Main () +class X +{ + public X () { - Foo<TypeMe> (1); + var? u = i; } } - // CS0246: The type or namespace name `Foo' could not be found. Are you missing an assembly reference? + // CS0246: The type or namespace name `B' could not be found. Are you missing an assembly reference? // Line: 4 -using Foo; +class A : C<B> +{ + class B {} +} + +interface C<X> {} - // CS0246: The type or namespace name `C' could not be found. Are you missing an assembly reference? -// Line: 5 - -using C = Cks.Runtime.Data; -using BigInteger = C.BigInteger; + // CS0246: The type or namespace name `dynamic' could not be found. Are you missing an assembly reference? +// Line: 9 +// Compiler options: -langversion:ISO-2 -namespace Cks.Runtime.Data +class C { - public class BigInteger {} + public static void Main () + { + dynamic d = 9; + } } // CS0246: The type or namespace name `IBase' could not be found. Are you missing `Foo' using directive? @@ -109,150 +112,109 @@ } } - // CS0246: The type or namespace name `NotExist' could not be found. Are you missing an assembly reference? -// Line: 6 + // CS0246: The type or namespace name `Etp' could not be found. Are you missing an assembly reference? +// Line: 8 -class X +class Test { - NotExist<float> foo; + static void Main () + { + try { + } catch (Etp e) { + } catch { + } + } } - // CS0246: The type or namespace name `aGgt' could not be found. Are you missing an assembly reference? + // CS0246: The type or namespace name `RNGCryptoServiceProvider' could not be found. Are you missing `System.Security.Cryptography' using directive? // Line: 13 using System; -class C +namespace System.Web.Configuration { - public static void Main () + class MachineKeyConfig { - try { - throw null; - } catch (ArgumentException) { - } catch (aGgt) { + static MachineKeyConfig () + { + autogenerated = new byte [64]; + RNGCryptoServiceProvider cp = new RNGCryptoServiceProvider (); + cp.GetBytes (autogenerated); } } } + - // CS0246: The type or namespace name `wrong' could not be found. Are you missing an assembly reference? -// Line: 15 + // CS0246: The type or namespace name `T' could not be found. Are you missing an assembly reference? +// Line: 13 using System; /usr/lib/monodoc/sources/cs-errors.zip/CS0252 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0252 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0252 2039-11-01 23:06:40.000000000 +0100 @@ -2,19 +2,6 @@ CS0252 - // CS0252: Possible unintended reference comparison. Consider casting the left side expression to type `string' to get value comparison -// Line: 10 -// Compiler options: -warn:2 -warnaserror - -using System; - -class X { - static void Main() { - object a = "11"; - Console.WriteLine(a == "11"); - } -} - // CS0252: Possible unintended reference comparison. Consider casting the left side expression to type `A' to get value comparison // Line: 15 // Compiler options: -warnaserror @@ -44,5 +31,18 @@ } } + // CS0252: Possible unintended reference comparison. Consider casting the left side expression to type `string' to get value comparison +// Line: 10 +// Compiler options: -warn:2 -warnaserror + +using System; + +class X { + static void Main() { + object a = "11"; + Console.WriteLine(a == "11"); + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0253 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0253 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0253 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,19 @@ CS0253 + // CS0253: Possible unintended reference comparison. Consider casting the right side expression to type `string' to get value comparison +// Line: 10 +// Compiler options: -warn:2 -warnaserror + +using System; + +class X { + static void Main() { + object a = "11"; + Console.WriteLine("11" == a); + } +} + // CS0253: Possible unintended reference comparison. Consider casting the right side expression to type `System.Action' to get value comparison // Line: 13 // Compiler options: -warnaserror @@ -17,19 +30,6 @@ var x = a == b; } } - // CS0253: Possible unintended reference comparison. Consider casting the right side expression to type `string' to get value comparison -// Line: 10 -// Compiler options: -warn:2 -warnaserror - -using System; - -class X { - static void Main() { - object a = "11"; - Console.WriteLine("11" == a); - } -} - // CS0253: Possible unintended reference comparison. Consider casting the right side expression to type `A' to get value comparison // Line: 16 // Compiler options: -warnaserror /usr/lib/monodoc/sources/cs-errors.zip/CS0260 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0260 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0260 2039-11-01 23:06:40.000000000 +0100 @@ -3,11 +3,11 @@ CS0260 // CS0260: Missing partial modifier on declaration of type `Foo'. Another partial declaration of this type exists -// Line: 3 -public class Foo +// Line: 6 +public partial class Foo { } -public partial class Foo +public class Foo { } class X @@ -17,11 +17,11 @@ } // CS0260: Missing partial modifier on declaration of type `Foo'. Another partial declaration of this type exists -// Line: 6 -public partial class Foo +// Line: 3 +public class Foo { } -public class Foo +public partial class Foo { } class X /usr/lib/monodoc/sources/cs-errors.zip/CS0264 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0264 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0264 2039-11-01 23:06:40.000000000 +0100 @@ -2,25 +2,25 @@ CS0264 - // CS0264: Partial declarations of `A<T,O>' must have the same type parameter names in the same order -// Line: 8 + // CS0264: Partial declarations of `Partial<U>' must have the same type parameter names in the same order +// Line: 4 -partial class A<T, bool> +partial class Partial<T> { } -partial class A<T, O> +partial class Partial<U> { } - // CS0264: Partial declarations of `Partial<U>' must have the same type parameter names in the same order -// Line: 4 + // CS0264: Partial declarations of `A<T,O>' must have the same type parameter names in the same order +// Line: 8 -partial class Partial<T> +partial class A<T, bool> { } -partial class Partial<U> +partial class A<T, O> { } /usr/lib/monodoc/sources/cs-errors.zip/CS0266 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0266 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0266 2039-11-01 23:06:40.000000000 +0100 @@ -2,108 +2,54 @@ CS0266 - // CS0266: Cannot implicitly convert type `int' to `sbyte'. An explicit conversion exists (are you missing a cast?) -// Line: 9 - -class S -{ - static void Main () - { - sbyte s = 1; - sbyte r = +s; - } -} - - // CS0266: Cannot implicitly convert type `long' to `uint'. An explicit conversion exists (are you missing a cast?) -// Line: 7 - -namespace MWFTestApplication { - class MainWindow { - public enum Testme : uint { - value = (1L << 1) - } - } -} - - // CS0266: Cannot implicitly convert type `A' to `B'. An explicit conversion exists (are you missing a cast?) -// Line: 17 - -class A -{ - public static A operator -- (A x) - { - return new A (); - } -} + // CS0266: Cannot implicitly convert type `System.Collections.Generic.IEnumerable<T>' to `System.Collections.Generic.IEnumerable<U>'. An explicit conversion exists (are you missing a cast?) +// Line: 12 -class B : A -{ - static void Main () - { - B b = new B (); - --b; - } -} - - // CS0266: Cannot implicitly convert type `System.Collections.Generic.IList<dynamic>' to `string[]'. An explicit conversion exists (are you missing a cast?) -// Line: 10 -// Compiler options: -r:CS0266-25-lib.dll -noconfig +using System; +using System.Collections.Generic; -public class C +public class Test { - public static void Main () + static void Bla<T, U> () where T : U { - var t = new Test (); - string[] s = t.DynField; + IEnumerable<T> ita = null; + IEnumerable<U> itu = ita; } } - // CS0266: Cannot implicitly convert type `int?' to `E'. An explicit conversion exists (are you missing a cast?) -// Line: 13 + // CS0266: Cannot implicitly convert type `object' to `System.Collections.Hashtable'. An explicit conversion exists (are you missing a cast?) +// Line: 17 -enum E -{ -} +// This case actually tests that the compiler doesn't crash after reporting the error -class C -{ - public static void Main () - { - E e = 0; - E r = e - null; - } -} - - // CS0266: Cannot implicitly convert type `Bar' to `X'. An explicit conversion exists (are you missing a cast?) -// Line: 18 +using System.Collections; -public enum Bar -{ - ABar -} +class X { + static void Main (string [] install) + { + ArrayList order = new ArrayList (); + Hashtable states = new Hashtable (); -class X -{ - public static explicit operator X (Bar the_bar) - { - return new X(); - } - - public static void Main () - { - X x = Bar.ABar; - } + try { + if (install != null){ + foreach (string inst in order){ + Hashtable state = states [inst]; + } + } + } catch { + } + } } - // CS0266: Cannot implicitly convert type `object' to `bool'. An explicit conversion exists (are you missing a cast?) + // CS0266: Cannot implicitly convert type `int' to `sbyte'. An explicit conversion exists (are you missing a cast?) // Line: 9 -class X +class S { static void Main () { - object o = true; - bool b = (o ?? string.Empty); + sbyte s = 1; + sbyte r = +s; } } @@ -119,14 +65,6 @@ } } - // CS0266: Cannot implicitly convert type `long' to `int'. An explicit conversion exists (are you missing a cast?) -// Line: 7 - -public class Test -{ - const uint a = 2147483648; - const int b = -a; -} // CS0266: Cannot implicitly convert type `bool?' to `bool'. An explicit conversion exists (are you missing a cast?) // Line: 9 @@ -139,54 +77,16 @@ } } - // CS0266: Cannot implicitly convert type `object' to `System.Collections.Hashtable'. An explicit conversion exists (are you missing a cast?) -// Line: 17 - -// This case actually tests that the compiler doesn't crash after reporting the error - -using System.Collections; + // CS0266: Cannot implicitly convert type `long' to `int'. An explicit conversion exists (are you missing a cast?) +// Line : 6 class X { - static void Main (string [] install) - { - ArrayList order = new ArrayList (); - Hashtable states = new Hashtable (); - - try { - if (install != null){ - foreach (string inst in order){ - Hashtable state = states [inst]; - } - } - } catch { - } - } + const uint a = 2; + const int b = -a; } - - // CS0266: Cannot implicitly convert type `object' to `System.Collections.ArrayList'. An explicit conversion exists (are you missing a cast?) -// Line: 12 -using System.Collections; -class X -{ - static Hashtable h = new Hashtable (); - public static void Main () - { - ArrayList l = h ["hola"] = new ArrayList (); /usr/lib/monodoc/sources/cs-errors.zip/CS0267 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0267 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0267 2039-11-01 23:06:40.000000000 +0100 @@ -5,6 +5,11 @@ // CS0267: The `partial' modifier can be used only immediately before `class', `struct', `interface', or `void' keyword // Line: 4 +partial enum e {} + + // CS0267: The `partial' modifier can be used only immediately before `class', `struct', `interface', or `void' keyword +// Line: 4 + public partial static class Test { } @@ -19,10 +24,5 @@ } } - // CS0267: The `partial' modifier can be used only immediately before `class', `struct', `interface', or `void' keyword -// Line: 4 - -partial enum e {} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0271 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0271 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0271 2039-11-01 23:06:40.000000000 +0100 @@ -2,26 +2,6 @@ CS0271 - // 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; - } -} - // CS0271: The property or indexer `P.Prop' cannot be used in this context because the get accessor is inaccessible // Line: 19 @@ -43,5 +23,25 @@ return P.Prop; } } + // 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; + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0272 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0272 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0272 2039-11-01 23:06:40.000000000 +0100 @@ -2,22 +2,6 @@ CS0272 - // CS0272: The property or indexer `C.this[string]' cannot be used in this context because the set accessor is inaccessible -// Line: 13 - -class C -{ - public int this [string i] { private set { } get { return 1; } } -} - -public class Test -{ - void Foo () - { C c = new C (); - c [""] = 9; - } -} - // CS0272: The property or indexer `P.Prop' cannot be used in this context because the set accessor is inaccessible // Line: 19 @@ -58,5 +42,21 @@ } } + // CS0272: The property or indexer `C.this[string]' cannot be used in this context because the set accessor is inaccessible +// Line: 13 + +class C +{ + public int this [string i] { private set { } get { return 1; } } +} + +public class Test +{ + void Foo () + { C c = new C (); + c [""] = 9; + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0273 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0273 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0273 2039-11-01 23:06:40.000000000 +0100 @@ -2,16 +2,6 @@ CS0273 - // CS0273: The accessibility modifier of the `C.S2.set' accessor must be more restrictive than the modifier of the property or indexer `C.S2' -// Line: 7 -// Compiler options: -langversion:7.2 - - class C - { - private string S2 { get; private protected set; } - } - - // CS0273: The accessibility modifier of the `Error0273.Message.get' accessor must be more restrictive than the modifier of the property or indexer `Error0273.Message' // Line: 8 // Compiler options: -t:library @@ -29,5 +19,15 @@ } + // CS0273: The accessibility modifier of the `C.S2.set' accessor must be more restrictive than the modifier of the property or indexer `C.S2' +// Line: 7 +// Compiler options: -langversion:7.2 + + class C + { + private string S2 { get; private protected set; } + } + + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0278 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0278 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0278 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,37 @@ CS0278 + // CS0278: `IListCounter' contains ambiguous implementation of `enumerable' pattern. Method `IList.GetEnumerator()' is ambiguous with method `ICounter.GetEnumerator()' +// Line: 26 +// Compiler options: -warnaserror -warn:2 + +using System; +using System.Collections; + +interface IList +{ + IEnumerator GetEnumerator (); +} + +interface ICounter +{ + IEnumerator GetEnumerator (); +} + +interface IListCounter: IList, ICounter +{ +} + +class Test +{ + static void Foo (IListCounter t) + { + foreach (var e in t) + { + } + } +} + // CS0278: `Testing.IMixedEnumerable' contains ambiguous implementation of `enumerable' pattern. Method `System.Collections.IEnumerable.GetEnumerator()' is ambiguous with method `Testing.ICustomEnumerable.GetEnumerator()' // Line: 28 // Compiler options: -warnaserror -warn:2 @@ -34,36 +65,5 @@ } } - // CS0278: `IListCounter' contains ambiguous implementation of `enumerable' pattern. Method `IList.GetEnumerator()' is ambiguous with method `ICounter.GetEnumerator()' -// Line: 26 -// Compiler options: -warnaserror -warn:2 - -using System; -using System.Collections; - -interface IList -{ - IEnumerator GetEnumerator (); -} - -interface ICounter -{ - IEnumerator GetEnumerator (); -} - -interface IListCounter: IList, ICounter -{ -} - -class Test -{ - static void Foo (IListCounter t) - { - foreach (var e in t) - { - } - } -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0283 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0283 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0283 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,20 @@ CS0283 + // CS0283: The type `S' cannot be declared const +// Line: 12 + +struct S +{ +} + +class C +{ + public void Foo () + { + const S s = new S(); + } +} // CS0283: The type `int?' cannot be declared const // Line: 8 @@ -24,20 +38,6 @@ { const S s = new S(); } - // CS0283: The type `S' cannot be declared const -// Line: 12 - -struct S -{ -} - -class C -{ - public void Foo () - { - const S s = new S(); - } -} // CS0283: The type `int*' cannot be declared const // Line: 10 // Compiler options: -unsafe /usr/lib/monodoc/sources/cs-errors.zip/CS0305 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0305 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0305 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,33 @@ CS0305 + // 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; }); + } +} + + // 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; +} + // CS0305: Using the generic type `N<T>' requires `1' type argument(s) // Line: 12 @@ -38,14 +65,20 @@ } // CS0305: Using the generic type `Stack<T>' requires `1' type argument(s) -// Line: 9 +// Line: 11 -class Stack<T> -{ } +class Stack<T> { +} -class X -{ - Stack stack; +class Test { +} + +class T { + Stack<Test,Test> a; + + static void Main() + { + } } // CS0305: Using the generic type `A.B<T>' requires `1' type argument(s) @@ -64,30 +97,14 @@ } // 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() - { - } -} - - // CS0305: Using the generic type `System.Collections.Generic.List<T>' requires `1' type argument(s) -// Line: 8 +// Line: 9 -using System.Collections.Generic; +class Stack<T> +{ } class X { - List<int,long> list; + Stack stack; } // CS0305: Using the generic method `X.G<T>()' requires `1' type argument(s) @@ -110,22 +127,5 @@ } } - // 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; }); - } -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0306 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0306 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0306 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,15 @@ CS0306 + // CS0306: The type `System.ArgIterator' may not be used as a type argument +// Line: 6 + +class G<T> {} + +class C : G<System.ArgIterator> +{ +} + // CS0306: The type `int*' may not be used as a type argument // Line: 11 // Compiler options: -unsafe @@ -42,14 +51,5 @@ Test<S> local; } } - // CS0306: The type `System.ArgIterator' may not be used as a type argument -// Line: 6 - -class G<T> {} - -class C : G<System.ArgIterator> -{ -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0307 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0307 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0307 2039-11-01 23:06:40.000000000 +0100 @@ -2,17 +2,6 @@ CS0307 - // CS0307: The type parameter `a' cannot be used with type arguments -// Line: 9 - -public class Tests<a> -{ - public static void Test () - { - a<int> (); - } -} - // CS0307: The property `Test<T,U>.Value' cannot be used with type arguments // Line: 16 @@ -32,55 +21,43 @@ } } - // CS0307: The namespace `N.M' cannot be used with type arguments -// Line: 15 - -namespace N -{ - namespace M - { - } -} + // CS0307: The variable `a' cannot be used with type arguments +// Line: 9 -class Test +public class Tests { - static void Main () + public static void Test (int a) { - var a = N.M<int> (); + a<int> (); } } - // CS0307: The variable `d' cannot be used with type arguments + // CS0307: The type parameter `a' cannot be used with type arguments // Line: 9 -public class Tests +public class Tests<a> { - public static void Main () + public static void Test () { - var d = 0; - d<int> (); + a<int> (); } } - // CS0307: The type parameter `a' cannot be used with type arguments -// Line: 9 + // CS0307: The namespace `N.M' cannot be used with type arguments +// Line: 15 -public class Tests +namespace N { - public static void Test<a> () + namespace M { - a<int> (); } } - - // CS0307: The variable `a' cannot be used with type arguments -// Line: 9 -public class Tests +class Test { - public static void Test (int a) + static void Main () { - a<int> (); + var a = N.M<int> (); } } @@ -106,5 +83,28 @@ } } + // CS0307: The variable `d' cannot be used with type arguments +// Line: 9 + +public class Tests +{ + public static void Main () + { + var d = 0; + d<int> (); + } +} + + // CS0307: The type parameter `a' cannot be used with type arguments +// Line: 9 + +public class Tests +{ + public static void Test<a> () + { + a<int> (); + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0308 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0308 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0308 2039-11-01 23:06:40.000000000 +0100 @@ -2,39 +2,41 @@ CS0308 - // CS0308: The non-generic type `Foo' cannot be used with the type arguments -// Line: 16 - -public class Foo + // CS0308: The non-generic type `N1.A' cannot be used with the type arguments +// Line: 11 +namespace N1 { - public string Test<T> () - { - return null; - } + class A + { } } -public static class Driver +namespace N3 { - static object UseBrokenType () + using W = N1.A<int>; + + class X { - return Foo<int> ().Test (); + static void Main () + { + } } } - // CS0308: The non-generic type `NamingContext' cannot be used with the type arguments -// Line: 6 + // CS0308: The non-generic type `Test.NonGeneric' cannot be used with the type arguments +// Line: 8 -class Program +public class Test { - static NamingContext<int> Lookup () + public static void Main (string[] args) { - return null; + NonGeneric dummy = new NonGeneric<string> (); } -} -class NamingContext -{ -} + internal class NonGeneric + { + } +} + // CS0308: The non-generic type `Stack' cannot be used with the type arguments // Line: 9 @@ -46,73 +48,39 @@ Stack<float> stack; } - // CS0308: The non-generic type `BaseGeneric<T>.InnerDerived' cannot be used with the type arguments -// Line: 19 + // CS0308: The non-generic type `NamingContext' cannot be used with the type arguments +// Line: 6 -class BaseGeneric<T> +class Program { - public class InnerDerived + static NamingContext<int> Lookup () { + return null; } } -class BaseConcrete : BaseGeneric<string> -{ -} - -class Program -{ - static void Main () - { - new BaseConcrete.InnerDerived<int>(); - } -} - - // CS0308: The non-generic type `N1.A' cannot be used with the type arguments -// Line: 11 -namespace N1 +class NamingContext { - class A - { } -} +} + // CS0308: The non-generic type `Foo' cannot be used with the type arguments +// Line: 16 -namespace N3 +public class Foo { - using W = N1.A<int>; - - class X + public string Test<T> () { - static void Main () - { - } + return null; } } - - // CS0308: The non-generic type `Test.NonGeneric' cannot be used with the type arguments -// Line: 8 -public class Test +public static class Driver { - public static void Main (string[] args) - { - NonGeneric dummy = new NonGeneric<string> (); - } - - internal class NonGeneric + static object UseBrokenType () { + return Foo<int> ().Test (); } } - // CS0308: The non-generic type `System.DateTime' cannot be used with the type arguments -// Line: 8 - -using System; - -class X -{ - DateTime<int> now; -} - // CS0308: The non-generic method `X.Foo()' cannot be used with the type arguments // Line: 12 @@ -128,6 +96,28 @@ } } + // 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>(); + } +} + // CS0308: The non-generic method `C.TestCall(int)' cannot be used with the type arguments // Line: 13 @@ -144,5 +134,15 @@ } } + // CS0308: The non-generic type `System.DateTime' cannot be used with the type arguments +// Line: 8 + +using System; + +class X +{ + DateTime<int> now; +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0310 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0310 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0310 2039-11-01 23:06:40.000000000 +0100 @@ -3,28 +3,6 @@ CS0310 // 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> (); - } -} - - // 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> @@ -63,6 +41,28 @@ } } + // CS0310: The type `Class1' must have a public parameterless constructor in order to use it as parameter `T' in the generic type or method `Class3<T>' +// Line: 18 + +public class Class1 +{ + public Class1 (int i) { } +} + +public class Class2<T> +{ +} + +public class Class3<T> where T : new () +{ +} + + +class A : Class2<Class3<Class1>> +{ +} + + // 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 () { @@ -82,27 +82,27 @@ - // CS0310: The type `Class1' must have a public parameterless constructor in order to use it as parameter `T' in the generic type or method `Class3<T>' -// Line: 18 - -public class Class1 -{ - public Class1 (int i) { } -} + // 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 Class2<T> +public class Foo<T> + where T : new () { } -public class Class3<T> where T : new () +class A { + private A () + { } } - -class A : Class2<Class3<Class1>> +class X { + static void Main () + { + object o = new Foo<A> (); + } } - // 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 /usr/lib/monodoc/sources/cs-errors.zip/CS0311 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0311 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0311 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,25 @@ CS0311 + // 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 + { + } +} + // 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 @@ -27,32 +46,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> {} - - // 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 - { - } -} - // 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; @@ -93,6 +86,13 @@ } } + // 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> {} + // 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 /usr/lib/monodoc/sources/cs-errors.zip/CS0312 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0312 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0312 2039-11-01 23:06:40.000000000 +0100 @@ -2,10 +2,10 @@ CS0312 - // CS0312: The type `E?' cannot be used as type parameter `T' in the generic type or method `C<System.Enum>.Foo<T>(T)'. The nullable type `E?' does not satisfy constraint `System.Enum' + // CS0312: The type `S?' cannot be used as type parameter `T' in the generic type or method `C<S>.Foo<T>(T)'. The nullable type `S?' does not satisfy constraint `S' // Line: 16 -enum E +struct S { } @@ -15,13 +15,13 @@ { } - static void Test (E? s) + static void Test (S? s) { - C<System.Enum>.Foo (s); + C<S>.Foo (s); } } - // CS0312: The type `E?' cannot be used as type parameter `T' in the generic type or method `C<E>.Foo<T>(T)'. The nullable type `E?' does not satisfy constraint `E' + // CS0312: The type `E?' cannot be used as type parameter `T' in the generic type or method `C<System.Enum>.Foo<T>(T)'. The nullable type `E?' does not satisfy constraint `System.Enum' // Line: 16 enum E @@ -34,16 +34,16 @@ { } - static void Test (E? e) + static void Test (E? s) { - C<E>.Foo (e); + C<System.Enum>.Foo (s); } } - // CS0312: The type `S?' cannot be used as type parameter `T' in the generic type or method `C<S>.Foo<T>(T)'. The nullable type `S?' does not satisfy constraint `S' + // CS0312: The type `E?' cannot be used as type parameter `T' in the generic type or method `C<E>.Foo<T>(T)'. The nullable type `E?' does not satisfy constraint `E' // Line: 16 -struct S +enum E { } @@ -53,9 +53,9 @@ { } - static void Test (S? s) + static void Test (E? e) { - C<S>.Foo (s); + C<E>.Foo (e); } } /usr/lib/monodoc/sources/cs-errors.zip/CS0313 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0313 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0313 2039-11-01 23:06:40.000000000 +0100 @@ -2,45 +2,45 @@ CS0313 - // 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 `I' -// Line: 16 + // CS0313: The type `S?' cannot be used as type parameter `T' in the generic type or method `C<I>.Foo<T>(T)'. The nullable type `S?' never satisfies interface constraint `I' +// Line: 20 + +struct S : I +{ +} interface I { } -struct S : I +class C<U> { - static void Foo<T> (T t) where T : I + static void Foo<T> (T value) where T : U { } - static void Test (S? s) + static void Bar (S? s) { - Foo (s); + C<I>.Foo (s); } } - // CS0313: The type `S?' cannot be used as type parameter `T' in the generic type or method `C<I>.Foo<T>(T)'. The nullable type `S?' never satisfies interface constraint `I' -// Line: 20 - -struct S : I -{ -} + // 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 `I' +// Line: 16 interface I { } -class C<U> +struct S : I { - static void Foo<T> (T value) where T : U + static void Foo<T> (T t) where T : I { } - static void Bar (S? s) + static void Test (S? s) { - C<I>.Foo (s); + Foo (s); } } /usr/lib/monodoc/sources/cs-errors.zip/CS0315 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0315 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0315 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,48 @@ CS0315 + // CS0315: The type `int' cannot be used as type parameter `T' in the generic type or method `H<T>'. There is no boxing conversion from `int' to `I' +// Line: 27 + +using System; + +interface I +{ +} + +class H<T> where T : I, new() +{ +} + +public class A +{ + static void Test (Action a) + { + } + + static void Foo<T>() + { + } + + static void Main () + { + Test (() => { + Foo<H<int>> (); + }); + } +} + // 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; + } +} + // CS0315: The type `short' cannot be used as type parameter `T' in the generic type or method `A<T>'. There is no boxing conversion from `short' to `A<short>.N1<short>' // Line: 4 @@ -33,18 +75,6 @@ } } - // 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; - } -} - // CS0315: The type `int' cannot be used as type parameter `TEventArgs' in the generic type or method `X.D<TEventArgs>'. There is no boxing conversion from `int' to `System.EventArgs' // Line: 8 @@ -57,35 +87,5 @@ - // CS0315: The type `int' cannot be used as type parameter `T' in the generic type or method `H<T>'. There is no boxing conversion from `int' to `I' -// Line: 27 - -using System; - -interface I -{ -} - -class H<T> where T : I, new() -{ -} - -public class A -{ - static void Test (Action a) - { - } - - static void Foo<T>() - { - } - - static void Main () - { - Test (() => { - Foo<H<int>> (); - }); - } -} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0402 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0402 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0402 2039-11-01 23:06:40.000000000 +0100 @@ -2,23 +2,23 @@ CS0402 - // CS0402: `C.Main<T,U>()': an entry point cannot be generic or in a generic type + // CS0402: `TestClass<T>.Main()': an entry point cannot be generic or in a generic type // Line: 7 // Compiler options: -warnaserror -warn:4 -class C +class TestClass<T> { - public static void Main<T, U> () + public static void Main () { } } - // CS0402: `TestClass<T>.Main()': an entry point cannot be generic or in a generic type + // CS0402: `C.Main<T,U>()': an entry point cannot be generic or in a generic type // Line: 7 // Compiler options: -warnaserror -warn:4 -class TestClass<T> +class C { - public static void Main () + public static void Main<T, U> () { } } /usr/lib/monodoc/sources/cs-errors.zip/CS0403 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0403 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0403 2039-11-01 23:06:40.000000000 +0100 @@ -5,25 +5,11 @@ // 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 () - { } -} - - // 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 +class Test<T> { - public static T CreateMethod<T> () + public T Null () { - return (T)null; + return (null); } } @@ -46,12 +32,26 @@ // CS0403: Cannot convert null to the type parameter `T' because it could be a value type. Consider using `default (T)' instead // Line: 8 -class Test<T> +class X { - public T Null () + public static T CreateMethod<T> () { - return (null); + return (T)null; + } +} + + // 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 () + { } } /usr/lib/monodoc/sources/cs-errors.zip/CS0406 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0406 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0406 2039-11-01 23:06:40.000000000 +0100 @@ -2,24 +2,24 @@ CS0406 - // 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 + // 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 { } -class B { } +interface I { } -class Foo<T> - where T : A, B +class Foo<T> where T : I, A { } - // 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 + // 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 { } -interface I { } +class B { } -class Foo<T> where T : I, A +class Foo<T> + where T : A, B { } /usr/lib/monodoc/sources/cs-errors.zip/CS0407 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0407 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0407 2039-11-01 23:06:40.000000000 +0100 @@ -2,68 +2,72 @@ CS0407 - // CS0407: A method or delegate `TestDelegateA MainClass.Method(bool)' return type does not match delegate `int TestDelegateA(bool)' return type -// Line: 12 + // CS0407: A method or delegate `dynamic Program.Foo()' return type does not match delegate `string System.Func<string>()' return type +// Line: 10 -delegate int TestDelegateA (bool b); +using System; -public class MainClass +class Program { - static TestDelegateA Method (bool b) + static void Main() { - return Method; + Func<string> d = Foo; } -} + static dynamic Foo () + { + return 1; + } +} - // CS0407: A method or delegate `int X.f(int)' return type does not match delegate `object X.Function(int)' return type -// Line: 17 + // CS0407: A method or delegate `int Program.Foo(object)' return type does not match delegate `void System.Action<dynamic>(dynamic)' return type +// Line: 10 using System; -class X +class Program { - public delegate object Function(int arg1); - - static void Main () + static void Main() { - Delegate d = new Function (f); + Action<dynamic> d = Foo; } - static int f (int a) + static int Foo (object o) { - return 1; + return 0; } } - // CS0407: A method or delegate `int int.Parse(string)' return type does not match delegate `object Test.Conv(string)' return type -// Line: 17 + // CS0407: A method or delegate `int MainClass.Delegate()' return type does not match delegate `void TestDelegate()' return type +// Line: 12 -using System; +delegate void TestDelegate(); -public class Test -{ - private delegate object Conv(string str); +public class MainClass { + public static int Delegate() { + return 0; + } - public static void Main() - { - Conv c = new Conv(int.Parse); - } + public static void Main() { + TestDelegate delegateInstance = new TestDelegate (Delegate); + } } - // CS0407: A method or delegate `dynamic Program.Foo()' return type does not match delegate `string System.Func<string>()' return type -// Line: 10 + // CS0407: A method or delegate `int X.f(int)' return type does not match delegate `object X.Function(int)' return type +// Line: 17 using System; -class Program +class X { - static void Main() + public delegate object Function(int arg1); + + static void Main () { - Func<string> d = Foo; + Delegate d = new Function (f); } - static dynamic Foo () + static int f (int a) { return 1; } @@ -90,38 +94,34 @@ } - // CS0407: A method or delegate `int Program.Foo(object)' return type does not match delegate `void System.Action<dynamic>(dynamic)' return type -// Line: 10 + // CS0407: A method or delegate `int int.Parse(string)' return type does not match delegate `object Test.Conv(string)' return type +// Line: 17 using System; -class Program +public class Test { - static void Main() - { - Action<dynamic> d = Foo; - } + private delegate object Conv(string str); - static int Foo (object o) + public static void Main() { - return 0; + Conv c = new Conv(int.Parse); } } - // CS0407: A method or delegate `int MainClass.Delegate()' return type does not match delegate `void TestDelegate()' return type + // CS0407: A method or delegate `TestDelegateA MainClass.Method(bool)' return type does not match delegate `int TestDelegateA(bool)' return type // Line: 12 -delegate void TestDelegate(); - -public class MainClass { - public static int Delegate() { - return 0; - } +delegate int TestDelegateA (bool b); - public static void Main() { - TestDelegate delegateInstance = new TestDelegate (Delegate); - } +public class MainClass +{ + static TestDelegateA Method (bool b) + { + return Method; + } } + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0411 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0411 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0411 2039-11-01 23:06:40.000000000 +0100 @@ -2,22 +2,24 @@ CS0411 - // CS0411: The type arguments for method `C.Foo<T>(System.Func<T>)' cannot be inferred from the usage. Try specifying the type arguments explicitly -// Line: 10 + // 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 -using System; +class Test<A> +{ + public void Foo<V,W> (V v, V w) + { } +} -class C +class X { static void Main () { - Foo (() => () => 1); - } - - static void Foo<T> (Func<T> arg) - { + Test<float> test = new Test<float> (); + test.Foo (8, 9); } } + // 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 @@ -36,85 +38,50 @@ } } - // 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> -{ } + // 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 -public class Hello +interface I<T> { - public void World<U> (IFoo<U> foo) - { } - - public void Test (Foo foo) - { - World (foo); - } } -class X +class C : I<long>, I<int> { - static void Main () + static void Foo<T> (I<T> i) { } -} - - // 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); + C c = new C (); + Foo (c); } } - - // CS0411: The type arguments for method `C.Foo<T>(System.Func<T>)' cannot be inferred from the usage. Try specifying the type arguments explicitly -// Line: 10 + // CS0411: The type arguments for method `AsyncTypeInference.Test2<T>(System.Func<int,T>)' cannot be inferred from the usage. Try specifying the type arguments explicitly +// Line: 11 using System; +using System.Threading.Tasks; -public class C -{ - public static void Main () - { - Foo (() => throw null); - } - - static void Foo<T> (Func<T> arg) - { - } -} - // 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 +class AsyncTypeInference { - public static D<A> Foo<A> (D<A> a) + public static int Main () { - return null; + Test2 (async l => { await TT (); return null; } ); + return 0; } - public static void Main () + static Task TT () { - Foo (delegate {}); + return Task.Factory.StartNew (() => 2); } -} + static void Test2<T> (Func<int, T> arg) + { + arg (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 @@ -131,38 +98,39 @@ } } - // CS0411: The type arguments for method `C.TestCall<T>(int)' cannot be inferred from the usage. Try specifying the type arguments explicitly -// Line: 13 + // CS0411: The type arguments for method `C.Foo<T>(System.Func<T>)' cannot be inferred from the usage. Try specifying the type arguments explicitly +// Line: 10 + +using System; + +public class C +{ + public static void Main () + { + Foo (() => throw null); + } + + static void Foo<T> (Func<T> arg) + { + } +} + // CS0411: The type arguments for method `C.Foo<T>(System.Func<T>)' cannot be inferred from the usage. Try specifying the type arguments explicitly +// Line: 14 + +using System; class C { - static void TestCall<T> (int i) + static void Foo<T> (Func<T> a) { } - public static void Main () + static void Main () { - dynamic d = 0; - TestCall (d); + Foo (() => Main); } } - // CS0411: The type arguments for method `C.Foo<T>(out T)' cannot be inferred from the usage. Try specifying the type arguments explicitly -// Line: 8 -// Compiler options: -langversion:experimental - -public class C -{ - public static void Main () - { - Foo (out var y); - } - - static void Foo<T> (out T t) - { - t = default (T); /usr/lib/monodoc/sources/cs-errors.zip/CS0412 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0412 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0412 2039-11-01 23:06:40.000000000 +0100 @@ -3,12 +3,13 @@ CS0412 // CS0412: The type parameter name `T' is the same as local variable or parameter name -// Line: 6 +// Line: 8 class C { - public void Foo<T> (string T) + public void Foo<T> (int value) { + int T; } } @@ -23,13 +24,12 @@ } // CS0412: The type parameter name `T' is the same as local variable or parameter name -// Line: 8 +// Line: 6 class C { - public void Foo<T> (int value) + public void Foo<T> (string T) { - int T; } } /usr/lib/monodoc/sources/cs-errors.zip/CS0413 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0413 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0413 2039-11-01 23:06:40.000000000 +0100 @@ -3,12 +3,11 @@ CS0413 // CS0413: The `as' operator cannot be used with a non-reference type parameter `T'. Consider adding `class' or a reference type constraint -// Line: 8 +// Line: 7 -public class SomeClass { -} +public class SomeClass {} -public class Foo<T> where T : struct { +public class Foo<T> { public T Do (object o) { return o as T; } } @@ -22,11 +21,12 @@ // CS0413: The `as' operator cannot be used with a non-reference type parameter `T'. Consider adding `class' or a reference type constraint -// Line: 7 +// Line: 8 -public class SomeClass {} +public class SomeClass { +} -public class Foo<T> { +public class Foo<T> where T : struct { public T Do (object o) { return o as T; } } /usr/lib/monodoc/sources/cs-errors.zip/CS0416 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0416 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0416 2039-11-01 23:06:40.000000000 +0100 @@ -25,25 +25,6 @@ } } - // 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() - { - } -} // CS0416: `N.C<T>': an attribute argument cannot use type parameters // Line: 15 @@ -76,5 +57,24 @@ } } } + // 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 /usr/lib/monodoc/sources/cs-errors.zip/CS0418 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0418 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0418 2039-11-01 23:06:40.000000000 +0100 @@ -2,13 +2,6 @@ CS0418 - // CS0418: `TestClass': an abstract class cannot be sealed or static -// Line: 4 - -public abstract static class TestClass -{ -} - // CS0418: `Foo': an abstract class cannot be sealed or static // Line: 3 public abstract partial class Foo @@ -48,6 +41,20 @@ } + // CS0418: `TestClass': an abstract class cannot be sealed or static +// Line: 4 + +public abstract sealed class TestClass +{ +} + + // CS0418: `TestClass': an abstract class cannot be sealed or static +// Line: 4 + +public abstract static class TestClass +{ +} + // CS0418: `Foo': an abstract class cannot be sealed or static // Line: 3 public abstract partial class Foo @@ -70,12 +77,5 @@ } - // CS0418: `TestClass': an abstract class cannot be sealed or static -// Line: 4 - -public abstract sealed class TestClass -{ -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0419 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0419 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0419 2039-11-01 23:06:40.000000000 +0100 @@ -12,6 +12,23 @@ } + // CS0419: Ambiguous reference in cref attribute `XmlDocument.Load'. Assuming `System.Xml.XmlDocument.Load(string)' but other overloads including `System.Xml.XmlDocument.Load(System.IO.Stream)' have also matched +// Line: 10 +// Compiler options: -doc:dummy.xml -warnaserror -warn:4 +// +// NOTE: this error message is dependent on the order of members, so feel free to modify the message if is going not to match. + +using System.Xml; + +/// <summary> +/// <see cref="XmlDocument.Load" /> +/// </summary> +public class EntryPoint +{ + static void Main () { + } +} + // CS0419: Ambiguous reference in cref attribute `A.this'. Assuming `Test.A.this[int]' but other overloads including `Test.A.this[string]' have also matched // Line: 7 // Compiler options: -doc:dummy.xml -warnaserror @@ -66,22 +83,5 @@ } - // CS0419: Ambiguous reference in cref attribute `XmlDocument.Load'. Assuming `System.Xml.XmlDocument.Load(string)' but other overloads including `System.Xml.XmlDocument.Load(System.IO.Stream)' have also matched -// Line: 10 -// Compiler options: -doc:dummy.xml -warnaserror -warn:4 -// -// NOTE: this error message is dependent on the order of members, so feel free to modify the message if is going not to match. - -using System.Xml; - -/// <summary> -/// <see cref="XmlDocument.Load" /> -/// </summary> -public class EntryPoint -{ - static void Main () { - } -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0420 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0420 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0420 2039-11-01 23:06:40.000000000 +0100 @@ -2,35 +2,35 @@ CS0420 - // CS0420: `X.j': A volatile field references will not be treated as volatile -// Line: 10 + // CS0420: `XX.j': A volatile field references will not be treated as volatile +// Line: 14 // Compiler options: -unsafe /warnaserror /warn:1 -unsafe class X { +unsafe class XX { static volatile int j; + + static void X (ref int a) + { + } static void Main () { - fixed (int *p = &j){ - - } + X (ref j); } } - // CS0420: `XX.j': A volatile field references will not be treated as volatile -// Line: 14 + // CS0420: `X.j': A volatile field references will not be treated as volatile +// Line: 10 // Compiler options: -unsafe /warnaserror /warn:1 -unsafe class XX { +unsafe class X { static volatile int j; - - static void X (ref int a) - { - } static void Main () { - X (ref j); + fixed (int *p = &j){ + + } } } /usr/lib/monodoc/sources/cs-errors.zip/CS0425 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0425 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0425 2039-11-01 23:06:40.000000000 +0100 @@ -2,53 +2,34 @@ CS0425 - // 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 - { - } - } -} - // CS0425: The constraints for type parameter `T' of method `CA.Foo<T>()' must match the constraints for type parameter `U' of interface method `IA.Foo<U>()'. Consider using an explicit interface implementation instead -// Line: 16 +// Line: 5 +// Compiler options: -r:CS0425-7-lib.dll -interface IA +public class CB : CA, IA { - void Foo<U> (); + public static void Main () + { + } } + + // 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 -class CA +interface I { - public void Foo<T> () where T : class - { - } + void Foo<T> (); } -class CB : CA, IA +class C : I { - public static void Main () + public void Foo<T> () where T : struct { } } // 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 +// Line: 13 interface IFoo<T> { void Test<U> () @@ -58,6 +39,7 @@ class Foo<T> : IFoo<T> { public void Test<V> () + where V :X { } } @@ -68,7 +50,7 @@ } // 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 +// Line: 12 interface IFoo<T> { void Test<U> () @@ -78,7 +60,6 @@ class Foo<T> : IFoo<T> { public void Test<V> () - where V :X { } } @@ -88,17 +69,6 @@ { } } - // CS0425: The constraints for type parameter `T' of method `CA.Foo<T>()' must match the constraints for type parameter `U' of interface method `IA.Foo<U>()'. Consider using an explicit interface implementation instead -// Line: 5 -// Compiler options: -r:CS0425-7-lib.dll - -public class CB : CA, IA -{ - public static void Main () - { - } -} - // 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 @@ -114,17 +84,47 @@ } } - // 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 + // 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; -interface I + 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 + { + } + } +} + + // CS0425: The constraints for type parameter `T' of method `CA.Foo<T>()' must match the constraints for type parameter `U' of interface method `IA.Foo<U>()'. Consider using an explicit interface implementation instead +// Line: 16 + +interface IA { - void Foo<T> (); + void Foo<U> (); } -class C : I +class CA { - public void Foo<T> () where T : struct + public void Foo<T> () where T : class + { + } +} + +class CB : CA, IA +{ + public static void Main () { } } /usr/lib/monodoc/sources/cs-errors.zip/CS0426 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0426 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0426 2039-11-01 23:06:40.000000000 +0100 @@ -2,34 +2,34 @@ CS0426 - // CS0426: The nested type `M' does not exist in the type `N' -// Line: 6 + // CS0426: The nested type `B' does not exist in the type `A' +// Line: 12 class A { - class B : N.M - { - } } -class N +class Test { - public const string S = "1"; + public static void Main() + { + A.B a; + } } - // CS0426: The nested type `B' does not exist in the type `A' -// Line: 12 + // CS0426: The nested type `M' does not exist in the type `N' +// Line: 6 class A { + class B : N.M + { + } } -class Test +class N { - public static void Main() - { - A.B a; - } + public const string S = "1"; } // CS0426: The nested type `Foo' does not exist in the type `C<int>' /usr/lib/monodoc/sources/cs-errors.zip/CS0428 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0428 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0428 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,20 @@ CS0428 + // 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]; + } +} + // CS0428: Cannot convert method group `a' to non-delegate type `int'. Consider using parentheses to invoke the method // Line: 12 @@ -17,19 +31,5 @@ } } - // 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]; - } -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0429 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0429 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0429 2039-11-01 23:06:40.000000000 +0100 @@ -3,14 +3,17 @@ CS0429 // CS0429: Unreachable expression code detected -// Line: 9 -// Compiler options: -warn:4 -warnaserror +// Line: 12 +// Compiler options: -warnaserror -class Main +public class X { - public void Method (int i) + static void test (int stop) { - var x = true ? 1 : i; + int pos = 0; + do { + break; + } while (pos < stop); } } @@ -28,6 +31,18 @@ } // CS0429: Unreachable expression code detected +// Line: 9 +// Compiler options: -warn:4 -warnaserror + +class Main +{ + public void Method (int i) + { + var x = true ? 1 : i; + } +} + + // CS0429: Unreachable expression code detected // Line: 11 // Compiler options: -warn:4 -warnaserror @@ -42,20 +57,5 @@ } } - // CS0429: Unreachable expression code detected -// Line: 12 -// Compiler options: -warnaserror - -public class X -{ - static void test (int stop) - { - int pos = 0; - do { - break; - } while (pos < stop); - } -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0432 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0432 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0432 2039-11-01 23:06:40.000000000 +0100 @@ -14,19 +14,6 @@ } } - // CS0432: Alias `Sa' not found -// Line: 6 - -using S = System; - -[assembly: Sa::CLSCompliantAttribute (false)] - - // CS0432: Alias `X' not found -// Line: 5 - -using X = System; -using X::Collections.Generic; - // CS0432: Alias `fool' not found // Line: 9 @@ -55,5 +42,18 @@ } } + // CS0432: Alias `X' not found +// Line: 5 + +using X = System; +using X::Collections.Generic; + + // CS0432: Alias `Sa' not found +// Line: 6 + +using S = System; + +[assembly: Sa::CLSCompliantAttribute (false)] + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0446 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0446 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0446 2039-11-01 23:06:40.000000000 +0100 @@ -2,32 +2,32 @@ CS0446 - // CS0446: Foreach statement cannot operate on a `anonymous method' + // CS0446: Foreach statement cannot operate on a `method group' // Line: 8 class C { static void M () { - foreach (int i in delegate { } ) + foreach (int i in Test) { } } + + static void Test () { } } - // CS0446: Foreach statement cannot operate on a `method group' + // CS0446: Foreach statement cannot operate on a `anonymous method' // Line: 8 class C { static void M () { - foreach (int i in Test) + foreach (int i in delegate { } ) { } } - - static void Test () { } } /usr/lib/monodoc/sources/cs-errors.zip/CS0449 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0449 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0449 2039-11-01 23:06:40.000000000 +0100 @@ -3,6 +3,15 @@ CS0449 // 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 + { + } +} + // CS0449: The `class' or `struct' constraint must be the first constraint specified // Line: 8 public interface I @@ -20,14 +29,5 @@ void Foo<T> () where T : class, struct; } - // 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 /usr/lib/monodoc/sources/cs-errors.zip/CS0452 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0452 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0452 2039-11-01 23:06:40.000000000 +0100 @@ -2,42 +2,52 @@ CS0452 - // CS0452: The type `int' must be a reference type in order to use it as type parameter `T' in the generic type or method `A.Foo<T>(T, string)' -// Line: 18 + // CS0452: The type `ulong' must be a reference type in order to use it as type parameter `T' in the generic type or method `C<T>' +// Line: 10 -class A +public class C<T> where T : class { - static int Foo<T> (T a, string s) where T : class - { - return 1; + public int this [params C<ulong>[] args] { + set {} } +} - static int Foo<T> (T a, object y) + + // CS0452: The type `int' must be a reference type in order to use it as type parameter `T' in the generic type or method `Program.M<T>(T, T)' +// Line: 8 + +class Program +{ + public static void M<T> (T item1, T item2 = null) where T : class { - return 2; + M (1); } +} + // 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 static void Main () +public class TestClass<T> where T : class +{ + static public T meth() { - A.Foo<int> (99, null); + return null; } -} - - // 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 + static public T Value; +} + +public class Test { - MyObject<Foo> foo; - - static void Main () - { } + public Test() + { + } + + static public void Main() + { + int i = TestClass<int>.meth(); + Console.WriteLine (i); + } } // CS0452: The type `int' must be a reference type in order to use it as type parameter `T' in the generic type or method `C<T>' @@ -77,40 +87,40 @@ static public void Main() { - int i = TestClass<int>.meth(); - Console.WriteLine (i); + int j = TestClass<int>.Value; + Console.WriteLine (j); } } - // CS0452: The type `int' must be a reference type in order to use it as type parameter `T' in the generic type or method `C<T>' -// Line: 10 + // CS0452: The type `int' must be a reference type in order to use it as type parameter `T' in the generic type or method `A.Foo<T>(T, string)' +// Line: 18 -public class C<T> where T : class +class A { -} + static int Foo<T> (T a, string s) where T : class + { + return 1; + } -delegate void D (C<int> arg); - - // CS0452: The type `int' must be a reference type in order to use it as type parameter `T' in the generic type or method `Program.M<T>(T, T)' -// Line: 8 + static int Foo<T> (T a, object y) + { + return 2; + } -class Program -{ - public static void M<T> (T item1, T item2 = null) where T : class + public static void Main () { - M (1); + A.Foo<int> (99, null); } -} - // CS0452: The type `ulong' must be a reference type in order to use it as type parameter `T' in the generic type or method `C<T>' +} + + // CS0452: The type `int' must be a reference type in order to use it as type parameter `T' in the generic type or method `C<T>' // Line: 10 public class C<T> where T : class { - public int this [params C<ulong>[] args] { - set {} - } } +delegate C<int> D (); // 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 @@ -129,31 +139,21 @@ } } - // 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; + // 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 +{ } -public class TestClass<T> where T : class -{ - static public T meth() - { - return null; - } +struct Foo +{ } - static public T Value; -} - -public class Test +class X { - public Test() - { - } - - static public void Main() - { - int j = TestClass<int>.Value; - Console.WriteLine (j); - } + MyObject<Foo> foo; + + static void Main () + { } } // CS0452: The type `U' must be a reference type in order to use it as type parameter `UU' in the generic type or method `B.Test<UU>(UU)' @@ -183,7 +183,7 @@ { } -delegate C<int> D (); +delegate void D (C<int> arg); \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0453 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0453 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0453 2039-11-01 23:06:40.000000000 +0100 @@ -2,58 +2,23 @@ CS0453 - // CS0453: The type `dynamic' must be a non-nullable value type in order to use it as type parameter `T' in the generic type or method `Tester.Foo<T>(T)' -// Line: 10 - -class Tester -{ - static void Foo<T> (T t) where T : struct - { - } - - public static int Main () - { - dynamic d = 1; - Foo<dynamic>(d); - return 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>' + // 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 +{ } -using System; - -public static class Nullable_Test { - public static int Compare<T> (Nullable<T> left) - { - return 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 struct Bar +{ } -public static class Foo +class X { - public static string Test_2<T> (this T s) where T : struct + static void Main () { - return null; + Foo<Bar?> foo; } } - -namespace B -{ - public class M - { - public static void Main () - { - new M().Test_2(); - } - } -} + // CS0453: The type `string' must be a non-nullable value type in order to use it as type parameter `T' in the generic type or method `C<T>' // Line: 10 @@ -63,7 +28,7 @@ class A { - public void Foo (C<string>[] args) + public C<string> Foo () { } } @@ -83,20 +48,31 @@ { } } - // 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>' + // 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 -public class Foo<T> - where T : struct -{ } -public struct Bar -{ } +using System; -class X +public static class Nullable_Test { + public static int Compare<T> (Nullable<T> left) + { + return 0; + } +} + // CS0453: The type `dynamic' must be a non-nullable value type in order to use it as type parameter `T' in the generic type or method `Tester.Foo<T>(T)' +// Line: 10 + +class Tester { - static void Main () + static void Foo<T> (T t) where T : struct { - Foo<Bar?> foo; + } + + public static int Main () + { + dynamic d = 1; + Foo<dynamic>(d); + return 0; } } @@ -109,7 +85,7 @@ class A { - public C<string> Foo () + public void Foo (C<string>[] args) { } } @@ -128,5 +104,29 @@ } } + // 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 /usr/lib/monodoc/sources/cs-errors.zip/CS0455 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0455 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0455 2039-11-01 23:06:40.000000000 +0100 @@ -16,22 +16,24 @@ where U : World { } - // CS0455: Type parameter `V' inherits conflicting constraints `B' and `A' -// Line: 13 - -class A -{ } + // CS0455: Type parameter `T3' inherits conflicting constraints `X' and `Y' +// Line: 15 -class B -{ } +class X +{ +} -class Foo<T,U, V> - where T : A - where U : B - where V : U, T +class Y { } - + +class C<T1, T2, T3, T4> + where T1 : X + where T2 : T1 + where T3 : Y, T4 + where T4 : T2 +{ +} // CS0455: Type parameter `T' inherits conflicting constraints `System.ValueType' and `Test' // Line: 8 @@ -43,24 +45,22 @@ where U : Test { } - // CS0455: Type parameter `T3' inherits conflicting constraints `X' and `Y' -// Line: 15 + // CS0455: Type parameter `V' inherits conflicting constraints `B' and `A' +// Line: 13 -class X -{ -} +class A +{ } -class Y -{ -} +class B +{ } -class C<T1, T2, T3, T4> - where T1 : X - where T2 : T1 - where T3 : Y, T4 - where T4 : T2 +class Foo<T,U, V> + where T : A + where U : B + where V : U, T { -} +} + // CS0455: Type parameter `Y' inherits conflicting constraints `class' and `long' // Line: 11 /usr/lib/monodoc/sources/cs-errors.zip/CS0457 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0457 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0457 2039-11-01 23:06:40.000000000 +0100 @@ -2,34 +2,6 @@ CS0457 - // CS0457: Ambiguous user defined operators `D.implicit operator D(System.Action)' and `D.explicit operator D(Foo)' when converting from `method group' to `D' -// Line: 25 - -using System; - -public delegate void Foo (); - -class D -{ - public static implicit operator D (Action d) - { - return new D (); - } - - public static explicit operator D (Foo d) - { - return new D (); - } -} - -class Program -{ - static void Main() - { - D d = (D) Main; - } -} - // CS0457: Ambiguous user defined operators `D.implicit operator A(D)' and `C.implicit operator B(C)' when converting from `D' to `B' // Line: 30 @@ -68,12 +40,12 @@ class A { - public static implicit operator ushort (A mask) + public static implicit operator sbyte (A mask) { return 1; } - public static implicit operator short (A mask) + public static implicit operator byte (A mask) { return 2; } @@ -82,7 +54,35 @@ class X { static A a = null; - static object o = -a; + static object o = ~a; +} + + // CS0457: Ambiguous user defined operators `D.implicit operator D(System.Action)' and `D.explicit operator D(Foo)' when converting from `method group' to `D' +// Line: 25 + +using System; + +public delegate void Foo (); + +class D +{ + public static implicit operator D (Action d) + { + return new D (); + } + + public static explicit operator D (Foo d) + { + return new D (); + } +} + +class Program +{ + static void Main() + { + D d = (D) Main; + } } // CS0457: Ambiguous user defined conversions `A.implicit operator byte(A)' and `A.implicit operator sbyte(A)' when converting from 'A' to 'int' @@ -90,12 +90,12 @@ class A { - public static implicit operator sbyte (A mask) + public static implicit operator ushort (A mask) { return 1; } - public static implicit operator byte (A mask) + public static implicit operator short (A mask) { return 2; } @@ -104,7 +104,7 @@ class X { static A a = null; - static object o = ~a; + static object o = -a; } /usr/lib/monodoc/sources/cs-errors.zip/CS0458 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0458 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0458 2039-11-01 23:06:40.000000000 +0100 @@ -2,67 +2,80 @@ CS0458 - // CS0458: The result of the expression is always `null' of type `int?' -// Line: 15 + // CS0458: The result of the expression is always `null' of type `short?' +// Line: 24 // Compiler options: -warnaserror -warn:2 -enum E +struct S { - V + public static short operator + (S s, S i) + { + return 2; + } + + public static int? operator + (S? s, int? i) + { + return 2; + } + } -public class C +class C { public static void Main () { - E e = E.V; - object o = null - e; + S? s = new S (); + var x = s + (S?)null; } -} - - // CS0458: The result of the expression is always `null' of type `int?' -// Line: 8 +} + // CS0458: The result of the expression is always `null' of type `int?' +// Line: 9 // Compiler options: -warnaserror -warn:2 class C { - static void Main () + static void Foo() { - int? i = 2; - i *= null; + var res = null << 2; } } - // CS0458: The result of the expression is always `null' of type `E?' -// Line: 15 + // CS0472: The result of the expression is always `null' of type `MyEnum?' +// Line: 17 // Compiler options: -warnaserror -warn:2 -enum E +using System; + +enum MyEnum { - V + Value_1 } -public class C +class C { public static void Main () { - E e = E.V; - object o = e + null; + var d = MyEnum.Value_1; + var x = d & null; } } // CS0458: The result of the expression is always `null' of type `int?' -// Line: 9 +// Line: 14 // Compiler options: -warnaserror -warn:2 -public class C +public enum E +{ +} + +class C { public static void Main () { - b = (null & 0) != null; + E? e = null; + var res = e - null; } -} - +} // CS0458: The result of the expression is always `null' of type `ulong?' // Line: 10 // Compiler options: -warnaserror -warn:2 @@ -76,136 +89,130 @@ } } - // CS0458: The result of the expression is always `null' of type `int?' -// Line: 9 + // CS0458: The result of the expression is always `null' of type `bool?' +// Line: 8 // Compiler options: -warnaserror -warn:2 class C { static void Foo() { - var res = null >> 2; + bool? b = null as bool?; } } - // CS0458: The result of the expression is always `null' of type `int?' -// Line: 9 + // CS0458: The result of the expression is always `null' of type `int?' +// Line: 8 // Compiler options: -warnaserror -warn:2 -public class C +class C { - public static void Main () + static void Main () { - int? s = null; - int? v = s + null; + ushort us = 22; + int? r = us << null; } } - // CS0458: The result of the expression is always `null' of type `short?' -// Line: 24 + // CS0458: The result of the expression is always `null' of type `int?' +// Line: 10 // Compiler options: -warnaserror -warn:2 -struct S -{ - public static short operator + (S s, S i) - { - return 2; - } - - public static int? operator + (S? s, int? i) - { - return 2; - } - -} - class C { public static void Main () { - S? s = new S (); - var x = s + (S?)null; + int i = 44; + i <<= null; } -} - // CS0458: The result of the expression is always `null' of type `int?' +} + + // CS0458: The result of the expression is always `null' of type `int?' // Line: 8 // Compiler options: -warnaserror -warn:2 -class C +public class MainClass { - static void Main () + public static void Main() { - ushort us = 22; - int? r = us << null; + object d = (int?)null as int?; } } + // CS0458: The result of the expression is always `null' of type `int?' // Line: 9 // Compiler options: -warnaserror -warn:2 /usr/lib/monodoc/sources/cs-errors.zip/CS0459 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0459 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0459 2039-11-01 23:06:40.000000000 +0100 @@ -16,20 +16,6 @@ } } - // CS0459: Cannot take the address of foreach iteration variable `c' -// Line: 10 -// Compiler options: -unsafe - -class C -{ - public static unsafe void Main () - { - foreach (char c in "test") { - char* ch = &c; - } - } -} - // CS0459: Cannot take the address of fixed variable `a' // Line: 10 // Compiler options: -unsafe @@ -46,20 +32,6 @@ } } - // CS0459: Cannot take the address of `this' because it is read-only -// Line: 11 -// Compiler options: -unsafe -langversion:latest - -readonly struct X -{ - unsafe void Test () - { - fixed (X* x = &this) { - - } - } -} - // CS0459: Cannot take the address of using variable `m' // Line: 19 // Compiler options: -unsafe @@ -84,5 +56,33 @@ } + // CS0459: Cannot take the address of foreach iteration variable `c' +// Line: 10 +// Compiler options: -unsafe + +class C +{ + public static unsafe void Main () + { + foreach (char c in "test") { + char* ch = &c; + } + } +} + + // CS0459: Cannot take the address of `this' because it is read-only +// Line: 11 +// Compiler options: -unsafe -langversion:latest + +readonly struct X +{ + unsafe void Test () + { + fixed (X* x = &this) { + + } + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0464 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0464 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0464 2039-11-01 23:06:40.000000000 +0100 @@ -2,18 +2,6 @@ CS0464 - // 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; - } -} - // CS0464: The result of comparing type `E?' with null is always `false' // Line: 14 // Compiler options: -warnaserror @@ -36,9 +24,9 @@ public class X { - public static bool Compute () + public static bool Compute (int x) { - return null >= null; + return x < null; } } @@ -54,6 +42,18 @@ } } + // 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; + } +} + // CS0464: The result of comparing type `int?' with null is always `false' // Line: 10 // Compiler options: -warnaserror -warn:2 /usr/lib/monodoc/sources/cs-errors.zip/CS0472 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0472 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0472 2039-11-01 23:06:40.000000000 +0100 @@ -2,28 +2,46 @@ CS0472 - // CS0472: The result of comparing value type `int' with null is always `false' -// Line: 8 + // CS0472: The result of comparing value type `int' with null is always `true' +// Line: 9 // Compiler options: -warnaserror -warn:2 -public class X { - public static bool Compute (int x) +public class X +{ + public static void Compute (int x) { - return x == null; + if (true && x != null) + return; } } - // CS0472: The result of comparing value type `int' with null is always `true' + // CS0472: The result of comparing value type `int' with null is always `false' // Line: 8 // Compiler options: -warnaserror -warn:2 public class X { public static bool Compute (int x) { - return x != null; + return x == null; } } + // CS0472: The result of comparing value type `E' with null is always `false' +// Line: 14 +// Compiler options: -warnaserror + +enum E +{ +} + +class X +{ + public static void Main () + { + E u = 0; + var b = u == (E?)null; + } +} // CS0472: The result of comparing value type `byte' with null is always `false' // Line: 9 // Compiler options: -warnaserror -warn:2 @@ -54,22 +72,17 @@ } } - // CS0472: The result of comparing value type `E' with null is always `false' -// Line: 14 -// Compiler options: -warnaserror - -enum E -{ -} + // CS0472: The result of comparing value type `int' with null is always `true' +// Line: 8 +// Compiler options: -warnaserror -warn:2 -class X -{ - public static void Main () +public class X { + public static bool Compute (int x) { - E u = 0; - var b = u == (E?)null; + return x != null; } -} +} + // CS0472: The result of comparing value type `long' with null is always `false' // Line: 9 // Compiler options: -warnaserror -warn:2 @@ -82,18 +95,5 @@ } } - // CS0472: The result of comparing value type `int' with null is always `true' -// Line: 9 -// Compiler options: -warnaserror -warn:2 - -public class X -{ - public static void Compute (int x) - { - if (true && x != null) - return; - } -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0501 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0501 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0501 2039-11-01 23:06:40.000000000 +0100 @@ -2,11 +2,12 @@ CS0501 - // CS0501: `Class.X()' must have a body because it is not marked abstract, extern, or partial -// Line: 5 + // CS0501: `X.Mine.get' must have a body because it is not marked abstract, extern, or partial +// Line: 6 -class Class { - virtual public void X (); +class X +{ + public int Mine { get; set {} } } // CS0501: `Test.this[string].get' must have a body because it is not marked abstract, extern, or partial @@ -17,6 +18,13 @@ public string this [string key] { get; set; } } + // CS0501: `Class.X()' must have a body because it is not marked abstract, extern, or partial +// Line: 5 + +class Class { + virtual public void X (); +} + // CS0501: `C.operator !=(C, C)' must have a body because it is not marked abstract, extern, or partial // Line: 6 @@ -26,13 +34,5 @@ public static bool operator == (C l, C r); } - // 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 {} } -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0505 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0505 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0505 2039-11-01 23:06:40.000000000 +0100 @@ -5,26 +5,26 @@ // CS0505: `DerivedClass.value()': cannot override because `BaseClass.value' is not a method // Line: 9 -using System; - class BaseClass { protected int value; } class DerivedClass: BaseClass { - protected override EventHandler value() {} + protected override int value() {} } // CS0505: `DerivedClass.value()': cannot override because `BaseClass.value' is not a method // Line: 9 +using System; + class BaseClass { protected int value; } class DerivedClass: BaseClass { - protected override int value() {} + protected override EventHandler value() {} } /usr/lib/monodoc/sources/cs-errors.zip/CS0506 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0506 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0506 2039-11-01 23:06:40.000000000 +0100 @@ -2,15 +2,17 @@ CS0506 - // CS0506: `DerivedClass.Show()': cannot override inherited member `BaseClass.Show()' because it is not marked virtual, abstract or override -// Line: 9 + // CS0506: `DerivedClass.Test': cannot override inherited member `BaseClass.Test' because it is not marked virtual, abstract or override +// Line: 11 + +using System; class BaseClass { - protected void Show () {} + protected event EventHandler Test; } class DerivedClass: BaseClass { - protected override void Show () {} + protected override event EventHandler Test; } @@ -25,17 +27,15 @@ } } - // CS0506: `DerivedClass.Test': cannot override inherited member `BaseClass.Test' because it is not marked virtual, abstract or override -// Line: 11 - -using System; + // CS0506: `DerivedClass.Show()': cannot override inherited member `BaseClass.Show()' because it is not marked virtual, abstract or override +// Line: 9 class BaseClass { - protected event EventHandler Test; + protected void Show () {} } class DerivedClass: BaseClass { - protected override event EventHandler Test; + protected override void Show () {} } /usr/lib/monodoc/sources/cs-errors.zip/CS0507 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0507 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0507 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,24 @@ CS0507 + // CS0507: `DerivedClass.Message': cannot change access modifiers when overriding `public' inherited member `BaseClass.Message' +// Line: 12 + +class BaseClass { + public virtual string Message { + set { + } + } +} + +class DerivedClass : BaseClass { + protected override string Message { + set { + } + } +} + + // CS0507: `Class2.GetString()': cannot change access modifiers when overriding `protected' inherited member `Class1.GetString()' // Line: 7 // Compiler options: -r:CS0507-8-lib.dll @@ -14,77 +32,65 @@ } } - // CS0507: `DerivedClass.Show()': cannot change access modifiers when overriding `protected' inherited member `BaseClass.Show()' -// Line: 9 - -class BaseClass { - protected virtual void Show () {} -} + // CS0507: `Class2.GetString()': cannot change access modifiers when overriding `protected internal' inherited member `Class1.GetString()' +// Line: 7 +// Compiler options: -r:CS0507-7-lib.dll -class DerivedClass: BaseClass { - public override void Show () {} +public sealed class Class2 : Class1 +{ + protected override string GetString () + { + return "Hello2"; + } } - - // CS0507: `DerivedClass.Message.set': cannot change access modifiers when overriding `protected' inherited member `BaseClass.Message.set' -// Line: 15 + // CS0507: `DerivedClass.Message.set': cannot change access modifiers when overriding `public' inherited member `BaseClass.Message.set' +// Line: 19 class BaseClass { public virtual string Message { get { return ""; } - protected set { - } + set {} } } class DerivedClass : BaseClass { - public override string Message { + public override string Message { get { return ""; } - set { - } + + private set {} } } - // CS0507: `DerivedClass.Message.set': cannot change access modifiers when overriding `public' inherited member `BaseClass.Message.set' -// Line: 19 + // CS0507: `DerivedClass.Message.set': cannot change access modifiers when overriding `protected' inherited member `BaseClass.Message.set' +// Line: 15 class BaseClass { public virtual string Message { get { return ""; } - set {} + protected set { + } } } class DerivedClass : BaseClass { - public override string Message { + public override string Message { get { return ""; } - - private set {} + set { + } } } - // CS0507: `Class2.GetString()': cannot change access modifiers when overriding `protected internal' inherited member `Class1.GetString()' -// Line: 7 -// Compiler options: -r:CS0507-7-lib.dll - -public sealed class Class2 : Class1 -{ - protected override string GetString () - { - return "Hello2"; - } -} - // CS0507: `Bar.X()': cannot change access modifiers when overriding `protected internal' inherited member `Foo.X()' // Line: 13 @@ -102,35 +108,29 @@ } } - // CS0507: `DerivedClass.Test': cannot change access modifiers when overriding `protected' inherited member `BaseClass.Test' -// Line: 11 - -using System; + // CS0507: `DerivedClass.Show()': cannot change access modifiers when overriding `protected' inherited member `BaseClass.Show()' +// Line: 9 class BaseClass { - protected virtual event EventHandler Test; + protected virtual void Show () {} } class DerivedClass: BaseClass { - public override sealed event EventHandler Test; + public override void Show () {} } - // CS0507: `DerivedClass.Message': cannot change access modifiers when overriding `public' inherited member `BaseClass.Message' -// Line: 12 + // CS0507: `DerivedClass.Test': cannot change access modifiers when overriding `protected' inherited member `BaseClass.Test' +// Line: 11 + +using System; class BaseClass { - public virtual string Message { - set { - } - } + protected virtual event EventHandler Test; } -class DerivedClass : BaseClass { - protected override string Message { - set { - } - } +class DerivedClass: BaseClass { + public override sealed event EventHandler Test; } /usr/lib/monodoc/sources/cs-errors.zip/CS0508 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0508 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0508 2039-11-01 23:06:40.000000000 +0100 @@ -2,18 +2,30 @@ CS0508 - // CS0508: `A<T>.B.getT()': return type must be `A<T>.B' to match overridden member `A<A<T>.B>.getT()' + // CS0508: `DerivedClass.Show()': return type must be `void' to match overridden member `BaseClass.Show()' +// Line: 9 + +class BaseClass { + protected virtual void Show () {} +} + +class DerivedClass: BaseClass { + protected override bool Show () {} +} + + + // 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 getT (); + public abstract T Test (); - public class B : A<B> + public class B<H> : A<B<H>> { - public override B getT () + public override B<H> Test () { - throw new System.Exception ("The method or operation is not implemented."); + return this; } } } @@ -29,38 +41,26 @@ { public override B getT () { - return default (B); + throw new System.Exception ("The method or operation is not implemented."); } } } - // CS0508: `A<T>.B<H>.Test()': return type must be `A<T>.B<H>' to match overridden member `A<A<T>.B<H>>.Test()' + // 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 Test (); + public abstract T getT (); - public class B<H> : A<B<H>> + public class B : A<B> { - public override B<H> Test () + public override B getT () { - return this; + return default (B); } } } - // CS0508: `DerivedClass.Show()': return type must be `void' to match overridden member `BaseClass.Show()' -// Line: 9 - -class BaseClass { - protected virtual void Show () {} -} - -class DerivedClass: BaseClass { - protected override bool Show () {} -} - - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0509 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0509 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0509 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,14 @@ CS0509 + // CS0509: `InstanceClass': cannot derive from sealed type `E' +// Line: 6 + +public enum E {} + +class InstanceClass: E { +} + // CS0509: `X': cannot derive from sealed type `V' // Line: 8 @@ -12,14 +20,6 @@ class X : V { } - // CS0509: `InstanceClass': cannot derive from sealed type `E' -// Line: 6 - -public enum E {} - -class InstanceClass: E { -} - // CS0509: `A': cannot derive from sealed type `System.Action' // Line: 4 /usr/lib/monodoc/sources/cs-errors.zip/CS0515 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0515 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0515 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,15 @@ CS0515 + // CS0515: `X.X()': static constructor cannot have an access modifier +// Line: 5 + +class X { + public static X () + { + } +} + // CS0515: `N.G<T>.G()': static constructor cannot have an access modifier // Line: 7 @@ -14,14 +23,5 @@ } } - // CS0515: `X.X()': static constructor cannot have an access modifier -// Line: 5 - -class X { - public static X () - { - } -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0516 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0516 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0516 2039-11-01 23:06:40.000000000 +0100 @@ -2,16 +2,6 @@ CS0516 - // CS0516: Constructor `Sample.Sample()' cannot call itself -// Line: 6 - -class Sample { - public Sample () - : this () - { - } -} - // CS0516: Constructor `A<T>.A(T)' cannot call itself // Line: 7 @@ -22,6 +12,16 @@ { } } + + // CS0516: Constructor `Sample.Sample()' cannot call itself +// Line: 6 + +class Sample { + public Sample () + : this () + { + } +} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0523 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0523 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0523 2039-11-01 23:06:40.000000000 +0100 @@ -2,20 +2,33 @@ CS0523 - // CS0523: Struct member `S<T>.s' of type `S<T[]>' causes a cycle in the struct layout -// Line: 6 + // CS0523: Struct member `B.a' of type `A' causes a cycle in the struct layout +// Line: 9 -struct S<T> -{ - static S<T[]> s; +struct A { + B b; } + +struct B { + A a; +} + +class Y { static void Main () {} } - // CS0523: Struct member `A<T>.a' of type `A<T>' causes a cycle in the struct layout -// Line: 6 + // 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 -struct A<T> +using System; + +struct Handle<T> { - A<T> a; + public IntPtr Value; +} + +struct Foo +{ + public readonly Handle<Foo> Handle; } // CS0523: Struct member `S.value' of type `G<string>' causes a cycle in the struct layout @@ -31,25 +44,12 @@ private G<string> value; } - // CS0523: Struct member `B.a' of type `A' causes a cycle in the struct layout -// Line: 9 - -struct A { - B b; -} - -struct B { - A a; -} - -class Y { static void Main () {} } - - // CS0523: Struct member `S<T>.s' of type `S<int>' causes a cycle in the struct layout + // CS0523: Struct member `S<T>.s' of type `S<T[]>' causes a cycle in the struct layout // Line: 6 struct S<T> { - S<int> s; + static S<T[]> s; } // CS0523: Struct member `A.a' of type `A?' causes a cycle in the struct layout @@ -60,20 +60,20 @@ static A? a; } - // 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; + // CS0523: Struct member `S<T>.s' of type `S<int>' causes a cycle in the struct layout +// Line: 6 -struct Handle<T> +struct S<T> { - public IntPtr Value; + S<int> s; } + + // CS0523: Struct member `A<T>.a' of type `A<T>' causes a cycle in the struct layout +// Line: 6 -struct Foo +struct A<T> { - public readonly Handle<Foo> Handle; + A<T> a; } /usr/lib/monodoc/sources/cs-errors.zip/CS0524 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0524 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0524 2039-11-01 23:06:40.000000000 +0100 @@ -6,7 +6,8 @@ // Line: 5 interface Interface { - interface I {} + public struct Struct { + } } // CS0524: Interfaces cannot declare classes, structs, interfaces, delegates, or enumerations @@ -20,25 +21,24 @@ // Line: 5 interface Interface { - public class C { - } + interface I {} } // CS0524: Interfaces cannot declare classes, structs, interfaces, delegates, or enumerations -// Line: 4 +// Line: 5 interface Interface { - enum E { - White, - Black + public class C { } } // CS0524: Interfaces cannot declare classes, structs, interfaces, delegates, or enumerations -// Line: 5 +// Line: 4 interface Interface { - public struct Struct { + enum E { + White, + Black } } /usr/lib/monodoc/sources/cs-errors.zip/CS0525 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0525 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0525 2039-11-01 23:06:40.000000000 +0100 @@ -3,19 +3,19 @@ CS0525 // CS0525: Interfaces cannot contain fields or constants -// Line: 9 +// Line: 6 interface Interface -{ - const bool value = false; +{ + bool value = false; } // CS0525: Interfaces cannot contain fields or constants -// Line: 6 +// Line: 9 interface Interface -{ - bool value = false; +{ + const bool value = false; } /usr/lib/monodoc/sources/cs-errors.zip/CS0528 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0528 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0528 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,15 @@ CS0528 + // CS0528: `System.IComparable' is already listed in interface list +// Line: 6 + +using System; + +public interface IX: IComparable, IComparable { + int CompareTo (object obj); +} + // CS0528: `A' is already listed in interface list // Line: 6 interface A { @@ -13,14 +22,5 @@ } - // CS0528: `System.IComparable' is already listed in interface list -// Line: 6 - -using System; - -public interface IX: IComparable, IComparable { - int CompareTo (object obj); -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0529 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0529 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0529 2039-11-01 23:06:40.000000000 +0100 @@ -2,18 +2,6 @@ CS0529 - // CS0529: Inherited interface `C' causes a cycle in the interface hierarchy of `A' -// Line: 10 - -interface A : B { -} - -interface B : C { -} - -interface C : A { -} - // CS0529: Inherited interface `IB' causes a cycle in the interface hierarchy of `IC' // Line: 12 @@ -30,5 +18,17 @@ } + // CS0529: Inherited interface `C' causes a cycle in the interface hierarchy of `A' +// Line: 10 + +interface A : B { +} + +interface B : C { +} + +interface C : A { +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0531 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0531 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0531 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,13 @@ CS0531 + // CS0531: `I.P': interface members cannot have a definition +// Line: 6 + +interface I +{ + int P => 1; +} // CS0531: `Interface.P.get': interface members cannot have a definition // Line: @@ -19,12 +26,5 @@ - // CS0531: `I.P': interface members cannot have a definition -// Line: 6 - -interface I -{ - int P => 1; -} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0533 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0533 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0533 2039-11-01 23:06:40.000000000 +0100 @@ -2,32 +2,6 @@ CS0533 - // CS0533: `DerivedClass.Foo()' hides inherited abstract member `BaseClass.Foo()' -// Line: 9 - -abstract public class BaseClass { - abstract protected void Foo (); -} - -abstract class DerivedClass: BaseClass { - public new void Foo () {} - public static void Main () {} -} - - - // CS0533: `B.MyEvent' hides inherited abstract member `A.MyEvent' -// Line: 11 - -using System; - -abstract class A { - public abstract event EventHandler MyEvent; -} - -class B : A { - public event EventHandler MyEvent; -} - // CS0533: `MyAbstract.Initialize()' hides inherited abstract member `MyAbstractBase.Initialize()' // Line: 10 public abstract class MyAbstractBase @@ -61,6 +35,19 @@ } class B : A { + public event EventHandler MyEvent; +} + + // CS0533: `B.MyEvent' hides inherited abstract member `A.MyEvent' +// Line: 11 + +using System; + +abstract class A { + public abstract event EventHandler MyEvent; +} + +class B : A { public new event EventHandler MyEvent; } @@ -78,5 +65,18 @@ } + // CS0533: `DerivedClass.Foo()' hides inherited abstract member `BaseClass.Foo()' +// Line: 9 + +abstract public class BaseClass { + abstract protected void Foo (); +} + +abstract class DerivedClass: BaseClass { + public new void Foo () {} + public static void Main () {} +} + + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0534 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0534 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0534 2039-11-01 23:06:40.000000000 +0100 @@ -2,46 +2,24 @@ CS0534 - // CS0534: `Y' does not implement inherited abstract member `X.myAbstract()' -// Line: 5 - -abstract class X { - public abstract void myAbstract (); -} - -class Y : X { -static void Main (){} -} - - - // CS0534: `DerivedClass' does not implement inherited abstract member `BaseClass.Value.set' -// Line: 8 - -abstract class BaseClass { - protected abstract int Value { get; set; } -} - -class DerivedClass: BaseClass { - protected override int Value { get {} } -} - - // CS0534: `C' does not implement inherited abstract member `B.Foo(string)' -// Line: 13 + // CS0534: `C' does not implement inherited abstract member `B.Foo()' +// Line: 16 -public abstract class A +class A { - public abstract int Foo (string s); + public virtual void Foo () + { + } } -public abstract class B : A +abstract class B : A { - public abstract override int Foo (string s); + public abstract override void Foo (); } -public class C : B +class C : B { -} - +} // CS0534: `B' does not implement inherited abstract member `A<int>.set_Prop(int)' // Line: 13 @@ -61,24 +39,53 @@ } } - // CS0534: `C' does not implement inherited abstract member `B.Foo()' -// Line: 16 + // CS0534: `MyTestExtended' does not implement inherited abstract member `MyTestAbstract.GetName()' +// Line: 6 +// Compiler options: -r:CS0534-3-lib.dll -class A +using System; +public class MyTestExtended : MyTestAbstract { - public virtual void Foo () + public MyTestExtended() : base() { } + + public static void Main(string[] args) + { + Console.WriteLine("Calling PrintName"); + MyTestExtended test = new MyTestExtended(); + test.PrintName(); + Console.WriteLine("Out of PrintName"); + } + } + + // CS0534: `Foo' does not implement inherited abstract member `SomeAbstract.SomeProperty.get' +// Line: 13 -abstract class B : A +public class SomeProperty { - public abstract override void Foo (); } -class C : B +public abstract class SomeAbstract { -} + public abstract SomeProperty SomeProperty { get; } +} + +public class Foo : SomeAbstract +{ + public static SomeProperty SomeProperty { get { return null; } } +} + + + // CS0534: `M' does not implement inherited abstract member `B.BMethod()' +// Line: 5 +// Compiler options: -r:CS0534-6-lib.dll + +class M : C +{ +} + // CS0534: `B' does not implement inherited abstract member `A<int>.set_Prop(int)' // Line: 13 @@ -98,6 +105,17 @@ } } + // CS0534: `DerivedClass' does not implement inherited abstract member `BaseClass.Value.set' +// Line: 8 + +abstract class BaseClass { + protected abstract int Value { get; set; } +} + +class DerivedClass: BaseClass { + protected override int Value { get {} } +} + // CS0534: `MyTestExtended' does not implement inherited abstract member `MyTestAbstract.GetName()' // Line: 6 // Compiler options: -r:CS0534-4-lib.dll @@ -119,11 +137,20 @@ } - // CS0534: `M' does not implement inherited abstract member `B.BMethod()' -// Line: 5 -// Compiler options: -r:CS0534-6-lib.dll + // CS0534: `C' does not implement inherited abstract member `B.Foo(string)' +// Line: 13 -class M : C +public abstract class A +{ + public abstract int Foo (string s); +} + +public abstract class B : A +{ + public abstract override int Foo (string s); +} + +public class C : B { } @@ -146,44 +173,17 @@ { } - // CS0534: `Foo' does not implement inherited abstract member `SomeAbstract.SomeProperty.get' -// Line: 13 - -public class SomeProperty -{ -} + // CS0534: `Y' does not implement inherited abstract member `X.myAbstract()' +// Line: 5 -public abstract class SomeAbstract -{ - public abstract SomeProperty SomeProperty { get; } +abstract class X { + public abstract void myAbstract (); } -public class Foo : SomeAbstract -{ - public static SomeProperty SomeProperty { get { return null; } } +class Y : X { +static void Main (){} } - - - // CS0534: `MyTestExtended' does not implement inherited abstract member `MyTestAbstract.GetName()' -// Line: 6 -// Compiler options: -r:CS0534-3-lib.dll - -using System; -public class MyTestExtended : MyTestAbstract -{ - public MyTestExtended() : base() /usr/lib/monodoc/sources/cs-errors.zip/CS0535 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0535 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0535 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,47 @@ CS0535 + // CS0535: `CC' does not implement interface member `IA.Coordinate.set' +// Line: 33 + +using System; + +public interface IA +{ + object Coordinate { + get; + set; + } +} + +public abstract class CA : IA +{ + public abstract object Coordinate { + get; + set; + } +} + +public partial class CB : CA +{ + public override object Coordinate { + get { + throw new NotImplementedException (); + } + set { + } + } +} + +public class CC : CB, IA +{ + public new object Coordinate { + get { + throw new NotImplementedException (); + } + } +} + // CS0535: `CA' does not implement interface member `IA.M()' // Line: 14 @@ -22,26 +63,6 @@ } } - // CS0535: `Stack' does not implement interface member `IStack.Insert(int, object)' -// Line: 11 - -using System; - -public interface IStack { - void Insert (int index, object value); - object this [int index] { set; } -} - -public class Stack : IStack { - object IStack.this [int index] { - set {} - } -} - -public class D { - static void Main () {} -} - // CS0535: `CC' does not implement interface member `IA.this[int].set' // Line: 33 @@ -83,6 +104,23 @@ } } + // CS0535: `ServerProperty' does not implement interface member `IServerProperty.SetValue(string, uint)' +// Line: 10 + +public interface IServerProperty +{ + int[] GetChildren (uint timeout); + void SetValue (string value, uint timeout); +} + +public class ServerProperty : IServerProperty +{ + public int[] GetChildren (uint timeout) + { + return null; + } +} + // CS0535: `Test' does not implement interface member `X.Hola(ref string)' // Line: 9 @@ -103,6 +141,26 @@ } + // CS0535: `Stack' does not implement interface member `IStack.Insert(int, object)' +// Line: 11 + +using System; + +public interface IStack { + void Insert (int index, object value); + object this [int index] { set; } +} + +public class Stack : IStack { + object IStack.this [int index] { + set {} + } +} + +public class D { + static void Main () {} +} + // CS0535: `B' does not implement interface member `ITest2.GetName(string)' // Line: 17 @@ -121,64 +179,6 @@ public class B : A, ITest2 { } - // CS0535: `CC' does not implement interface member `IA.Coordinate.set' -// Line: 33 - -using System; - -public interface IA -{ - object Coordinate { - get; - set; - } -} - -public abstract class CA : IA -{ - public abstract object Coordinate { - get; - set; - } -} - -public partial class CB : CA -{ - public override object Coordinate { - get { - throw new NotImplementedException (); - } - set { - } - } -} - -public class CC : CB, IA -{ - public new object Coordinate { - get { - throw new NotImplementedException (); - } - } -} - - // CS0535: `ServerProperty' does not implement interface member `IServerProperty.SetValue(string, uint)' -// Line: 10 - -public interface IServerProperty -{ - int[] GetChildren (uint timeout); - void SetValue (string value, uint timeout); -} - -public class ServerProperty : IServerProperty -{ - public int[] GetChildren (uint timeout) - { - return null; - } -} - // CS0535: `Class' does not implement interface member `Interface.Method()' // Line: 8 /usr/lib/monodoc/sources/cs-errors.zip/CS0540 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0540 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0540 2039-11-01 23:06:40.000000000 +0100 @@ -2,18 +2,6 @@ CS0540 - // CS0540: `B.A.B()': containing type does not implement interface `A' -// Line: - -interface A { -} - -class B { - void A.B () {} - - static void Main () {} -} - // CS0540: `N.Nested.C.I.P': containing type does not implement interface `N.Nested.I' // Line: 17 @@ -66,5 +54,17 @@ } } + // CS0540: `B.A.B()': containing type does not implement interface `A' +// Line: + +interface A { +} + +class B { + void A.B () {} + + static void Main () {} +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0542 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0542 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0542 2039-11-01 23:06:40.000000000 +0100 @@ -2,14 +2,10 @@ CS0542 - // CS0542: `C.C<T>()': member names cannot be the same as their enclosing type -// Line: 6 - -class C -{ - public static void C<T> () - { - } + // CS0542: `X.X': member names cannot be the same as their enclosing type +// Line: 4 +class X { + int X; } @@ -35,10 +31,14 @@ } - // CS0542: `X.X': member names cannot be the same as their enclosing type -// Line: 4 -class X { - int X; + // CS0542: `C.C<T>()': member names cannot be the same as their enclosing type +// Line: 6 + +class C +{ + public static void C<T> () + { + } } /usr/lib/monodoc/sources/cs-errors.zip/CS0545 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0545 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0545 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,18 @@ CS0545 + // CS0545: `DerivedClass.Value.get': cannot override because `BaseClass.Value' does not have an overridable get accessor +// Line: 9 + +abstract class BaseClass { + protected abstract int Value { set; } +} + +class DerivedClass: BaseClass { + protected override int Value { get {} set {} } +} + + // CS0545: `B.Prop': cannot override because `A.Prop' does not have accessible get accessor // Line: 13 @@ -18,17 +30,5 @@ set { } } } - // CS0545: `DerivedClass.Value.get': cannot override because `BaseClass.Value' does not have an overridable get accessor -// Line: 9 - -abstract class BaseClass { - protected abstract int Value { set; } -} - -class DerivedClass: BaseClass { - protected override int Value { get {} set {} } -} - - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0546 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0546 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0546 2039-11-01 23:06:40.000000000 +0100 @@ -2,18 +2,6 @@ CS0546 - // CS0546: `DerivedClass.Value.set': cannot override because `BaseClass.Value' does not have an overridable set accessor -// Line: 9 - -abstract class BaseClass { - protected abstract int Value { get; } -} - -class DerivedClass: BaseClass { - protected override int Value { get {} set {} } -} - - // CS0546: `B.Prop': cannot override because `A.Prop' does not have accessible set accessor // Line: 13 @@ -30,5 +18,17 @@ get { return ""; } } } + // CS0546: `DerivedClass.Value.set': cannot override because `BaseClass.Value' does not have an overridable set accessor +// Line: 9 + +abstract class BaseClass { + protected abstract int Value { get; } +} + +class DerivedClass: BaseClass { + protected override int Value { get {} set {} } +} + + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0547 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0547 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0547 2039-11-01 23:06:40.000000000 +0100 @@ -2,20 +2,20 @@ CS0547 - // CS0547: `PropertyInterface.Value': property or indexer cannot have void type + // CS0547: `PropertyClass.Value': property or indexer cannot have void type // Line: 5 -interface PropertyInterface { - void Value { get; } +class PropertyClass { + public void Value { get {} } } - - // CS0547: `PropertyClass.Value': property or indexer cannot have void type + // CS0547: `PropertyInterface.Value': property or indexer cannot have void type // Line: 5 -class PropertyClass { - public void Value { get {} } +interface PropertyInterface { + void Value { get; } } + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0548 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0548 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0548 2039-11-01 23:06:40.000000000 +0100 @@ -9,14 +9,6 @@ public int this [bool b] { } } - // CS0548: `PropertyClass.Value': property or indexer must have at least one accessor -// Line: 5 - -class PropertyClass { - public int Value { - } -} - // CS0548: `PropertyInterface.Value': property or indexer must have at least one accessor // Line: 5 @@ -25,6 +17,14 @@ } + // CS0548: `PropertyClass.Value': property or indexer must have at least one accessor +// Line: 5 + +class PropertyClass { + public int Value { + } +} + // CS0548: `PropertyInterface.this[long]': property or indexer must have at least one accessor // Line: 5 /usr/lib/monodoc/sources/cs-errors.zip/CS0551 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0551 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0551 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,23 @@ CS0551 + // CS0551: Explicit interface implementation `PropertyClass.PropertyInterface.Value' is missing accessor `PropertyInterface.Value.set' +// Line: 9 + +interface PropertyInterface { + int Value { get; set; } +} + +public class PropertyClass: PropertyInterface { + int PropertyInterface.Value { + get { + return 0; + } + } +} + + + // CS0551: Explicit interface implementation `PropertyClass.PropertyInterface.this[bool]' is missing accessor `PropertyInterface.this[bool].get' // Line: 11 @@ -20,22 +37,5 @@ } - // CS0551: Explicit interface implementation `PropertyClass.PropertyInterface.Value' is missing accessor `PropertyInterface.Value.set' -// Line: 9 - -interface PropertyInterface { - int Value { get; set; } -} - -public class PropertyClass: PropertyInterface { - int PropertyInterface.Value { - get { - return 0; - } - } -} - - - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0553 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0553 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0553 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,20 @@ CS0553 + // CS0553: User-defined conversion `DerivedClass.implicit operator BaseClass(DerivedClass)' cannot convert to or from a base class +// Line: 8 + +class BaseClass { +} + +class DerivedClass: BaseClass { + public static implicit operator BaseClass(DerivedClass value) { + return new BaseClass(); + } +} + + + // CS0553: User-defined conversion `plj.aClass.implicit operator plj.aClass(object)' cannot convert to or from a base class // Line: 10 @@ -18,19 +32,5 @@ } } - // CS0553: User-defined conversion `DerivedClass.implicit operator BaseClass(DerivedClass)' cannot convert to or from a base class -// Line: 8 - -class BaseClass { -} - -class DerivedClass: BaseClass { - public static implicit operator BaseClass(DerivedClass value) { - return new BaseClass(); - } -} - - - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0555 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0555 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0555 2039-11-01 23:06:40.000000000 +0100 @@ -3,17 +3,6 @@ CS0555 // 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 (); - } -} - - // CS0555: User-defined operator cannot take an object of the enclosing type and convert to an object of the enclosing type // Line : 8 class Blah { @@ -24,5 +13,16 @@ } + // 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 (); + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0564 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0564 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0564 2039-11-01 23:06:40.000000000 +0100 @@ -6,7 +6,7 @@ // Line: 5 class SampleClass { - public static int operator << (SampleClass value, SampleClass count) { + public static int operator << (object value, int count) { return 0; } } @@ -15,7 +15,7 @@ // Line: 5 class SampleClass { - public static int operator << (object value, int count) { + public static int operator << (SampleClass value, SampleClass count) { return 0; } } /usr/lib/monodoc/sources/cs-errors.zip/CS0568 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0568 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0568 2039-11-01 23:06:40.000000000 +0100 @@ -3,6 +3,15 @@ CS0568 // CS0568: Structs cannot contain explicit parameterless constructors +// Line: 6 + +struct S +{ + public S () + { + } +} + // CS0568: Structs cannot contain explicit parameterless constructors // Line: 5 struct Sample { @@ -12,14 +21,5 @@ } } - // CS0568: Structs cannot contain explicit parameterless constructors -// Line: 6 - -struct S -{ - public S () - { - } -} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0571 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0571 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0571 2039-11-01 23:06:40.000000000 +0100 @@ -17,6 +17,48 @@ } } + // CS0571: `IFoo.this[int].get': cannot explicitly call operator or accessor +// Line: 11 +// Compiler options: -r:CS0571-6-lib.dll + +using System; + +public class Test +{ + void TestMethod (IFoo i) + { + i.get_Jaj (1); + } +} + + // CS0571: `C.Prop.set': cannot explicitly call operator or accessor +// Line: 14 + +class C +{ + delegate void D (int i); + + static int Prop { + set {} + } + + public static void Main () + { + D d = set_Prop; + } +} + + // CS0571: `C2.this[int].set': cannot explicitly call operator or accessor +// Line: 8 +// Compiler options: -r:CS0571-5-lib.dll + +class MainClass { + public static void Main() { + C2 c = new C2 (); + c.set_Item(1, 2); + } +} + // CS0571: `MainClass.this[int, bool, string].get': cannot explicitly call operator or accessor // Line: 15 @@ -45,31 +87,6 @@ Console.WriteLine (type.get_Name()); } } - // CS0571: `IFoo.this[int].get': cannot explicitly call operator or accessor -// Line: 11 -// Compiler options: -r:CS0571-6-lib.dll - -using System; - -public class Test -{ - void TestMethod (IFoo i) - { - i.get_Jaj (1); - } -} - - // CS0571: `C2.this[int].set': cannot explicitly call operator or accessor -// Line: 8 -// Compiler options: -r:CS0571-5-lib.dll - -class MainClass { - public static void Main() { - C2 c = new C2 (); - c.set_Item(1, 2); - } -} - // CS0571: `Test.C0.foo.get': cannot explicitly call operator or accessor // Line: 12 // Compiler options: -r:CS0571-3-lib.dll @@ -86,22 +103,5 @@ } - // CS0571: `C.Prop.set': cannot explicitly call operator or accessor -// Line: 14 - -class C -{ - delegate void D (int i); - - static int Prop { - set {} - } - - public static void Main () - { - D d = set_Prop; - } -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0573 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0573 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0573 2039-11-01 23:06:40.000000000 +0100 @@ -3,15 +3,6 @@ CS0573 // CS0573: 'S': Structs cannot have instance property or field initializers -// Line: 8 - -using System; - -struct S -{ - event Action E = null; -} - // CS0573: 'S': Structs cannot have instance property or field initializers // Line: 6 struct S @@ -27,5 +18,14 @@ public int Prop { get; set; } = 3; } + // CS0573: 'S': Structs cannot have instance property or field initializers +// Line: 8 + +using System; + +struct S +{ + event Action E = null; +} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0577 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0577 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0577 2039-11-01 23:06:40.000000000 +0100 @@ -2,17 +2,14 @@ CS0577 - // CS0577: Conditional not valid on `MainClass.I.F()' because it is a constructor, destructor, operator or explicit interface implementation -// Line: 10 - -interface I -{ - void F (); -} + // CS0577: Conditional not valid on `MainClass.~MainClass()' because it is a constructor, destructor, operator or explicit interface implementation +// Line: 5 -class MainClass: I { +class MainClass { [System.Diagnostics.Conditional("DEBUG")] - void I.F () {} + ~MainClass () {} + + public static void Main () {} } // CS0577: Conditional not valid on `MainClass.implicit operator MainClass(C)' because it is a constructor, destructor, operator or explicit interface implementation @@ -31,14 +28,17 @@ } - // CS0577: Conditional not valid on `MainClass.~MainClass()' because it is a constructor, destructor, operator or explicit interface implementation -// Line: 5 + // CS0577: Conditional not valid on `MainClass.I.F()' because it is a constructor, destructor, operator or explicit interface implementation +// Line: 10 -class MainClass { - [System.Diagnostics.Conditional("DEBUG")] - ~MainClass () {} +interface I +{ + void F (); +} - public static void Main () {} +class MainClass: I { + [System.Diagnostics.Conditional("DEBUG")] + void I.F () {} } /usr/lib/monodoc/sources/cs-errors.zip/CS0579 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0579 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0579 2039-11-01 23:06:40.000000000 +0100 @@ -2,53 +2,6 @@ CS0579 - // CS0579: The attribute `System.Reflection.AssemblyKeyNameAttribute' cannot be applied multiple times -// Line : 7 -// Compiler options: CS0579-4-1.cs - -using System.Reflection; - -[assembly: AssemblyKeyName("")] - -public class Blah { - public static void Main () { } -} - - - // CS0579: The attribute `SimpleAttribute' cannot be applied multiple times -// Line : 18 - -using System; - -[AttributeUsage (AttributeTargets.All, AllowMultiple = false)] -public class SimpleAttribute : Attribute { - - public SimpleAttribute () - { - } - -} - -[Simple] -public partial class Blah { } - -[Simple] -public partial class Blah { } - - - // CS0579: The attribute `System.CLSCompliantAttribute' cannot be applied multiple times -// Line : 10 - -using System; - -[assembly:CLSCompliant(true)] - -namespace DuplicateAttributes { - [CLSCompliant(true)] - [CLSCompliant(true)] - public class ClassA {} -} - // CS0579: The attribute `System.ObsoleteAttribute' cannot be applied multiple times // Line: 12 @@ -65,45 +18,6 @@ } } - // CS0579: The attribute `System.ObsoleteAttribute' cannot be applied multiple times -// Line: 14 - - -using System; - -partial class C -{ - [Obsolete ("A")] - partial void PartialMethod () - { - } - - [Obsolete ("A")] - partial void PartialMethod (); -} - - // CS0579: The attribute `System.ObsoleteAttribute' cannot be applied multiple times -// Line : 17 - -using System; - -[AttributeUsage (AttributeTargets.ReturnValue)] -public class ReturnAttribute : Attribute -{ - public ReturnAttribute () - { - } -} - -class MainClass { - [Obsolete] - [return: Return] - [Obsolete] - static void Main() - { - } -} - // CS0579: The attribute `System.Diagnostics.DebuggableAttribute' cannot be applied multiple times // Line: 7 @@ -118,23 +32,32 @@ } } - // CS0579: The attribute `ReturnAttribute' cannot be applied multiple times -// Line : 17 + // CS0579: The attribute `System.ObsoleteAttribute' cannot be applied multiple times +// Line: 14 + using System; -using System.Reflection; -[AttributeUsage (AttributeTargets.ReturnValue)] -public class ReturnAttribute : Attribute +partial class C { - public ReturnAttribute () - { + [Obsolete ("A")] + partial void PartialMethod () + { } + + [Obsolete ("A")] + partial void PartialMethod (); } + + // CS0579: The attribute `System.Reflection.AssemblyKeyNameAttribute' cannot be applied multiple times +// Line : 7 +// Compiler options: CS0579-4-1.cs + +using System.Reflection; + +[assembly: AssemblyKeyName("")] public class Blah { - [return: Return ()] - [return: Return ()] public static void Main () { } } @@ -166,18 +89,42 @@ } } // CS0579: The attribute `System.ObsoleteAttribute' cannot be applied multiple times -// Line : 8 +// Line : 17 using System; +[AttributeUsage (AttributeTargets.ReturnValue)] +public class ReturnAttribute : Attribute +{ + public ReturnAttribute () + { + } +} + class MainClass { [Obsolete] + [return: Return] [Obsolete] static void Main() { } } + // CS0579: The attribute `System.Reflection.AssemblyKeyNameAttribute' cannot be applied multiple times +// Line : + +using System.Reflection; +using System.Runtime.CompilerServices; + + +[assembly: AssemblyKeyName("")] +[assembly: AssemblyKeyName("")] + +public class Blah { + + public static void Main () { } +} + // CS0579: The attribute `System.CLSCompliantAttribute' cannot be applied multiple times // Line : 10 @@ -191,6 +138,40 @@ public class ClassA {} } + // CS0579: The attribute `System.ObsoleteAttribute' cannot be applied multiple times +// Line : 8 + +using System; + +class MainClass { + [Obsolete] + [Obsolete] /usr/lib/monodoc/sources/cs-errors.zip/CS0590 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0590 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0590 2039-11-01 23:06:40.000000000 +0100 @@ -6,8 +6,8 @@ // Line: 5 class SampleClass { - public static void operator - (SampleClass value) { - return new SampleClass(); + public static void operator << (SampleClass value, int value2) { + return null; } } @@ -15,8 +15,8 @@ // Line: 5 class SampleClass { - public static void operator << (SampleClass value, int value2) { - return null; + public static void operator - (SampleClass value) { + return new SampleClass(); } } /usr/lib/monodoc/sources/cs-errors.zip/CS0591 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0591 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0591 2039-11-01 23:06:40.000000000 +0100 @@ -2,16 +2,34 @@ CS0591 - // CS0591: Invalid value for argument to `System.Runtime.InteropServices.GuidAttribute' attribute -// Line: 6 + // CS0591: Invalid value for argument to `System.Runtime.InteropServices.DllImportAttribute' attribute +// Line: 8 using System.Runtime.InteropServices; +using System; -[Guid ("aaa")] class X { -static void Main () {} + [DllImport ("")] + extern static void Blah (); + + static void Main (string [] args) + { + } + } + // CS0591: Invalid value for argument to `System.Runtime.CompilerServices.MethodImplAttribute' attribute +// Line: 8 + +using System.Runtime.CompilerServices; + +class Program +{ + [MethodImpl((MethodImplOptions)255)] + void Foo() + { + } +} // CS0591: Invalid value for argument to `System.Runtime.InteropServices.DllImportAttribute' attribute // Line: 8 @@ -28,6 +46,16 @@ } + // CS0591: Invalid value for argument to `System.Runtime.InteropServices.GuidAttribute' attribute +// Line: 6 + +using System.Runtime.InteropServices; + +[Guid ("aaa")] +class X { +static void Main () {} +} + // CS0591: Invalid value for argument to `System.AttributeUsageAttribute' attribute // Line: 4 @@ -51,33 +79,5 @@ { } } - // CS0591: Invalid value for argument to `System.Runtime.CompilerServices.MethodImplAttribute' attribute -// Line: 8 - -using System.Runtime.CompilerServices; - -class Program -{ - [MethodImpl((MethodImplOptions)255)] - void Foo() - { - } -} - // CS0591: Invalid value for argument to `System.Runtime.InteropServices.DllImportAttribute' attribute -// Line: 8 - -using System.Runtime.InteropServices; -using System; - -class X { - [DllImport ("")] - extern static void Blah (); - - static void Main (string [] args) - { - } - -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0592 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0592 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0592 2039-11-01 23:06:40.000000000 +0100 @@ -2,17 +2,17 @@ CS0592 - // CS0592: The attribute `System.Runtime.CompilerServices.IndexerNameAttribute' is not valid on this declaration type. It is valid on `property, indexer' declarations only -// Line : 6 + // CS0592: The attribute `TestAttribute' is not valid on this declaration type. It is valid on `constructor' declarations only +// Line: 6 -using System.Runtime.CompilerServices; +using System; -[IndexerName("XXX")] -class A { - public static void Main () { } - -} - +[TestAttribute ()] +delegate void D (); + +[AttributeUsage(AttributeTargets.Constructor)] +public class TestAttribute: Attribute { +} // CS0592: The attribute `SimpleAttribute' is not valid on this declaration type. It is valid on `constructor' declarations only // Line : 22 @@ -43,13 +43,39 @@ + // CS0592: The attribute `EnumAttribute' is not valid on this declaration type. It is valid on `method' declarations only +// Line: 13 + +using System; +using System.Reflection; + +[AttributeUsage(AttributeTargets.Method)] +public class EnumAttribute : Attribute {} + +public enum E +{ + e_1, + [EnumAttribute] + e_2 +} + + // CS0592: The attribute `TestAttribute' is not valid on this declaration type. It is valid on `constructor' declarations only +// Line: 5 + +using System; +[assembly:TestAttribute ()] + +[AttributeUsage(AttributeTargets.Constructor)] +public class TestAttribute: Attribute { +} // CS0592: The attribute `TestAttribute' is not valid on this declaration type. It is valid on `constructor' declarations only // Line: 6 using System; [TestAttribute ()] -delegate void D (); +enum E { +} [AttributeUsage(AttributeTargets.Constructor)] public class TestAttribute: Attribute { @@ -79,43 +105,31 @@ - // CS0592: The attribute `EnumAttribute' is not valid on this declaration type. It is valid on `method' declarations only -// Line: 13 - -using System; -using System.Reflection; + // CS0592: The attribute `System.Runtime.CompilerServices.IndexerNameAttribute' is not valid on this declaration type. It is valid on `property, indexer' declarations only +// Line : 6 -[AttributeUsage(AttributeTargets.Method)] -public class EnumAttribute : Attribute {} +using System.Runtime.CompilerServices; -public enum E -{ - e_1, - [EnumAttribute] - e_2 +[IndexerName("XXX")] +class A { + public static void Main () { } + } - // CS0592: The attribute `TestAttribute' is not valid on this declaration type. It is valid on `constructor' declarations only -// Line: 6 + // CS0592: The attribute `System.ObsoleteAttribute' is not valid on this declaration type. It is valid on `class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate' declarations only +// Line : 8 using System; -[TestAttribute ()] -enum E { +public class C +{ + [return: Obsolete] + public void Test (int a) + { + } + static public void Main () {} } - -[AttributeUsage(AttributeTargets.Constructor)] -public class TestAttribute: Attribute { -} - // CS0592: The attribute `TestAttribute' is not valid on this declaration type. It is valid on `constructor' declarations only -// Line: 5 - -using System; -[assembly:TestAttribute ()] - -[AttributeUsage(AttributeTargets.Constructor)] -public class TestAttribute: Attribute { -} + // CS0592: The attribute `SAttribute' is not valid on this declaration type. It is valid on `return' declarations only // Line : 12 @@ -133,19 +147,5 @@ } } - // CS0592: The attribute `System.ObsoleteAttribute' is not valid on this declaration type. It is valid on `class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate' declarations only -// Line : 8 - -using System; - -public class C -{ - [return: Obsolete] - public void Test (int a) - { - } - static public void Main () {} -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0594 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0594 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0594 2039-11-01 23:06:40.000000000 +0100 @@ -11,12 +11,12 @@ } } - // CS0594: Floating-point constant is outside the range of type `double' + // CS0594: Floating-point constant is outside the range of type `float' // Line: 6 class X { public static void Main() { - double dbl = 1.0e99999; + float f = 1.0e999999f; } } @@ -25,16 +25,16 @@ class X { public static void Main() { - float f = 1.0e999999f; + float b = 11111111111111111111111111111111111122222222222222222f; } } - // CS0594: Floating-point constant is outside the range of type `float' + // CS0594: Floating-point constant is outside the range of type `double' // Line: 6 class X { public static void Main() { - float b = 11111111111111111111111111111111111122222222222222222f; + double dbl = 1.0e99999; } } /usr/lib/monodoc/sources/cs-errors.zip/CS0596 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0596 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0596 2039-11-01 23:06:40.000000000 +0100 @@ -6,14 +6,14 @@ // Line: 4 [System.Runtime.InteropServices.ComImportAttribute] -class C +interface I { } // CS0596: The Guid attribute must be specified with the ComImport attribute // Line: 4 [System.Runtime.InteropServices.ComImportAttribute] -interface I +class C { } /usr/lib/monodoc/sources/cs-errors.zip/CS0610 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0610 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0610 2039-11-01 23:06:40.000000000 +0100 @@ -16,6 +16,13 @@ // Line: 5 public class Sample { + const System.TypedReference arg = null; +} + + // CS0610: Field or property cannot be of type `System.TypedReference' +// Line: 5 + +public class Sample { System.TypedReference reference { get { return null; @@ -26,12 +33,5 @@ - // CS0610: Field or property cannot be of type `System.TypedReference' -// Line: 5 - -public class Sample { - const System.TypedReference arg = null; -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0611 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0611 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0611 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,21 @@ CS0611 + // CS0611: Array elements cannot be of type `S' +// Line: 13 +// Compiler options: -langversion:latest + +public ref struct S +{ +} + +class Test +{ + public static void Main () + { + var x = new S[0]; + } +} // CS0611: Array elements cannot be of type `System.TypedReference' // Line: 5 @@ -29,20 +44,5 @@ - // CS0611: Array elements cannot be of type `S' -// Line: 13 -// Compiler options: -langversion:latest - -public ref struct S -{ -} - -class Test -{ - public static void Main () - { - var x = new S[0]; - } -} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0612 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0612 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0612 2039-11-01 23:06:40.000000000 +0100 @@ -2,60 +2,6 @@ CS0612 - // 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> () - { - } -} - - // CS0612: `Foo.Bar' is obsolete -// Line: 8 -// Compiler options: -r:CS0612-2-lib.dll -warnaserror - -public class Bar { - public static int Main () - { - Foo foo = new Foo (); - return foo.Bar; - } -} - - // CS0612: `A.Value' is obsolete -// Line: 13 -// Compiler options: -warnaserror - -class A { - [System.Obsolete ("")] - int Value { - set { - } - } - - public A () { - Value = 4; - } -} // CS0612: `A.Value' is obsolete // Line: 13 // Compiler options: -warnaserror @@ -123,5 +69,59 @@ } } + // CS0612: `A.Value' is obsolete +// Line: 13 +// Compiler options: -warnaserror + +class A { + [System.Obsolete ("")] + int Value { + set { + } + } + + public A () { + Value = 4; + } +} + // 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> () + { + } +} + + // CS0612: `Foo.Bar' is obsolete +// Line: 8 +// Compiler options: -r:CS0612-2-lib.dll -warnaserror + +public class Bar { + public static int Main () + { + Foo foo = new Foo (); + return foo.Bar; + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0617 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0617 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0617 2039-11-01 23:06:40.000000000 +0100 @@ -9,7 +9,7 @@ public sealed class FooAttribute : Attribute { - public static int Foo; + internal int Foo; } [Foo (Foo = 1)] @@ -17,30 +17,34 @@ { } - // CS0617: `MyNamedArg' is not a valid named attribute argument. Named attribute arguments must be fields which are not readonly, static, const or read-write properties which are public and not static -// Line : 19 + // CS0617: `Foo' is not a valid named attribute argument. Named attribute arguments must be fields which are not readonly, static, const or read-write properties which are public and not static +// Line: 11 using System; -[AttributeUsage (AttributeTargets.Class, AllowMultiple = true)] -public class SimpleAttribute : Attribute +public sealed class FooAttribute : Attribute { - string name; - - public readonly string MyNamedArg; + public short Foo { get; private set; } +} - public SimpleAttribute (string name) - { - this.name = name; - } +[Foo (Foo = 1)] +public class Tests +{ } + + // CS0617: `Foo' is not a valid named attribute argument. Named attribute arguments must be fields which are not readonly, static, const or read-write properties which are public and not static +// Line: 11 -[Simple ("Dummy", MyNamedArg = "Dude!")] -public class Blah { +using System; - public static void Main () - { - } +public sealed class FooAttribute : Attribute +{ + public static int Foo; +} + +[Foo (Foo = 1)] +public class Tests +{ } // CS0617: `foo3' is not a valid named attribute argument. Named attribute arguments must be fields which are not readonly, static, const or read-write properties which are public and not static @@ -56,34 +60,30 @@ [Baz (foo3 = 3)] void f3() {} } - // CS0617: `Foo' is not a valid named attribute argument. Named attribute arguments must be fields which are not readonly, static, const or read-write properties which are public and not static -// Line: 11 + // CS0617: `MyNamedArg' is not a valid named attribute argument. Named attribute arguments must be fields which are not readonly, static, const or read-write properties which are public and not static +// Line : 19 using System; -public sealed class FooAttribute : Attribute -{ - internal int Foo; -} - -[Foo (Foo = 1)] -public class Tests +[AttributeUsage (AttributeTargets.Class, AllowMultiple = true)] +public class SimpleAttribute : Attribute { -} - - // CS0617: `Foo' is not a valid named attribute argument. Named attribute arguments must be fields which are not readonly, static, const or read-write properties which are public and not static -// Line: 11 + string name; -using System; + public readonly string MyNamedArg; -public sealed class FooAttribute : Attribute -{ - public short Foo { get; private set; } + public SimpleAttribute (string name) + { + this.name = name; + } } -[Foo (Foo = 1)] -public class Tests -{ +[Simple ("Dummy", MyNamedArg = "Dude!")] +public class Blah { + + public static void Main () + { + } } /usr/lib/monodoc/sources/cs-errors.zip/CS0618 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0618 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0618 2039-11-01 23:06:40.000000000 +0100 @@ -2,18 +2,6 @@ CS0618 - // CS0618: `ObsoleteDispose' is obsolete: `Class is obsolete' -// Line: 9 -// Compiler options: -reference:CS0618-2-lib.dll -warnaserror - -class AA -{ - public AA () - { - using (ObsoleteDispose od = ObsoleteDispose.Factory) { - } - } -} // CS0618: `Name.Feat.Feat(string, string, int, params object[])' is obsolete: `AaA' // Line: 22 // Compiler options: -warnaserror @@ -45,5 +33,17 @@ #endregion } } + // CS0618: `ObsoleteDispose' is obsolete: `Class is obsolete' +// Line: 9 +// Compiler options: -reference:CS0618-2-lib.dll -warnaserror + +class AA +{ + public AA () + { + using (ObsoleteDispose od = ObsoleteDispose.Factory) { + } + } +} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0619 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0619 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0619 2039-11-01 23:06:40.000000000 +0100 @@ -2,113 +2,139 @@ CS0619 - // CS0619: `I' is obsolete: `Do not use it' -// Line: 12 + // CS0619: `Obsolete' is obsolete: `' +// Line: 19 +// Compiler options: -unsafe -using System; +class Box { + public Helper o; +} -[Obsolete("Do not use it", true)] -interface I { +[System.Obsolete("", true)] +unsafe struct Obsolete { } -class B { - I i; +unsafe struct Helper {} + +class MainClass { + unsafe public static void Main () + { + Box b = new Box (); + fixed (Obsolete* p = &b.o) + { + } + } } - // CS0619: `Program.TestEventArgs' is obsolete: `FooBar' -// Line: 10 + // CS0619: `I' is obsolete: `' +// Line: 13 using System; -namespace Program +[Obsolete("", true)] +interface I { - public class TestClass - { - public EventHandler<TestEventArgs> Foo; - } - - [Obsolete(Messages.Test, true)] - public sealed class TestEventArgs : EventArgs - { - } } -namespace Program +class A { - public static class Messages - { - public const string Test = "FooBar"; - } -} - // CS0619-33: `Error.Report(string)' is obsolete: `Obsolete method' -// Line: 11 -// Compiler options: -reference:CS0619-33-lib.dll + int this [I index] { + get { + return 15; + } + } +} + + // CS0619: `Test.Test()' is obsolete: `Causes an error' +// Line: 9 using System; - -class MainClass { - public static void Main () - { - Error e = new Error (); - e.Report ("text"); - } +public class Test +{ + [Obsolete ("Causes an error", true)] + public Test () {} + public Test (bool flag) : this () {} } - // CS0619: `O' is obsolete: `' + // CS0619: `Obsolete.MethodError()' is obsolete: `Do not use it.' // Line: 12 -[System.Obsolete("", true)] -class O -{ +class Obsolete { + [System.Obsolete("Do not use it.", true)] + public static void MethodError() { + } } class MainClass { - public void Method () - { - lock (new O ()) { - } + public static void Main () { + Obsolete.MethodError(); } } - // CS0619: `ObsoleteA.ObsoleteA()' is obsolete: `Obsolete struct' -// Line: 7 -// Compiler options: -reference:CS0619-17-lib.dll + // CS0619: `C.explicit operator byte(C)' is obsolete: `gg' +// Line: 17 -public class B: ObsoleteA +using System; + +class C { - public B (): base () {} + [Obsolete ("gg", true)] + public static explicit operator byte (C x) + { + return 1; + } + + static void Main () + { + C x = null; + var y = (int) x; + } } - // CS0619: `A' is obsolete: `' -// Line: 13 + // CS0619: `A' is obsolete: `msg' +// Line: 21 -[System.Obsolete ("", true)] +using System; + +[Obsolete ("msg", true)] class A { + public class M + { + public static void Foo () + { + } + } } -class AA +class C { - public AA () - { - for (A aa = null; aa != null;) { - System.Console.WriteLine (aa); - } - } + public static void Main () + { + A.M.Foo (); + } } - // CS0619-29: `Obsolete.Error' is obsolete: `Do not use it.' -// Line: 15 + // CS0619: `Program.TestEventArgs' is obsolete: `FooBar' +// Line: 10 -class Obsolete { - [System.Obsolete("Do not use it.", true)] - public static bool Error { - get { - return false; - } - } +using System; + +namespace Program +{ + public class TestClass + { + public EventHandler<TestEventArgs> Foo; + } + + [Obsolete(Messages.Test, true)] + public sealed class TestEventArgs : EventArgs + { + } } /usr/lib/monodoc/sources/cs-errors.zip/CS0620 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0620 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0620 2039-11-01 23:06:40.000000000 +0100 @@ -2,13 +2,6 @@ CS0620 - // CS0620: `Indexer.this[int]': indexer return type cannot be `void' -// Line: 5 - -interface Indexer { - void this [int i] { set; } -} - // CS0620: `PropertyClass.this[int]': indexer return type cannot be `void' // Line: 5 @@ -18,5 +11,12 @@ } } + // CS0620: `Indexer.this[int]': indexer return type cannot be `void' +// Line: 5 + +interface Indexer { + void this [int i] { set; } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0625 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0625 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0625 2039-11-01 23:06:40.000000000 +0100 @@ -2,16 +2,17 @@ CS0625 - // CS0625: `CS0625.GValue.foo': Instance field types marked with StructLayout(LayoutKind.Explicit) must have a FieldOffset attribute -// Line: 10 + // CS0625: `CS0625.GValue.name': Instance field types marked with StructLayout(LayoutKind.Explicit) must have a FieldOffset attribute +// Line: 11 using System; using System.Runtime.InteropServices; namespace CS0625 { [StructLayout(LayoutKind.Explicit)] - partial class GValue { - public int foo; + struct GValue { + public string name; + [ FieldOffset (4) ] public int value; } class Tests { @@ -20,17 +21,20 @@ } } - // CS0625: `CS0625.GValue.name': Instance field types marked with StructLayout(LayoutKind.Explicit) must have a FieldOffset attribute -// Line: 11 + // CS0625: `CS0625.GValue.value': Instance field types marked with StructLayout(LayoutKind.Explicit) must have a FieldOffset attribute +// Line: 10 using System; using System.Runtime.InteropServices; namespace CS0625 { - [StructLayout(LayoutKind.Explicit)] - struct GValue { - public string name; - [ FieldOffset (4) ] public int value; + [StructLayout (LayoutKind.Explicit)] + partial struct GValue + { + } + + partial struct GValue { + public int value; } class Tests { @@ -47,7 +51,7 @@ namespace CS0625 { [StructLayout(LayoutKind.Explicit)] - class GValue { + partial class GValue { public int foo; } @@ -57,20 +61,16 @@ } } - // CS0625: `CS0625.GValue.value': Instance field types marked with StructLayout(LayoutKind.Explicit) must have a FieldOffset attribute + // CS0625: `CS0625.GValue.foo': Instance field types marked with StructLayout(LayoutKind.Explicit) must have a FieldOffset attribute // Line: 10 using System; using System.Runtime.InteropServices; namespace CS0625 { - [StructLayout (LayoutKind.Explicit)] - partial struct GValue - { - } - - partial struct GValue { - public int value; + [StructLayout(LayoutKind.Explicit)] + class GValue { + public int foo; } class Tests { /usr/lib/monodoc/sources/cs-errors.zip/CS0626 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0626 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0626 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,15 @@ CS0626 + // CS0626: `A.~A()' is marked as an external but has no DllImport attribute. Consider adding a DllImport attribute to specify the external implementation +// Line: 7 +// Compiler options: -warnaserror + +public sealed class A +{ + extern ~A (); +} + // CS0626: `ExternClass.ExternMethod()' is marked as an external but has no DllImport attribute. Consider adding a DllImport attribute to specify the external implementation // Line: 6 // Compiler options: -warnaserror -warn:1 @@ -23,6 +32,15 @@ } + // CS0626: `ExternClass.ExternMethod()' is marked as an external but has no DllImport attribute. Consider adding a DllImport attribute to specify the external implementation +// Line: 6 +// Compiler options: -warnaserror -warn:1 + +class ExternClass { + [System.Obsolete] + public static extern void ExternMethod(); +} + // CS0626: `C.this[int]' is marked as an external but has no DllImport attribute. Consider adding a DllImport attribute to specify the external implementation // Line: 7 // Compiler options: -warnaserror -warn:1 @@ -34,15 +52,6 @@ get; } } - // CS0626: `ExternClass.ExternMethod()' is marked as an external but has no DllImport attribute. Consider adding a DllImport attribute to specify the external implementation -// Line: 6 -// Compiler options: -warnaserror -warn:1 - -class ExternClass { - [System.Obsolete] - public static extern void ExternMethod(); -} - // CS0626: `ExternClass.implicit operator ExternClass(byte)' is marked as an external but has no DllImport attribute. Consider adding a DllImport attribute to specify the external implementation // Line: 6 // Compiler options: -warnaserror -warn:1 @@ -51,15 +60,6 @@ static public extern implicit operator ExternClass(byte value); } - // CS0626: `A.~A()' is marked as an external but has no DllImport attribute. Consider adding a DllImport attribute to specify the external implementation -// Line: 7 -// Compiler options: -warnaserror - -public sealed class A -{ - extern ~A (); -} - // CS0626: `ExternClass.ExternMethod' is marked as an external but has no DllImport attribute. Consider adding a DllImport attribute to specify the external implementation // Line: 6 // Compiler options: -warnaserror -warn:1 /usr/lib/monodoc/sources/cs-errors.zip/CS0628 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0628 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0628 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,22 @@ CS0628 + // CS0628: `D.D()': new protected member declared in sealed class +// Line: 6 +// Compiler options: -warnaserror -warn:4 + +sealed class D { + protected D () {} +} + + // CS0628: `D.a': new protected member declared in sealed class +// Line: 6 +// Compiler options: -warnaserror -warn:4 + +sealed class D { + protected int a; +} + // CS0628: `Test.print_argv(string[])': new protected member declared in sealed class // Line: 8 // Compiler options: -warn:4 -warnaserror @@ -20,21 +36,5 @@ static void Main () { } } - // CS0628: `D.a': new protected member declared in sealed class -// Line: 6 -// Compiler options: -warnaserror -warn:4 - -sealed class D { - protected int a; -} - - // CS0628: `D.D()': new protected member declared in sealed class -// Line: 6 -// Compiler options: -warnaserror -warn:4 - -sealed class D { - protected D () {} -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0631 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0631 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0631 2039-11-01 23:06:40.000000000 +0100 @@ -6,24 +6,24 @@ // Line: 5 class X { - public static X operator < (ref X a, int b) - { - return null; - } + public int this [ref int arg] { set {} } } // CS0631: The parameter modifier `ref' is not valid in this context // Line: 5 class X { - public int this [ref int arg] { set {} } + public static explicit operator X (ref X[] foo) + { + return null; + } } // CS0631: The parameter modifier `ref' is not valid in this context // Line: 5 class X { - public static explicit operator X (ref X[] foo) + public static X operator < (ref X a, int b) { return null; } /usr/lib/monodoc/sources/cs-errors.zip/CS0633 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0633 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0633 2039-11-01 23:06:40.000000000 +0100 @@ -2,24 +2,41 @@ CS0633 + // CS0633: The argument to the `System.Diagnostics.ConditionalAttribute' attribute must be a valid identifier +// Line: 8 + +using System; +using System.Diagnostics; + +class TestClass { + [Conditional ("UNDEFINED CONDITION")] + static void ConditionalMethod () + { + } +} + + + // CS0633: The argument to the `System.Runtime.CompilerServices.IndexerNameAttribute' attribute must be a valid identifier -// Line: 5 +// Line: 8 -public class MonthDays { - [System.Runtime.CompilerServices.IndexerName ("")] - public int this [int a] { - get { - return 0; - } - } +using System.Runtime.CompilerServices; - public static void Main () - { - int i = new MonthDays () [1]; - } +public class C +{ + [IndexerName ("class")] + public string this [int i] { + set { } + } } + + // CS0633: 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 {} // CS0633: The argument to the `System.Runtime.CompilerServices.IndexerNameAttribute' attribute must be a valid identifier // Line: 5 @@ -53,41 +70,24 @@ } } - // CS0633: 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 {} - - // CS0633: The argument to the `System.Diagnostics.ConditionalAttribute' attribute must be a valid identifier -// Line: 8 + // CS0633: The argument to the `System.Runtime.CompilerServices.IndexerNameAttribute' attribute must be a valid identifier +// Line: 5 -using System; -using System.Diagnostics; +public class MonthDays { + [System.Runtime.CompilerServices.IndexerName ("")] + public int this [int a] { + get { + return 0; + } + } -class TestClass { - [Conditional ("UNDEFINED CONDITION")] - static void ConditionalMethod () - { - } + public static void Main () + { + int i = new MonthDays () [1]; + } } - // CS0633: The argument to the `System.Runtime.CompilerServices.IndexerNameAttribute' attribute must be a valid identifier -// Line: 8 - -using System.Runtime.CompilerServices; - -public class C -{ - [IndexerName ("class")] - public string this [int i] { - set { } - } -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0642 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0642 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0642 2039-11-01 23:06:40.000000000 +0100 @@ -3,15 +3,36 @@ CS0642 // CS0642: Possible mistaken empty statement -// Line: 7 +// Line: 9 // Compiler options: -warnaserror -warn:3 -class X{ - static void Main () +public class C +{ + public void Test (System.IDisposable arg) + { + using (arg); + { } + } +} + + + // CS0642: Possible mistaken empty statement +// Line: 13 +// Compiler options: /warnaserror /warn:3 +using System; +public class C +{ + public static int p = 0; + public static void Foo () { - if (true); + if (p < 5) + Console.WriteLine (); + else + ; + Console.WriteLine (); } } + // CS0642: Possible mistaken empty statement // Line: 9 @@ -19,9 +40,9 @@ public class C { - public void Test (System.Collections.IEnumerable e) + public void Test () { - foreach (object o in e); + lock (this); { } } } @@ -35,14 +56,15 @@ { public static void Main () { - for (;;); + int i= 5; + while (i++ < 100); { } } } // CS0642: Possible mistaken empty statement -// Line: 13 +// Line: 11 // Compiler options: /warnaserror /warn:3 using System; public class C @@ -51,28 +73,41 @@ public static void Foo () { if (p < 5) - Console.WriteLine (); - else ; - Console.WriteLine (); + else + Console.WriteLine (); } } // CS0642: Possible mistaken empty statement -// Line: 9 +// Line: 7 // Compiler options: -warnaserror -warn:3 -public class C -{ - public void Test () +class X{ + static void Main () { - using (System.IDisposable arg = null); - { } + if (true); } } // CS0642: Possible mistaken empty statement +// Line: 9 +// Compiler options: -warnaserror -warn:3 -unsafe -nowarn:0219 + +public class C +{ + public unsafe void Test () + { + fixed (char *p = str); + { } + } + + static readonly char [] str = new char [] {'A'}; +} + + + // CS0642: Possible mistaken empty statement // Line: 11 // Compiler options: /warnaserror /warn:3 using System; @@ -95,27 +130,12 @@ public class C { - public void Test (System.IDisposable arg) - { - using (arg); - { } - } -} - - - // CS0642: Possible mistaken empty statement -// Line: 9 -// Compiler options: -warnaserror -warn:3 - -public class C -{ - public void Test () - { - lock (this); - { } - } + public void Test () + { + using (System.IDisposable arg = null); + { } + } } - // CS0642: Possible mistaken empty statement // Line: 10 @@ -125,43 +145,23 @@ { public static void Main () { - int i= 5; - while (i++ < 100); + for (;;); { } } } // CS0642: Possible mistaken empty statement -// Line: 11 -// Compiler options: /warnaserror /warn:3 -using System; -public class C -{ - public static int p = 0; - public static void Foo () - { - if (p < 5) - ; - else - Console.WriteLine (); - } -} - - - // CS0642: Possible mistaken empty statement // Line: 9 -// Compiler options: -warnaserror -warn:3 -unsafe -nowarn:0219 +// Compiler options: -warnaserror -warn:3 public class C { - public unsafe void Test () + public void Test (System.Collections.IEnumerable e) { - fixed (char *p = str); + foreach (object o in e); { } } /usr/lib/monodoc/sources/cs-errors.zip/CS0649 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0649 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0649 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,20 @@ CS0649 + // CS0649: Field `C.s' is never assigned to, and will always have its default value `null' +// Line: 7 +// Compiler options: -warnaserror -warn:4 + +class C +{ + int? s; + + void Test () + { + System.Console.WriteLine (s == null); + } +} + // CS0649: Field `X.x' is never assigned to, and will always have its default value `0' // Line: 4 // Compiler options: -warnaserror -warn:4 @@ -37,20 +51,6 @@ } } - // CS0649: Field `C.s' is never assigned to, and will always have its default value `null' -// Line: 7 -// Compiler options: -warnaserror -warn:4 - -class C -{ - int? s; - - void Test () - { - System.Console.WriteLine (s == null); - } -} - // CS0649: Field `X.e' is never assigned to, and will always have its default value `0' // Line: 10 // Compiler options: -warnaserror -warn:4 /usr/lib/monodoc/sources/cs-errors.zip/CS0652 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0652 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0652 2039-11-01 23:06:40.000000000 +0100 @@ -2,19 +2,36 @@ CS0652 - // CS0652: A comparison between a constant and a variable is useless. The constant is out of the range of the variable type `char' -// Line: 12 -// Compiler options: /warn:2 /warnaserror + // CS0652: A comparison between a constant and a variable is useless. The constant is out of the range of the variable type `byte' +// Line: 9 +// Compiler options: -warnaserror -warn:2 +class X +{ + void b () + { + byte b = 0; + if (b == 500) + return; + } + + static void Main () {} +} + + // CS0652: A comparison between a constant and a variable is useless. The constant is out of the range of the variable type `ushort' +// Line: 11 +// Compiler options: /warn:2 /warnaserror using System; public class CS0652 { public static void Main () { - char value = 'a'; - if (value < SByte.MinValue) - return; + ushort us = 0; + if (us == -1) + Console.WriteLine (":("); + else + Console.WriteLine (":)"); } } @@ -37,7 +54,7 @@ } - // CS0652: A comparison between a constant and a variable is useless. The constant is out of the range of the variable type `byte' + // CS0652: A comparison between a constant and a variable is useless. The constant is out of the range of the variable type `char' // Line: 12 // Compiler options: /warn:2 /warnaserror @@ -47,31 +64,13 @@ public static void Main () { - byte b = 0; - if (b == -1) - Console.WriteLine (":("); - else - Console.WriteLine (":)"); + char value = 'a'; + if (value > ulong.MaxValue) + return; } } - // CS0652: A comparison between a constant and a variable is useless. The constant is out of the range of the variable type `byte' -// Line: 9 -// Compiler options: -warnaserror -warn:2 - -class X -{ - void b () - { - byte b = 0; - if (b == 500) - return; - } - - static void Main () {} -} - // CS0652: A comparison between a constant and a variable is useless. The constant is out of the range of the variable type `short' // Line: 12 // Compiler options: /warn:2 /warnaserror @@ -100,23 +99,24 @@ public static void Main () { char value = 'a'; - if (value > ulong.MaxValue) + if (value < SByte.MinValue) return; } } - // CS0652: A comparison between a constant and a variable is useless. The constant is out of the range of the variable type `ushort' -// Line: 11 + // CS0652: A comparison between a constant and a variable is useless. The constant is out of the range of the variable type `byte' +// Line: 12 // Compiler options: /warn:2 /warnaserror + using System; public class CS0652 { public static void Main () { - ushort us = 0; - if (us == -1) + byte b = 0; + if (b == -1) Console.WriteLine (":("); else Console.WriteLine (":)"); /usr/lib/monodoc/sources/cs-errors.zip/CS0655 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0655 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0655 2039-11-01 23:06:40.000000000 +0100 @@ -23,7 +23,7 @@ class TestAttribute : Attribute { - public int[][] a; + public int[,] a; } [Test (a = null)] @@ -37,7 +37,7 @@ class TestAttribute : Attribute { - public int[,] a; + public int[][] a; } [Test (a = null)] /usr/lib/monodoc/sources/cs-errors.zip/CS0656 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0656 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0656 2039-11-01 23:06:40.000000000 +0100 @@ -24,6 +24,18 @@ event D ev; } + // CS0656: The compiler required member `decimal..ctor(int)' could not be found or is inaccessible +// Line: 9 +// Compiler options: -nostdlib CS0656-corlib.cs + +class C +{ + static void Main () + { + decimal d = 12M; + } +} + // CS0656: The compiler required member `System.Runtime.CompilerServices.RuntimeHelpers.InitializeArray(System.Array, System.RuntimeFieldHandle)' could not be found or is inaccessible // Line: 16 // Compiler options: -nostdlib CS0656-corlib.cs @@ -42,17 +54,5 @@ int[] ff = new int[] { 1, 3, 4, 5, 6, 7, 8, 10, 22, 22, 233, 44, 55, 66 }; } - // CS0656: The compiler required member `decimal..ctor(int)' could not be found or is inaccessible -// Line: 9 -// Compiler options: -nostdlib CS0656-corlib.cs - -class C -{ - static void Main () - { - decimal d = 12M; - } -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0657 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0657 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0657 2039-11-01 23:06:40.000000000 +0100 @@ -2,26 +2,16 @@ CS0657 - // CS0657: `event' is not a valid attribute location for this declaration. Valid attribute locations for this declaration are `method, param, return'. All attributes in this section will be ignored -// Line: 15 + // CS0657: `return' is not a valid attribute location for this declaration. Valid attribute locations for this declaration are `assembly, module'. All attributes in this section will be ignored +// Line: 7 // Compiler options: -warnaserror using System; -[AttributeUsage(AttributeTargets.All)] -public class TestAttribute: Attribute -{ -} +[return: CLSCompliant (false)] -class C -{ - event ResolveEventHandler field { - [event: Test] - add {} - remove {} - - } -} +public enum E {} + // CS0657: `type' is not a valid attribute location for this declaration. Valid attribute locations for this declaration are `property'. All attributes in this section will be ignored // Line: 14 // Compiler options: -warnaserror @@ -41,39 +31,42 @@ } } } - // CS0657: `param' is not a valid attribute location for this declaration. Valid attribute locations for this declaration are `field'. All attributes in this section will be ignored + // CS0657: `param' is not a valid attribute location for this declaration. Valid attribute locations for this declaration are `assembly, module'. All attributes in this section will be ignored // Line: 7 // Compiler options: -warnaserror -struct S +using System; + +[param: CLSCompliant (false)] +public enum E { - [param: Obsolete] - int field; -} - // CS0657: `return' is not a valid attribute location for this declaration. Valid attribute locations for this declaration are `method'. All attributes in this section will be ignored + item +} + + // CS0657: `param' is not a valid attribute location for this declaration. Valid attribute locations for this declaration are `event, field, method'. All attributes in this section will be ignored // Line: 9 // Compiler options: -warnaserror using System; -public class C +struct S { - [return: CLSCompliant (false)] - public C () - { - } -} - - // CS0657: `method' is not a valid attribute location for this declaration. Valid attribute locations for this declaration are `assembly, module'. All attributes in this section will be ignored -// Line: 5 + [param: Obsolete] + event ResolveEventHandler field; +} + // CS0657: `assembly' is not a valid attribute location for this declaration. Valid attribute locations for this declaration are `type'. All attributes in this section will be ignored +// Line: 10 // Compiler options: -warnaserror -[method: Obsolete] -public interface I -{ -} +using System; + +[assembly: CLSCompliant (false)] +public class C {} + +[assembly: CLSCompliant (false)] +public class D {} - // CS0657: `param' is not a valid attribute location for this declaration. Valid attribute locations for this declaration are `event, field, method'. All attributes in this section will be ignored + // CS0657: `param' is not a valid attribute location for this declaration. Valid attribute locations for this declaration are `method, return'. All attributes in this section will be ignored // Line: 9 // Compiler options: -warnaserror @@ -82,8 +75,19 @@ struct S { [param: Obsolete] - event ResolveEventHandler field; + void method () {} } + // CS0657: `field' is not a valid attribute location for this declaration. Valid attribute locations for this declaration are `event, method'. All attributes in this section will be ignored +// Line: 8 +// Compiler options: -warnaserror + +using System; + +interface X { + [field:NonSerialized] + event EventHandler XEvent; +} + // CS0657: `property' is not a valid attribute location for this declaration. Valid attribute locations for this declaration are `event'. All attributes in this section will be ignored // Line: 9 // Compiler options: -warnaserror @@ -111,38 +115,48 @@ { } - // CS0657: `assembly' is not a valid attribute location for this declaration. Valid attribute locations for this declaration are `type'. All attributes in this section will be ignored -// Line: 10 + // CS0657: `type' is not a valid attribute location for this declaration. Valid attribute locations for this declaration are `param'. All attributes in this section will be ignored +// Line: 15 // Compiler options: -warnaserror using System; -[assembly: CLSCompliant (false)] -public class C {} - -[assembly: CLSCompliant (false)] -public class D {} - - // CS0657: `field' is not a valid attribute location for this declaration. Valid attribute locations for this declaration are `event, method'. All attributes in this section will be ignored -// Line: 8 +[AttributeUsage(AttributeTargets.All)] +public class TestAttribute: Attribute +{ +} + +struct S +{ + void method ( + [type: Test] + int p) {} +} + // CS0657: `type' is not a valid attribute location for this declaration. Valid attribute locations for this declaration are `method, param, return'. All attributes in this section will be ignored +// Line: 15 // Compiler options: -warnaserror using System; -interface X { - [field:NonSerialized] - event EventHandler XEvent; +[AttributeUsage(AttributeTargets.All)] +public class TestAttribute: Attribute +{ } - - // CS0657: `return' is not a valid attribute location for this declaration. Valid attribute locations for this declaration are `assembly, module'. All attributes in this section will be ignored -// Line: 7 -// Compiler options: -warnaserror -using System; - -[return: CLSCompliant (false)] +class C +{ + int Prop { + [type:Test] + set { + } + } +} + // CS0657: `method' is not a valid attribute location for this declaration. Valid attribute locations for this declaration are `assembly, module'. All attributes in this section will be ignored +// Line: 5 +// Compiler options: -warnaserror -public enum E {} +[method: Obsolete] +delegate void Delegate (); // CS0657: `field' is not a valid attribute location for this declaration. Valid attribute locations for this declaration are `event, method'. All attributes in this section will be ignored // Line: 9 @@ -156,49 +170,27 @@ public abstract event EventHandler XEvent; } - // CS0657: `assembly' is not a valid attribute location for this declaration. Valid attribute locations for this declaration are `field'. All attributes in this section will be ignored -// Line: 9 -// Compiler options: -warnaserror - -using System; - -public enum E -{ /usr/lib/monodoc/sources/cs-errors.zip/CS0658 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0658 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0658 2039-11-01 23:06:40.000000000 +0100 @@ -2,11 +2,6 @@ CS0658 - // CS0658: `value' is invalid attribute target. All attributes in this attribute section will be ignored -// Line : 5 -// Compiler options: -warnaserror -warn:1 - -[reply] ["asd"] // CS0658: `class' is invalid attribute target. All attributes in this attribute section will be ignored // Line : 8 // Compiler options: -warnaserror -warn:1 @@ -19,6 +14,11 @@ public static void Main () {} } + // CS0658: `value' is invalid attribute target. All attributes in this attribute section will be ignored +// Line : 5 +// Compiler options: -warnaserror -warn:1 + +[reply] ["asd"] // CS0658: `blah' is invalid attribute target. All attributes in this attribute section will be ignored // Line : 9 // Compiler options: -warnaserror -warn:1 /usr/lib/monodoc/sources/cs-errors.zip/CS0659 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0659 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0659 2039-11-01 23:06:40.000000000 +0100 @@ -2,20 +2,6 @@ CS0659 - // CS0659: `Test.Test' overrides Object.Equals(object) but does not override Object.GetHashCode() -// Line: 7 -// Compiler options: -warnaserror -warn:3 - -namespace Test{ - public partial class Test{ - public override bool Equals(object obj){ - return true; - } - - static void Main () {} - } -} - // CS0659: `E' overrides Object.Equals(object) but does not override Object.GetHashCode() // Line: 13 // Compiler options: -warnaserror -warn:3 @@ -36,5 +22,19 @@ } } + // CS0659: `Test.Test' overrides Object.Equals(object) but does not override Object.GetHashCode() +// Line: 7 +// Compiler options: -warnaserror -warn:3 + +namespace Test{ + public partial class Test{ + public override bool Equals(object obj){ + return true; + } + + static void Main () {} + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0664 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0664 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0664 2039-11-01 23:06:40.000000000 +0100 @@ -3,6 +3,15 @@ CS0664 // CS0664: Literal of type double cannot be implicitly converted to type `float'. Add suffix `f' to create a literal of this type +// Line: 6 +class X { + void A () + { + float f = 2.0; + } +} + + // CS0664: Literal of type double cannot be implicitly converted to type `float'. Add suffix `f' to create a literal of this type // Line: 13 using System; @@ -17,22 +26,13 @@ [Bound (D = 300d)] double d2; } - // CS0664: Literal of type double cannot be implicitly converted to type `float'. Add suffix `f' to create a literal of this type -// Line: 6 -class X { - void A () - { - float f = 2.0; - } -} - // CS0664: Literal of type double cannot be implicitly converted to type `decimal'. Add suffix `m' to create a literal of this type // Line: 7 class X { void A () { - decimal d = -2.0; + decimal d = 2.0; } } @@ -42,7 +42,7 @@ class X { void A () { - decimal d = 2.0; + decimal d = -2.0; } } /usr/lib/monodoc/sources/cs-errors.zip/CS0672 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0672 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0672 2039-11-01 23:06:40.000000000 +0100 @@ -21,6 +21,24 @@ } } + // CS0672: Member `B.Test(string)' overrides obsolete member `A.Test(string)'. Add the Obsolete attribute to `B.Test(string)' +// Line: 15 +// Compiler options: -warnaserror + +using System; + +public class A +{ + [Obsolete ("Causes an error", true)] + public virtual void Test (string arg) {} +} + +public class B: A +{ + public override void Test (string arg) {} +} + + // CS0672: Member `C.Method()' overrides obsolete member `BaseClass.Method()'. Add the Obsolete attribute to `C.Method()' // Line: 14 // Compiler options: -warnaserror @@ -51,23 +69,5 @@ public override event EventHandler MyEvent; } - // CS0672: Member `B.Test(string)' overrides obsolete member `A.Test(string)'. Add the Obsolete attribute to `B.Test(string)' -// Line: 15 -// Compiler options: -warnaserror - -using System; - -public class A -{ - [Obsolete ("Causes an error", true)] - public virtual void Test (string arg) {} -} - -public class B: A -{ - public override void Test (string arg) {} -} - - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0677 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0677 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0677 2039-11-01 23:06:40.000000000 +0100 @@ -2,14 +2,6 @@ CS0677 - // CS0677: `X.d': A volatile field cannot be of the type `double' -// Line: 6 - -class X -{ - public volatile double d; -} - // CS0677: `C<T>.t': A volatile field cannot be of the type `T' // Line: 8 @@ -51,5 +43,13 @@ } } + // CS0677: `X.d': A volatile field cannot be of the type `double' +// Line: 6 + +class X +{ + public volatile double d; +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0693 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0693 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0693 2039-11-01 23:06:40.000000000 +0100 @@ -12,14 +12,17 @@ { } } - // CS0693: Type parameter `T' has the same name as the type parameter from outer type `C<T>' -// Line: 7 + // 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 C<T> +class R<U> { - void Foo<T> (T t) + class A<T> { + struct I<T> + { + } } } @@ -37,17 +40,14 @@ } } - // CS0693: Type parameter `T' has the same name as the type parameter from outer type `R<U>.A<T>' -// Line: 9 + // 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 R<U> +class C<T> { - class A<T> + void Foo<T> (T t) { - struct I<T> - { - } } } /usr/lib/monodoc/sources/cs-errors.zip/CS0695 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0695 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0695 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,15 @@ CS0695 + // 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> +{ } + // CS0695: `C<T,U>' cannot implement both `A<T>.IB' and `A<U>.IB' because they may unify for some type parameter substitutions // Line: 11 @@ -15,22 +24,16 @@ class C<T, U> : A<T>.IB, A<U>.IB { } - // 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 + // 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> { } -class A<X,Y,Z> : I<X>, I<A<Y,Y,Z>> -{ } - - // 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> +interface K<X> { } -class A<X,Y> : I<X>, I<Y> +class C<X,Y> : I<K<Y>>, I<X> { } // CS0695: `Test<T>.TestN' cannot implement both `C<T>.I' and `C<string>.I' because they may unify for some type parameter substitutions @@ -54,31 +57,13 @@ } } - // CS0695: `C<T1,T2>' cannot implement both `IA<T1>' and `IB<IA<T2>>' because they may unify for some type parameter substitutions -// Line: 12 - -interface IA<T> -{ -} - -interface IB<T> : IA<T> -{ -} - -class C<T1, T2> : IA<T1>, IB<IA<T2>> -{ -} - - // CS0695: `C<X,Y>' cannot implement both `I<K<Y>>' and `I<X>' because they may unify for some type parameter substitutions -// Line: 10 + // 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> { } -interface K<X> -{ } - -class C<X,Y> : I<K<Y>>, I<X> +class A<X,Y,Z> : I<X>, I<A<Y,Y,Z>> { } // CS0695: `C<X,Y>' cannot implement both `I<X>' and `I<K<Y>>' because they may unify for some type parameter substitutions @@ -93,5 +78,20 @@ class C<X,Y> : I<X>, I<K<Y>> { } + // CS0695: `C<T1,T2>' cannot implement both `IA<T1>' and `IB<IA<T2>>' because they may unify for some type parameter substitutions +// Line: 12 + +interface IA<T> +{ +} + +interface IB<T> : IA<T> +{ +} + +class C<T1, T2> : IA<T1>, IB<IA<T2>> +{ +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0699 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0699 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0699 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,14 @@ CS0699 + // CS0699: `I.Test<T>()': A constraint references nonexistent type parameter `U' +// Line: 6 + +interface I +{ + void Test<T>() where U : class; +} + // CS0699: `I<T>': A constraint references nonexistent type parameter `U' // Line: 8 @@ -13,13 +21,5 @@ { } - // CS0699: `I.Test<T>()': A constraint references nonexistent type parameter `U' -// Line: 6 - -interface I -{ - void Test<T>() where U : class; -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0701 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0701 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0701 2039-11-01 23:06:40.000000000 +0100 @@ -2,10 +2,12 @@ CS0701 - // CS0701: `string' is not a valid constraint. A constraint must be an interface, a non-sealed class or a type parameter -// Line: 4 + // CS0701: `A' is not a valid constraint. A constraint must be an interface, a non-sealed class or a type parameter +// Line: 6 -class Foo<T> where T : string +sealed class A { } + +class Foo<T> where T : A { } @@ -20,12 +22,10 @@ { } - // 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 { } + // 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 : A +class Foo<T> where T : string { } /usr/lib/monodoc/sources/cs-errors.zip/CS0702 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0702 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0702 2039-11-01 23:06:40.000000000 +0100 @@ -2,22 +2,22 @@ CS0702 - // CS0702: A constraint cannot be special class `System.MulticastDelegate' -// Line: 6 + // CS0702: A constraint cannot be special class `System.Array' +// Line: 8 using System; -class C<T> where T : MulticastDelegate +class Foo<T> + where T : Array { } - // CS0702: A constraint cannot be special class `System.Array' -// Line: 8 + // CS0702: A constraint cannot be special class `System.MulticastDelegate' +// Line: 6 using System; -class Foo<T> - where T : Array +class C<T> where T : MulticastDelegate { } /usr/lib/monodoc/sources/cs-errors.zip/CS0703 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0703 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0703 2039-11-01 23:06:40.000000000 +0100 @@ -2,20 +2,16 @@ CS0703 - // CS0703: Inconsistent accessibility: constraint type `C.I' is less accessible than `C.Foo<T>()' -// Line: 10 + // CS0703: Inconsistent accessibility: constraint type `I' is less accessible than `C<T>' +// Line: 8 -public class C +interface I { - interface I - { - } - - public void Foo<T>() where T : I - { - } } - + +public class C<T> where T : I +{ +} // CS0703: Inconsistent accessibility: constraint type `A.B<T>.C' is less accessible than `A.B<T>' // Line: 6 @@ -29,15 +25,19 @@ } } - // CS0703: Inconsistent accessibility: constraint type `I' is less accessible than `C<T>' -// Line: 8 + // CS0703: Inconsistent accessibility: constraint type `C.I' is less accessible than `C.Foo<T>()' +// Line: 10 -interface I +public class C { -} + interface I + { + } -public class C<T> where T : I -{ -} + public void Foo<T>() where T : I + { + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0713 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0713 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0713 2039-11-01 23:06:40.000000000 +0100 @@ -2,12 +2,6 @@ CS0713 - // CS0713: Static class `StaticClass' cannot derive from type `System.ArgumentException'. Static classes must derive from object -// Line: 4 - -static class StaticClass: System.ArgumentException { -} - // CS0713: Static class `StaticClass' cannot derive from type `System.ArgumentNullException'. Static classes must derive from object // Line: 4 @@ -17,5 +11,11 @@ static partial class StaticClass : System.ArgumentNullException { } + // CS0713: Static class `StaticClass' cannot derive from type `System.ArgumentException'. Static classes must derive from object +// Line: 4 + +static class StaticClass: System.ArgumentException { +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0722 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0722 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0722 2039-11-01 23:06:40.000000000 +0100 @@ -9,9 +9,10 @@ } class MainClass { - public static StaticClass Method () - { - return null; + public static StaticClass Prop { + get { + return null; + } } } @@ -22,10 +23,9 @@ } class MainClass { - public static StaticClass Prop { - get { - return null; - } + public static StaticClass Method () + { + return null; } } /usr/lib/monodoc/sources/cs-errors.zip/CS0723 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0723 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0723 2039-11-01 23:06:40.000000000 +0100 @@ -2,19 +2,6 @@ CS0723 - // CS0723: `sc': cannot declare variables of static types -// Line: 10 - -static class StaticClass { -} - -class MainClass { - public static void Main () - { - StaticClass sc; - } -} - // CS0723: `C<T>.t': cannot declare variables of static types // Line: 10 @@ -38,5 +25,18 @@ S s; } + // CS0723: `sc': cannot declare variables of static types +// Line: 10 + +static class StaticClass { +} + +class MainClass { + public static void Main () + { + StaticClass sc; + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0737 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0737 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0737 2039-11-01 23:06:40.000000000 +0100 @@ -2,57 +2,57 @@ CS0737 - // CS0737: `MyTest' does not implement interface member `System.ICloneable.Clone()' and the best implementing candidate `MyTest.Clone()' is not public + // CS0737: `MySubClass' does not implement interface member `I.Foo.set' and the best implementing candidate `MyTest.Foo.set' is not public // Line: 6 using System; -public class MyTest : ICloneable +interface I { - object Clone() - { - return MemberwiseClone(); - } + int Foo { get; set; } } - - // CS0737: `MySubClass' does not implement interface member `System.ICloneable.Clone()' and the best implementing candidate `MyTest.Clone()' is not public -// Line: 6 - -using System; - -public class MySubClass : MyTest, ICloneable +public class MySubClass : MyTest, I { } public class MyTest { - internal object Clone () + public int Foo { - return MemberwiseClone (); + get { return 1; } + protected set { } } } - // CS0737: `MySubClass' does not implement interface member `I.Foo.set' and the best implementing candidate `MyTest.Foo.set' is not public + // CS0737: `MyTest' does not implement interface member `System.ICloneable.Clone()' and the best implementing candidate `MyTest.Clone()' is not public // Line: 6 using System; -interface I +public class MyTest : ICloneable { - int Foo { get; set; } + object Clone() + { + return MemberwiseClone(); + } } -public class MySubClass : MyTest, I + + // CS0737: `MySubClass' does not implement interface member `System.ICloneable.Clone()' and the best implementing candidate `MyTest.Clone()' is not public +// Line: 6 + +using System; + +public class MySubClass : MyTest, ICloneable { } public class MyTest { - public int Foo + internal object Clone () { - get { return 1; } - protected set { } + return MemberwiseClone (); } } /usr/lib/monodoc/sources/cs-errors.zip/CS0738 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0738 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0738 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,38 @@ CS0738 + // CS738: `CB' does not implement interface member `IG<IA>.Method()' and the best implementing candidate `CA<IB>.Method()' return type `IB' does not match interface member return type `IA' +// Line: 29 + +public interface IA +{ +} + +public interface IB : IA +{ +} + +public interface IG<out U> +{ + U Method (); +} + +public interface IDerived : IG<IA> +{ +} + +public abstract class CA<T> : IG<T> +{ + public T Method () + { + return default (T); + } +} + +public class CB : CA<IB>, IG<IA> +{ +} + // CS0738: `C' does not implement interface member `I2.Key.get' and the best implementing candidate `C.Key.get' return type `IB' does not match interface member return type `IA' // Line: 22 @@ -44,37 +76,5 @@ } } - // CS738: `CB' does not implement interface member `IG<IA>.Method()' and the best implementing candidate `CA<IB>.Method()' return type `IB' does not match interface member return type `IA' -// Line: 29 - -public interface IA -{ -} - -public interface IB : IA -{ -} - -public interface IG<out U> -{ - U Method (); -} - -public interface IDerived : IG<IA> -{ -} - -public abstract class CA<T> : IG<T> -{ - public T Method () - { - return default (T); - } -} - -public class CB : CA<IB>, IG<IA> -{ -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0762 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0762 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0762 2039-11-01 23:06:40.000000000 +0100 @@ -11,9 +11,9 @@ partial void Foo (); - void Test () + static void Main () { - D d = Foo; + D d = new D (new C ().Foo); } } @@ -26,9 +26,9 @@ partial void Foo (); - static void Main () + void Test () { - D d = new D (new C ().Foo); + D d = Foo; } } /usr/lib/monodoc/sources/cs-errors.zip/CS0815 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0815 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0815 2039-11-01 23:06:40.000000000 +0100 @@ -14,27 +14,24 @@ } - // CS0815: An implicitly typed local variable declaration cannot be initialized with `anonymous method' -// Line: 11 + // CS0815: An implicitly typed local variable declaration cannot be initialized with `void' +// Line: 17 using System; -using System.Threading.Tasks; +using System.Collections.Generic; -class X +class A { - public static void Main () + static void Test (Action a) { - Task.Run(async () => { var a = async () => { }; Console.WriteLine(a); }); } -} - // CS0815: An implicitly typed local variable declaration cannot be initialized with `method group' -// Line: 8 -public class Tests -{ public static void Main () { - var d = Main; + Test (() => { + List<string> l = null; + var res = l.ForEach (g => { }); + }); } } @@ -51,18 +48,16 @@ } - // CS0815: An implicitly typed local variable declaration cannot be initialized with `anonymous method' -// Line: 9 - + // CS0815: An implicitly typed local variable declaration cannot be initialized with `method group' +// Line: 8 -public class Test +public class Tests { - static void Main () + public static void Main () { - var d = delegate {}; + var d = Main; } } - // CS0815: An implicitly typed local variable declaration cannot be initialized with `default' // Line: 9 @@ -75,6 +70,19 @@ var x = default; } } + // CS0815: An implicitly typed local variable declaration cannot be initialized with `anonymous method' +// Line: 11 + +using System; +using System.Threading.Tasks; + +class X +{ + public static void Main () + { + Task.Run(async () => { var a = async () => { }; Console.WriteLine(a); }); + } +} // CS0815: An implicitly typed local variable declaration cannot be initialized with `void' // Line: 9 @@ -102,26 +110,18 @@ var m = (1, Main); } } - // CS0815: An implicitly typed local variable declaration cannot be initialized with `void' -// Line: 17 + // CS0815: An implicitly typed local variable declaration cannot be initialized with `anonymous method' +// Line: 9 -using System; -using System.Collections.Generic; -class A +public class Test { - static void Test (Action a) - { - } - - public static void Main () + static void Main () { - Test (() => { - List<string> l = null; - var res = l.ForEach (g => { }); - }); + var d = delegate {}; } } + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0825 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0825 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0825 2039-11-01 23:06:40.000000000 +0100 @@ -8,7 +8,7 @@ public class Test { - event var v; + var v = "a"; } @@ -18,7 +18,7 @@ public class Test { - var v = "a"; + event var v; } /usr/lib/monodoc/sources/cs-errors.zip/CS0826 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0826 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0826 2039-11-01 23:06:40.000000000 +0100 @@ -10,7 +10,7 @@ { static void Main () { - var e = new[] { }; + var e = new[] { null }; } } @@ -22,46 +22,37 @@ { static void Main () { - var e = new[] { 1, null }; + var e = new[] { Main }; } } // CS0826: The type of an implicitly typed array cannot be inferred from the initializer. Try specifying array type explicitly -// Line: 13 +// Line: 9 public class Test { - static void TestMethod () - { - } - static void Main () { - var e = new[] { TestMethod () }; + var e = new[] { delegate {} }; } } // CS0826: The type of an implicitly typed array cannot be inferred from the initializer. Try specifying array type explicitly -// Line: 8 +// Line: 13 -class C -{ - public static void Main () - { - var array = new[] { null, null }; - } -} - // 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 TestMethod () + { + } + static void Main () { - var e = new[] { Main }; + var e = new[] { TestMethod () }; } } @@ -74,45 +65,54 @@ { static void Main () { - var e = new[] { null }; + var e = new[,,,] { 1, 2 }; } } // CS0826: The type of an implicitly typed array cannot be inferred from the initializer. Try specifying array type explicitly -// Line: 9 +// Line: 8 +class XX +{ + public static void Main () + { + var m = new [] { (1, Main) }; + } +} + // 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[] { delegate {} }; + var e = new[] { 1, "a" }; } } // CS0826: The type of an implicitly typed array cannot be inferred from the initializer. Try specifying array type explicitly -// Line: 8 +// Line: 9 + public class Test { static void Main () { - var e = new[] { 1, "a" }; + var e = new[] { }; } } // CS0826: The type of an implicitly typed array cannot be inferred from the initializer. Try specifying array type explicitly -// Line: 9 - +// Line: 8 public class Test { static void Main () { - var e = new[,,,] { 1, 2 }; + var e = new[] { 1, null }; } } @@ -120,11 +120,11 @@ // CS0826: The type of an implicitly typed array cannot be inferred from the initializer. Try specifying array type explicitly // Line: 8 -class XX +class C { public static void Main () { - var m = new [] { (1, Main) }; + var array = new[] { null, null }; } } /usr/lib/monodoc/sources/cs-errors.zip/CS0828 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0828 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0828 2039-11-01 23:06:40.000000000 +0100 @@ -2,24 +2,20 @@ CS0828 - // CS0828: An anonymous type property `Value' cannot be initialized with `int*' + // CS0828: An anonymous type property `Value' cannot be initialized with `null' // Line: 9 -// Compiler options: -unsafe -public unsafe class Test + +public class Test { - static int* Error () - { - return (int*)0; - } - static void Main () { - var v = new { Value = Error () }; + int A = 9; + var v1 = new { A, Value = null }; } } - // CS0828: An anonymous type property `Value' cannot be initialized with `null' + // CS0828: An anonymous type property `Value' cannot be initialized with `anonymous method' // Line: 9 @@ -27,23 +23,24 @@ { static void Main () { - int A = 9; - var v1 = new { A, Value = null }; + var v = new { Value = delegate () { return 1; } }; } } - // CS0828: An anonymous type property `Value' cannot be initialized with `method group' -// Line: 12 + // CS0828: An anonymous type property `Value' cannot be initialized with `int*' +// Line: 9 +// Compiler options: -unsafe -public class Test +public unsafe class Test { - static void Error () + static int* Error () { + return (int*)0; } static void Main () { - var v = new { Value = Error }; + var v = new { Value = Error () }; } } @@ -63,18 +60,6 @@ } } - // CS0827: An anonymous type property `Prop' cannot be initialized with `(int, method group)' -// Line: 9 - -class XX -{ - public static void Main () - { - var m = new { - Prop = (1, Main) - }; - } -} // CS0828: An anonymous type property `Value' cannot be initialized with `anonymous method' // Line: 8 @@ -86,17 +71,32 @@ } } - // CS0828: An anonymous type property `Value' cannot be initialized with `anonymous method' -// Line: 9 - + // 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 = delegate () { return 1; } }; + var v = new { Value = Error }; } } + // CS0827: An anonymous type property `Prop' cannot be initialized with `(int, method group)' +// Line: 9 + +class XX +{ + public static void Main () + { + var m = new { + Prop = (1, Main) + }; + } +} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0831 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0831 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0831 2039-11-01 23:06:40.000000000 +0100 @@ -24,17 +24,17 @@ } } - // CS0831: An expression tree may not contain a base access -// Line: 20 + // CS0831: An expression tree may not contain a base access +// Line: 14 using System; using System.Linq.Expressions; class B { - protected B this [int i] { + protected bool Core { get { - return null; + return true; } } } @@ -43,21 +43,21 @@ { public void Test () { - Expression<Func<B>> e = () => base [8]; + Expression<Func<bool>> e = () => base.Core; } } - // CS0831: An expression tree may not contain a base access -// Line: 14 + // CS0831: An expression tree may not contain a base access +// Line: 20 using System; using System.Linq.Expressions; class B { - protected bool Core { + protected B this [int i] { get { - return true; + return null; } } } @@ -66,7 +66,7 @@ { public void Test () { - Expression<Func<bool>> e = () => base.Core; + Expression<Func<B>> e = () => base [8]; } } /usr/lib/monodoc/sources/cs-errors.zip/CS0832 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0832 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0832 2039-11-01 23:06:40.000000000 +0100 @@ -3,72 +3,72 @@ CS0832 // CS0832: An expression tree cannot contain an assignment operator -// Line: 11 +// Line: 19 using System; using System.Linq.Expressions; -class C +public delegate void EventHandler (int i, int j); + +public class Button +{ + public event EventHandler Click; +} + +public class Blah { public static void Main () { - Expression<Func<short?[], short?>> e = l => l [0]++; + Button b = new Button (); + Expression<Action> e = () => b.Click += new EventHandler (Button1_Click); + } + + public static void Button1_Click (int i, int j) + { } } // CS0832: An expression tree cannot contain an assignment operator -// Line: 11 +// Line: 13 using System; using System.Linq.Expressions; class C { + delegate void D (string s); + public static void Main () { - Expression<Func<int, int>> e = (a) => --a; + Expression<D> e = (a) => a = "a"; } } // CS0832: An expression tree cannot contain an assignment operator -// Line: 19 +// Line: 11 using System; using System.Linq.Expressions; -public delegate void EventHandler (int i, int j); - -public class Button -{ - public event EventHandler Click; -} - -public class Blah +class C { 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) - { + Expression<Func<short?[], short?>> e = l => l [0]++; } } // CS0832: An expression tree cannot contain an assignment operator -// Line: 13 +// Line: 11 using System; using System.Linq.Expressions; class C { - delegate void D (string s); - public static void Main () { - Expression<D> e = (a) => a = "a"; + Expression<Func<int, int>> e = (a) => --a; } } /usr/lib/monodoc/sources/cs-errors.zip/CS0837 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0837 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0837 2039-11-01 23:06:40.000000000 +0100 @@ -3,19 +3,6 @@ CS0837 // CS0837: The `is' operator cannot be applied to a lambda expression, anonymous method, or method group -// Line: 11 - -using System; -using System.Linq.Expressions; - -class C -{ - public static void Main () - { - Expression<Func<bool>> e = () => "1".ToString is string; - } -} - // CS0837: The `is' operator cannot be applied to a lambda expression, anonymous method, or method group // Line: 10 using System; @@ -27,19 +14,6 @@ var res = Main is object; } } - // CS0837: The `is' operator cannot be applied to a lambda expression, anonymous method, or method group -// Line: 8 - -class X -{ - static void Main () - { - if (delegate {} is int) { - return; - } - } -} - // CS0837: The `as' operator cannot be applied to a lambda expression, anonymous method, or method group // Line: 14 @@ -57,5 +31,31 @@ } } + // CS0837: The `is' operator cannot be applied to a lambda expression, anonymous method, or method group +// Line: 8 + +class X +{ + static void Main () + { + if (delegate {} is int) { + return; + } + } +} + + // CS0837: The `is' operator cannot be applied to a lambda expression, anonymous method, or 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 /usr/lib/monodoc/sources/cs-errors.zip/CS0841 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0841 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0841 2039-11-01 23:06:40.000000000 +0100 @@ -15,42 +15,6 @@ } - // CS0841: A local variable `y' cannot be used before it is declared -// Line: 8 - -public class C -{ - public static void Main () - { - int x = y; - int y = 1; - } -} - - // CS0841: A local variable `y' cannot be used before it is declared -// Line: 8 - -public class C -{ - public static void Main () - { - const int x = y; - const int y = 1; - } -} - - // CS0841: A local variable `y' cannot be used before it is declared -// Line: 8 - -class X -{ - static void y () { } - static void Main () { - y (); - int y = 5; - } -} - // CS0841: A local variable `x' cannot be used before it is declared // Line: 8 // Compiler options: -langversion:experimental @@ -67,6 +31,18 @@ value = 3; } } + // CS0841: A local variable `y' cannot be used before it is declared +// Line: 8 + +public class C +{ + public static void Main () + { + int x = y; + int y = 1; + } +} + // CS0841: A local variable `n' cannot be used before it is declared // Line: 17 @@ -87,5 +63,29 @@ }); } } + // CS0841: A local variable `y' cannot be used before it is declared +// Line: 8 + +class X +{ + static void y () { } + static void Main () { + y (); + int y = 5; + } +} + + // CS0841: A local variable `y' cannot be used before it is declared +// Line: 8 + +public class C +{ + public static void Main () + { + const int x = y; + const int y = 1; + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0844 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0844 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0844 2039-11-01 23:06:40.000000000 +0100 @@ -14,17 +14,24 @@ } } - // CS0844: A local variable `s' cannot be used before it is declared. Consider renaming the local variable when it hides the member `C.s' -// Line: 10 + // CS0844: A local variable `top' cannot be used before it is declared. Consider renaming the local variable when it hides the member `X.top' +// Line: 17 -class C +class Symbol { - string s; +} - public void Test () +class X +{ + Symbol top; + + internal int Enter (Symbol key, object value) { - s = "x"; - string s = "a"; + if (key != null) { + top = key; + } + object top = null; + return top.Count; } } @@ -33,9 +40,7 @@ class C { - string s { - set {} - } + const string s = "s"; public void Test () { @@ -44,24 +49,17 @@ } } - // CS0844: A local variable `top' cannot be used before it is declared. Consider renaming the local variable when it hides the member `X.top' -// Line: 17 - -class Symbol -{ -} + // CS0844: A local variable `s' cannot be used before it is declared. Consider renaming the local variable when it hides the member `C.s' +// Line: 10 -class X +class C { - Symbol top; + string s; - internal int Enter (Symbol key, object value) + public void Test () { - if (key != null) { - top = key; - } - object top = null; - return top.Count; + s = "x"; + string s = "a"; } } @@ -70,7 +68,9 @@ class C { - const string s = "s"; + string s { + set {} + } public void Test () { /usr/lib/monodoc/sources/cs-errors.zip/CS0847 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0847 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0847 2039-11-01 23:06:40.000000000 +0100 @@ -21,8 +21,8 @@ { public static void Main () { - int[,,] i = { { { 0, 0 }, { 1, 1} }, - { { 2, 2 } } }; + int[,] i = { {0, 0}, + { 1 } }; } } @@ -44,8 +44,8 @@ { public static void Main () { - int[,] i = { {0, 0}, - { 1 } }; + int[,,] i = { { { 0, 0 }, { 1, 1} }, + { { 2, 2 } } }; } } /usr/lib/monodoc/sources/cs-errors.zip/CS1001 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1001 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1001 2039-11-01 23:06:40.000000000 +0100 @@ -2,12 +2,15 @@ CS1001 - // CS1001: Missing identifier to pre-processor directive -// Line: 5 + // CS1001: Unexpected symbol `)', expecting identifier +// Line: 6 -#if false - #define -#endif +class T { + // Change (args) to (string args) to fix it + public static int Main (args) + { + } +} // CS1001: Unexpected symbol `)', expecting identifier // Line: 6 @@ -18,26 +21,30 @@ { } } + // CS1001: Missing identifier to pre-processor directive +// Line: 5 + +#if false + #define +#endif + // CS1001: Unexpected symbol `,', expecting identifier -// Line: 6 +// Line: 8 -public class MonoRuntime +static class Converter { - public static void Main (A, B) + static Dictionary<Options, string> options = new Dictionary<Options, string> () { - } -} - - // CS1001: Unexpected symbol `)', expecting identifier + { Options., "I am completed!" }, + }; +} + // CS1001: Unexpected symbol `}', expecting identifier // Line: 6 -class T { - // Change (args) to (string args) to fix it - public static int Main (args) - { - } -} - +public class Foo +{ + public event System.Collections.Generic.IList<int> +} // CS1001: Unexpected symbol `)', expecting identifier // Line: 8 @@ -49,23 +56,16 @@ } } - // CS1001: Unexpected symbol `}', expecting identifier -// Line: 6 - -public class Foo -{ - public event System.Collections.Generic.IList<int> -} // CS1001: Unexpected symbol `,', expecting identifier -// Line: 8 +// Line: 6 -static class Converter +public class MonoRuntime { - static Dictionary<Options, string> options = new Dictionary<Options, string> () + public static void Main (A, B) { - { Options., "I am completed!" }, - }; -} + } +} + // CS1001: Unexpected symbol `)', expecting identifier // Line: 6 /usr/lib/monodoc/sources/cs-errors.zip/CS1007 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1007 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1007 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,17 @@ CS1007 + // CS1007: Property accessor already defined +// Line: 8 + +class DoubleAccessor +{ + public bool Breaker { + set { } + set { } + } +} + // CS01007: Property accessor already defined // Line: 10 @@ -17,16 +28,5 @@ } } - // CS1007: Property accessor already defined -// Line: 8 - -class DoubleAccessor -{ - public bool Breaker { - set { } - set { } - } -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1010 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1010 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1010 2039-11-01 23:06:40.000000000 +0100 @@ -11,6 +11,16 @@ world!"; } + // CS1010: Newline in constant +// Line: 6 + +class Foo +{ + static char c =' +'; +} + + // CS1010 : Newline in constant // Line: 8 @@ -22,15 +32,5 @@ int i = 2; } } - // CS1010: Newline in constant -// Line: 6 - -class Foo -{ - static char c =' -'; -} - - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1013 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1013 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1013 2039-11-01 23:06:40.000000000 +0100 @@ -7,36 +7,36 @@ class X { - static int i = 1_; + static int i = 0x; } // CS1013: Invalid number // Line : 6 class X { - static int i = 0x_1; + static int i = 0b; + static void Main () {} } // CS1013: Invalid number // Line : 6 class X { - static int i = 1_e1; + static int i = 0b_1; } // CS1013: Invalid number // Line : 6 class X { - static int i = 0b; - static void Main () {} + static float i = 1_f; } // CS1013: Invalid number // Line : 6 class X { - static int i = 0x; + static int i = 1_e1; } // CS1013: Invalid number // Line : 6 @@ -57,14 +57,14 @@ class X { - static float i = 1_f; + static int i = 0x_1; } // CS1013: Invalid number // Line : 6 class X { - static int i = 0b_1; + static int i = 1_; } \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1017 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1017 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1017 2039-11-01 23:06:40.000000000 +0100 @@ -9,7 +9,7 @@ public static void Main() { try { } catch {} - catch (System.Exception) { } + catch {} } } @@ -20,7 +20,7 @@ public static void Main() { try { } catch {} - catch {} + catch (System.Exception) { } } } /usr/lib/monodoc/sources/cs-errors.zip/CS1021 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1021 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1021 2039-11-01 23:06:40.000000000 +0100 @@ -12,7 +12,7 @@ class X { public static void Main() { - int i = 123821738792178327198; + int h = 0b11111111111111111111111111111111111111111111111111111111111111111; } } @@ -21,7 +21,7 @@ class X { public static void Main() { - int h = 0b11111111111111111111111111111111111111111111111111111111111111111; + int i = 123821738792178327198; } } /usr/lib/monodoc/sources/cs-errors.zip/CS1024 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1024 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1024 2039-11-01 23:06:40.000000000 +0100 @@ -3,6 +3,20 @@ CS1024 // CS1024: Wrong preprocessor directive +// Line: 7 + +class C +{ + #region + #end\x0072egion +} + + // CS1024: Wrong preprocessor directive +// Line: 4 + +#wrong_directive + + // CS1024: Wrong preprocessor directive // Line: 12 using System; @@ -19,19 +33,5 @@ } } - // CS1024: Wrong preprocessor directive -// Line: 7 - -class C -{ - #region - #end\x0072egion -} - - // CS1024: Wrong preprocessor directive -// Line: 4 - -#wrong_directive - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1025 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1025 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1025 2039-11-01 23:06:40.000000000 +0100 @@ -2,17 +2,6 @@ CS1025 - // CS1025 : Single-line comment or end-of-line expected -// Line: 6 - -#if DEBUG DEBUG -// ... -#endif - // CS1525: Single-line comment or end-of-line expected -// Line: 4 - -#line 100 "a" default - // CS1025: Single-line comment or end-of-line expected // Line: 6 @@ -23,18 +12,29 @@ // Line: 6 #if RELEASE -#elif DEBUG DEBUG +#else DEBUG #endif // CS1025 : Single-line comment or end-of-line expected // Line: 6 #if RELEASE -#else DEBUG +#elif DEBUG DEBUG +#endif + // CS1025 : Single-line comment or end-of-line expected +// Line: 6 + +#if DEBUG DEBUG +// ... #endif // CS1025: Single-line comment or end-of-line expected // Line: 4 #if RELEASE #endif + // CS1525: Single-line comment or end-of-line expected +// Line: 4 + +#line 100 "a" default + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1027 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1027 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1027 2039-11-01 23:06:40.000000000 +0100 @@ -9,12 +9,6 @@ /* hey */ #endif // CS1027: Expected `#endif' directive -// Line: 6 - -#if false - - - // CS1027: Expected `#endif' directive // Line: 11 // Compiler options: -d:NET_2_0 @@ -25,5 +19,11 @@ } + // CS1027: Expected `#endif' directive +// Line: 6 + +#if false + + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1031 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1031 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1031 2039-11-01 23:06:40.000000000 +0100 @@ -17,6 +17,20 @@ // CS1031: Type expected +// Line: 8 + +using System; + +class M +{ + public static void Main () + { + Type t = typeof (this); + } +} + + + // CS1031: Type expected // Line: 4 enum E : this @@ -42,19 +56,5 @@ var h = typeof (B<A<>>); } } - // CS1031: Type expected -// Line: 8 - -using System; - -class M -{ - public static void Main () - { - Type t = typeof (this); - } -} - - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1038 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1038 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1038 2039-11-01 23:06:40.000000000 +0100 @@ -6,17 +6,17 @@ // Line: 5 #region -#endif +#else +#endregion // CS1038: #endregion directive expected // Line: 5 #region -#else -#endregion + // CS1038: #endregion directive expected // Line: 5 #region - +#endif \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1056 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1056 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1056 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,17 @@ CS1056 + // CS1056: Unexpected character `$' +// Line: 8 + +public class C +{ + void Update () + { + int a = $7; + } +} + // CS1056: Unexpected character `\0001' // Line: 4 @@ -14,16 +25,5 @@ \u0001namespace Test { } - // CS1056: Unexpected character `$' -// Line: 8 - -public class C -{ - void Update () - { - int a = $7; - } -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1057 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1057 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1057 2039-11-01 23:06:40.000000000 +0100 @@ -2,15 +2,6 @@ CS1057 - // CS1057: `B._a': Static classes cannot contain protected members -// Line: 6 - -public static class B -{ - protected static object _a = null; - -} - // CS1057: `B.E': Static classes cannot contain protected members // Line: 6 @@ -30,5 +21,14 @@ } } + // CS1057: `B._a': Static classes cannot contain protected members +// Line: 6 + +public static class B +{ + protected static object _a = null; + +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1058 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1058 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1058 2039-11-01 23:06:40.000000000 +0100 @@ -3,9 +3,13 @@ CS1058 // CS1058: A previous catch clause already catches all exceptions. All non-exceptions thrown will be wrapped in a `System.Runtime.CompilerServices.RuntimeWrappedException' -// Line: 11 +// Line: 15 // Compiler options: -warnaserror -warn:4 +using System.Runtime.CompilerServices; + +[assembly: RuntimeCompatibility (WrapNonExceptionThrows=true)] + class C { static void Main() @@ -15,16 +19,11 @@ catch {} } } - // CS1058: A previous catch clause already catches all exceptions. All non-exceptions thrown will be wrapped in a `System.Runtime.CompilerServices.RuntimeWrappedException' -// Line: 15 +// Line: 11 // Compiler options: -warnaserror -warn:4 -using System.Runtime.CompilerServices; - -[assembly: RuntimeCompatibility (WrapNonExceptionThrows=true)] - class C { static void Main() @@ -34,6 +33,7 @@ catch {} } } + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1059 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1059 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1059 2039-11-01 23:06:40.000000000 +0100 @@ -3,17 +3,6 @@ CS1059 // CS1059: The operand of an increment or decrement operator must be a variable, property or indexer -// Line: 8 - -using System; - -public class Test { - void Main () { - Console.WriteLine (++0); - } -} - - // CS1059: The operand of an increment or decrement operator must be a variable, property or indexer // Line: 9 static class C @@ -38,5 +27,16 @@ } } + // CS1059: The operand of an increment or decrement operator must be a variable, property or indexer +// Line: 8 + +using System; + +public class Test { + void Main () { + Console.WriteLine (++0); + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1060 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1060 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1060 2039-11-01 23:06:40.000000000 +0100 @@ -33,7 +33,7 @@ } // CS1060: Use of possibly unassigned field `c' -// Line: 19 +// Line: 25 // Compiler options: -warnaserror public class C @@ -41,22 +41,27 @@ public int v; } -public struct S +public struct S2 { public C c; } +public struct S +{ + public S2 s2; +} + public class Test { static void Main () { S s; - s.c.v = 5; + s.s2.c.v = 9; } } - // CS1060: Use of possibly unassigned field `x' -// Line: 30 + // CS1060: Use of possibly unassigned field `c' +// Line: 19 // Compiler options: -warnaserror public class C @@ -69,27 +74,17 @@ public C c; } -class X -{ - public S s; -} - -struct S2 -{ - public X x; -} - public class Test { static void Main () { - S2 s2; - s2.x.s.c.v = 5; + S s; + s.c.v = 5; } } - // CS1060: Use of possibly unassigned field `c' -// Line: 25 + // CS1060: Use of possibly unassigned field `x' +// Line: 30 // Compiler options: -warnaserror public class C @@ -97,22 +92,27 @@ public int v; } -public struct S2 +public struct S { public C c; } -public struct S +class X { - public S2 s2; + public S s; +} + +struct S2 +{ + public X x; } public class Test { static void Main () { - S s; - s.s2.c.v = 9; + S2 s2; + s2.x.s.c.v = 5; } } /usr/lib/monodoc/sources/cs-errors.zip/CS1061 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1061 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1061 2039-11-01 23:06:40.000000000 +0100 @@ -2,43 +2,28 @@ CS1061 - // CS1061: Type `int' does not contain a definition for `C' and no extension method `C' of type `int' could be found. Are you missing an assembly reference? + // CS1061: Type `X' does not contain a definition for `Test' and no extension method `Test' of type `X' could be found. Are you missing an assembly reference? // Line: 12 -using System; - -namespace TestEnum +class A<X> { - public enum E + // + // This is to test the lookup rules for SimpleNames: + // `X' is the type parameter, not the class. + // + public void Test (X x) { - A = 0, - B = 1. - C = 2 + x.Test (); } } - - // CS1061: Type `A' does not contain a definition for `Foo' and no extension method `Foo' of type `A' could be found. Are you missing an assembly reference? -// Line: 16 - -using System; -using System.Runtime.CompilerServices; -class A +class X { - [IndexerName ("Foo")] - public int this [int index] { - get { return index; } - } - - static int Test (A a) - { - return a.Foo; - } + public void Test () + { } public static void Main () - { - Test (new A ()); - } + { } } // CS1061: Type `int' does not contain a definition for `Value' and no extension method `Value' of type `int' could be found. Are you missing an assembly reference? @@ -69,34 +54,50 @@ } } - // CS1061: Type `object' does not contain a definition for `Test' and no extension method `Test' of type `object' could be found. Are you missing an assembly reference? -// Line: 17 + // CS1061: Type `U2' does not contain a definition for `Test' and no extension method `Test' of type `U2' could be found. Are you missing an assembly reference? +// Line: 20 -public class S +interface I<T> { - public static void Test() + void Foo<U> (U u) where U : T; +} + +struct S +{ + public void Test () { } } -public class M +class Test : I<S> { - public object S { get; set; } - - public void Main () + void I<S>.Foo<U2> (U2 u2) { - S.Test (); + u2.Test (); } } - // CS1061: Type `int' does not contain a definition for `E' and no extension method `E' of type `int' could be found. Are you missing an assembly reference? -// Line: 7 + // CS1061: Type `A' does not contain a definition for `Foo' and no extension method `Foo' of type `A' could be found. Are you missing an assembly reference? +// Line: 16 -class T { - public static int Main (string [] args ) +using System; +using System.Runtime.CompilerServices; + +class A +{ + [IndexerName ("Foo")] + public int this [int index] { + get { return index; } + } + + static int Test (A a) { - int x = 1.E; - return 0; + return a.Foo; + } + + public static void Main () + { + Test (new A ()); } } @@ -126,44 +127,47 @@ } } - // CS1061: Type `string' does not contain a definition for `Length2' and no extension method `Length2' of type `string' could be found. Are you missing an assembly reference? -// Line: 12 + // CS1061: Type `int' does not contain a definition for `Foo' and no extension method `Foo' of type `int' could be found. Are you missing an assembly reference? +// Line: 11 +using System; + +static class C +{ + static void Main () + { + int i = 1; + Action a = i.Foo; + } + + static void Foo (this string s) + { + } +} + // CS1061: Type `int' does not contain a definition for `Foo' and no extension method `Foo' of type `int' could be found. Are you missing an assembly reference? +// Line: 9 -using System.Linq; public class M { public static void Main () { - var e = from values in new [] { "value" } - let length = values.Length2 - select length; + 1.Foo ("foo"); } } - // CS1061: Type `A' does not contain a definition for `Foo' and no extension method `Foo' of type `A' could be found. Are you missing an assembly reference? -// Line: 17 + // CS1061: Type `int' does not contain a definition for `C' and no extension method `C' of type `int' could be found. Are you missing an assembly reference? +// Line: 12 using System; -using System.Runtime.CompilerServices; -class A +namespace TestEnum { - [IndexerName ("Foo")] - public int this [int index] { - get { return index; } - set { ; } - } - - static void Test (A a, int value) - { - a.Foo = value; - } - - public static void Main () + public enum E { - Test (new A (), 9); + A = 0, + B = 1. + C = 2 } } @@ -177,34 +181,31 @@ int c = 0.__0; } } - // CS1061: Type `int' does not contain a definition for `GetValueOrDefault' and no extension method `GetValueOrDefault' of type `int' could be found. Are you missing `System.Collections.Generic' using directive? /usr/lib/monodoc/sources/cs-errors.zip/CS1066 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1066 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1066 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,18 @@ CS1066 + // CS1066: The default value specified for optional parameter `i' will never be used +// Line: 7 +// Compiler options: -warnaserror + +class C +{ + public static implicit operator C (int i = 8) + { + return null; + } +} + // CS1066: The default value specified for optional parameter `x' will never be used // Line: 12 // Compiler options: -warnaserror @@ -18,18 +30,6 @@ } } - // CS1066: The default value specified for optional parameter `i' will never be used -// Line: 7 -// Compiler options: -warnaserror - -class C -{ - public static implicit operator C (int i = 8) - { - return null; - } -} - // CS1066: The default value specified for optional parameter `s' will never be used // Line: 9 // Compiler options: -warnaserror /usr/lib/monodoc/sources/cs-errors.zip/CS1070 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1070 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1070 2039-11-01 23:06:40.000000000 +0100 @@ -13,13 +13,6 @@ new C (); } } - // CS1070: The type `C' has been forwarded to an assembly that is not referenced. Consider adding a reference to assembly `CS1070-lib-missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' -// Line: 5 -// Compiler options: -r:CS1070-lib.dll - -public class D : C -{ -} // CS1070: The type `N.E' has been forwarded to an assembly that is not referenced. Consider adding a reference to assembly `CS1070-lib-missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' // Line: 9 // Compiler options: -r:CS1070-lib.dll @@ -32,5 +25,12 @@ { } } + // CS1070: The type `C' has been forwarded to an assembly that is not referenced. Consider adding a reference to assembly `CS1070-lib-missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' +// Line: 5 +// Compiler options: -r:CS1070-lib.dll + +public class D : C +{ +} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1105 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1105 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1105 2039-11-01 23:06:40.000000000 +0100 @@ -2,14 +2,6 @@ CS1105 - // CS1105: `ITest.Method(this int)': Extension methods must be declared static -// Line: 6 - -interface ITest -{ - void Method (this int a); -} - // CS1105: `S.Foo(this int?)': Extension methods must be declared static // Line: 6 @@ -20,5 +12,13 @@ } } + // CS1105: `ITest.Method(this int)': Extension methods must be declared static +// Line: 6 + +interface ITest +{ + void Method (this int a); +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1107 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1107 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1107 2039-11-01 23:06:40.000000000 +0100 @@ -2,21 +2,21 @@ CS1107 - // CS1107: Duplicate parameter modifier `ref' + // CS1107: Duplicate parameter modifier `params' // Line: 6 static class S { - static void Foo (ref ref ulong u) + static void Foo (params params ulong[] u) { } } - // CS1107: Duplicate parameter modifier `params' + // CS1107: Duplicate parameter modifier `ref' // Line: 6 static class S { - static void Foo (params params ulong[] u) + static void Foo (ref ref ulong u) { } } /usr/lib/monodoc/sources/cs-errors.zip/CS1113 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1113 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1113 2039-11-01 23:06:40.000000000 +0100 @@ -3,7 +3,8 @@ CS1113 // CS1113: Extension method `Extension.Foo(this S)' of value type `S' cannot be used to create delegates -// Line: 11 +// Line: 12 + delegate void D (); @@ -18,9 +19,6 @@ public struct S { - public void Foo (int i) - { - } } public static class Extension @@ -29,8 +27,7 @@ } // CS1113: Extension method `Extension.Foo(this S)' of value type `S' cannot be used to create delegates -// Line: 12 - +// Line: 11 delegate void D (); @@ -45,6 +42,9 @@ public struct S { + public void Foo (int i) + { + } } public static class Extension /usr/lib/monodoc/sources/cs-errors.zip/CS1501 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1501 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1501 2039-11-01 23:06:40.000000000 +0100 @@ -2,123 +2,99 @@ CS1501 - // CS1501: No overload for method `Foo' takes `0' arguments -// Line: 15 + // CS1501: No overload for method `this' takes `2' arguments +// Line : 10 -using System; -using System.Runtime.InteropServices; +class C +{ + public bool this [int i] { get { return false; } set {} } + + void Foo () + { C c = new C (); + c [0, 0] = null; + } +} + + // CS1501: No overload for method `Foo' takes `2' arguments +// Line: 13 -public class C +static class C { - public static void Foo ([DefaultParameterValue(null)] string s) + public static void Foo (this string s, int d, bool b) { } - public static void Main () + static void Main() { - Foo (); + dynamic d = null; + "x".Foo (d); } } - // CS1501: No overload for method `Select' takes `1' arguments -// Line: 17 - - -using System; + // CS1501: No overload for method `Foo' takes `0' arguments +// Line: 15 -class TestA +class Base<T> { - public string value; - - public TestA (string value) - { - this.value = value; - } - - public string Select (int i, Func<TestA, TestA> f) + protected virtual void Foo<U> (U u) { - return value; } } -public class M +class Derived<T> : Base<int> { - static void Main () - { - var v = new TestA ("Oh yes"); - string foo = from a in v select a; - } + protected override void Foo<U> (U u) + { + base.Foo (); + } } - // CS1501: No overload for method `Bar' takes `2' arguments -// Line: 19 - -using System; + // CS1501: No overload for method `LogFileLine' takes `1' arguments +// Line: 12 -class T +class C { - void Foo (int arg, Action a) - { - } - - void Foo (string title, Action a) - { - } - - void Bar () + static void LogFileLine (string file, string msg, params object [] args) { - Foo (arg: 1, a: () => { - Bar ("a", "b"); - }); } -} - // CS1501: No overload for method `Foo' takes `0' arguments -// Line: 20 - -class A -{ - protected virtual void Foo (object[] arr) + + public static void Main () { + LogFileLine ("aaa"); } } + + // CS1501: No overload for method `Foo' takes `1' arguments +// Line: 12 -class B : A +public class Test { - protected override void Foo (params object[] arr) + static void Foo (int a, int b = 1, int c = 2) { } - - static void Bar() + + public static void Main () { - B b = new B (); - b.Foo (); + Foo (c : -1); } } + // CS1501: No overload for method `Foo' takes `0' arguments -// Line: 12 - -class C -{ - static void Foo (string foo, params object [] moreFoo) - { - } +// Line: 15 - static void Main () - { - Foo (); - } -} - // CS1501: No overload for method `this' takes `2' arguments -// Line : 10 +using System; +using System.Runtime.InteropServices; -class C +public class C { - public bool this [int i] { get { return false; } set {} } - - void Foo () - { C c = new C (); - c [0, 0] = null; + public static void Foo ([DefaultParameterValue(null)] string s) + { + } + + public static void Main () + { + Foo (); } } @@ -149,34 +125,26 @@ void Call (bool arg, int arg2); } - // CS1501: No overload for method `Foo' takes `2' arguments -// Line: 13 + // CS1501: No overload for method `Foo' takes `0' arguments +// Line: 20 -static class C +class A { - public static void Foo (this string s, int d, bool b) - { - } - - static void Main() + protected virtual void Foo (object[] arr) { /usr/lib/monodoc/sources/cs-errors.zip/CS1502 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1502 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1502 2039-11-01 23:06:40.000000000 +0100 @@ -2,77 +2,33 @@ CS1502 - // 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) { } -} + // CS1502: The best overloaded method match for `Global.Test1(int?)' has some invalid arguments +// Line: 8 -public class Test -{ - static void Main () - { - MyStruct[] myStructArray = new MyStruct[1]; +using System; - Console.WriteLine ("Trying to construct an A..."); - A a = new A (myStructArray); - Console.WriteLine ("success!"); +class Global { + static void Main() { + Console.Write(Test1((decimal?)2)); + } + static string Test1(int? value) { + return "ok"; } } - // CS1502: The best overloaded method match for `TestCase.TestS(ref object)' has some invalid arguments -// Line: 21 + // CS1502: The best overloaded method match for `T.Blah(out int)' has some invalid arguments +// Line: 11 using System; -public struct Struct { - public int x, y, z; -} +class T { + static void Blah (out int g) { g = 0; } -public class TestCase { - - public static void Main() { - - Struct s = new Struct(); - - s.x = 1; - s.y = 2; - - System.Console.WriteLine("{0} {1} {2}", s.x, s.y, s.z); - - TestS(ref s); - } - - public static void TestS(ref object ino) { - System.Console.WriteLine("{0}", ((Struct)(ino)).x); - } - + static int Main (string [] args) { + IntPtr g; + Blah (out g); + return (int) g; + } } // CS1502: The best overloaded method match for `T.Blah(out int)' has some invalid arguments @@ -90,60 +46,55 @@ } } - // CS1502: The best overloaded method match for `C.TestCall(int, string)' has some invalid arguments -// Line: 13 + // CS1502: The best overloaded method match for `X.X(int)' has some invalid arguments +// Line: 14 -class C -{ - static void TestCall (int i, string s) +public class X { + + public X (int a) { } - - public static void Main () +} + +class D { + static void Main () { - dynamic d = 0; - TestCall (d, 1); + X x = new X ("hola"); } } + - // CS1502: The best overloaded method match for `X.foo(ref int)' has some invalid arguments -// Line: 8 -class X { - public void foo (ref int blah) {} + // CS1502: The best overloaded method match for `Foo.Test(int, string)' has some invalid arguments +// Line: 14 - public void bar (ref int baz) +using System.Runtime.CompilerServices; + +public class Foo +{ + public void Test (int arg, [CallerMemberName] string s = null) { - foo(out baz); } - static void Main () + void X () { + Test (""); } -} - - // CS1502: The best overloaded method match for `System.Console.WriteLine(bool)' has some invalid arguments -// Line: 10 -using System; +} + // CS1502: The best overloaded method match for `Test.Test(TestMethod2)' has some invalid arguments +// Line: 8 -public class MainClass +public class Test { - public static void Main() - { - test MyBug = new test(); - Console.WriteLine (MyBug.mytest()); + void Foo () + { + new Test (new TestMethod (Foo)); } -} -public class test -{ - public void mytest() - { - Console.WriteLine("test"); - } + public Test (TestMethod2 test) {} } - - +public delegate void TestMethod (); +public delegate void TestMethod2 (object o); // CS1502: The best overloaded method match for `C.Foo(dynamic)' has some invalid arguments // Line: 13 @@ -160,87 +111,76 @@ } } - // CS1502: The best overloaded method match for `C.Test_C(System.Type, params int[])' has some invalid arguments -// Line: 10 + // CS1502: The best overloaded method match for `TestCase.TestS(ref object)' has some invalid arguments +// Line: 21 using System; /usr/lib/monodoc/sources/cs-errors.zip/CS1503 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1503 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1503 2039-11-01 23:06:40.000000000 +0100 @@ -2,40 +2,6 @@ CS1503 - // CS1503: Argument `#1' cannot convert `int' expression to type `bool' -// Line: 15 - -class A -{ - public static void Foo (bool test) - { - } -} - -class B -{ - public static void Main() - { - A.Foo (1); - } -} - - // 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); - } -} - // CS1503: Argument `#2' cannot convert `method group' expression to type `System.Collections.Generic.Comparer<int>' // Line: 20 @@ -59,158 +25,197 @@ } } - // CS1503: Argument `#1' cannot convert `method group' expression to type `IInterface' -// Line: 15 + // CS1503: Argument `#1' cannot convert `out A' expression to type `out B' +// Line: 17 -public delegate void Del (); +class A { } +class B : A { } -public interface IInterface +class Test { - void Do (); + static void Foo (out B b) + { + b = new B (); + } + + static void Main () + { + A a; + Foo (out a); + } } + + // CS1503: Argument `#1' cannot convert `bool' expression to type `int' +// Line: 12 -public static class Test +public class C { - public static void Do (IInterface val) + static void Foo<T>(T t) { - Do (val.Do); + } + + public static void Main () + { + Foo<int> (true); } } - // CS1503: Argument `#1' cannot convert `ref long' expression to type `ref int' -// Line: 18 - -using System; + // CS1503: Argument `#1' cannot convert `long' expression to type `ulong' +// Line: 17 -class X +class A { - long field; + public static long Prop { + get { + return 1; + } + } +} +class Test +{ static void Main () { - var x = new X (); - x.Run (); + Foo (A.Prop); } - - void Run () + + static void Foo (ulong l) { - Test (ref Prop); } +} + + // CS1503: Argument `#1' cannot convert `bool' expression to type `int[]' +// Line: 13 - static int Test (ref int y) +public class X +{ + public static void Test (params int[] a) { - return y; } - ref long Prop { - get { - return ref field; - } + public static void Main() + { + int i; + Test (true); } } - // CS1503: Argument `#1' cannot convert `null' expression to type `__arglist' -// Line: 8 + // CS1503: Argument `#1' cannot convert `int[]' expression to type `int' +// Line: 12 class C { - void Foo () + static void Foo (params int[] i) { - InstanceArgList (null); } - int InstanceArgList (__arglist) + public static void Main () { - return 54; + Foo (new int[1], 1); } } - // CS1503: Argument `#2' cannot convert `IFoo<object>' expression to type `IFoo<int>' -// Line: 18 + // CS1503: Argument `#1' cannot convert `int' expression to type `bool' +// Line: 15 -interface IFoo<in T> +class A { + public static void Foo (bool test) + { + } +} + +class B +{ + public static void Main() + { + A.Foo (1); + } } + + // CS1503: Argument `#1' cannot convert `null' expression to type `__arglist' +// Line: 8 class C { - public static void Foo<T> (IFoo<T> e1, IFoo<T> e2) + void Foo () { + InstanceArgList (null); } /usr/lib/monodoc/sources/cs-errors.zip/CS1510 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1510 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1510 2039-11-01 23:06:40.000000000 +0100 @@ -3,16 +3,18 @@ CS1510 // CS1510: A ref or out argument must be an assignable variable -// Line: 11 -class X { - public static void m (ref int i) +// Line: 9 + +class C +{ + public static void Main () { - i++; + const char c = 'a'; + Foo (ref c); } - static void Main () + static void Foo(ref char i) { - m (ref 4); } } @@ -33,6 +35,20 @@ } } // CS1510: A ref or out argument must be an assignable variable +// Line: 11 +class X { + public static void m (ref int i) + { + i++; + } + + static void Main () + { + m (ref 4); + } +} + + // CS1510: A ref or out argument must be an assignable variable // Line: 19 // this is bug #70402 @@ -70,21 +86,5 @@ } } - // CS1510: A ref or out argument must be an assignable variable -// Line: 9 - -class C -{ - public static void Main () - { - const char c = 'a'; - Foo (ref c); - } - - static void Foo(ref char i) - { - } -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1512 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1512 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1512 2039-11-01 23:06:40.000000000 +0100 @@ -5,6 +5,19 @@ // CS1512: Keyword `base' is not available in the current context // Line: 11 +class Base +{ + private string B () { return "a"; } +} + +class E +{ + private string B = base.B (); +} + + // CS1512: Keyword `base' is not available in the current context +// Line: 11 + struct S { delegate int D (); @@ -17,18 +30,5 @@ } } - // CS1512: Keyword `base' is not available in the current context -// Line: 11 - -class Base -{ - private string B () { return "a"; } -} - -class E -{ - private string B = base.B (); -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1519 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1519 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1519 2039-11-01 23:06:40.000000000 +0100 @@ -8,6 +8,14 @@ class X { } using System; + // CS1519: Unexpected symbol `unchecked' in class, struct, or interface member declaration +// Line: 6 + +class C +{ + unchecked const decimal d = 79m; +} + // CS1519: Unexpected symbol `}' in class, struct, or interface member declaration // Line: 7 @@ -31,13 +39,5 @@ public class Test {} extern alias Hey; - // CS1519: Unexpected symbol `unchecked' in class, struct, or interface member declaration -// Line: 6 - -class C -{ - unchecked const decimal d = 79m; -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1521 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1521 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1521 2039-11-01 23:06:40.000000000 +0100 @@ -2,12 +2,17 @@ CS1521 - // CS1521: Invalid base type `object[]' -// Line: 4 + // CS1521: Invalid base type `C?' +// Line: 8 -class C2: object[] +struct C +{ +} + +class C2: C? { } + // CS1521: Invalid base type `C*' // Line: 9 @@ -21,26 +26,21 @@ { } - // CS1521: Invalid base type `C[]' -// Line: 8 - -class C -{ -} + // CS1521: Invalid base type `object[]' +// Line: 4 -class C2: C[] +class C2: object[] { } - - // CS1521: Invalid base type `C?' + // CS1521: Invalid base type `C[]' // Line: 8 -struct C +class C { } -class C2: C? +class C2: C[] { } /usr/lib/monodoc/sources/cs-errors.zip/CS1525 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1525 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1525 2039-11-01 23:06:40.000000000 +0100 @@ -2,125 +2,86 @@ CS1525 - // CS1525: Unexpected symbol `==', expecting `(' or `type' + // CS1525: Unexpected symbol `out' // Line: 8 -class A +public class Test { - public static implicit operator == (A a, bool b) + public static void Main () { - return false; + object[] x = new object[] { 0, out i}; } } - // CS1525: Unexpected symbol `<', expecting `,' or `>' -// Line: 9 + // CS1525: Unexpected symbol `i', expecting `}', `case', or `default:' +// Line: 11 -interface IFoo<T> -{ -} +class X { -public class Bar { - public void GetItemCommand<IFoo<int>>() + static void Main () { - } -} - - // CS1525: Unexpected symbol `/' -// Line: 10 + int i = 0; -namespace Test674 -{ - class MainClass - { - public static void Main(string[] args) - { - var a = new A(another: something, sth: /without/quotes); + switch (i){ + i = 4; } } +} + + // CS1525: Unexpected symbol `string', expecting `,' or `]' +// Line: 5 - public class A +public class TestApp { + static void Main ([MarshalAs (UnmanagedType.LPStr) string[] args) { - public A(string sth, string another) - { - } } -} - - // CS1525: Unexpected symbol `;', expecting `(', `[', or `{' +} + // CS1525: Unexpected symbol `}', expecting `)' or `,' // Line: 7 class X { static void Main () { - X x = new X; + Console.WriteLine ("Hola" } } - // CS1525: Unexpected symbol `}', expecting `(', `,', `{', or `where' -// Line: 9 - -using System; + // CS1525: Unexpected symbol `Foo' +// Line: 4 -namespace Test -{ - class A : Tuple<A> -} +Foo + tag = 0; +Bar + tag = 1; - // CS1525: Unexpected symbol `)', expecting `.' or `[' + // CS1525: Unexpected symbol `}' // Line: 10 -using System.Collections; +using System; -class Collection : CollectionBase +class Foo { - public int Add (int x) + void Bar () { - return ((IList) base).Add (x); + throw new Exception ("e", } } - - - // CS1525: Unexpected symbol `ref' -// Line: 8 + // CS1525: Unexpected symbol `end-of-file', expecting `(', `,', `.', `:', `::', `]', or `<' +// Line: 4 -public class Test -{ - static void Main () - { - string ref = "abc"; - } -} +class C1<[at - // CS1525: Unexpected symbol `out' + // CS1525: Unexpected symbol `}' // Line: 8 -public class Test -{ - public static void Main () - { - object[] x = new object[] { 0, out i}; - } -} - - // CS1525: Unexpected symbol `:', expecting `,', `;', or `=' -// Line: 7 - class X { - public static void Main () + X () { - int myarray:; + label1: } } - // CS1525: Unexpected symbol `int' -// Line: 5 - -public class Test { - void T (int int) {} -} - // CS1525: Unexpected symbol `}', expecting `{' or `when' // Line: 11 @@ -134,161 +95,171 @@ } catch (Exception) } } - // CS1525: Unexpected symbol `returnValue' -// Line: 11 + // CS1525: Unexpected symbol `>', expecting `[', `identifier', `in', or `out' +// Line: 4 -public class C +public class C<> { - public void Foo () +} + + // CS1525: Unexpected symbol `)' +// Line: 12 + +class Test +{ + static void Foo (int a, bool b) { - string returnValue = null; - - returnValue += (1+3) - returnValue += (""); + } + + static void Main () + { + Foo (1, ); } } - // CS1518: Unexpected symbol `ew' /usr/lib/monodoc/sources/cs-errors.zip/CS1530 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1530 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1530 2039-11-01 23:06:40.000000000 +0100 @@ -5,14 +5,6 @@ // CS1530: Keyword `new' is not allowed on namespace elements // Line: 8 -new enum E -{ -} - - - // CS1530: Keyword `new' is not allowed on namespace elements -// Line: 8 - class Base { } @@ -29,5 +21,13 @@ } } + // CS1530: Keyword `new' is not allowed on namespace elements +// Line: 8 + +new enum E +{ +} + + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1534 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1534 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1534 2039-11-01 23:06:40.000000000 +0100 @@ -7,29 +7,29 @@ class C { - public static C operator * (C a, C b, C c, C d) + public static C operator * (C a, C b, C d) { return null; } } - // CS1534: Overloaded binary operator `+' takes two parameters + // CS1534: Overloaded binary operator `*' takes two parameters // Line: 6 class C { - public static C operator +() + public static C operator * (C a, C b, C c, C d) { return null; } } - // CS1534: Overloaded binary operator `*' takes two parameters + // CS1534: Overloaded binary operator `+' takes two parameters // Line: 6 class C { - public static C operator * (C a, C b, C d) + public static C operator +() { return null; } /usr/lib/monodoc/sources/cs-errors.zip/CS1537 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1537 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1537 2039-11-01 23:06:40.000000000 +0100 @@ -7,7 +7,7 @@ // Compiler options: -r:CSExternAlias-lib.dll extern alias A; -using A = System; +extern alias A; // CS1537: The using alias `A' appeared previously in this namespace @@ -15,7 +15,7 @@ // Compiler options: -r:CSExternAlias-lib.dll extern alias A; -extern alias A; +using A = System; // CS1537: The using alias `A' appeared previously in this namespace /usr/lib/monodoc/sources/cs-errors.zip/CS1540 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1540 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1540 2039-11-01 23:06:40.000000000 +0100 @@ -2,150 +2,140 @@ CS1540 - // CS1540: Cannot access protected member `A.member' via a qualifier of type `A'. The qualifier must be of type `B' or derived from it -// Line: 17 -// NOTE: csc report simple inaccessible error which is less precise + // CS1540: Cannot access protected member `Test.A.Property' via a qualifier of type `Test.A'. The qualifier must be of type `Test.B.C' or derived from it +// Line: 19 -using System; +namespace Test +{ + public class A + { + protected int Property { + get { return 0; } + } + } + + public class B : A + { + private sealed class C + { + public C (A a) + { + int test = a.Property; + test++; + } + } + } +} + // CS1540: Cannot access protected member `A.Test.get' via a qualifier of type `B'. The qualifier must be of type `C' or derived from it +// Line: 17 class A { - protected event EventHandler member; + public object[] Test { + set { } + protected get { return null; } + } } class B : A { - static void Main () - { - A a = new A (); - a.member += Handler; - } - - static void Handler (object sender, EventArgs args) {} -} - - // CS1540: Cannot access protected member `A.Test(int)' via a qualifier of type `B'. The qualifier must be of type `C' or derived from it -// Line: 28 -using System; - -public abstract class A -{ - protected virtual void Test (int a) - { } - - public void Test () - { } } -public class B : A +class C : A { - protected override void Test (int a) + public void Test2 (B b) { - base.Test (a); + foreach (object o in b.Test) { + } } } + + // CS1540: Cannot access protected member `A.n' via a qualifier of type `A'. The qualifier must be of type `B' or derived from it +// Line: 14 -public class C : A +class A { - private B B; + protected int n; +} - protected override void Test (int a) +class B : A +{ + public static void Main () { - B.Test (a); - base.Test (a); + A b = new A (); + b.n = 1; } } + + // CS1540: Cannot access protected member `A.Test' via a qualifier of type `B'. The qualifier must be of type `C' or derived from it +// Line: 17 -class X +class A { - static void Main () - { } + protected object[] Test { get { return null; } } } - - // CS1540: Cannot access protected member `A.A(int)' via a qualifier of type `A'. The qualifier must be of type `B' or derived from it -// Line: 25 -public class A +class B : A { - protected A (int a) - { - } } -public class B : A +class C: A { - public B () - : base (1) - { - } - - public static void Main () - { - A a = new A (1); - } + public void Test2 (B b) + { + foreach (object o in b.Test) + { + } + } + } - // CS1540: Cannot access protected member `A.f' via a qualifier of type `A'. The qualifier must be of type `B' or derived from it -// Line: 9 + // CS1540: Cannot access protected member `A.n' via a qualifier of type `B'. The qualifier must be of type `C.N' or derived from it +// Line: 12 class A { - protected int f { get { return 1; } } + protected int n = 0; } -class B : A { - int baz () { return new A().f; } - } - - - // CS1540: Cannot access protected member `AAttribute.AAttribute(int)' via a qualifier of type `AAttribute'. The qualifier must be of type `BAttribute' or derived from it -// Line: 17 +class B : A { } -using System; +class C : B { + class N { + static internal int foo (B b) { return b.n; } + } + public static int Main () { + return N.foo (new B ()); + } +} + + // CS1540: Cannot access protected member `A.A(A)' via a qualifier of type `A'. The qualifier must be of type `B' or derived from it +// Line: 25 -public class AAttribute : Attribute -{ - public AAttribute () +public class A { + public A () { } - protected AAttribute (int a) + protected A (A a) { } } -[AAttribute (5)] -public class BAttribute : AAttribute -{ - public BAttribute () : base () +public class B : A { + public B () : base () { /usr/lib/monodoc/sources/cs-errors.zip/CS1547 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1547 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1547 2039-11-01 23:06:40.000000000 +0100 @@ -3,91 +3,88 @@ CS1547 // CS1547: Keyword `void' cannot be used in this context -// Line: 9 -using System; +// Line: 6 -class X +class C { - static void Main () + int Foo () { - void[] a; + foreach (void v in this) + { + } } -} - +} // CS1547: Keyword `void' cannot be used in this context -// Line: 8 +// Line: 6 -class C -{ - static void Main () - { - bool b = 1 is void; +class C { + static void Main () { + int i = sizeof (void); } } // CS1547: Keyword `void' cannot be used in this context // Line: 6 class C { - const string s = "3"; - public object o = (void)s; + object o = new void(); } // CS1547: Keyword `void' cannot be used in this context -// Line: 8 +// Line: 7 +using System; class X { static void Main () { - object o = default(void); + void a; } } // CS1547: Keyword `void' cannot be used in this context -// Line: 10 -class Foo<T> -{ } +// Line: 6 + +interface IA +{ + ref void Foo (); +} + + // CS1547: Keyword `void' cannot be used in this context +// Line: 8 + class X { static void Main () { - Foo<void> foo; + var e = from void v in new int [] { 0 } select i; } } // CS1547: Keyword `void' cannot be used in this context -// Line: 6 - -class C { - object o = new void(); -} - // CS1547: Keyword `void' cannot be used in this context -// Line: 11 +// Line: 10 +class Foo<T> +{ } -namespace OtherTest +class X { - public static class Program + static void Main () { - static void MainD (object p) - { - if (p is String) - (void)((string) p).ToString (); - } + Foo<void> foo; } } // CS1547: Keyword `void' cannot be used in this context -// Line: 6 +// Line: 9 +using System; -class C +class X { - int Foo () + static void Main () { - foreach (void v in this) - { - } + void[] a; } -} +} + // CS1547: Keyword `void' cannot be used in this context // Line: 5 @@ -98,39 +95,42 @@ // Line: 6 class C { - static void Main () { - int i = sizeof (void); - } + const string s = "3"; + public object o = (void)s; } // 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; + object o = default(void); } } // CS1547: Keyword `void' cannot be used in this context -// Line: 6 +// Line: 8 -interface IA +class C { - ref void Foo (); -} - + static void Main () + { + bool b = 1 is void; + } +} // CS1547: Keyword `void' cannot be used in this context -// Line: 7 -using System; +// Line: 11 -class X +namespace OtherTest { - static void Main () + public static class Program { - void a; + static void MainD (object p) + { + if (p is String) + (void)((string) p).ToString (); + } } } /usr/lib/monodoc/sources/cs-errors.zip/CS1548 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1548 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1548 2039-11-01 23:06:40.000000000 +0100 @@ -2,16 +2,12 @@ CS1548 - // CS1548: Error during assembly signing. The specified key file does not have a private key + // CS1548: Error during assembly signing. The specified key file `cs1548-2.cs' has incorrect format // Line: 0 using System.Reflection; -[assembly: AssemblyKeyFile ("cs1548.pub")] - -// where cs1548.pub is generated by: -// sn -k cs1548.snk -// sn -p cs1548.snk cs1548.pub +[assembly: AssemblyKeyFile ("cs1548-2.cs")] class MyClass { @@ -20,17 +16,6 @@ } } - // CS1548: Error during assembly signing. The specified key file `missing.snk' does not exist -// Line: 0 -// Compiler options: -keyfile:missing.snk - -class C -{ - public static void Main () - { - } -} - // CS1548: Error during assembly signing. The specified key file `file_not_found.snk' does not exist // Line: 0 @@ -45,12 +30,16 @@ } } - // CS1548: Error during assembly signing. The specified key file `cs1548-2.cs' has incorrect format + // CS1548: Error during assembly signing. The specified key file does not have a private key // Line: 0 using System.Reflection; -[assembly: AssemblyKeyFile ("cs1548-2.cs")] +[assembly: AssemblyKeyFile ("cs1548.pub")] + +// where cs1548.pub is generated by: +// sn -k cs1548.snk +// sn -p cs1548.snk cs1548.pub class MyClass { @@ -58,6 +47,17 @@ { } } + + // CS1548: Error during assembly signing. The specified key file `missing.snk' does not exist +// Line: 0 +// Compiler options: -keyfile:missing.snk + +class C +{ + public static void Main () + { + } +} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1570 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1570 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1570 2039-11-01 23:06:40.000000000 +0100 @@ -2,7 +2,7 @@ CS1570 - // CS1570: XML documentation comment on `Testing.EnumTest2' is not well-formed XML markup (The 'summary' start tag on line 1 position 2 does not match the end tag of 'incorrect'. Line 3, position 3.) + // CS1570: XML documentation comment on `Testing.Test2' is not well-formed XML markup (The 'summary' start tag on line 1 position 2 does not match the end tag of 'incorrect'. Line 3, position 3.) // Line: 12 // Compiler options: -doc:dummy.xml -warn:1 -warnaserror @@ -11,50 +11,10 @@ namespace Testing { ///<summary> - /// comment for enum type + /// Incorrect comment markup. ///</incorrect> - enum EnumTest2 - { - Foo, - Bar, - } -} - - - // CS1570: XML documentation comment on `Test' is not well-formed XML markup (Unexpected XML declaration. The XML declaration must be the first node in the document, and no white space characters are allowed to appear before it. Line 3, position 4.) -// Line: 13 -// Compiler options: -doc:dummy.xml -warnaserror -warn:1 - -/// Text goes here. -/// -/// <?xml version = "1.0" encoding = "utf-8" ?> -/// <configuration> -/// <appSettings> -/// <add key = "blah" value = "blech"/> -/// </appSettings> -/// </configuration> -public class Test -{ - static void Main () - { - } -} - - - // CS1570: XML documentation comment on `Testing.Test.Constant2' is not well-formed XML markup (The 'summary' start tag on line 1 position 3 does not match the end tag of 'invalid'. Line 3, position 4.) -// Line: 19 -// Compiler options: -doc:dummy.xml -warn:1 -warnaserror - -using System; - -namespace Testing -{ - public class Test + public class Test2 { - /// <summary> - /// invalid comment for const declaration - /// </invalid> - const string Constant2 = "CONSTANT STRING"; } } @@ -117,8 +77,8 @@ } - // CS1570: XML documentation comment on `Testing.Test.PublicField2' is not well-formed XML markup (The 'summary' start tag on line 1 position 3 does not match the end tag of 'invalid'. Line 3, position 4.) -// Line: 19 + // CS1570: XML documentation comment on `Testing.Test.PrivateField2' is not well-formed XML markup (The 'summary' start tag on line 1 position 3 does not match the end tag of 'incorrect'. Line 3, position 4.) +// Line: 23 // Compiler options: -doc:dummy.xml -warn:1 -warnaserror using System; @@ -127,14 +87,86 @@ { public class Test { + public static void Main () + { + } + /// <summary> - /// comment for public field - /// </invalid> - public string PublicField2; + /// comment for private field + /// </summary> + private string PrivateField; + + /// <summary> + /// incorrect markup comment for private field + /// </incorrect> + private string PrivateField2; + + /** + <summary> + Javadoc comment for private field + </summary> + */ + private string PrivateField3; + } +} + + + // CS1570: XML documentation comment on `Testing.Test2' is not well-formed XML markup (The 'summary' start tag on line 1 position 3 does not match the end tag of 'incorrect'. Line 3, position 4.) +// Line: 12 +// Compiler options: -doc:dummy.xml -warnaserror -warn:1 + +using System; + +namespace Testing +{ + /// <summary> + /// Incorrect comment markup. + /// </incorrect> + public class Test2 + { + } +} + + + // CS1570: XML documentation comment on `Testing.EnumTest2' is not well-formed XML markup (The 'summary' start tag on line 1 position 2 does not match the end tag of 'incorrect'. Line 3, position 3.) +// Line: 12 +// Compiler options: -doc:dummy.xml -warn:1 -warnaserror + +using System; + +namespace Testing +{ + ///<summary> + /// comment for enum type + ///</incorrect> + enum EnumTest2 + { + Foo, + Bar, } } + // CS1570: XML documentation comment on `Test' is not well-formed XML markup (Unexpected XML declaration. The XML declaration must be the first node in the document, and no white space characters are allowed to appear before it. Line 3, position 4.) +// Line: 13 +// Compiler options: -doc:dummy.xml -warnaserror -warn:1 + +/// Text goes here. +/// +/// <?xml version = "1.0" encoding = "utf-8" ?> +/// <configuration> +/// <appSettings> +/// <add key = "blah" value = "blech"/> +/// </appSettings> +/// </configuration> +public class Test +{ + static void Main () + { + } +} + + // CS1570: XML documentation comment on `Testing.StructTest2' is not well-formed XML markup (The 'summary' start tag on line 1 position 2 does not match the end tag of 'incorrect'. Line 3, position 3.) // Line: 10 // Compiler options: -doc:dummy.xml -warn:1 -warnaserror @@ -150,19 +182,20 @@ } - // CS1570: XML documentation comment on `Testing.Test2' is not well-formed XML markup (The 'summary' start tag on line 1 position 3 does not match the end tag of 'incorrect'. Line 3, position 4.) -// Line: 12 -// Compiler options: -doc:dummy.xml -warnaserror -warn:1 + // CS1570: XML documentation comment on `Testing.Test.Constant2' is not well-formed XML markup (The 'summary' start tag on line 1 position 3 does not match the end tag of 'invalid'. Line 3, position 4.) +// Line: 19 +// Compiler options: -doc:dummy.xml -warn:1 -warnaserror using System; namespace Testing { - /// <summary> - /// Incorrect comment markup. - /// </incorrect> - public class Test2 + public class Test { + /// <summary> + /// invalid comment for const declaration + /// </invalid> + const string Constant2 = "CONSTANT STRING"; } } @@ -197,40 +230,6 @@ } - // CS1570: XML documentation comment on `Testing.Test.PrivateField2' is not well-formed XML markup (The 'summary' start tag on line 1 position 3 does not match the end tag of 'incorrect'. Line 3, position 4.) -// Line: 23 -// Compiler options: -doc:dummy.xml -warn:1 -warnaserror /usr/lib/monodoc/sources/cs-errors.zip/CS1574 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1574 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1574 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,18 @@ CS1574 + // CS1574: XML comment on `Foo' has cref attribute `Dispatch()' that could not be resolved +// Line: 8 +// Compiler options: -doc:dummy.xml -warnaserror + +/// I am delegate, without parens +public delegate void Dispatch (); + +/// <see cref="Dispatch()" /> +public class Foo +{ +} + // CS1574: XML comment on `Test' has cref attribute `Test.Foo(int)' that could not be resolved // Line: 8 // Compiler options: -doc:dummy.xml -warnaserror -warn:1 @@ -16,6 +28,31 @@ } } + // CS1574: XML comment on `Test' has cref attribute `explicit operator int (bool)' that could not be resolved +// Line: 7 +// Compiler options: -doc:dummy.xml -warnaserror -warn:1 + +using System; +/// <seealso cref="explicit operator int (bool)"/> +public class Test +{ +} + + // CS1574: XML comment on `Test' has cref attribute `MyDelegate(int)' that could not be resolved +// Line: 8 +// Compiler options: -doc:dummy.xml -warnaserror -warn:1 + +/// <summary> +/// <see cref="MyDelegate(int)" /> +/// </summary> +public class Test { + /// <summary> + /// whatever + /// </summary> + public delegate void MyDelegate(int i); +} + + // CS1574: XML comment on `Test' has cref attribute `Goo' that could not be resolved // Line: 8 // Compiler options: -doc:dummy.xml -warnaserror -warn:1 @@ -36,28 +73,6 @@ { } } - // CS1574: XML comment on `A' has cref attribute `ExecuteSilently' that could not be resolved -// Line: 11 -// Compiler options: -doc:dummy.xml -warnaserror -/// <summary /> -public interface IExecutable { - /// <summary /> - void ExecuteSilently (); -} - -/// <summary> -/// <see cref="ExecuteSilently">this is not allowed</see> -/// </summary> -public class A : IExecutable { - static void Main () { - } - - /// <summary /> - void IExecutable.ExecuteSilently () { - } -} - - // CS1574: XML comment on `Test' has cref attribute `Format()' that could not be resolved // Line: 5 // Compiler options: -doc:dummy.xml -warnaserror @@ -93,76 +108,61 @@ } - // CS1574: XML comment on `Test' has cref attribute `explicit operator int (bool)' that could not be resolved + // CS1574: XML comment on `Test' has cref attribute `Method(x,y)' that could not be resolved // Line: 7 // Compiler options: -doc:dummy.xml -warnaserror -warn:1 using System; -/// <seealso cref="explicit operator int (bool)"/> +/// <see cref="Method(x,y)"/> public class Test { } - // CS1574: XML comment on `Test' has cref attribute `System.Xml.XmlDocument' that could not be resolved -// Line: 9 -// Compiler options: -doc:dummy.xml -warnaserror -noconfig - -using System; - -/// <seealso cref="System.Xml.XmlDocument"/> -/// with /noconfig, it cannot be resolved. -public class Test -{ + // CS1574: XML comment on `A' has cref attribute `ExecuteSilently' that could not be resolved +// Line: 11 +// Compiler options: -doc:dummy.xml -warnaserror +/// <summary /> +public interface IExecutable { + /// <summary /> + void ExecuteSilently (); } - - // CS1574: XML comment on `Test' has cref attribute `MyDelegate(int)' that could not be resolved -// Line: 8 -// Compiler options: -doc:dummy.xml -warnaserror -warn:1 /// <summary> -/// <see cref="MyDelegate(int)" /> +/// <see cref="ExecuteSilently">this is not allowed</see> /// </summary> -public class Test { - /// <summary> - /// whatever - /// </summary> - public delegate void MyDelegate(int i); +public class A : IExecutable { + static void Main () { + } + + /// <summary /> + void IExecutable.ExecuteSilently () { + } } - // CS1574: XML comment on `Test' has cref attribute `Method(x,y)' that could not be resolved -// Line: 7 + // CS1574: XML comment on `Test' has cref attribute `Method(System.String)' that could not be resolved +// Line: 8 // Compiler options: -doc:dummy.xml -warnaserror -warn:1 using System; -/// <see cref="Method(x,y)"/> + +/// <seealso cref="Method(System.String)"/> public class Test { } - - // CS1574: XML comment on `Foo' has cref attribute `Dispatch()' that could not be resolved -// Line: 8 -// Compiler options: -doc:dummy.xml -warnaserror -/// I am delegate, without parens -public delegate void Dispatch (); - -/// <see cref="Dispatch()" /> -public class Foo -{ -} - // CS1574: XML comment on `Test' has cref attribute `Method(System.String)' that could not be resolved -// Line: 8 -// Compiler options: -doc:dummy.xml -warnaserror -warn:1 + // CS1574: XML comment on `Test' has cref attribute `System.Xml.XmlDocument' that could not be resolved +// Line: 9 +// Compiler options: -doc:dummy.xml -warnaserror -noconfig using System; -/// <seealso cref="Method(System.String)"/> +/// <seealso cref="System.Xml.XmlDocument"/> +/// with /noconfig, it cannot be resolved. public class Test { } - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1576 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1576 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1576 2039-11-01 23:06:40.000000000 +0100 @@ -5,7 +5,12 @@ // CS1576: The line number specified for #line directive is missing or invalid // Line: 4 -#line -9 +#line + + // CS1576: The line number specified for #line directive is missing or invalid +// Line: 4 + +#line 0 // CS1576: The line number specified for #line directive is missing or invalid // Line: 8 @@ -21,12 +26,7 @@ // CS1576: The line number specified for #line directive is missing or invalid // Line: 4 -#line 0 - - // CS1576: The line number specified for #line directive is missing or invalid -// Line: 4 - -#line +#line -9 \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1577 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1577 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1577 2039-11-01 23:06:40.000000000 +0100 @@ -4,9 +4,7 @@ // CS1577: Referenced assembly `CS1577-lib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' does not have a strong name // Line: 0 -// Compiler options: -r:CS1577-lib.dll - -[assembly: System.Reflection.AssemblyKeyFileAttribute ("cs1577.snk")] +// Compiler options: -keyfile:cs1577.snk -r:CS1577-lib.dll class Test { @@ -18,7 +16,9 @@ // CS1577: Referenced assembly `CS1577-lib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' does not have a strong name // Line: 0 -// Compiler options: -keyfile:cs1577.snk -r:CS1577-lib.dll +// Compiler options: -r:CS1577-lib.dll + +[assembly: System.Reflection.AssemblyKeyFileAttribute ("cs1577.snk")] class Test { /usr/lib/monodoc/sources/cs-errors.zip/CS1579 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1579 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1579 2039-11-01 23:06:40.000000000 +0100 @@ -2,45 +2,49 @@ CS1579 - // CS1579: foreach statement cannot operate on variables of type `C' because it does not contain a definition for `GetEnumerator' or is inaccessible -// Line: 37 + // 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 Enumerator +public class Test { - public bool MoveNext () - { - return false; - } - - public int Current { get; set; } + public static void Main () + { + Foo f = new Foo (); + foreach (object o in f) + Console.WriteLine (o); + } } - -public class Base +public class Foo { - public Enumerator GetEnumerator () - { - return new Enumerator (); - } + internal IEnumerator GetEnumerator () + { + return new ArrayList ().GetEnumerator (); + } } + + // CS1579: foreach statement cannot operate on variables of type `Foo' because it does not contain a definition for `GetEnumerator' or is inaccessible +// Line: 12 -public class C : Base +using System; +using System.Collections; + +public class Test { - new internal Enumerator GetEnumerator () + public static void Main () { - return new Enumerator (); + Foo f = new Foo (); + foreach (object o in f) + Console.WriteLine (o); } } -class Test +public class Foo { - public static void Main () - { - foreach (var e in new C ()) - Console.WriteLine (e); - } + public Func<IEnumerator> GetEnumerator; } // CS1579: foreach statement cannot operate on variables of type `X' because it does not contain a definition for `GetEnumerator' or is inaccessible @@ -58,49 +62,45 @@ } } - // CS1579: foreach statement cannot operate on variables of type `Foo' because it does not contain a definition for `GetEnumerator' or is inaccessible -// Line: 12 + // CS1579: foreach statement cannot operate on variables of type `C' because it does not contain a definition for `GetEnumerator' or is inaccessible +// Line: 37 using System; -using System.Collections; -public class Test +public class Enumerator { - public static void Main () + public bool MoveNext () { - Foo f = new Foo (); - foreach (object o in f) - Console.WriteLine (o); + return false; } + + public int Current { get; set; } } -public class Foo + +public class Base { - public Func<IEnumerator> GetEnumerator; + public Enumerator GetEnumerator () + { + return new Enumerator (); + } } - - // 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 class C : Base { - public static void Main () - { - Foo f = new Foo (); - foreach (object o in f) - Console.WriteLine (o); - } + new internal Enumerator GetEnumerator () + { + return new Enumerator (); + } } -public class Foo +class Test { - internal IEnumerator GetEnumerator () - { - return new ArrayList ().GetEnumerator (); - } + public static void Main () + { + foreach (var e in new C ()) + Console.WriteLine (e); + } } /usr/lib/monodoc/sources/cs-errors.zip/CS1584 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1584 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1584 2039-11-01 23:06:40.000000000 +0100 @@ -11,55 +11,55 @@ { } - // CS1584: XML comment on `Test' has syntactically incorrect cref attribute `Mai()n' -// Line: 7 + // CS1584: XML comment on `Test' has syntactically incorrect cref attribute `IList(<>)' +// Line: 8 // Compiler options: -doc:dummy.xml -warnaserror -warn:1 -using System; -/// <see cref="Mai()n" /> +using System.Collections.Generic; + +/// <returns>A <see cref="IList({})" />.</returns> public class Test { } - // CS1584: XML comment on `Test' has syntactically incorrect cref attribute `operator foo(int,Test)' -// Line: 7 + // CS1584: XML comment on `Test' has syntactically incorrect cref attribute `.' +// Line: 8 // Compiler options: -doc:dummy.xml -warnaserror -warn:1 using System; -/// <seealso cref="operator foo(int,Test)"/> + +/// <see cref="." /> public class Test { } - // CS1584: XML comment on `Test' has syntactically incorrect cref attribute `.' -// Line: 8 + // CS1584: XML comment on `Test' has syntactically incorrect cref attribute `operator foo(int,Test)' +// Line: 7 // Compiler options: -doc:dummy.xml -warnaserror -warn:1 using System; - -/// <see cref="." /> +/// <seealso cref="operator foo(int,Test)"/> public class Test { } - // CS1584: XML comment on `Test' has syntactically incorrect cref attribute `' -// Line: 8 + // CS1584: XML comment on `Test' has syntactically incorrect cref attribute `Mai()n' +// Line: 7 // Compiler options: -doc:dummy.xml -warnaserror -warn:1 using System; - -/// <see cref="" /> +/// <see cref="Mai()n" /> public class Test { } - // CS1584: XML comment on `Test' has syntactically incorrect cref attribute `IList(<>)' + // CS1584: XML comment on `Test' has syntactically incorrect cref attribute `' // Line: 8 // Compiler options: -doc:dummy.xml -warnaserror -warn:1 -using System.Collections.Generic; +using System; -/// <returns>A <see cref="IList({})" />.</returns> +/// <see cref="" /> public class Test { } /usr/lib/monodoc/sources/cs-errors.zip/CS1587 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1587 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1587 2039-11-01 23:06:40.000000000 +0100 @@ -3,15 +3,16 @@ CS1587 // CS1587: XML comment is not placed on a valid language element -// Line: 9 +// Line: 10 // Compiler options: -doc:dummy.xml -warnaserror -warn:2 using System; namespace TopNS { - internal /** comment */ /** comment2 */ class Hoge - { + enum Enum3 { + Foo /** invalid comment between enum identifier and comma */, + Bar } } @@ -23,29 +24,27 @@ namespace TopNS { - namespace ChildNS { - [Flags] - /// comment after attribute - enum Enum2 { + class Foo + { + void /// incorrect + FooBar (string foo) + { } } + } // CS1587: XML comment is not placed on a valid language element -// Line: 13 +// Line: 8 // Compiler options: -doc:dummy.xml -warnaserror -warn:2 using System; +/// invalid comment placed on namespace. namespace TopNS { class Foo { - string this [string bar] { - get { return ""; } - /// incorrect - set { } - } } } @@ -59,72 +58,75 @@ { class Foo { - public /** invalid comment in field decl */ int field; + public /// incorrect + void FooBar (string foo) + { + } } + } // CS1587: XML comment is not placed on a valid language element -// Line: 15 +// Line: 13 // Compiler options: -doc:dummy.xml -warnaserror -warn:2 using System; namespace TopNS { - namespace ChildNS { - enum Enum3 { + class Foo + { + string this [string bar] { + get { return ""; } + /// incorrect + set { } } - /// invalid here } } // CS1587: XML comment is not placed on a valid language element -// Line: 10 +// Line: 9 // Compiler options: -doc:dummy.xml -warnaserror -warn:2 using System; namespace TopNS { - /// more invalid comment on namespace; inside namespace - namespace ChildNS { - class Test { - } + [Flags/** here is also incorrect comment */] + enum Enum2 { } - } // CS1587: XML comment is not placed on a valid language element -// Line: 13 +// Line: 10 // Compiler options: -doc:dummy.xml -warnaserror -warn:2 using System; namespace TopNS { - class Foo - { - Foo (string foo) - { - /** incorrect doccomment*/ - } +/// invalid comment on using alias directive inside namespace. +using Hoge = System.Xml.XmlDocument; + + enum Foo { } } // CS1587: XML comment is not placed on a valid language element -// Line: 12 +// Line: 9 // Compiler options: -doc:dummy.xml -warnaserror -warn:2 using System; namespace TopNS { + internal /** comment */ /** comment2 */ class Hoge + { + } } - -/// EOF // CS1587: XML comment is not placed on a valid language element -// Line: 11 +// Line: 13 // Compiler options: -doc:dummy.xml -warnaserror -warn:2 using System; @@ -133,46 +135,58 @@ { class Foo { - Foo /** incorrect */ () - { + string this [string bar] { + get { return ""; } + set { /** incorrect */ } } } - } // CS1587: XML comment is not placed on a valid language element -// Line: 13 +// Line: 10 // Compiler options: -doc:dummy.xml -warnaserror -warn:2 using System; namespace TopNS { - class Foo - { - string this [string bar] { - get { return ""; } - set { /** incorrect */ } - } +/// invalid comment on using directive inside namespace. +using System.Xml; + + enum Foo { } } // CS1587: XML comment is not placed on a valid language element -// Line: 8 +// Line: 7 +// Compiler options: -doc:dummy.xml -warnaserror -warn:2 + +using System; /usr/lib/monodoc/sources/cs-errors.zip/CS1589 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1589 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1589 2039-11-01 23:06:40.000000000 +0100 @@ -2,39 +2,39 @@ CS1589 - // CS1589: Unable to include XML fragment `/root/@attr' of file `cs1589.inc'. The specified node cannot be inserted as the valid child of this node, because the specified node is the wrong type -// Line: 15 + // CS1589: Unable to include XML fragment `/foo/bar' of file `there-is-no-such-file'. Could not find file "*PATH*/there-is-no-such-file" +// Line: 12 // Compiler options: -doc:dummy.xml -warn:1 -warnaserror namespace Testing { - /// <include file='cs1589.inc' path='/foo' /> + /// blah public class Test { - public static void Main () + // warning + /// <include file='there-is-no-such-file' path='/foo/bar' /> + public void Baz (int x) { } - - /// <include file='cs1589.inc' path='/root/@attr'/> - public string S3; } } - // CS1589: Unable to include XML fragment `/foo/bar' of file `there-is-no-such-file'. Could not find file "*PATH*/there-is-no-such-file" -// Line: 12 + // CS1589: Unable to include XML fragment `/root/@attr' of file `cs1589.inc'. The specified node cannot be inserted as the valid child of this node, because the specified node is the wrong type +// Line: 15 // Compiler options: -doc:dummy.xml -warn:1 -warnaserror namespace Testing { - /// blah + /// <include file='cs1589.inc' path='/foo' /> public class Test { - // warning - /// <include file='there-is-no-such-file' path='/foo/bar' /> - public void Baz (int x) + public static void Main () { } + + /// <include file='cs1589.inc' path='/root/@attr'/> + public string S3; } } /usr/lib/monodoc/sources/cs-errors.zip/CS1590 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1590 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1590 2039-11-01 23:06:40.000000000 +0100 @@ -2,8 +2,8 @@ CS1590 - // CS1590: Invalid XML `include' element. Missing `path' attribute -// Line: 11 + // CS1590: Invalid XML `include' element. Missing `file' attribute +// Line: 16 // Compiler options: -doc:dummy.xml -warn:1 -warnaserror namespace Testing @@ -11,45 +11,45 @@ /// comment public class Test { - /// <include file='a' /> + /// comment public static void Main () { } + + /// <include path='/foo/bar' /> + public void Bar (int x) + { + } } } - // CS1590: Invalid XML `include' element. Missing `file' attribute -// Line: 8 + // CS1590: Invalid XML `include' element. Missing `path' attribute +// Line: 11 // Compiler options: -doc:dummy.xml -warn:1 -warnaserror namespace Testing { - /// <include/> + /// comment public class Test { + /// <include file='a' /> + public static void Main () + { + } } } // CS1590: Invalid XML `include' element. Missing `file' attribute -// Line: 16 +// Line: 8 // Compiler options: -doc:dummy.xml -warn:1 -warnaserror namespace Testing { - /// comment + /// <include/> public class Test { - /// comment - public static void Main () - { - } - - /// <include path='/foo/bar' /> - public void Bar (int x) - { - } } } /usr/lib/monodoc/sources/cs-errors.zip/CS1591 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1591 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1591 2039-11-01 23:06:40.000000000 +0100 @@ -2,7 +2,7 @@ CS1591 - // CS1591: Missing XML comment for publicly visible type or member `Testing.IFoo.Foo' + // CS1591: Missing XML comment for publicly visible type or member `Testing.Test.Constant' // Line: 14 // Compiler options: -doc:dummy.xml -warnaserror -warn:4 @@ -11,15 +11,15 @@ namespace Testing { /// <summary> - /// description for interface IFoo + /// description for class Test /// </summary> - public interface IFoo + public class Test { - string Foo { get; } + public const string Constant = "CONSTANT STRING"; } } - // CS1591: Missing XML comment for publicly visible type or member `Testing.Test.InternalClass' + // CS1591: Missing XML comment for publicly visible type or member `Testing.Test.this[int]' // Line: 14 // Compiler options: -doc:dummy.xml -warnaserror -warn:4 @@ -32,13 +32,13 @@ /// </summary> public class Test { - protected class InternalClass - { + public string this [int i] { + get { return null; } } } } - // CS1591: Missing XML comment for publicly visible type or member `Testing.Test.Constant' + // CS1591: Missing XML comment for publicly visible type or member `Testing.Test.PublicProperty' // Line: 14 // Compiler options: -doc:dummy.xml -warnaserror -warn:4 @@ -51,11 +51,25 @@ /// </summary> public class Test { - public const string Constant = "CONSTANT STRING"; + public string PublicProperty { + get { return null; } + } } } - // CS1591: Missing XML comment for publicly visible type or member `Testing.IFoo.Foo()' + // CS1591: Missing XML comment for publicly visible type or member `EntryPoint.Create(bool)' +// Line: 6 +// Compiler options: -doc:dummy.xml -warnaserror -warn:4 +/// <summary>test</summary> +public class EntryPoint { + protected void Create (bool test) { + } + + protected void Remove () { + } +} + + // CS1591: Missing XML comment for publicly visible type or member `Testing.Test.Foo()' // Line: 14 // Compiler options: -doc:dummy.xml -warnaserror -warn:4 @@ -64,15 +78,17 @@ namespace Testing { /// <summary> - /// description for interface IFoo + /// description for class Test /// </summary> - public interface IFoo + public class Test { - void Foo (); + public static void Foo () + { + } } } - // CS1591: Missing XML comment for publicly visible type or member `Testing.MyDelegate' + // CS1591: Missing XML comment for publicly visible type or member `Testing.TestClass' // Line: 9 // Compiler options: -doc:dummy.xml -warnaserror -warn:4 @@ -80,10 +96,13 @@ namespace Testing { - public delegate void MyDelegate (object o, EventArgs e); + public class TestClass + { + } } + - // CS1591: Missing XML comment for publicly visible type or member `Testing.Test.operator !(Testing.Test)' + // CS1591: Missing XML comment for publicly visible type or member `Testing.IFoo.Foo' // Line: 14 // Compiler options: -doc:dummy.xml -warnaserror -warn:4 @@ -92,35 +111,28 @@ namespace Testing { /// <summary> - /// description for class Test + /// description for interface IFoo /// </summary> - public class Test + public interface IFoo { - public static bool operator ! (Test t) - { - return false; - } + string Foo { get; } } } - // CS1591: Missing XML comment for publicly visible type or member `Testing.Foo.Foo' -// Line: 12 + // CS1591: Missing XML comment for publicly visible type or member `Testing.InterfaceTest' +// Line: 9 // Compiler options: -doc:dummy.xml -warnaserror -warn:4 using System; namespace Testing { - /// comment is here. - public enum Foo + public interface InterfaceTest { - Foo, - /// required for all enum members - Bar } } - // CS1591: Missing XML comment for publicly visible type or member `Testing.Test.InternalStruct' + // CS1591: Missing XML comment for publicly visible type or member `Testing.Test.MyEvent' // Line: 14 // Compiler options: -doc:dummy.xml -warnaserror -warn:4 @@ -133,9 +145,7 @@ /// </summary> public class Test { - public struct InternalStruct - { - } + public event EventHandler MyEvent; } } @@ -158,7 +168,7 @@ } } - // CS1591: Missing XML comment for publicly visible type or member `Testing.Test.this[int]' + // CS1591: Missing XML comment for publicly visible type or member `Testing.Test.InternalStruct' // Line: 14 // Compiler options: -doc:dummy.xml -warnaserror -warn:4 @@ -171,13 +181,13 @@ /// </summary> public class Test { - public string this [int i] { - get { return null; } + public struct InternalStruct + { } } } - // CS1591: Missing XML comment for publicly visible type or member `Testing.Test.PublicProperty' + // CS1591: Missing XML comment for publicly visible type or member `Testing.Test.InternalClass' // Line: 14 // Compiler options: -doc:dummy.xml -warnaserror -warn:4 @@ -190,52 +200,49 @@ /// </summary> public class Test { - public string PublicProperty { - get { return null; } /usr/lib/monodoc/sources/cs-errors.zip/CS1593 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1593 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1593 2039-11-01 23:06:40.000000000 +0100 @@ -2,40 +2,6 @@ CS1593 - // CS1593: Delegate `System.Action<int>' does not take `2' arguments -// Line: 13 - -using System; - -public class Test -{ - public static void Main () - { - Action<int> a = (i) => {}; - - dynamic d = 1; - a (d, true); - } -} - - // 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) - { - } -} - // CS1593: Delegate `System.Action<System.Threading.Tasks.Task>' does not take `0' arguments // Line: 17 @@ -64,21 +30,6 @@ } - // CS1593: Delegate `D' does not take `0' arguments -// Line: 11 -// -// The delegate has an explicit signature with 0 arguments, so it -// can not be assigned to a delegate with one argument. -// -delegate void D (int x); - -class X { - static void Main () - { - D d2 = delegate () {}; - } -} - // CS1593: Delegate `Blah.MyDelegate' does not take `1' arguments // Line : 21 @@ -110,6 +61,21 @@ } + // CS1593: Delegate `D' does not take `0' arguments +// Line: 11 +// +// The delegate has an explicit signature with 0 arguments, so it +// can not be assigned to a delegate with one argument. +// +delegate void D (int x); + +class X { + static void Main () + { + D d2 = delegate () {}; + } +} + // CS1593: Delegate `System.Action<System.Exception,object>' does not take `1' arguments // Line: 16 @@ -134,6 +100,40 @@ { } } + + // CS1593: Delegate `System.Action<int>' does not take `2' arguments +// Line: 13 + +using System; + +public class Test +{ + public static void Main () + { + Action<int> a = (i) => {}; + + dynamic d = 1; + a (d, true); + } +} + + // 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) + { + } +} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1594 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1594 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1594 2039-11-01 23:06:40.000000000 +0100 @@ -42,7 +42,7 @@ static void Bar (string x, params string [] args) {} static void Main () { Foo bar = new Foo (Bar); - bar ("i = ", 5); + bar ("x' = ", new object [] {"Foo", 5, 3.6 }); } } } @@ -56,7 +56,7 @@ static void Bar (string x, params string [] args) {} static void Main () { Foo bar = new Foo (Bar); - bar ("x'' = ", "Foo", 5, 3.6); + bar ("i = ", 5); } } } @@ -70,7 +70,7 @@ static void Bar (string x, params string [] args) {} static void Main () { Foo bar = new Foo (Bar); - bar ("x' = ", new object [] {"Foo", 5, 3.6 }); + bar ("x'' = ", "Foo", 5, 3.6); } } } /usr/lib/monodoc/sources/cs-errors.zip/CS1599 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1599 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1599 2039-11-01 23:06:40.000000000 +0100 @@ -2,39 +2,29 @@ CS1599 - // CS1599: The return type of `System.ArgIterator' is not allowed -// Line: 8 - -using System; - -class C -{ - delegate ArgIterator Test (int arg); -} - // CS1599: The return type of `System.TypedReference' is not allowed // Line: 8 using System; -public class Program +class C { - public static TypedReference operator + (int a, Program b) + public TypedReference Method () { - throw new ApplicationException (); + return null; } } - // CS1599: The return type of `System.TypedReference' is not allowed + // CS1599: The return type of `System.ArgIterator' is not allowed // Line: 8 using System; class C { - public TypedReference Method () - { + public ArgIterator Method () + { return null; - } + } } // CS1599: The return type of `System.ArgIterator' is not allowed // Line: 8 @@ -43,10 +33,20 @@ class C { - public ArgIterator Method () - { - return null; - } + delegate ArgIterator Test (int arg); +} + + // CS1599: The return type of `System.TypedReference' is not allowed +// Line: 8 + +using System; + +public class Program +{ + public static TypedReference operator + (int a, Program b) + { + throw new ApplicationException (); + } } \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1605 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1605 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1605 2039-11-01 23:06:40.000000000 +0100 @@ -3,14 +3,13 @@ CS1605 // CS1605: Cannot pass `this' as a ref or out argument because it is read-only -// Line: 14 -// Compiler options: -langversion:latest +// Line: 13 -readonly struct X +class X { void Test (out X x) { - x = new X (); + x = null; } void Run () @@ -20,13 +19,14 @@ } // CS1605: Cannot pass `this' as a ref or out argument because it is read-only -// Line: 13 +// Line: 14 +// Compiler options: -langversion:latest -class X +readonly struct X { void Test (out X x) { - x = null; + x = new X (); } void Run () /usr/lib/monodoc/sources/cs-errors.zip/CS1612 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1612 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1612 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,68 @@ CS1612 + // CS1612: Cannot modify a value type return value of `Test.v(bool)'. Consider storing the value in a temporary variable +// Line: 28 + +public struct V +{ + public int this [int i] { + set { + } + } + + public int x; +} + +class Test +{ + V m_value; + + public static V v(bool b) { return new V (); } + + public Test () + { + m_value = new V (); + } + + public static void Main () + { + Test t = new Test (); + Test.v(true).x = 9; + } +} + + // CS1612: Cannot modify a value type return value of `Test.v()'. Consider storing the value in a temporary variable +// Line: 28 + +public struct V +{ + public int this [int i] { + set { + } + } + + public int x; +} + +class Test +{ + V m_value; + + public V v() { return m_value; } + + public Test () + { + m_value = new V (); + } + + public static void Main () + { + Test t = new Test (); + t.v() [0] = 9; + } +} + // CS1612: Cannot modify a value type return value of `bar.this[int]'. Consider storing the value in a temporary variable // Line: 19 @@ -17,11 +79,10 @@ } class main { - static void baz (out int x) { x = 5; } static void Main () { bar b = new bar (); - baz (out b [0].x); + b [0].x = 5; } } @@ -40,41 +101,33 @@ } class main { + static void baz (out int x) { x = 5; } static void Main () { bar b = new bar (); - b [0].x = 5; + baz (out b [0].x); } } - // CS1612: Cannot modify a value type return value of `Test.v(bool)'. Consider storing the value in a temporary variable -// Line: 28 + // CS1612: Cannot modify a value type return value of `R.Size'. Consider storing the value in a temporary variable +// Line: 19 -public struct V +struct R { - public int this [int i] { - set { - } - } - - public int x; + public S Size { get; set; } } -class Test +struct S { - V m_value; - - public static V v(bool b) { return new V (); } - - public Test () - { - m_value = new V (); - } + public float Height { get; set; } +} +public class Test +{ public static void Main () { - Test t = new Test (); - Test.v(true).x = 9; + var r = new R (); + r.Size.Height = 3; } } @@ -117,10 +170,12 @@ static void Main () { - P.x += 10; + bar (out P.x); Console.WriteLine ("Got: " + P.x); } + static void bar (out int x) { x = 10; } + static G P { get { return g; @@ -135,37 +190,6 @@ } - // CS1612: Cannot modify a value type return value of `Test.v()'. Consider storing the value in a temporary variable -// Line: 28 - -public struct V -{ - public int this [int i] { - set { - } - } - - public int x; -} - -class Test -{ - V m_value; - - public V v() { return m_value; } - - public Test () - { - m_value = new V (); - } - - public static void Main () - { - Test t = new Test (); - t.v() [0] = 9; - } -} - // CS1612: Cannot modify a value type return value of `X.P'. Consider storing the value in a temporary variable // Line: 9 @@ -200,12 +224,10 @@ static void Main () { - bar (out P.x); + P.x += 10; Console.WriteLine ("Got: " + P.x); } /usr/lib/monodoc/sources/cs-errors.zip/CS1615 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1615 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1615 2039-11-01 23:06:40.000000000 +0100 @@ -21,20 +21,6 @@ { } } - // CS1615: Argument `#1' does not require `ref' modifier. Consider removing `ref' modifier -// Line: 11 - -class C -{ - public static void test (int i) {} - - public static void Main() - { - int i = 1; - test (ref i); - } -} - // CS1615: Argument `#2' does not require `out' modifier. Consider removing `out' modifier // Line: 13 @@ -51,5 +37,19 @@ } } + // CS1615: Argument `#1' does not require `ref' modifier. Consider removing `ref' modifier +// Line: 11 + +class C +{ + public static void test (int i) {} + + public static void Main() + { + int i = 1; + test (ref i); + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1616 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1616 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1616 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,14 @@ CS1616 + // CS1616: Option `keycontainer' overrides attribute `System.Reflection.AssemblyKeyNameAttribute' given in a source file or added module +// Line: 0 +// Compiler options: -keycontainer:CS1616.snk -warnaserror + +using System.Reflection; + +[assembly: AssemblyKeyNameAttribute("mono.snk")] + // CS1616: Option `keyfile' overrides attribute `System.Reflection.AssemblyKeyFileAttribute' given in a source file or added module // Line: 0 // Compiler options: -keyfile:CS1616.snk -warnaserror @@ -14,13 +22,5 @@ { public static void Main () {} } - // CS1616: Option `keycontainer' overrides attribute `System.Reflection.AssemblyKeyNameAttribute' given in a source file or added module -// Line: 0 -// Compiler options: -keycontainer:CS1616.snk -warnaserror - -using System.Reflection; - -[assembly: AssemblyKeyNameAttribute("mono.snk")] - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1620 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1620 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1620 2039-11-01 23:06:40.000000000 +0100 @@ -2,35 +2,47 @@ CS1620 - // CS1620: Argument `#1' is missing `out' modifier -// Line: 13 + // CS1620: Argument `#1' is missing `ref' modifier +// Line: 24 -public class Programa +public class X { - static void Jajaja (out int mengano) + public void Foo (string[] b) + { + } + + public void Foo (ref string i) + { + } + + public void Foo (int i) { - mengano = 3; } +} - static void Run (out int mengano) +class D +{ + static void Main () { - Jajaja (mengano); + X x = null; + x.Foo ("hola"); } } + // CS1620: Argument `#1' is missing `out' modifier // Line: 13 -class C +public class Programa { - public static void test (out int i) + static void Jajaja (out int mengano) { - i = 5; + mengano = 3; } - public static void Main() { - int i = 1; - test (ref i); + static void Run (out int mengano) + { + Jajaja (mengano); } } @@ -58,33 +70,21 @@ } - // CS1620: Argument `#1' is missing `ref' modifier -// Line: 24 + // CS1620: Argument `#1' is missing `out' modifier +// Line: 13 -public class X +class C { - public void Foo (string[] b) - { - } - - public void Foo (ref string i) - { - } - - public void Foo (int i) + public static void test (out int i) { + i = 5; } -} -class D -{ - static void Main () - { - X x = null; - x.Foo ("hola"); + public static void Main() { + int i = 1; + test (ref i); } } - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1621 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1621 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1621 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,23 @@ CS1621 + // CS01621: The yield statement cannot be used inside anonymous method blocks +// Line: 13 + +using System.Collections; + +delegate object D (); + +class C: IEnumerable +{ + public IEnumerator GetEnumerator () + { + D d = delegate { + yield return this; + }; + } +} + // CS1621: The yield statement cannot be used inside anonymous method blocks // Line: 12 @@ -23,22 +40,5 @@ { } } - // CS01621: The yield statement cannot be used inside anonymous method blocks -// Line: 13 - -using System.Collections; - -delegate object D (); - -class C: IEnumerable -{ - public IEnumerator GetEnumerator () - { - D d = delegate { - yield return this; - }; - } -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1622 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1622 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1622 2039-11-01 23:06:40.000000000 +0100 @@ -3,20 +3,27 @@ CS1622 // CS1622: Cannot return a value from iterators. Use the yield return statement to return a value, or yield break to end the iteration -// Line: 14 +// Line: 21 -using System.Collections; +using System.Collections.Generic; -public class C +namespace McsDiff { - internal static IEnumerable PrivateBinPath + class MyObj { - get + } + + class MainClass + { + protected static IEnumerable<MyObj> GetStuff () { - string a = "a"; - if (a == null) - return false; - yield return a; + yield return null; + + try { + } + catch { + return; + } } } } @@ -40,27 +47,20 @@ } // CS1622: Cannot return a value from iterators. Use the yield return statement to return a value, or yield break to end the iteration -// Line: 21 +// Line: 14 -using System.Collections.Generic; +using System.Collections; -namespace McsDiff +public class C { - class MyObj - { - } - - class MainClass + internal static IEnumerable PrivateBinPath { - protected static IEnumerable<MyObj> GetStuff () + get { - yield return null; - - try { - } - catch { - return; - } + string a = "a"; + if (a == null) + return false; + yield return a; } } } /usr/lib/monodoc/sources/cs-errors.zip/CS1624 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1624 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1624 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,27 @@ CS1624 + // CS1624: The body of `X.this[int].set' cannot be an iterator block because `void' is not an iterator interface type +// Line: 15 +using System; +using System.Collections; + +class X +{ + IEnumerator this [int u] + { + get { + yield return 1; + yield return 2; + yield return 3; + } + set + { + yield return 3; + } + } +} + // CS1624: The body of `Program.Program()' cannot be an iterator block because `void' is not an iterator interface type // Line: 6 @@ -13,20 +34,6 @@ } } - // 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; - } -} - // CS1624: The body of `X.Test(int)' cannot be an iterator block because `System.Collections.ArrayList' is not an iterator interface type // Line: 8 using System; @@ -46,24 +53,17 @@ } } - // CS1624: The body of `X.this[int].set' cannot be an iterator block because `void' is not an iterator interface type -// Line: 15 -using System; -using System.Collections; + // 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 -class X +using System.Collections.Generic; + +public class C { - IEnumerator this [int u] + public static TSource Test<TSource>(IEnumerable<TSource> source) { - get { - yield return 1; - yield return 2; - yield return 3; - } - set - { - yield return 3; - } + foreach (TSource element in source) + yield return element; } } /usr/lib/monodoc/sources/cs-errors.zip/CS1625 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1625 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1625 2039-11-01 23:06:40.000000000 +0100 @@ -35,7 +35,7 @@ try { ; } finally { - yield break; + yield return 0; } } @@ -58,7 +58,7 @@ try { ; } finally { - yield return 0; + yield break; } } /usr/lib/monodoc/sources/cs-errors.zip/CS1628 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1628 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1628 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,23 @@ CS1628 + // CS1628: Parameter `i' cannot be used inside `anonymous method' when using `ref' or `out' modifier +// Line: 8 + +public class Test { + public void test(out int i) { + i = 0; + System.EventHandler test = delegate { + i++; + }; + } +} + + + + + + // CS1628: Parameter `a' cannot be used inside `anonymous method' when using `ref' or `out' modifier // Line: 15 using System; @@ -21,22 +38,5 @@ } } - // CS1628: Parameter `i' cannot be used inside `anonymous method' when using `ref' or `out' modifier -// Line: 8 - -public class Test { - public void test(out int i) { - i = 0; - System.EventHandler test = delegate { - i++; - }; - } -} - - - - - - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1629 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1629 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1629 2039-11-01 23:06:40.000000000 +0100 @@ -3,19 +3,23 @@ CS1629 // CS1629: Unsafe code may not appear in iterators -// Line: 8 +// Line: 17 // Compiler options: -unsafe -using System.Collections; +using System.Collections.Generic; -class X { - static IEnumerator GetIt () +public unsafe class TestClass +{ + public struct Foo { + public bool C; + } + + Foo *current; + + public IEnumerable<Foo> EnumeratorCurrentEvents () { - unsafe { - yield return 1; - } + yield return *current; } - } // CS1629: Unsafe code may not appear in iterators // Line: 8 @@ -31,23 +35,19 @@ } // CS1629: Unsafe code may not appear in iterators -// Line: 17 +// Line: 8 // Compiler options: -unsafe -using System.Collections.Generic; - -public unsafe class TestClass -{ - public struct Foo { - public bool C; - } - - Foo *current; +using System.Collections; - public IEnumerable<Foo> EnumeratorCurrentEvents () +class X { + static IEnumerator GetIt () { - yield return *current; + unsafe { + yield return 1; + } } + } \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1632 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1632 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1632 2039-11-01 23:06:40.000000000 +0100 @@ -3,28 +3,6 @@ CS1632 // CS1632: Control cannot leave the body of an anonymous method -// Line: 12 - -using System; - -class X { - delegate void T (); - - static void Main () - { - T t = delegate { - goto L; - }; - -L: - Console.WriteLine ("Hello"); - - } -} - - - - // CS1632: Control cannot leave the body of an anonymous method // Line: 14 using System; @@ -35,20 +13,18 @@ { int b = 0; switch (b) { - case 1: + case 1: Action a = () => { - goto case 2; + break; }; break; - case 2: - break; } } } // CS1632: Control cannot leave the body of an anonymous method -// Line: 14 +// Line: 12 using System; @@ -56,14 +32,10 @@ { public static void Main () { - int b = 0; - switch (b) { - case 1: + while (true) { Action a = () => { break; }; - - break; } } } @@ -73,14 +45,42 @@ using System; +class X { + delegate void T (); + + static void Main () + { + T t = delegate { + goto L; + }; + +L: + Console.WriteLine ("Hello"); + + } +} + + + + // CS1632: Control cannot leave the body of an anonymous method +// Line: 14 + +using System; + class X { public static void Main () { - while (true) { + int b = 0; + switch (b) { + case 1: Action a = () => { - break; + goto case 2; }; + + break; + case 2: + break; } } } /usr/lib/monodoc/sources/cs-errors.zip/CS1644 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1644 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1644 2039-11-01 23:06:40.000000000 +0100 @@ -2,54 +2,35 @@ CS1644 - // CS1644: Feature `expression body property accessor' cannot be used because it is not part of the C# 6.0 language specification -// Line: 11 -// Compiler options: -langversion:6 - -using System; - -class C -{ - public int this[int i] - { - get => i; - } -} - // CS1644: Feature `primary constructor' cannot be used because it is not part of the C# 5.0 language specification -// Line: 7 -// Compiler options: -langversion:5 + // CS1644: Feature `readonly references' cannot be used because it is not part of the C# 7.0 language specification +// Line: 9 +// Compiler options: -langversion:7 -class C (int arg) +class X { -} - // CS1644: Feature `optional parameter' cannot be used because it is not part of the C# 2.0 language specification -// Line: 7 -// Compiler options: -langversion:ISO-2 + int i; -public class C -{ - public C (int a = 0) + ref readonly int Test () { + return ref i; } } - // CS1644: Feature `expression body event accessor' cannot be used because it is not part of the C# 6.0 language specification -// Line: 11 -// Compiler options: -langversion:6 + // CS1644: Feature `external alias' cannot be used because it is not part of the C# 1.0 language specification +// Line: 5 +// Compiler options: -langversion:ISO-1 -r:a=System.dll -using System; +extern alias a; + + // CS1644: Feature `throw expression' cannot be used because it is not part of the C# 6.0 language specification +// Line: 5 +// Compiler options: -langversion:6 -class C +static class Class { - public event EventHandler Event - { - add => Ignore (); - } - - static void Ignore () - { - } -} + int Prop => throw null; +} + // CS1644: Feature `private protected' cannot be used because it is not part of the C# 6.0 language specification // Line: 7 // Compiler options: -langversion:6 @@ -60,55 +41,36 @@ { } } - // CS1644: Feature `pattern matching' cannot be used because it is not part of the C# 6.0 language specification -// Line: 9 -// Compiler options: -langversion:6 - -class Class -{ - static void Foo (object arg) - { - if (arg is Type v) { - return; - } - } -} - - // CS1644: Feature `readonly references' cannot be used because it is not part of the C# 7.0 language specification -// Line: 9 -// Compiler options: -langversion:7 + // CS1644: Feature `namespace alias qualifier' cannot be used because it is not part of the C# 1.0 language specification +// Line: 7 +// Compiler options: -langversion:ISO-1 -class X +class Program { - int i; - - ref readonly int Test () + static global::System.Void Main () { - return ref i; } } - // CS1644: Feature `lambda expressions' cannot be used because it is not part of the C# 2.0 language specification -// Line: 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 -class C +static class Extensions { - delegate void D (); - - public void Foo () + static string Foo (string s, this bool b, int i) { - D e = () => { }; + return s; } } - - // CS1644: Feature `readonly structs' cannot be used because it is not part of the C# 7.0 language specification -// Line: 5 -// Compiler options: -langversion:7 + // CS1644: Feature `expression bodied members' cannot be used because it is not part of the C# 5.0 language specification +// Line: 7 +// Compiler options: -langversion:5 -readonly struct S +class C { + int M () => 0; } // CS1644: Feature `nullable types' cannot be used because it is not part of the C# 1.0 language specification // Line: 7 @@ -120,34 +82,89 @@ static void Main () {} } - // CS1644: Feature `namespace alias qualifier' cannot be used because it is not part of the C# 1.0 language specification + // CS1644: Feature `auto-implemented property initializer' cannot be used because it is not part of the C# 5.0 language specification // Line: 7 -// Compiler options: -langversion:ISO-1 +// Compiler options: -langversion:5 -class Program +class C { - static global::System.Void Main () - { - } + public static int P { get; } = 4; +} + // 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> { + } + + // CS1644: Feature `default literal' cannot be used because it is not part of the C# 7.0 language specification +// Line: 7 +// Compiler options: -langversion:7 + +class X +{ + int i = default; } - // CS1644: Feature `switch expression of boolean type' cannot be used because it is not part of the C# 1.0 language specification -// Line: 8 + // CS1644: Feature `partial types' cannot be used because it is not part of the C# 1.0 language specification +// Line: 5 // Compiler options: -langversion:ISO-1 -class Class { - public void Foo (bool b) +partial class Test +{ +} + // 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> { + } + + // CS1644: Feature `implicitly typed local variable' cannot be used because it is not part of the C# 2.0 language specification /usr/lib/monodoc/sources/cs-errors.zip/CS1648 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1648 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1648 2039-11-01 23:06:40.000000000 +0100 @@ -11,36 +11,23 @@ { struct Container { - public int foo { get; set; } + public int this[int arg] { + set { + } + } } readonly Container p; void Foo () { - p.foo = 0; + p[0] = 0; } public static void Main () { } } - // CS1648: Members of readonly field `C.s' cannot be modified (except in a constructor or a variable initializer) -// Line: 13 - -struct S { - public int x; -} - -class C { - readonly S s; - - public void Test () - { - s.x = 42; - } -} - // CS1648: Members of readonly field `Test.p' cannot be modified (except in a constructor or a variable initializer) // Line: 17 @@ -50,22 +37,35 @@ { struct Container { - public int this[int arg] { - set { - } - } + public int foo { get; set; } } readonly Container p; void Foo () { - p[0] = 0; + p.foo = 0; } public static void Main () { } } + // CS1648: Members of readonly field `C.s' cannot be modified (except in a constructor or a variable initializer) +// Line: 13 + +struct S { + public int x; +} + +class C { + readonly S s; + + public void Test () + { + s.x = 42; + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1650 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1650 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1650 2039-11-01 23:06:40.000000000 +0100 @@ -2,25 +2,6 @@ CS1650 - // CS1650: Fields of static readonly field `C.s' cannot be assigned to (except in a static constructor or a variable initializer) -// Line: 14 - -using System; - -struct S { - public int x; -} - -class C { - static readonly S s; - - public static void Main(String[] args) { - s.x = 42; - Console.WriteLine(s.x); - } -} - - // CS1650: Fields of static readonly field `C<T>.t' cannot be assigned to (except in a static constructor or a variable initializer) // Line: 17 @@ -59,6 +40,25 @@ } } + + // CS1650: Fields of static readonly field `C.s' cannot be assigned to (except in a static constructor or a variable initializer) +// Line: 14 + +using System; + +struct S { + public int x; +} + +class C { + static readonly S s; + + public static void Main(String[] args) { + s.x = 42; + Console.WriteLine(s.x); + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1654 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1654 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1654 2039-11-01 23:06:40.000000000 +0100 @@ -27,6 +27,44 @@ } } + // CS1654: Cannot assign to members of `p' because it is a `foreach iteration variable' +// Line: 18 + +using System.Collections; + +struct P { + public int x; +} + +class Test { + static IEnumerable foo () { return null; } + + static void Main () + { + IEnumerable f = foo (); + if (f != null) + foreach (P p in f) + p.x = 0; + } +} + + // CS1654: Cannot assign to members of `p' because it is a `foreach iteration variable' +// Line: 14 + +using System.Collections; + +struct P { + public int x { get; set; } +} + +class Test { + static void Foo (IEnumerable f) + { + foreach (P p in f) + p.x += 2; + } +} + // CS1654: Cannot assign to members of `f' because it is a `using variable' // Line: 22 @@ -77,43 +115,5 @@ } } } - // CS1654: Cannot assign to members of `p' because it is a `foreach iteration variable' -// Line: 18 - -using System.Collections; - -struct P { - public int x; -} - -class Test { - static IEnumerable foo () { return null; } - - static void Main () - { - IEnumerable f = foo (); - if (f != null) - foreach (P p in f) - p.x = 0; - } -} - - // CS1654: Cannot assign to members of `p' because it is a `foreach iteration variable' -// Line: 14 - -using System.Collections; - -struct P { - public int x { get; set; } -} - -class Test { - static void Foo (IEnumerable f) - { - foreach (P p in f) - p.x += 2; - } -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1656 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1656 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1656 2039-11-01 23:06:40.000000000 +0100 @@ -2,20 +2,22 @@ CS1656 - // CS1656: Cannot assign to `m' because it is a `using variable' -// Line: 10 -using System.IO; + // CS1656: Cannot assign to `i' because it is a `foreach iteration variable' +// Line: 14 -class X { +using System.Collections; + +class Test { + static IEnumerable foo () { return null; } static void Main () { - using (MemoryStream m = new MemoryStream ()){ - m = null; - } + IEnumerable f = foo (); + if (f != null) + foreach (int i in f) + i = 0; } } - // CS1656: Cannot assign to `Method_1' because it is a `method group' // Line: 14 @@ -37,6 +39,20 @@ // CS1656: Cannot assign to `i' because it is a `foreach iteration variable' // Line: 9 +class X { + + static void Main () + { + foreach (int i in new int[] { 2, 3 }) { + i = 4; + } + } +} + + + // CS1656: Cannot assign to `i' because it is a `foreach iteration variable' +// Line: 9 + class Test { static void Main () @@ -46,6 +62,21 @@ } } + // CS1656: Cannot assign to `m' because it is a `using variable' +// Line: 10 +using System.IO; + +class X { + + static void Main () + { + using (MemoryStream m = new MemoryStream ()){ + m = null; + } + } +} + + // CS1656: Cannot assign to `p' because it is a `fixed variable' // Line: 10 // Compiler options: -unsafe @@ -61,36 +92,5 @@ } - // CS1656: Cannot assign to `i' because it is a `foreach iteration variable' -// Line: 14 - -using System.Collections; - -class Test { - static IEnumerable foo () { return null; } - - static void Main () - { - IEnumerable f = foo (); - if (f != null) - foreach (int i in f) - i = 0; - } -} - - // CS1656: Cannot assign to `i' because it is a `foreach iteration variable' -// Line: 9 - -class X { - - static void Main () - { - foreach (int i in new int[] { 2, 3 }) { - i = 4; - } - } -} - - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1660 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1660 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1660 2039-11-01 23:06:40.000000000 +0100 @@ -2,7 +2,7 @@ CS1660 - // CS1660: Cannot convert `anonymous method' to non-delegate type `object' + // CS1660: Cannot convert `anonymous method' to non-delegate type `int' // Line: 9 using System; @@ -10,19 +10,18 @@ class X { static void Main () { - object o = delegate {}; + int o = delegate {}; } } - // CS1660: Cannot convert `anonymous method' to non-delegate type `int' -// Line: 9 - -using System; + // CS1660: Cannot convert `lambda expression' to non-delegate type `dynamic' +// Line: 8 -class X { - static void Main () +public class C +{ + public static void Main () { - int o = delegate {}; + dynamic d = () => 1; } } @@ -38,14 +37,15 @@ } } - // CS1660: Cannot convert `lambda expression' to non-delegate type `dynamic' -// Line: 8 + // CS1660: Cannot convert `anonymous method' to non-delegate type `object' +// Line: 9 -public class C -{ - public static void Main () +using System; + +class X { + static void Main () { - dynamic d = () => 1; + object o = delegate {}; } } /usr/lib/monodoc/sources/cs-errors.zip/CS1661 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1661 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1661 2039-11-01 23:06:40.000000000 +0100 @@ -2,16 +2,16 @@ CS1661 - // CS1661: Cannot convert `lambda expression' to delegate type `C.WithOutParam' since there is a parameter mismatch -// Line: 10 + // CS1661: Cannot convert `anonymous method' to delegate type `System.Predicate<T>' since there is a parameter mismatch +// Line: 8 -class C +class Test<T> { - delegate void WithOutParam (out string value); - - static void Main() + void test (Test<T> t, System.Predicate<T> p) { - WithOutParam o = (string l) => { return; }; + test (t, delegate (Test<T> item) { + return false; + }); } } @@ -27,16 +27,16 @@ } } - // CS1661: Cannot convert `anonymous method' to delegate type `System.Predicate<T>' since there is a parameter mismatch -// Line: 8 + // CS1661: Cannot convert `lambda expression' to delegate type `C.WithOutParam' since there is a parameter mismatch +// Line: 10 -class Test<T> +class C { - void test (Test<T> t, System.Predicate<T> p) + delegate void WithOutParam (out string value); + + static void Main() { - test (t, delegate (Test<T> item) { - return false; - }); + WithOutParam o = (string l) => { return; }; } } /usr/lib/monodoc/sources/cs-errors.zip/CS1667 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1667 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1667 2039-11-01 23:06:40.000000000 +0100 @@ -2,8 +2,8 @@ CS1667 - // CS1667: Attribute `System.CLSCompliantAttribute' is not valid on property or event accessors. It is valid on `assembly, module, class, struct, enum, constructor, method, property, indexer, field, event, interface, parameter, delegate, return' declarations only -// GMCS1667: Attribute `System.CLSCompliantAttribute' is not valid on property or event accessors. It is valid on `assembly, module, class, struct, enum, constructor, method, property, indexer, field, event, interface, parameter, delegate, return, type parameter' declarations only + // CS1667: Attribute `System.Diagnostics.ConditionalAttribute' is not valid on property or event accessors. It is valid on `method' declarations only +// GMCS1667: Attribute `System.Diagnostics.ConditionalAttribute' is not valid on property or event accessors. It is valid on `class, method' declarations only // Line: 11 using System; @@ -11,24 +11,13 @@ class Class1 { - public event ResolveEventHandler G { - [CLSCompliant(false)] - add {} - remove {} + public int G { + [Conditional("DEBUG")] + get { + return 1; + } } } - - - // CS1667: Attribute `System.CLSCompliantAttribute' is not valid on property or event accessors. It is valid on `assembly, module, class, struct, enum, constructor, method, property, indexer, field, event, interface, parameter, delegate, return' declarations only -// GMCS1667: Attribute `System.CLSCompliantAttribute' is not valid on property or event accessors. It is valid on `assembly, module, class, struct, enum, constructor, method, property, indexer, field, event, interface, parameter, delegate, return, type parameter' declarations only -// Line: 8 - -using System; - -public interface X { - [method:CLSCompliant (false)] - event EventHandler XEvent; -} // CS1667: Attribute `System.CLSCompliantAttribute' is not valid on property or event accessors. It is valid on `assembly, module, class, struct, enum, constructor, method, property, indexer, field, event, interface, parameter, delegate, return' declarations only // GMCS1667: Attribute `System.CLSCompliantAttribute' is not valid on property or event accessors. It is valid on `assembly, module, class, struct, enum, constructor, method, property, indexer, field, event, interface, parameter, delegate, return, type parameter' declarations only @@ -47,23 +36,6 @@ System.Console.WriteLine (Test.Error); } } - // CS1667: Attribute `System.Diagnostics.ConditionalAttribute' is not valid on property or event accessors. It is valid on `method' declarations only -// GMCS1667: Attribute `System.Diagnostics.ConditionalAttribute' is not valid on property or event accessors. It is valid on `class, method' declarations only -// Line: 11 - -using System; -using System.Diagnostics; - -class Class1 -{ - public int G { - [Conditional("DEBUG")] - get { - return 1; - } - } -} - // CS1667: Attribute `System.ObsoleteAttribute' is not valid on property or event accessors. It is valid on `class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate' declarations only // Line: 14 @@ -79,5 +51,33 @@ Test.Error = false; } } + // CS1667: Attribute `System.CLSCompliantAttribute' is not valid on property or event accessors. It is valid on `assembly, module, class, struct, enum, constructor, method, property, indexer, field, event, interface, parameter, delegate, return' declarations only +// GMCS1667: Attribute `System.CLSCompliantAttribute' is not valid on property or event accessors. It is valid on `assembly, module, class, struct, enum, constructor, method, property, indexer, field, event, interface, parameter, delegate, return, type parameter' declarations only +// Line: 8 + +using System; + +public interface X { + [method:CLSCompliant (false)] + event EventHandler XEvent; +} + + // CS1667: Attribute `System.CLSCompliantAttribute' is not valid on property or event accessors. It is valid on `assembly, module, class, struct, enum, constructor, method, property, indexer, field, event, interface, parameter, delegate, return' declarations only +// GMCS1667: Attribute `System.CLSCompliantAttribute' is not valid on property or event accessors. It is valid on `assembly, module, class, struct, enum, constructor, method, property, indexer, field, event, interface, parameter, delegate, return, type parameter' declarations only +// Line: 11 + +using System; +using System.Diagnostics; + +class Class1 +{ + public event ResolveEventHandler G { + [CLSCompliant(false)] + add {} + remove {} + } +} + + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1669 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1669 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1669 2039-11-01 23:06:40.000000000 +0100 @@ -3,6 +3,21 @@ CS1669 // CS1669: __arglist is not valid in this context +// Line: 4 + +delegate void F (__arglist); + // CS1669: __arglist is not valid in this context +// Line: 6 + +class C +{ + public static explicit operator X (__arglist) + { + return null; + } +} + + // CS1669: __arglist is not valid in this context // Line: 6 public class E @@ -25,20 +40,5 @@ } } - // CS1669: __arglist is not valid in this context -// Line: 6 - -class C -{ - public static explicit operator X (__arglist) - { - return null; - } -} - - // CS1669: __arglist is not valid in this context -// Line: 4 - -delegate void F (__arglist); \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1670 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1670 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1670 2039-11-01 23:06:40.000000000 +0100 @@ -3,17 +3,6 @@ CS1670 // CS1670: The `params' modifier is not allowed in current context -// Line: 6 - -class C -{ - public static explicit operator X (params C[] foo) - { - return null; - } -} - - // CS1670: The `params' modifier is not allowed in current context // Line: 10 delegate object D (params object[] args); @@ -28,5 +17,16 @@ } } + // CS1670: The `params' modifier is not allowed in current context +// Line: 6 + +class C +{ + public static explicit operator X (params C[] foo) + { + return null; + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1671 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1671 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1671 2039-11-01 23:06:40.000000000 +0100 @@ -3,26 +3,6 @@ CS1671 // CS1671: A namespace declaration cannot have modifiers or attributes -// Line : 14 - -using System; - -[assembly: CLSCompliant (false)] - -namespace N -{ -} - -[assembly: Obsolete] - -namespace M -{ -} - -public class C { - public static void Main () {} -} - // CS1671: A namespace declaration cannot have modifiers or attributes // Line: 5 using System; @@ -56,5 +36,25 @@ } } } + // CS1671: A namespace declaration cannot have modifiers or attributes +// Line : 14 + +using System; + +[assembly: CLSCompliant (false)] + +namespace N +{ +} + +[assembly: Obsolete] + +namespace M +{ +} + +public class C { + public static void Main () {} +} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1674 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1674 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1674 2039-11-01 23:06:40.000000000 +0100 @@ -2,47 +2,6 @@ CS1674 - // CS1674: `int': type used in a using statement must be implicitly convertible to `System.IDisposable' -// Line: 10 - -using System; - -class C -{ - void Method (IDisposable i) - { - using (int o = 1, b = 2) - { - } - } -} - - // CS1674: `object': type used in a using statement must be implicitly convertible to `System.IDisposable' -// Line: 10 - -using System; - -class C -{ - void Method (IDisposable i) - { - using (object o = i) - { - } - } -} - // CS1674: `int': type used in a using statement must be implicitly convertible to `System.IDisposable' -// Line: 8 - -class C -{ - void Method (int arg) - { - using (arg) - { - } - } -} // CS1674: `NoIDispose': type used in a using statement must be implicitly convertible to `System.IDisposable' // Line: 27 @@ -85,5 +44,46 @@ } + // CS1674: `int': type used in a using statement must be implicitly convertible to `System.IDisposable' +// Line: 10 + +using System; + +class C +{ + void Method (IDisposable i) + { + using (int o = 1, b = 2) + { + } + } +} + + // CS1674: `int': type used in a using statement must be implicitly convertible to `System.IDisposable' +// Line: 8 + +class C +{ + void Method (int arg) + { + using (arg) + { + } + } +} + // CS1674: `object': type used in a using statement must be implicitly convertible to `System.IDisposable' +// Line: 10 + +using System; + +class C +{ + void Method (IDisposable i) + { + using (object o = i) + { + } + } +} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1676 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1676 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1676 2039-11-01 23:06:40.000000000 +0100 @@ -2,19 +2,6 @@ CS1676 - // 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; - } -} - // CS1676: Parameter `1' must be declared with the `ref' keyword // Line: 11 // @@ -29,5 +16,18 @@ } } + // 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; + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1677 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1677 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1677 2039-11-01 23:06:40.000000000 +0100 @@ -5,26 +5,26 @@ // CS1677: Parameter `1' should not be declared with the `ref' keyword // Line: 9 + delegate void D (int x); -class X { +class X +{ static void Main () { - D d2 = delegate (ref int x) {}; + D d2 = (ref int x) => {}; } } // CS1677: Parameter `1' should not be declared with the `ref' keyword // Line: 9 - delegate void D (int x); -class X -{ +class X { static void Main () { - D d2 = (ref int x) => {}; + D d2 = delegate (ref int x) {}; } } /usr/lib/monodoc/sources/cs-errors.zip/CS1686 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1686 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1686 2039-11-01 23:06:40.000000000 +0100 @@ -2,27 +2,6 @@ CS1686 - // CS1686: Local variable or parameter `i' cannot have their address taken and be used inside an anonymous method, lambda expression or query expression -// Line: 16 -// Compiler options: -unsafe - -class X { - delegate void S (); - - unsafe void M () - { - int i; - int * j ; - - S s = delegate { - i = 1; - }; - j = &i; - } - - static void Main () {} -} - // CS1686: Local variable or parameter `a' cannot have their address taken and be used inside an anonymous method, lambda expression or query expression // Line: 11 // Compiler options: -unsafe @@ -32,13 +11,12 @@ unsafe class X { public D T (int a) { + int *y = &a; + return delegate { - int *x = &a; + int x = a; }; } - - static void Main () - { } } // CS1686: Local variable or parameter `a' cannot have their address taken and be used inside an anonymous method, lambda expression or query expression @@ -58,6 +36,27 @@ } } + // CS1686: Local variable or parameter `i' cannot have their address taken and be used inside an anonymous method, lambda expression or query expression +// Line: 16 +// Compiler options: -unsafe + +class X { + delegate void S (); + + unsafe void M () + { + int i; + int * j ; + + S s = delegate { + i = 1; + }; + j = &i; + } + + static void Main () {} +} + // CS1686: Local variable or parameter `str' cannot have their address taken and be used inside an anonymous method, lambda expression or query expression // Line: 11 // Compiler options: -unsafe @@ -111,12 +110,13 @@ unsafe class X { public D T (int a) { - int *y = &a; - return delegate { - int x = a; + int *x = &a; }; } + + static void Main () + { } } /usr/lib/monodoc/sources/cs-errors.zip/CS1690 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1690 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1690 2039-11-01 23:06:40.000000000 +0100 @@ -28,14 +28,19 @@ } // CS1690: Cannot call methods, properties, or indexers on `A.point' because it is a value type member of a marshal-by-reference class -// Line: 22 +// Line: 27 // Compiler options: -warn:1 -warnaserror using System; -public struct Point +public struct Coord { - public void Error () {} + public int val; +} + +public struct Point { + public Coord x; + public Coord y; } public class A : MarshalByRefObject @@ -48,24 +53,19 @@ public static void Main () { A a = new A (); - a.point.Error (); + Console.WriteLine (a.point.x.val); } } // CS1690: Cannot call methods, properties, or indexers on `A.point' because it is a value type member of a marshal-by-reference class -// Line: 27 +// Line: 22 // Compiler options: -warn:1 -warnaserror using System; -public struct Coord +public struct Point { - public int val; -} - -public struct Point { - public Coord x; - public Coord y; + public void Error () {} } public class A : MarshalByRefObject @@ -78,24 +78,19 @@ public static void Main () { A a = new A (); - a.point.x.val = 0; + a.point.Error (); } } // CS1690: Cannot call methods, properties, or indexers on `A.point' because it is a value type member of a marshal-by-reference class -// Line: 27 +// Line: 22 // Compiler options: -warn:1 -warnaserror using System; -public struct Coord +public struct Point { - public void Error () {} -} - -public struct Point { - public Coord x; - public Coord y; + public bool Error { get { return true; } } } public class A : MarshalByRefObject @@ -108,7 +103,7 @@ public static void Main () { A a = new A (); - a.point.x.Error (); + bool b = a.point.Error; } } @@ -120,7 +115,7 @@ public struct Coord { - public int val; + public void Error () {} } public struct Point { @@ -138,19 +133,24 @@ public static void Main () { A a = new A (); - Console.WriteLine (a.point.x); + a.point.x.Error (); } } // CS1690: Cannot call methods, properties, or indexers on `A.point' because it is a value type member of a marshal-by-reference class -// Line: 22 +// Line: 27 // Compiler options: -warn:1 -warnaserror using System; -public struct Point +public struct Coord { - public bool Error { get { return true; } } + public int val; +} + +public struct Point { + public Coord x; + public Coord y; } public class A : MarshalByRefObject @@ -163,7 +163,7 @@ public static void Main () { A a = new A (); - bool b = a.point.Error; + Console.WriteLine (a.point.x); } } @@ -193,7 +193,7 @@ public static void Main () { A a = new A (); - Console.WriteLine (a.point.x.val); + a.point.x.val = 0; } } /usr/lib/monodoc/sources/cs-errors.zip/CS1695 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1695 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1695 2039-11-01 23:06:40.000000000 +0100 @@ -6,13 +6,13 @@ // Line: 5 // Compiler options: -warnaserror -#pragma checksum "foo.txt" "{00000000-0000-0000 -0000-000000000000}" "" +#pragma checksum "" ID // CS1695: Invalid #pragma checksum syntax. Expected "filename" "{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}" "XXXX..." // Line: 5 // Compiler options: -warnaserror -#pragma checksum "" ID +#pragma checksum "foo.txt" "{00000000-0000-0000 -0000-000000000000}" "" // CS1695: Invalid #pragma checksum syntax. Expected "filename" "{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}" "XXXX..." // Line: 5 /usr/lib/monodoc/sources/cs-errors.zip/CS1699 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1699 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1699 2039-11-01 23:06:40.000000000 +0100 @@ -2,13 +2,13 @@ CS1699 - // CS1699: Use compiler option `delaysign' or appropriate project settings instead of `AssemblyDelaySign' attribute + // CS1699: Use compiler option `keyfile' or appropriate project settings instead of `AssemblyKeyFile' attribute // Line: 7 // Compiler options: -warnaserror -warn:4 using System.Reflection; -[assembly:AssemblyDelaySign (true)] +[assembly:AssemblyKeyFile ("key.snk")] // CS1699: Use compiler option `keycontainer' or appropriate project settings instead of `AssemblyKeyNameAttribute' attribute // Line: 7 @@ -18,13 +18,13 @@ [assembly:AssemblyKeyNameAttribute ("container")] - // CS1699: Use compiler option `keyfile' or appropriate project settings instead of `AssemblyKeyFile' attribute + // CS1699: Use compiler option `delaysign' or appropriate project settings instead of `AssemblyDelaySign' attribute // Line: 7 // Compiler options: -warnaserror -warn:4 using System.Reflection; -[assembly:AssemblyKeyFile ("key.snk")] +[assembly:AssemblyDelaySign (true)] \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1705 differs (XML 1.0 document, ASCII text, with very long lines) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1705 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1705 2039-11-01 23:06:40.000000000 +0100 @@ -4,7 +4,7 @@ // CS1705: Assembly `CS1705-lib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' depends on `CS1705-lib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=36f3ae7e947792e3' which has a higher version number than referenced assembly `CS1705-lib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=36f3ae7e947792e3' // Line: 0 -// Compiler options: -r:CS1705-lib.dll -r:dlls/second/CS1705-lib.dll -keyfile:key.snk +// Compiler options: -r:CS1705-lib.dll -r:dlls/second/CS1705-lib.dll class C { @@ -16,7 +16,7 @@ // CS1705: Assembly `CS1705-lib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' depends on `CS1705-lib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=36f3ae7e947792e3' which has a higher version number than referenced assembly `CS1705-lib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=36f3ae7e947792e3' // Line: 0 -// Compiler options: -r:CS1705-lib.dll -r:dlls/second/CS1705-lib.dll +// Compiler options: -r:CS1705-lib.dll -r:dlls/second/CS1705-lib.dll -keyfile:key.snk class C { /usr/lib/monodoc/sources/cs-errors.zip/CS1706 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1706 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1706 2039-11-01 23:06:40.000000000 +0100 @@ -13,6 +13,24 @@ } // CS1706: Anonymous methods and lambda expressions cannot be used in the current context +// Line: 13 + +using System; + +delegate void TestDelegate(); + +class MyAttr : Attribute +{ + public MyAttr (TestDelegate d) { } +} + +[MyAttr (delegate {} )] +class C +{ +} + + + // CS1706: Anonymous methods and lambda expressions cannot be used in the current context // Line: 14 public delegate void Proc(); @@ -33,24 +51,6 @@ // CS1706: Anonymous methods and lambda expressions cannot be used in the current context // Line: 13 - -using System; - -delegate void TestDelegate(); - -class MyAttr : Attribute -{ - public MyAttr (TestDelegate d) { } -} - -[MyAttr (delegate {} )] -class C -{ -} - - - // CS1706: Anonymous methods and lambda expressions cannot be used in the current context -// Line: 13 using System; /usr/lib/monodoc/sources/cs-errors.zip/CS1715 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1715 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1715 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,22 @@ CS1715 + // CS1715: `B.Foo': type must be `int' to match overridden member `A.Foo' +// Line: 11 + +public abstract class A +{ + public abstract ref int Foo { get; } +} + +public class B : A +{ + public override ref long Foo { + get { + throw null; + } + } +} // CS1715: `DerivedClass.Prop': type must be `System.EventHandler' to match overridden member `BaseClass.Prop' // Line: 9 @@ -20,22 +36,6 @@ - // CS1715: `B.Foo': type must be `int' to match overridden member `A.Foo' -// Line: 11 - -public abstract class A -{ - public abstract ref int Foo { get; } -} - -public class B : A -{ - public override ref long Foo { - get { - throw null; - } - } -} // CS1715: `DerivedClass.Prop': type must be `bool' to match overridden member `BaseClass.Prop' // Line: 9 /usr/lib/monodoc/sources/cs-errors.zip/CS1717 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1717 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1717 2039-11-01 23:06:40.000000000 +0100 @@ -7,12 +7,11 @@ // Compiler options: -warnaserror -warn:3 class A -{ - void B () - { - int l = 3; - l = l; - } +{ + public A () + { + int a = a = 5; + } } // CS1717: Assignment made to same variable; did you mean to assign something else? // Line: 9 @@ -32,17 +31,6 @@ // Compiler options: -warnaserror -warn:3 class A -{ - public A () - { - int a = a = 5; - } -} - // CS1717: Assignment made to same variable; did you mean to assign something else? -// Line: 9 -// Compiler options: -warnaserror -warn:3 - -class A { int i; @@ -62,5 +50,17 @@ a = a; } } + // CS1717: Assignment made to same variable; did you mean to assign something else? +// Line: 9 +// Compiler options: -warnaserror -warn:3 + +class A +{ + void B () + { + int l = 3; + l = l; + } +} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1718 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1718 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1718 2039-11-01 23:06:40.000000000 +0100 @@ -3,20 +3,6 @@ CS1718 // CS1718: A comparison made to same variable. Did you mean to compare something else? -// Line: 12 -// Compiler options: -warnaserror -warn:3 - -class A -{ - delegate void D (); - D d = null; - - public A () - { - bool b = d == d; - } -} - // CS1718: A comparison made to same variable. Did you mean to compare something else? // Line: 10 // Compiler options: -warnaserror -warn:3 @@ -48,5 +34,19 @@ } + // CS1718: A comparison made to same variable. Did you mean to compare something else? +// Line: 12 +// Compiler options: -warnaserror -warn:3 + +class A +{ + delegate void D (); + D d = null; + + public A () + { + bool b = d == d; + } +} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1729 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1729 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1729 2039-11-01 23:06:40.000000000 +0100 @@ -2,47 +2,25 @@ CS1729 - // CS1729: The type `A' does not contain a constructor that takes `1' arguments -// Line: 6 - -public class A { - A[] test = { - new A("test") - }; -} - - // CS1729: The type `TestCases.ClassWithNonPublicConstructor' does not contain a constructor that takes `0' arguments -// Line: 10 + // CS1729: The type `C' does not contain a constructor that takes `2' arguments +// Line: 16 -namespace TestCases +class C { - public class GmcsCtorBug + public C (int i) { - public static void Test () - { - new ClassWithNonPublicConstructor (); - } } +} - public class ClassWithNonPublicConstructor +public class Blah +{ + public static void Main () { - protected ClassWithNonPublicConstructor (int p) - { - } + dynamic d = 1; + var r = new C (1, d); } } - // CS1729: The type `X' does not contain a constructor that takes `2' arguments -// Line: 8 - -public struct X { - public X(int i) { } - - public static void Main() { - X x = new X("foo", "bar"); - } -} - // CS1729: The type `int' does not contain a constructor that takes `1' arguments // Line: 8 @@ -55,6 +33,23 @@ } + // CS1729: The type `CS0143Test.A' does not contain a constructor that takes `2' arguments +// Line: 13 + +namespace CS0143Test +{ + public class A + { + static void Main () + { + string b="text"; + int c=2; + + A a = new A (b, c); + } + } +} + // CS1729: The type `C.S' does not contain a constructor that takes `3' arguments // Line: 15 @@ -74,20 +69,6 @@ } - // CS1729: The type `System.Runtime.CompilerServices.IndexerNameAttribute' does not contain a constructor that takes `4' arguments -// Line: 5 - -class MainClass { - [System.Runtime.CompilerServices.IndexerName("A", "", "", "")] - int this [int index] { - get { - return 0; - } - } - -} - - // CS1729: The type `IgnoreAttribute' does not contain a constructor that takes `0' arguments // Line: 14 @@ -106,27 +87,48 @@ } } - // CS1729: The type `System.CLSCompliantAttribute' does not contain a constructor that takes `0' arguments + // CS1729: The type `A' does not contain a constructor that takes `1' arguments // Line: 6 -using System; - -[assembly:CLSCompliant()] - +public class A { + A[] test = { + new A("test") + }; +} - // CS1729: The type `Base' does not contain a constructor that takes `0' arguments -// Line: 12 -class Base { - Base (string x) + // CS1729: The type `X' does not contain a constructor that takes `0' arguments +// Line: 11 +class X { + + X (int a) + { + } + + static void Main () { + new X (); } } + + + // CS1729: The type `TestCases.ClassWithNonPublicConstructor' does not contain a constructor that takes `0' arguments +// Line: 10 -// Notice how there is no invocation to "base (something)" +namespace TestCases +{ + public class GmcsCtorBug + { + public static void Test () + { + new ClassWithNonPublicConstructor (); + } + } -class Derived : Base { - Derived () + public class ClassWithNonPublicConstructor { + protected ClassWithNonPublicConstructor (int p) + { + } } } @@ -148,21 +150,6 @@ } } - // CS1729: The type `X' does not contain a constructor that takes `0' arguments -// Line: 11 -class X { - - X (int a) - { - } - - static void Main () - { - new X (); - } -} - - // CS1729: The type `object' does not contain a constructor that takes `1' arguments // Line: 8 @@ -183,41 +170,54 @@ } } - // CS1729: The type `C' does not contain a constructor that takes `2' arguments -// Line: 16 - -class C -{ - public C (int i) + // CS1729: The type `Base' does not contain a constructor that takes `0' arguments +// Line: 12 /usr/lib/monodoc/sources/cs-errors.zip/CS1735 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1735 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1735 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,18 @@ CS1735 + // CS1735: XML comment on `S<T1,T2>' has a typeparamref name `T' that could not be resolved +// Line: 9 +// Compiler options: -doc:dummy.xml /warnaserror /warn:2 + +/// <summary> +/// Test +/// <typeparamref name="T" /> +/// </summary> +public struct S<T1, T2> +{ +} + // CS1735: XML comment on `S.Test<U>()' has a typeparamref name `T' that could not be resolved // Line: 9 // Compiler options: -doc:dummy.xml /warnaserror /warn:2 @@ -17,17 +29,5 @@ } } - // CS1735: XML comment on `S<T1,T2>' has a typeparamref name `T' that could not be resolved -// Line: 9 -// Compiler options: -doc:dummy.xml /warnaserror /warn:2 - -/// <summary> -/// Test -/// <typeparamref name="T" /> -/// </summary> -public struct S<T1, T2> -{ -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1738 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1738 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1738 2039-11-01 23:06:40.000000000 +0100 @@ -3,21 +3,6 @@ CS1738 // CS1738: Named arguments must appear after the positional arguments when using language version older than 7.2 -// Line: 12 - -class C -{ - static void Foo (int a, string s) - { - } - - public static void Main () - { - Foo (a : 1, "out"); - } -} - - // CS1738: Named arguments must appear after the positional arguments when using language version older than 7.2 // Line: 13 using System; @@ -51,5 +36,20 @@ } } + // CS1738: Named arguments must appear after the positional arguments when using language version older than 7.2 +// Line: 12 + +class C +{ + static void Foo (int a, string s) + { + } + + public static void Main () + { + Foo (a : 1, "out"); + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1739 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1739 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1739 2039-11-01 23:06:40.000000000 +0100 @@ -2,18 +2,24 @@ CS1739 - // CS1739: The best overloaded method match for `Program.M(int, int, int)' does not contain a parameter named `whatever' -// Line: 8 + // CS1739: The best overloaded method match for `System.Delegate.DynamicInvoke(params object[])' does not contain a parameter named `b' +// Line: 18 -public class Program +using System; + +class C { - public static void Main () + delegate int IntDelegate (int a); + + static int TestInt (int u) { - M (z: 1, whatever: 0); + return 29; } - - void M (int x = 0, int y = 0, int z = 0) + + public static void Main () { + var del = new IntDelegate (TestInt); + del.DynamicInvoke (b : 7); } } @@ -52,24 +58,18 @@ } } - // CS1739: The best overloaded method match for `System.Delegate.DynamicInvoke(params object[])' does not contain a parameter named `b' -// Line: 18 - -using System; + // CS1739: The best overloaded method match for `Program.M(int, int, int)' does not contain a parameter named `whatever' +// Line: 8 -class C +public class Program { - delegate int IntDelegate (int a); - - static int TestInt (int u) + public static void Main () { - return 29; + M (z: 1, whatever: 0); } - - public static void Main () + + void M (int x = 0, int y = 0, int z = 0) { - var del = new IntDelegate (TestInt); - del.DynamicInvoke (b : 7); } } /usr/lib/monodoc/sources/cs-errors.zip/CS1741 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1741 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1741 2039-11-01 23:06:40.000000000 +0100 @@ -2,24 +2,24 @@ CS1741 - // CS1741: Cannot specify a default value for the `ref' parameter + // CS1741: Cannot specify a default value for the `out' parameter // Line: 6 -public class C +interface I { - public void Test (ref bool a = true) - { - } + void Test (out bool a = true); } + - // CS1741: Cannot specify a default value for the `out' parameter + // CS1741: Cannot specify a default value for the `ref' parameter // Line: 6 -interface I +public class C { - void Test (out bool a = true); + public void Test (ref bool a = true) + { + } } - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1742 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1742 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1742 2039-11-01 23:06:40.000000000 +0100 @@ -3,18 +3,6 @@ CS1742 // CS1742: An element access expression cannot use named argument -// Line: 9 - -class C -{ - public static void Main () - { - int[] o = new int[5]; - o [u:3] = 9; - } -} - - // CS1742: An element access expression cannot use named argument // Line: 13 // Compiler options: -unsafe @@ -31,5 +19,17 @@ } } + // CS1742: An element access expression cannot use named argument +// Line: 9 + +class C +{ + public static void Main () + { + int[] o = new int[5]; + o [u:3] = 9; + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1744 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1744 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1744 2039-11-01 23:06:40.000000000 +0100 @@ -3,33 +3,33 @@ CS1744 // CS1744: Named argument `a' cannot be used for a parameter which has positional argument specified -// Line: 12 +// Line: 13 static class C { - public static void Test (int a, int b) + public static int Test (this int a, int b) { + return a * 3 + b; } public static void Main () { - Test (1, a : 2); + 1.Test (a : 2); } } // CS1744: Named argument `a' cannot be used for a parameter which has positional argument specified -// Line: 13 +// Line: 12 static class C { - public static int Test (this int a, int b) + public static void Test (int a, int b) { - return a * 3 + b; } public static void Main () { - 1.Test (a : 2); + Test (1, a : 2); } } /usr/lib/monodoc/sources/cs-errors.zip/CS1750 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1750 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1750 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,30 @@ CS1750 + // CS1750: Optional parameter expression of type `null' cannot be converted to parameter type `A' +// Line: 8 + +using System; + +class GenericClass<T> +{ + public GenericClass (GenericClass<T> g = null, A a = null) + { + } +} + +class DerivedClass<T> : GenericClass<T> +{ + public DerivedClass (GenericClass<T> g) : base(g) + { + } +} + +public struct A +{ + public int Field; +} + // CS1750: Optional parameter expression of type `string' cannot be converted to parameter type `int' // Line: 6 @@ -36,29 +60,5 @@ } } - // CS1750: Optional parameter expression of type `null' cannot be converted to parameter type `A' -// Line: 8 - -using System; - -class GenericClass<T> -{ - public GenericClass (GenericClass<T> g = null, A a = null) - { - } -} - -class DerivedClass<T> : GenericClass<T> -{ - public DerivedClass (GenericClass<T> g) : base(g) - { - } -} - -public struct A -{ - public int Field; -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1763 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1763 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1763 2039-11-01 23:06:40.000000000 +0100 @@ -7,7 +7,7 @@ class C { - public static void Test (object o = 9, params object[] args) + public static void Test (object o = 9) { } } @@ -17,7 +17,7 @@ class C { - public static void Test (object o = 9) + public static void Test (object o = 9, params object[] args) { } } /usr/lib/monodoc/sources/cs-errors.zip/CS1908 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1908 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1908 2039-11-01 23:06:40.000000000 +0100 @@ -6,7 +6,7 @@ // Line: class Test { - internal void f ([System.Runtime.InteropServices.DefaultParameterValue (null)] short x) + internal void f ([System.Runtime.InteropServices.DefaultParameterValue ((short) 1)] int x) { } } @@ -21,19 +21,19 @@ } // CS1908: The type of the default value should match the type of the parameter -// Line: +// Line: 5 class Test { - internal void f ([System.Runtime.InteropServices.DefaultParameterValue ((short) 1)] int x) + internal void f ([System.Runtime.InteropServices.DefaultParameterValue (1)] short x) { } } // CS1908: The type of the default value should match the type of the parameter -// Line: 5 +// Line: class Test { - internal void f ([System.Runtime.InteropServices.DefaultParameterValue (1)] short x) + internal void f ([System.Runtime.InteropServices.DefaultParameterValue (null)] short x) { } } /usr/lib/monodoc/sources/cs-errors.zip/CS1913 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1913 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1913 2039-11-01 23:06:40.000000000 +0100 @@ -2,7 +2,7 @@ CS1913 - // CS1913: Member `Data.Count' cannot be initialized. An object initializer may only be used for fields, or properties + // CS1913: Member `Data.Count()' cannot be initialized. An object initializer may only be used for fields, or properties // Line: 17 @@ -11,22 +11,21 @@ class Data { - public delegate int Count (); + public int Count () + { + return 1; + } } public class Test { - delegate void S (); - static void Main () { - //S s = new S (); - //string drawBackLabel = string.Length("absDrawBack"); var c = new Data { Count = 10 }; } } - // CS1913: Member `Data.Count()' cannot be initialized. An object initializer may only be used for fields, or properties + // CS1913: Member `Data.Count' cannot be initialized. An object initializer may only be used for fields, or properties // Line: 17 @@ -35,16 +34,17 @@ class Data { - public int Count () - { - return 1; - } + 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 }; } } /usr/lib/monodoc/sources/cs-errors.zip/CS1929 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1929 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1929 2039-11-01 23:06:40.000000000 +0100 @@ -25,36 +25,36 @@ } } - // CS1929: Type `int' does not contain a member `Check' and the best extension method overload `C.Check(this string)' requires an instance of type `string' -// Line: 12 + // CS1929: Type `int' does not contain a member `Foo' and the best extension method overload `S.Foo(this uint)' requires an instance of type `uint' +// Line: 15 -static class C +static class S { - public static void Check (this string s) + public static void Foo (this uint i) { } +} +class B +{ static void Main () { - 1.Check (); + 55.Foo (); } } - // CS1929: Type `int' does not contain a member `Foo' and the best extension method overload `S.Foo(this uint)' requires an instance of type `uint' -// Line: 15 + // CS1929: Type `int' does not contain a member `Check' and the best extension method overload `C.Check(this string)' requires an instance of type `string' +// Line: 12 -static class S +static class C { - public static void Foo (this uint i) + public static void Check (this string s) { } -} -class B -{ static void Main () { - 55.Foo (); + 1.Check (); } } /usr/lib/monodoc/sources/cs-errors.zip/CS1930 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1930 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1930 2039-11-01 23:06:40.000000000 +0100 @@ -2,8 +2,8 @@ CS1930 - // CS1930: A range variable `i' has already been declared in this scope -// Line: 14 + // CS1930: A range variable `v' has already been declared in this scope +// Line: 13 using System; @@ -14,14 +14,13 @@ public static void Main () { var e = from v in "a" - let i = 1 - let i = 2 + let v = 1 select v; } } - // CS1930: A range variable `v' has already been declared in this scope -// Line: 13 + // CS1930: A range variable `i' has already been declared in this scope +// Line: 14 using System; @@ -32,7 +31,8 @@ public static void Main () { var e = from v in "a" - let v = 1 + let i = 1 + let i = 2 select v; } } /usr/lib/monodoc/sources/cs-errors.zip/CS1931 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1931 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1931 2039-11-01 23:06:40.000000000 +0100 @@ -3,7 +3,7 @@ CS1931 // CS1931: A range variable `i' conflicts with a previous declaration of `i' -// Line: 14 +// Line: 13 using System; @@ -11,51 +11,50 @@ class C { - public static void Main () + public void Foo (int i) { - int i = 9; var e = from v in "a" let i = 2 select v; } } - // CS1931: A range variable `i' conflicts with a previous declaration of `i' -// Line: 12 + // CS1931: A range variable `ii' conflicts with a previous declaration of `ii' +// Line: 14 + using System; +using System.Collections.Generic; using System.Linq; -class C +class Test { public static void Main () { - int i = 9; - var e = from i in "a" - select 1; + int[] int_array = null; + int ii = 0; + IEnumerable<int> e = from int ii in int_array select "1"; } } - // CS1931: A range variable `ii' conflicts with a previous declaration of `ii' -// Line: 14 - + // CS1931: A range variable `i' conflicts with a previous declaration of `i' +// Line: 12 using System; -using System.Collections.Generic; using System.Linq; -class Test +class C { public static void Main () { - int[] int_array = null; - int ii = 0; - IEnumerable<int> e = from int ii in int_array select "1"; + int i = 9; + var e = from i in "a" + select 1; } } // CS1931: A range variable `i' conflicts with a previous declaration of `i' -// Line: 13 +// Line: 14 using System; @@ -63,8 +62,9 @@ class C { - public void Foo (int i) + public static void Main () { + int i = 9; var e = from v in "a" let i = 2 select v; /usr/lib/monodoc/sources/cs-errors.zip/CS1932 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1932 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1932 2039-11-01 23:06:40.000000000 +0100 @@ -2,9 +2,8 @@ CS1932 - // CS1932: A range variable `ii' cannot be initialized with `void' -// Line: 13 - + // CS1932: A range variable `ii' cannot be initialized with `method group' +// Line: 12 using System; using System.Linq; @@ -14,13 +13,14 @@ public void Foo (int i) { var e = from v in "a" - let ii = Foo (2) + let ii = Foo select v; } } - // CS1932: A range variable `ii' cannot be initialized with `method group' -// Line: 12 + // CS1932: A range variable `ii' cannot be initialized with `void' +// Line: 13 + using System; using System.Linq; @@ -30,7 +30,7 @@ public void Foo (int i) { var e = from v in "a" - let ii = Foo + let ii = Foo (2) select v; } } /usr/lib/monodoc/sources/cs-errors.zip/CS1935 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1935 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1935 2039-11-01 23:06:40.000000000 +0100 @@ -2,31 +2,31 @@ CS1935 - // 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 + // 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 { - class Enumerable {} - static void Main () { var v = new int[0]; - var foo = from int a in v where a > 0 select a; + var foo = from a in v select a; } } - // 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 + // 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 a in v select a; + var foo = from int a in v where a > 0 select a; } } /usr/lib/monodoc/sources/cs-errors.zip/CS1940 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1940 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1940 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,30 @@ CS1940 + // 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; + } +} + // CS1940: Ambiguous implementation of the query pattern `Select' for source type `string[]' // Line: 11 @@ -31,29 +55,5 @@ return null; } } - // 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; - } -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1942 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1942 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1942 2039-11-01 23:06:40.000000000 +0100 @@ -3,21 +3,6 @@ CS1942 // 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; - } -} - - // CS1942: An expression type in `select' clause is incorrect. Type inference failed in the call to `Select' // Line: 18 using System; @@ -38,5 +23,20 @@ } } + // 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; + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1944 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1944 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1944 2039-11-01 23:06:40.000000000 +0100 @@ -11,12 +11,12 @@ class C { - unsafe delegate int D (int* i); + unsafe delegate int* D (int* i); public static void Main () { unsafe { - Expression<D> e = p => *p; + Expression<D> e = p => p + 1; } } } @@ -30,18 +30,18 @@ class C { - unsafe delegate int* D (); + unsafe delegate int D (int* i); public static void Main () { unsafe { - Expression<D> e = () => default (int*); + Expression<D> e = p => *p; } } } // CS1944: An expression tree cannot contain an unsafe pointer operation -// Line: 15 +// Line: 14 // Compiler options: -unsafe using System; @@ -49,12 +49,11 @@ class C { - unsafe delegate int* D (int* i); - + unsafe delegate byte* D (int*[] d); public static void Main () { unsafe { - Expression<D> e = p => p + 1; + Expression<D> e6 = (p) => (byte*)p [10]; } } } @@ -79,7 +78,7 @@ } // CS1944: An expression tree cannot contain an unsafe pointer operation -// Line: 14 +// Line: 13 // Compiler options: -unsafe using System; @@ -87,17 +86,16 @@ class C { - unsafe delegate byte* D (int*[] d); public static void Main () { unsafe { - Expression<D> e6 = (p) => (byte*)p [10]; + Expression<Func<int>> e = () => sizeof (long*); } } } // CS1944: An expression tree cannot contain an unsafe pointer operation -// Line: 14 +// Line: 15 // Compiler options: -unsafe using System; @@ -105,17 +103,18 @@ class C { + unsafe delegate int* D (); + public static void Main () { unsafe { - int*[] p = null; - Expression<Func<int>> e6 = () => (int)p [10]; + Expression<D> e = () => default (int*); } } } // CS1944: An expression tree cannot contain an unsafe pointer operation -// Line: 13 +// Line: 14 // Compiler options: -unsafe using System; @@ -126,7 +125,8 @@ public static void Main () { unsafe { - Expression<Func<int>> e = () => sizeof (long*); + int*[] p = null; + Expression<Func<int>> e6 = () => (int)p [10]; } } } /usr/lib/monodoc/sources/cs-errors.zip/CS1951 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1951 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1951 2039-11-01 23:06:40.000000000 +0100 @@ -10,11 +10,11 @@ class C { - delegate int D (out int a); + delegate int D (ref int a); public static void Main () { - Expression<D> e = (out int a) => a = 0; + Expression<D> e = (ref int a) => a; } } @@ -26,11 +26,11 @@ class C { - delegate int D (ref int a); + delegate int D (out int a); public static void Main () { - Expression<D> e = (ref int a) => a; + Expression<D> e = (out int a) => a = 0; } } /usr/lib/monodoc/sources/cs-errors.zip/CS1959 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1959 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1959 2039-11-01 23:06:40.000000000 +0100 @@ -3,17 +3,6 @@ CS1959 // CS1959: Type parameter `T' cannot be declared const -// Line: 8 - -struct S -{ - public void Foo<T> () where T : struct - { - const T t = null; - } -} - - // CS1959: Type parameter `T' cannot be declared const // Line: 10 class C @@ -25,5 +14,16 @@ const T t = null; } + // CS1959: Type parameter `T' cannot be declared const +// Line: 8 + +struct S +{ + public void Foo<T> () where T : struct + { + const T t = null; + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1961 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1961 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1961 2039-11-01 23:06:40.000000000 +0100 @@ -2,124 +2,107 @@ CS1961 - // CS1961: The covariant type parameter `V' must be invariantly valid on `Both<U,V>(Covariant<None<Contra<V>>>)' + // CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>(A<A<T>>)' // Line: 8 -delegate T Covariant<out T> (); -delegate void Contra<in T> (T t); -delegate void None<T> (T t); +interface A<T> +{ +} -delegate void Both<in U, out V> (Covariant<None<Contra<V>>> b); +delegate void B<out T> (A<A<T>> a); - // CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>(A<T>)' + // CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>.A' // Line: 8 interface A<T> { } -delegate void B<out T> (A<T> a); +interface B<out T> +{ + A<T> A { get; } +} - // CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>.C()' + // CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>(A<T>)' // Line: 8 interface A<T> { } -interface B<in T> -{ - A<T> C(); -} +delegate void B<in T> (A<T> a); - // CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>.C(A<T>)' + // CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>.C(A<T>)' // Line: 8 interface A<T> { } -interface B<out T> +interface B<in T> { void C(A<T> a); } - // CS1961: The covariant type parameter `U' must be contravariantly valid on `D<U>()' -// Line: 6 - -interface IContravariant<in T> { } - -delegate IContravariant<U[]> D<out U> (); - - // CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>()' + // CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>()' // Line: 8 interface A<T> { } -delegate A<A<T>> B<out T> (); +delegate A<A<T>> B<in T> (); - // CS1961: The covariant type parameter `T' must be contravariantly valid on `A<T>.B(T)' + // CS1961: The covariant type parameter `V' must be contravariantly valid on `I<V>.Foo<T>(T)' // Line: 6 -interface A<out T> -{ - void B(T t); -} - - // CS1961: The contravariant type parameter `T' must be invariantly valid on `A<T>.B(ref T)' -// Line: 4 - -interface A<in T> +interface I<out V> { - void B(ref T t); + void Foo<T> (T t) where T : V; } - // CS1961: The covariant type parameter `T' must be contravariantly valid on `B<T>' + // CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>' // Line: 8 -interface A<in T> +interface A<T> { } -interface B<out T> : A<T> +interface B<in T> : A<T> { } - // CS1961: The contravariant type parameter `T' must be invariantly valid on `InterfaceContravariat<T>.Prop' -// Line: 4 + // CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>(A<T>)' +// Line: 8 -interface InterfaceContravariat<in T> +interface A<T> { - T Prop { set; get; } } + +delegate void B<out T> (A<T> a); - // CS1961: The contravariant type parameter `T' must be covariantly valid on `B<T>.A' + // CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>.C(A<T>)' // Line: 8 -interface A<out T> +interface A<T> { } interface B<in T> { - A<T> A { get; } + void C(A<T> a); } - // CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>.C()' + // CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>()' // Line: 8 interface A<T> { } -interface B<out T> -{ - A<A<T>> C(); -} +delegate A<T> B<in T> (); - // CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>.C(A<A<T>>)' + // CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>.C()' // Line: 8 interface A<T> @@ -128,19 +111,27 @@ interface B<in T> { - void C(A<A<T>> a); + A<T> C(); } - // CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>.A' + // CS1961: The covariant type parameter `T' must be contravariantly valid on `A<T>.B(T)' +// Line: 6 + +interface A<out T> +{ + void B(T t); +} + + // CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>.C(A<T>)' // Line: 8 interface A<T> { } -interface B<in T> +interface B<out T> { - A<A<T>> A { get; } + void C(A<T> a); } // CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>.A' @@ -155,23 +146,25 @@ A<A<T>> A { get; } } - // CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>(A<T>)' -// Line: 8 + // CS1961: The contravariant type parameter `T' must be invariantly valid on `InterfaceContravariat<T>.Prop' +// Line: 4 /usr/lib/monodoc/sources/cs-errors.zip/CS1966 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1966 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1966 2039-11-01 23:06:40.000000000 +0100 @@ -2,36 +2,36 @@ CS1966 - // CS1966: `C': cannot implement a dynamic interface `I<I<dynamic>>' + // CS1966: `C': cannot implement a dynamic interface `I<dynamic[]>' // Line: 8 interface I<T> { } -class C : I<I<dynamic>> +class C : I<dynamic[]> { } - // CS1966: `C': cannot implement a dynamic interface `I<dynamic>' + // CS1966: `C': cannot implement a dynamic interface `I<I<dynamic>>' // Line: 8 interface I<T> { } -class C : I<dynamic> +class C : I<I<dynamic>> { } - // CS1966: `C': cannot implement a dynamic interface `I<dynamic[]>' + // CS1966: `C': cannot implement a dynamic interface `I<dynamic>' // Line: 8 interface I<T> { } -class C : I<dynamic[]> +class C : I<dynamic> { } /usr/lib/monodoc/sources/cs-errors.zip/CS1978 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1978 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1978 2039-11-01 23:06:40.000000000 +0100 @@ -14,28 +14,28 @@ } } - // CS1978: An expression of type `__arglist' cannot be used as an argument of dynamic operation + // CS1978: An expression of type `int*' cannot be used as an argument of dynamic operation // Line: 9 +// Compiler options: -unsafe -class C +unsafe class C { public static void Main () { dynamic d = null; - d (__arglist (111)); + d ((int*)0); } } - // CS1978: An expression of type `int*' cannot be used as an argument of dynamic operation + // CS1978: An expression of type `__arglist' cannot be used as an argument of dynamic operation // Line: 9 -// Compiler options: -unsafe -unsafe class C +class C { public static void Main () { dynamic d = null; - d ((int*)0); + d (__arglist (111)); } } /usr/lib/monodoc/sources/cs-errors.zip/CS1982 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1982 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1982 2039-11-01 23:06:40.000000000 +0100 @@ -3,27 +3,23 @@ CS1982 // CS1982: An attribute argument cannot be dynamic expression -// Line: 6 +// Line: 13 using System; -[A((dynamic) null)] -public class A : Attribute +class AAttribute : Attribute { - public A (Type arg) + public AAttribute (dynamic X) { } } - - // CS1982: An attribute argument cannot be dynamic expression -// Line: 6 -using System; - -[A(typeof (dynamic[]))] -public class A : Attribute +[A (Test.B)] +class Test { - public A (object arg) + public static dynamic B; + + static void Main () { } } @@ -42,23 +38,27 @@ } // CS1982: An attribute argument cannot be dynamic expression -// Line: 13 +// Line: 6 using System; -class AAttribute : Attribute +[A(typeof (Func<dynamic>))] +public class A : Attribute { - public AAttribute (dynamic X) + public A (Type arg) { } } + + // CS1982: An attribute argument cannot be dynamic expression +// Line: 6 -[A (Test.B)] -class Test -{ - public static dynamic B; +using System; - static void Main () +[A(typeof (dynamic[]))] +public class A : Attribute +{ + public A (object arg) { } } @@ -68,7 +68,7 @@ using System; -[A(typeof (Func<dynamic>))] +[A((dynamic) null)] public class A : Attribute { public A (Type arg) /usr/lib/monodoc/sources/cs-errors.zip/CS2021 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS2021 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS2021 2039-11-01 23:06:40.000000000 +0100 @@ -4,11 +4,11 @@ // CS2021: Output file name is not valid // Line: 0 -// Compiler options: -out:.dll +// Compiler options: -out:/ // CS2021: Output file name is not valid // Line: 0 -// Compiler options: -out:/ +// Compiler options: -out:.dll \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS3001 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS3001 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS3001 2039-11-01 23:06:40.000000000 +0100 @@ -2,77 +2,53 @@ CS3001 - // CS3001: Argument type `sbyte' is not CLS-compliant -// Line: 9 -// Compiler options: -warnaserror -warn:1 - -using System; -[assembly:CLSCompliant(true)] - -public class CLSClass { - static public implicit operator CLSClass(byte value) { - return new CLSClass(); - } - - static public implicit operator CLSClass(sbyte value) { - return new CLSClass(); - } -} - - // CS3001: Argument type `IError' is not CLS-compliant -// Line: 13 + // CS3001: Argument type `ulong' is not CLS-compliant +// Line: 14 // Compiler options: -warnaserror -warn:1 using System; -[assembly:CLSCompliant(true)] +[assembly:CLSCompliant (A.f)] -[CLSCompliant(false)] -public interface IError{ +public class A +{ + public const bool f = true; } public interface I { - void Error(out IError arg); -} - -public class c { - public void Error (out IError arg) { arg = null; } + void Test (ulong arg); } // CS3001: Argument type `ulong' is not CLS-compliant -// Line: 8 +// Line: 9 // Compiler options: -warnaserror -warn:1 using System; -[assembly:CLSCompliant (true)] +[assembly:CLSCompliant(true)] -public delegate long MyDelegate (ulong arg); +public interface I { + long this[ulong indexA] { set; } +} - // CS3001: Argument type `sbyte' is not CLS-compliant + // CS3001: Argument type `int*' is not CLS-compliant // Line: 9 -// Compiler options: -warnaserror -warn:1 +// Compiler options: -unsafe -warnaserror -warn:1 using System; -[assembly:CLSCompliant (true)] +[assembly:CLSCompliant(true)] -public static class CLSClass -{ - public static void Foo (this sbyte value) { } +unsafe public abstract class CLSClass { + public void Method (int* param) {} } - // CS3001: Argument type `ulong' is not CLS-compliant -// Line: 14 + // CS3001: Argument type `sbyte' is not CLS-compliant +// Line: 9 // Compiler options: -warnaserror -warn:1 using System; -[assembly:CLSCompliant (A.f)] - -public class A -{ - public const bool f = true; -} +[assembly:CLSCompliant(true)] -public interface I { - void Test (ulong arg); +public class CLSClass { + public delegate int MyDelegate(sbyte i); } // CS3001: Argument type `sbyte' is not CLS-compliant @@ -87,63 +63,87 @@ } // CS3001: Argument type `ulong' is not CLS-compliant -// Line: 9 +// Line: 8 +// Compiler options: -warnaserror -warn:1 + +using System; +[assembly:CLSCompliant (true)] + +public delegate long MyDelegate (ulong arg); + + // CS3001: Argument type `ulong' is not CLS-compliant +// Line: 10 // Compiler options: -warnaserror -warn:1 using System; [assembly:CLSCompliant (true)] public class CLSClass { - public long this [ulong index] { - get { - return 2; - } - } + public CLSClass (long a) {} + public CLSClass (ref ulong a) {} } - // CS3001: Argument type `ulong' is not CLS-compliant + // CS3001: Argument type `sbyte' is not CLS-compliant // Line: 9 // Compiler options: -warnaserror -warn:1 using System; -[assembly:CLSCompliant(true)] +[assembly:CLSCompliant (true)] -public interface I { - long this[ulong indexA] { set; } +public static class CLSClass +{ + public static void Foo (this sbyte value) { } } - // CS3001: Argument type `int*' is not CLS-compliant + // CS3001: Argument type `sbyte' is not CLS-compliant // Line: 9 -// Compiler options: -unsafe -warnaserror -warn:1 +// Compiler options: -warnaserror -warn:1 using System; [assembly:CLSCompliant(true)] -unsafe public abstract class CLSClass { - public void Method (int* param) {} +public class CLSClass { + static public implicit operator CLSClass(byte value) { + return new CLSClass(); + } + + static public implicit operator CLSClass(sbyte value) { + return new CLSClass(); + } } // CS3001: Argument type `ulong' is not CLS-compliant -// Line: 10 +// Line: 9 // Compiler options: -warnaserror -warn:1 using System; [assembly:CLSCompliant (true)] public class CLSClass { - public CLSClass (long a) {} - public CLSClass (ref ulong a) {} + public long this [ulong index] { + get { + return 2; + } + } } - // CS3001: Argument type `sbyte' is not CLS-compliant -// Line: 9 + // CS3001: Argument type `IError' is not CLS-compliant +// Line: 13 // Compiler options: -warnaserror -warn:1 using System; [assembly:CLSCompliant(true)] -public class CLSClass { - public delegate int MyDelegate(sbyte i); +[CLSCompliant(false)] +public interface IError{ /usr/lib/monodoc/sources/cs-errors.zip/CS3002 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS3002 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS3002 2039-11-01 23:06:40.000000000 +0100 @@ -2,32 +2,24 @@ CS3002 - // CS3002: Return type of `CLSClass.MyDelegate' is not CLS-compliant -// Line: 9 -// Compiler options: -warnaserror -warn:1 - -using System; -[assembly:CLSCompliant(true)] - -public class CLSClass { - public delegate uint MyDelegate(); -} - // CS3002: Return type of `CLSClass.Foo()' is not CLS-compliant -// Line: 13 +// Line: 14 // Compiler options: -warnaserror -warn:1 using System; [assembly:CLSCompliant(true)] public class CLSClass { - private ulong Valid() { + [CLSCompliant(false)] + public ulong Valid() { return 1; } - protected ulong Foo() { + protected internal ulong Foo() { return 1; } + + static void Main() {} } // CS3002: Return type of `CLSClass.Test1()' is not CLS-compliant @@ -47,24 +39,15 @@ public C Test2() { return null; } } - // CS3002: Return type of `CLSClass.Foo()' is not CLS-compliant -// Line: 14 + // CS3002: Return type of `I.Error()' is not CLS-compliant +// Line: 9 // Compiler options: -warnaserror -warn:1 -using System; -[assembly:CLSCompliant(true)] +[assembly:System.CLSCompliant(true)] -public class CLSClass { - [CLSCompliant(false)] - public ulong Valid() { - return 1; - } - - protected internal ulong Foo() { - return 1; - } - - static void Main() {} +public interface I +{ + ulong Error(); } // CS3002: Return type of `CLSClass.Foo()' is not CLS-compliant @@ -82,6 +65,25 @@ } } + // CS3002: Return type of `CLSClass.Foo()' is not CLS-compliant +// Line: 13 +// Compiler options: -warnaserror -warn:1 + +using System; +[assembly:CLSCompliant(true)] + +[CLSCompliant(false)] +public interface I1 { +} + +public class CLSClass { + protected internal I1 Foo() { + return null; + } + + static void Main() {} +} + // CS3002: Return type of `Delegate' is not CLS-compliant // Line: 8 // Compiler options: -warnaserror -warn:1 @@ -103,27 +105,14 @@ using System; [assembly:CLSCompliant(true)] -[CLSCompliant(false)] -public interface I1 { -} - public class CLSClass { - protected internal I1 Foo() { - return null; + private ulong Valid() { + return 1; + } + + protected ulong Foo() { + return 1; } - - static void Main() {} -} - - // CS3002: Return type of `I.Error()' is not CLS-compliant -// Line: 9 -// Compiler options: -warnaserror -warn:1 - -[assembly:System.CLSCompliant(true)] - -public interface I -{ - ulong Error(); } // CS3002: Return type of `CLSClass.Foo()' is not CLS-compliant @@ -141,5 +130,16 @@ } } + // CS3002: Return type of `CLSClass.MyDelegate' is not CLS-compliant +// Line: 9 +// Compiler options: -warnaserror -warn:1 + +using System; +[assembly:CLSCompliant(true)] + +public class CLSClass { + public delegate uint MyDelegate(); +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS3003 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS3003 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS3003 2039-11-01 23:06:40.000000000 +0100 @@ -2,18 +2,34 @@ CS3003 - // CS3003: Type of `CLSClass.value' is not CLS-compliant -// Line: 9 + // CS3003: Type of `I.Foo' is not CLS-compliant +// Line: 10 // Compiler options: -warnaserror -warn:1 using System; -[assembly:CLSCompliant(true)] +[assembly:CLSCompliant (true)] -public class CLSClass { - protected uint value; +[CLSCompliant (true)] +public interface I { + uint Foo { set; } } + - // CS3003: Type of `I.this[bool]' is not CLS-compliant + // CS3003: Type of `C._data' is not CLS-compliant +// Line: 11 +// Compiler options: -unsafe -warnaserror -warn:1 + +using System; + +[assembly: CLSCompliant (true)] + +public class C +{ + public unsafe byte* _data; + public unsafe byte* GetData () { return _data; } +} + + // CS3003: Type of `I.Error' is not CLS-compliant // Line: 9 // Compiler options: -warnaserror -warn:1 @@ -21,23 +37,23 @@ [assembly:CLSCompliant(true)] public interface I { - ulong this[bool index] { get; } + UIntPtr Error { get; } } - // CS3003: Type of `I.Foo' is not CLS-compliant -// Line: 10 -// Compiler options: -warnaserror -warn:1 + // CS3003: Type of `S.test2' is not CLS-compliant +// Line: 11 +// Compiler options: -unsafe -warnaserror -warn:1 using System; -[assembly:CLSCompliant (true)] -[CLSCompliant (true)] -public interface I { - uint Foo { set; } -} +[assembly: CLSCompliant (true)] +public unsafe struct S +{ + public fixed bool test2 [4]; +} - // CS3003: Type of `CLSClass.Index' is not CLS-compliant + // CS3003: Type of `CLSClass.value' is not CLS-compliant // Line: 9 // Compiler options: -warnaserror -warn:1 @@ -45,11 +61,7 @@ [assembly:CLSCompliant(true)] public class CLSClass { - public ulong Index { - set - { - } - } + protected uint value; } // CS3003: Type of `CLSClass.MyEvent' is not CLS-compliant @@ -65,42 +77,30 @@ public event MyDelegate MyEvent; } - // CS3003: Type of `I.Error' is not CLS-compliant + // CS3003: Type of `CLSClass.Index' is not CLS-compliant // Line: 9 // Compiler options: -warnaserror -warn:1 using System; [assembly:CLSCompliant(true)] -public interface I { - UIntPtr Error { get; } -} - - // CS3003: Type of `C._data' is not CLS-compliant -// Line: 11 -// Compiler options: -unsafe -warnaserror -warn:1 - -using System; - -[assembly: CLSCompliant (true)] - -public class C -{ - public unsafe byte* _data; - public unsafe byte* GetData () { return _data; } +public class CLSClass { + public ulong Index { + set + { + } + } } - // CS3003: Type of `S.test2' is not CLS-compliant -// Line: 11 -// Compiler options: -unsafe -warnaserror -warn:1 + // CS3003: Type of `I.this[bool]' is not CLS-compliant +// Line: 9 +// Compiler options: -warnaserror -warn:1 using System; +[assembly:CLSCompliant(true)] -[assembly: CLSCompliant (true)] - -public unsafe struct S -{ - public fixed bool test2 [4]; +public interface I { + ulong this[bool index] { get; } } /usr/lib/monodoc/sources/cs-errors.zip/CS3005 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS3005 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS3005 2039-11-01 23:06:40.000000000 +0100 @@ -2,94 +2,90 @@ CS3005 - // CS3005: Identifier `System.Icomparable' differing only in case is not CLS-compliant + // CS3005: Identifier `CLSClass.this[int].set' differing only in case is not CLS-compliant // Line: 8 -// Compiler options: -warnaserror -warn:1 +// Compiler options: -warnaserror [assembly:System.CLSCompliant(true)] -namespace System { - public interface Icomparable { - } +public class CLSClass { + protected int SET_item; + public int this[int index] { set {} } } - // CS3005: Identifier `CLSClass.Method<T>(int)' differing only in case is not CLS-compliant -// Line: 12 + // CS3005: Identifier `c1' differing only in case is not CLS-compliant +// Line: 9 // Compiler options: -warnaserror -[assembly:System.CLSCompliant (true)] +[assembly:System.CLSCompliant(true)] -public class BaseClass { - public int method; +public class C1 { } -public class CLSClass : BaseClass { - public static void Method<T>(int arg) {} +public class c1 { } - // CS3005: Identifier `CLSClass.NameAbC(int)' differing only in case is not CLS-compliant -// Line: 9 + // CS3005: Identifier `CLSClass.NameAbC' differing only in case is not CLS-compliant +// Line: 12 // Compiler options: -warnaserror using System; [assembly:CLSCompliant (true)] public class CLSClass { + [CLSCompliant (false)] public int NameABC; - public static void NameAbC(int arg) {} + + public int NameAbc; + public int NameAbC; } - // CS3005: Identifier `CLSClass.value' differing only in case is not CLS-compliant -// Line: 15 + // CS3005: Identifier `II.foo' differing only in case is not CLS-compliant +// Line: 9 // Compiler options: -warnaserror -[assembly:System.CLSCompliant(true)] - -public class X { - public bool Value; -} +using System; +[assembly:CLSCompliant(true)] -public class Y: X { - private readonly bool vAalue; -} - -public class CLSClass: Y { - protected internal bool value; +public interface II { + int Foo(); + int foo { get; } } - // CS3005: Identifier `CLSClass.Event_A' differing only in case is not CLS-compliant -// Line: 13 + // CS3005: Identifier `CLSClass.a.get' differing only in case is not CLS-compliant +// Line: 8 // Compiler options: -warnaserror [assembly:System.CLSCompliant(true)] -public delegate void MyDelegate(int i); +public class CLSClass { + public int get_A () { return 3; } + public int a { get { return 2; } } +} + + // CS3005: Identifier `clsInterface' differing only in case is not CLS-compliant +// Line: 10 +// Compiler options: -warnaserror -public class Base { - protected event System.ResolveEventHandler Event_a; +using System; +[assembly:CLSCompliant (true)] + +public interface CLSInterface { } -public class CLSClass: Base { - public event MyDelegate Event_A; +public class clsInterface: CLSInterface { } - // CS3005: Identifier `ErrorCS3005.foo' differing only in case is not CLS-compliant -// Line: 9 + // CS3005: Identifier `System.Icomparable' differing only in case is not CLS-compliant +// Line: 8 // Compiler options: -warnaserror -warn:1 -using System; -[assembly: CLSCompliant (true)] - -public class ErrorCS3005 { - public int FOO = 0; - public int foo = 1; +[assembly:System.CLSCompliant(true)] - public static void Main ( ) { - ErrorCS3005 error = new ErrorCS3005 (); - Console.WriteLine ("This should make the compiler to complain ERROR CS3005, number: {0}", error.foo); - } +namespace System { + public interface Icomparable { + } } - // CS3005: Identifier `a' differing only in case is not CLS-compliant // Line: 10 @@ -104,270 +100,274 @@ public interface a { } - // CS3005: Identifier `Foo.main()' differing only in case is not CLS-compliant -// Line: 9 + // CS3005: Identifier `CLSClass.Method<T>(int)' differing only in case is not CLS-compliant +// Line: 12 // Compiler options: -warnaserror -using System; -[assembly: CLSCompliant(false)] +[assembly:System.CLSCompliant (true)] + +public class BaseClass { + public int method; +} + +public class CLSClass : BaseClass { + public static void Method<T>(int arg) {} +} + + // CS3005: Identifier `CLSClass_B.uNIVERSAL' differing only in case is not CLS-compliant +// Line: 9 +// Compiler options: -reference:CS3005-16-lib.dll -warnaserror -[CLSCompliant(true)] -public class Foo { - public static void Main () {} - public static void main () {} -} - // CS3005: Identifier `CLSEnum.Label' differing only in case is not CLS-compliant -// Line: 10 -// Compiler options: -warnaserror -warn:1 using System; -[assembly:CLSCompliant (true)] +[assembly: CLSCompliantAttribute (true)] -public enum CLSEnum { - label, - Label +public class CLSClass_B: CLSClass_A { + public const int uNIVERSAL = 3; } - // CS3005: Identifier `I.BLAH.get' differing only in case is not CLS-compliant -// Line: 16 + // CS3005: Identifier `B.TEST()' differing only in case is not CLS-compliant +// Line: 15 // Compiler options: -warnaserror -using System.Runtime.CompilerServices; using System; -[assembly: CLSCompliant (true)] +[assembly: CLSCompliantAttribute (true)] -public interface I { /usr/lib/monodoc/sources/cs-errors.zip/CS3006 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS3006 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS3006 2039-11-01 23:06:40.000000000 +0100 @@ -2,16 +2,22 @@ CS3006 - // CS3006: Overloaded method `CLSInterface.Test(ref int)' differing only in ref or out, or in array rank, is not CLS-compliant -// Line: 10 + // CS3006: Overloaded method `CLSClass.Test(ref int)' differing only in ref or out, or in array rank, is not CLS-compliant +// Line: 15 // Compiler options: -warnaserror -warn:1 using System; [assembly: CLSCompliant(true)] -public interface CLSInterface { - void Test(int a); - void Test(ref int b); +public class Base +{ + public void Test(int a) { + } +} + +public class CLSClass: Base { + public void Test(ref int b) { + } } // CS3006: Overloaded method `CLSClass.Test(int[,])' differing only in ref or out, or in array rank, is not CLS-compliant @@ -29,77 +35,55 @@ } } - // CS3006: Overloaded method `CLSClass.CLSClass(int[,])' differing only in ref or out, or in array rank, is not CLS-compliant -// Line: 12 + // CS3006: Overloaded method `CLSInterface.Test(int[,])' differing only in ref or out, or in array rank, is not CLS-compliant +// Line: 10 // Compiler options: -warnaserror -warn:1 using System; [assembly: CLSCompliant(true)] -public class CLSClass { - public CLSClass(int[,,] b) { - } - - public CLSClass(int[,] b) { - } - -} - - // CS3006: Overloaded method `Base<T>.Test(ref int)' differing only in ref or out, or in array rank, is not CLS-compliant -// Line: 13 -// Compiler options: -warnaserror -warn:1 - -using System; -[assembly: CLSCompliant (true)] - -public class Base<T> -{ - public void Test (int a) - { - } - public void Test (ref int b) - { - } -} - -public class CLSClass : Base<int> -{ - public void Test () - { - } +public interface CLSInterface { + void Test(int[,,] b); + void Test(int[,] b); } // CS3006: Overloaded method `CLSClass.Test(ref int)' differing only in ref or out, or in array rank, is not CLS-compliant -// Line: 15 +// Line: 12 // Compiler options: -warnaserror -warn:1 using System; [assembly: CLSCompliant(true)] -public class Base -{ +public class CLSClass { public void Test(int a) { } -} -public class CLSClass: Base { public void Test(ref int b) { } } - // CS3006: Overloaded method `CLSClass.Test(ref int)' differing only in ref or out, or in array rank, is not CLS-compliant -// Line: 12 + // CS3006: Overloaded method `CLSInterface.Test(out bool)' differing only in ref or out, or in array rank, is not CLS-compliant +// Line: 10 // Compiler options: -warnaserror -warn:1 using System; [assembly: CLSCompliant(true)] -public class CLSClass { - public void Test(int a) { - } +public interface CLSInterface { + void Test(bool a); + void Test(out bool b); +} + + // CS3006: Overloaded method `CLSInterface.Test(ref int)' differing only in ref or out, or in array rank, is not CLS-compliant +// Line: 10 +// Compiler options: -warnaserror -warn:1 - public void Test(ref int b) { - } +using System; +[assembly: CLSCompliant(true)] + +public interface CLSInterface { + void Test(int a); + void Test(ref int b); } // CS3006: Overloaded method `CLSClass.Test(out bool)' differing only in ref or out, or in array rank, is not CLS-compliant @@ -116,28 +100,44 @@ public abstract void Test(out bool b); } - // CS3006: Overloaded method `CLSInterface.Test(out bool)' differing only in ref or out, or in array rank, is not CLS-compliant -// Line: 10 + // CS3006: Overloaded method `Base<T>.Test(ref int)' differing only in ref or out, or in array rank, is not CLS-compliant +// Line: 13 // Compiler options: -warnaserror -warn:1 using System; -[assembly: CLSCompliant(true)] +[assembly: CLSCompliant (true)] -public interface CLSInterface { - void Test(bool a); - void Test(out bool b); +public class Base<T> +{ + public void Test (int a) + { + } + public void Test (ref int b) + { + } +} + +public class CLSClass : Base<int> +{ + public void Test () + { + } } - // CS3006: Overloaded method `CLSInterface.Test(int[,])' differing only in ref or out, or in array rank, is not CLS-compliant -// Line: 10 + // CS3006: Overloaded method `CLSClass.CLSClass(int[,])' differing only in ref or out, or in array rank, is not CLS-compliant +// Line: 12 // Compiler options: -warnaserror -warn:1 using System; [assembly: CLSCompliant(true)] -public interface CLSInterface { - void Test(int[,,] b); - void Test(int[,] b); +public class CLSClass { + public CLSClass(int[,,] b) { + } + + public CLSClass(int[,] b) { + } + } /usr/lib/monodoc/sources/cs-errors.zip/CS3008 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS3008 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS3008 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,16 @@ CS3008 + // CS3008: Identifier `_I' is not CLS-compliant +// Line: 8 +// Compiler options: -warnaserror -warn:1 + +using System; +[assembly:CLSCompliant(true)] + +public interface _I { +} + // CS3008: Identifier `__N' is not CLS-compliant // Line: 7 // Compiler options: -warnaserror -warn:1 @@ -20,99 +30,89 @@ [assembly: CLSCompliant(true)] public class CLSClass { - public const string _value = ""; + public static int _value = 3; } - // CS3008: Identifier `CLSClass._myEvent' is not CLS-compliant -// Line: 11 + // CS3008: Identifier `CLSClass._value' is not CLS-compliant +// Line: 9 // Compiler options: -warnaserror -warn:1 using System; [assembly: CLSCompliant(true)] -public delegate void MyDelegate(); - public class CLSClass { - public event MyDelegate _myEvent; + public const string _value = ""; } - // CS3008: Identifier `System.Error.__ComObject' is not CLS-compliant + // CS3008: Identifier `C._()' is not CLS-compliant // Line: 9 // Compiler options: -warnaserror -warn:1 using System; [assembly:CLSCompliant(true)] -namespace System.Error { - public class __ComObject : MarshalByRefObject { - private __ComObject () - { - } - } -} - - // CS3008: Identifier `_A' is not CLS-compliant -// Line: 8 -// Compiler options: -warnaserror -warn:1 - -using System; -[assembly:CLSCompliant(true)] - -public class _A { +public class C { + public void _() {} } - // CS3008: Identifier `C._()' is not CLS-compliant + // CS3008: Identifier `I._()' is not CLS-compliant // Line: 9 // Compiler options: -warnaserror -warn:1 using System; [assembly:CLSCompliant(true)] -public class C { - public void _() {} +public interface I { + void _(); } - // CS3008: Identifier `E2.__VALUE' is not CLS-compliant -// Line: 9 + // CS3008: Identifier `_A' is not CLS-compliant +// Line: 8 // Compiler options: -warnaserror -warn:1 using System; -[assembly:CLSCompliant (true)] +[assembly:CLSCompliant(true)] -public enum E2 { - __VALUE +public class _A { } - // CS3008: Identifier `CLSClass._value' is not CLS-compliant -// Line: 9 + // CS3008: Identifier `CLSClass._myEvent' is not CLS-compliant +// Line: 11 // Compiler options: -warnaserror -warn:1 using System; [assembly: CLSCompliant(true)] +public delegate void MyDelegate(); + public class CLSClass { - public static int _value = 3; + public event MyDelegate _myEvent; } - // CS3008: Identifier `_I' is not CLS-compliant -// Line: 8 + // CS3008: Identifier `E2.__VALUE' is not CLS-compliant +// Line: 9 // Compiler options: -warnaserror -warn:1 using System; -[assembly:CLSCompliant(true)] +[assembly:CLSCompliant (true)] -public interface _I { +public enum E2 { + __VALUE } - // CS3008: Identifier `I._()' is not CLS-compliant + // CS3008: Identifier `System.Error.__ComObject' is not CLS-compliant // Line: 9 // Compiler options: -warnaserror -warn:1 using System; [assembly:CLSCompliant(true)] -public interface I { - void _(); +namespace System.Error { + public class __ComObject : MarshalByRefObject { + private __ComObject () + { + } + } } /usr/lib/monodoc/sources/cs-errors.zip/CS3009 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS3009 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS3009 2039-11-01 23:06:40.000000000 +0100 @@ -2,30 +2,36 @@ CS3009 - // CS3009: `CLSClass': base type `System.Runtime.Serialization.Formatter' is not CLS-compliant -// Line: 10 + // CS3009: `Days': base type `uint' is not CLS-compliant +// Line: 8 // Compiler options: -warnaserror -warn:1 using System; -using System.Runtime.Serialization; - -[assembly:CLSCompliant (true)] +[assembly:CLSCompliant(true)] -public abstract class CLSClass: Formatter { -} +public enum Days: uint {Sat=1, Sun, Mon, Tue, Wed, Thu, Fri}; - // CS3009: `C': base type `C<ulong>' is not CLS-compliant -// Line: 14 + // CS3009: `AttributesForm': base type `BaseClass' is not CLS-compliant +// Line: 17 // Compiler options: -warnaserror -warn:1 + +// The error is reported intentionally twice. + using System; + [assembly:CLSCompliant(true)] -public class C<T> +[CLSCompliant(false)] +public class BaseClass { } -public class C : C<ulong> +public class AttributesForm : BaseClass +{ +} + +public class AttributesForm_2 : BaseClass { } @@ -43,37 +49,31 @@ public class CLSClass: BaseClass { } - // CS3009: `Days': base type `uint' is not CLS-compliant -// Line: 8 -// Compiler options: -warnaserror -warn:1 - -using System; -[assembly:CLSCompliant(true)] - -public enum Days: uint {Sat=1, Sun, Mon, Tue, Wed, Thu, Fri}; - - // CS3009: `AttributesForm': base type `BaseClass' is not CLS-compliant -// Line: 17 + // CS3009: `C': base type `C<ulong>' is not CLS-compliant +// Line: 14 // Compiler options: -warnaserror -warn:1 - -// The error is reported intentionally twice. - using System; - [assembly:CLSCompliant(true)] -[CLSCompliant(false)] -public class BaseClass +public class C<T> { } -public class AttributesForm : BaseClass +public class C : C<ulong> { } + + // CS3009: `CLSClass': base type `System.Runtime.Serialization.Formatter' is not CLS-compliant +// Line: 10 +// Compiler options: -warnaserror -warn:1 -public class AttributesForm_2 : BaseClass -{ +using System; +using System.Runtime.Serialization; + +[assembly:CLSCompliant (true)] + +public abstract class CLSClass: Formatter { } /usr/lib/monodoc/sources/cs-errors.zip/CS3011 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS3011 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS3011 2039-11-01 23:06:40.000000000 +0100 @@ -2,7 +2,7 @@ CS3011 - // CS3011: `CLSClass.Error(System.IComparable)': only CLS-compliant members can be abstract + // CS3011: `CLSClass.this[long]': only CLS-compliant members can be abstract // Line: 10 // Compiler options: -warnaserror -warn:1 @@ -11,11 +11,11 @@ public abstract class CLSClass { [CLSCompliant (false)] - protected abstract void Error (IComparable arg); + public abstract int this[long index] { set; } } - // CS3011: `CLSClass.this[long]': only CLS-compliant members can be abstract + // CS3011: `CLSClass.Error(System.IComparable)': only CLS-compliant members can be abstract // Line: 10 // Compiler options: -warnaserror -warn:1 @@ -24,7 +24,7 @@ public abstract class CLSClass { [CLSCompliant (false)] - public abstract int this[long index] { set; } + protected abstract void Error (IComparable arg); } /usr/lib/monodoc/sources/cs-errors.zip/CS3014 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS3014 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS3014 2039-11-01 23:06:40.000000000 +0100 @@ -11,35 +11,35 @@ [CLSCompliant (true)] public delegate void D (); - // CS3014: `I.Valid(bool)' cannot be marked as CLS-compliant because the assembly is not marked as CLS-compliant -// Line: 9 + // CS3014: `C' cannot be marked as CLS-compliant because the assembly is not marked as CLS-compliant +// Line: 8 // Compiler options: -warnaserror -warn:1 using System; -public interface I { - [CLSCompliant (true)] - void Valid (bool arg); +[CLSCompliant (true)] +public class C { } - // CS3014: `E' cannot be marked as CLS-compliant because the assembly is not marked as CLS-compliant + // CS3014: `I' cannot be marked as CLS-compliant because the assembly is not marked as CLS-compliant // Line: 8 // Compiler options: -warnaserror -warn:1 using System; [CLSCompliant (true)] -public enum E { +public interface I { } - // CS3014: `C' cannot be marked as CLS-compliant because the assembly is not marked as CLS-compliant + // CS3014: `E2.Foo' cannot be marked as CLS-compliant because the assembly is not marked as CLS-compliant // Line: 8 // Compiler options: -warnaserror -warn:1 using System; -[CLSCompliant (true)] -public class C { +public enum E2 { + [CLSCompliant (true)] + Foo } // CS3014: `CLSClass.implicit operator CLSClass(byte)' cannot be marked as CLS-compliant because the assembly is not marked as CLS-compliant @@ -55,25 +55,25 @@ } } - // CS3014: `E2.Foo' cannot be marked as CLS-compliant because the assembly is not marked as CLS-compliant -// Line: 8 + // CS3014: `I.Valid(bool)' cannot be marked as CLS-compliant because the assembly is not marked as CLS-compliant +// Line: 9 // Compiler options: -warnaserror -warn:1 using System; -public enum E2 { +public interface I { [CLSCompliant (true)] - Foo + void Valid (bool arg); } - // CS3014: `I' cannot be marked as CLS-compliant because the assembly is not marked as CLS-compliant + // CS3014: `E' cannot be marked as CLS-compliant because the assembly is not marked as CLS-compliant // Line: 8 // Compiler options: -warnaserror -warn:1 using System; [CLSCompliant (true)] -public interface I { +public enum E { } /usr/lib/monodoc/sources/cs-errors.zip/CS3015 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS3015 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS3015 2039-11-01 23:06:40.000000000 +0100 @@ -10,9 +10,8 @@ [assembly:CLSCompliant (true)] public class CLSAttribute: Attribute { - [CLSCompliant (false)] - public CLSAttribute(string array) { - } + private CLSAttribute(int arg) { + } } // CS3015: `CLSAttribute' has no accessible constructors which use only CLS-compliant types @@ -23,8 +22,8 @@ [assembly:CLSCompliant (true)] public class CLSAttribute: Attribute { - private CLSAttribute(int arg) { - } + public CLSAttribute(string[] array) { + } } // CS3015: `CLSAttribute' has no accessible constructors which use only CLS-compliant types @@ -35,8 +34,9 @@ [assembly:CLSCompliant (true)] public class CLSAttribute: Attribute { - public CLSAttribute(string[] array) { - } + [CLSCompliant (false)] + public CLSAttribute(string array) { + } } /usr/lib/monodoc/sources/cs-errors.zip/CS3016 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS3016 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS3016 2039-11-01 23:06:40.000000000 +0100 @@ -7,13 +7,10 @@ // Compiler options: -warnaserror -warn:1 using System; -[assembly: System.CLSCompliant (true)] +[assembly:CLSCompliant (true)] [CLSAttribute (new bool [] {true, false})] -public enum E { -} - -public partial class CLSAttribute: System.Attribute { +public class CLSAttribute: Attribute { public CLSAttribute () { } @@ -41,19 +38,19 @@ } // CS3016: Arrays as attribute arguments are not CLS-compliant -// Line: 13 +// Line: 6 // Compiler options: -warnaserror -warn:1 using System; -[assembly:CLSCompliant(true)] +[assembly:CLSAttribute (new bool [] {true, false})] +[assembly:CLSCompliant (true)] public class CLSAttribute: Attribute { - public CLSAttribute() {} - public CLSAttribute(string[] array) {} -} - -[CLSAttribute(new string[] { "", "" })] -public interface ITest { + public CLSAttribute () { + } + + public CLSAttribute(bool[] array) { + } } // CS3016: Arrays as attribute arguments are not CLS-compliant @@ -61,10 +58,13 @@ // Compiler options: -warnaserror -warn:1 using System; -[assembly:CLSCompliant (true)] +[assembly: System.CLSCompliant (true)] [CLSAttribute (new bool [] {true, false})] -public class CLSAttribute: Attribute { +public enum E { +} + +public partial class CLSAttribute: System.Attribute { public CLSAttribute () { } @@ -73,19 +73,19 @@ } // CS3016: Arrays as attribute arguments are not CLS-compliant -// Line: 6 +// Line: 13 // Compiler options: -warnaserror -warn:1 using System; -[assembly:CLSAttribute (new bool [] {true, false})] -[assembly:CLSCompliant (true)] +[assembly:CLSCompliant(true)] public class CLSAttribute: Attribute { - public CLSAttribute () { - } - - public CLSAttribute(bool[] array) { - } + public CLSAttribute() {} + public CLSAttribute(string[] array) {} +} + +[CLSAttribute(new string[] { "", "" })] +public interface ITest { } /usr/lib/monodoc/sources/cs-errors.zip/CS3018 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS3018 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS3018 2039-11-01 23:06:40.000000000 +0100 @@ -2,7 +2,7 @@ CS3018 - // CS3018: `NotCompliant.Compliant' cannot be marked as CLS-compliant because it is a member of non CLS-compliant type `NotCompliant' + // CS3018: `C1.I2' cannot be marked as CLS-compliant because it is a member of non CLS-compliant type `C1' // Line: 12 // Compiler options: -warnaserror -warn:1 @@ -10,12 +10,10 @@ [assembly: CLSCompliant (true)] [CLSCompliant (false)] -public class NotCompliant +public class C1 { - [CLSCompliant (true)] - public class Compliant - { - } + [CLSCompliant (true)] + public interface I2 {} } // CS3018: `C1.I2' cannot be marked as CLS-compliant because it is a member of non CLS-compliant type `C1' @@ -35,6 +33,22 @@ public partial class C1 { } + // CS3018: `NotCompliant.Compliant' cannot be marked as CLS-compliant because it is a member of non CLS-compliant type `NotCompliant' +// Line: 12 +// Compiler options: -warnaserror -warn:1 + +using System; +[assembly: CLSCompliant (true)] + +[CLSCompliant (false)] +public class NotCompliant +{ + [CLSCompliant (true)] + public class Compliant + { + } +} + // CS3018: `C.field' cannot be marked as CLS-compliant because it is a member of non CLS-compliant type `C' // Line: 10 // Compiler options: -warnaserror -warn:1 @@ -46,20 +60,6 @@ [CLSCompliant (true)] public long field; } - // CS3018: `C1.I2' cannot be marked as CLS-compliant because it is a member of non CLS-compliant type `C1' -// Line: 12 -// Compiler options: -warnaserror -warn:1 - -using System; -[assembly: CLSCompliant (true)] - -[CLSCompliant (false)] -public class C1 -{ - [CLSCompliant (true)] - public interface I2 {} -} - // CS3018: `C.Error(bool)' cannot be marked as CLS-compliant because it is a member of non CLS-compliant type `C' // Line: 10 // Compiler options: -warnaserror -warn:1 /usr/lib/monodoc/sources/cs-errors.zip/CS3019 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS3019 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS3019 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,16 @@ CS3019 + // CS3019: CLS compliance checking will not be performed on `CLSClass' because it is not visible from outside this assembly +// Line: 8 +// Compiler options: -warnaserror -warn:2 + +using System; +[assembly:CLSCompliant (true)] + +[CLSCompliant (false)] +class CLSClass { +} // CS3019: CLS compliance checking will not be performed on `CLSClass.Foo()' because it is not visible from outside this assembly // Line: 8 // Compiler options: -warnaserror -warn:2 @@ -19,15 +29,15 @@ } } - // CS3019: CLS compliance checking will not be performed on `CLSClass' because it is not visible from outside this assembly + // 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)] +[assembly:CLSCompliant(true)] -[CLSCompliant (false)] -class CLSClass { +public class CLSClass<[CLSCompliant (false)] T> +{ } // CS3019: CLS compliance checking will not be performed on `CLSClass' because it is not visible from outside this assembly // Line: 8 @@ -39,15 +49,5 @@ [CLSCompliant (true)] class CLSClass { } - // 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 /usr/lib/monodoc/sources/cs-errors.zip/CS3024 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS3024 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS3024 2039-11-01 23:06:40.000000000 +0100 @@ -2,40 +2,40 @@ CS3024 - // CS3024: Constraint type `A' is not CLS-compliant -// Line: 15 + // CS3024: Constraint type `I' is not CLS-compliant +// Line: 13 // Compiler options: -warn:1 -warnaserror using System; [assembly:CLSCompliant (true)] [CLSCompliant (false)] -public abstract class A +public interface I { } -public class C +public class C<T> where T : I { - public static void Foo<T>() where T : A - { - } } - // CS3024: Constraint type `I' is not CLS-compliant -// Line: 13 + // CS3024: Constraint type `A' is not CLS-compliant +// Line: 15 // Compiler options: -warn:1 -warnaserror using System; [assembly:CLSCompliant (true)] [CLSCompliant (false)] -public interface I +public abstract class A { } -public class C<T> where T : I +public class C { + public static void Foo<T>() where T : A + { + } } /usr/lib/monodoc/sources/cs-errors.zip/CS4001 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS4001 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS4001 2039-11-01 23:06:40.000000000 +0100 @@ -2,27 +2,27 @@ CS4001 - // CS4001: Cannot await `int' expression -// Line: 8 + // CS4001: Cannot await `void' expression +// Line: 10 + +using System; class A { static async void Test () { - await 1; + await Console.WriteLine ("await"); } } - // CS4001: Cannot await `void' expression -// Line: 10 - -using System; + // CS4001: Cannot await `int' expression +// Line: 8 class A { static async void Test () { - await Console.WriteLine ("await"); + await 1; } } /usr/lib/monodoc/sources/cs-errors.zip/CS4003 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS4003 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS4003 2039-11-01 23:06:40.000000000 +0100 @@ -7,9 +7,13 @@ class Tester { + int await; + async void Test () { - int await = 1; + var a = new Initializer () { + await = 2 + }; } } @@ -18,13 +22,9 @@ class Tester { - int await; - async void Test () { - var a = new Initializer () { - await = 2 - }; + int await = 1; } } /usr/lib/monodoc/sources/cs-errors.zip/CS4011 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS4011 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS4011 2039-11-01 23:06:40.000000000 +0100 @@ -46,48 +46,48 @@ } } - // CS4011: The awaiter type `A' must have suitable IsCompleted and GetResult members + // CS4011: The awaiter type `int' must have suitable IsCompleted and GetResult members // Line: 16 static class S { - public static A GetAwaiter (this int i) + public static int GetAwaiter (this int i) { - return new A (); + return 1; } } class A { - bool IsCompleted { - get { - return true; - } - } - - void OnCompleted (System.Action a) - { - } - static async void Test () { await 9; } } - // CS4011: The awaiter type `int' must have suitable IsCompleted and GetResult members + // CS4011: The awaiter type `A' must have suitable IsCompleted and GetResult members // Line: 16 static class S { - public static int GetAwaiter (this int i) + public static A GetAwaiter (this int i) { - return 1; + return new A (); } } class A { + bool IsCompleted { + get { + return true; + } + } + + void OnCompleted (System.Action a) + { + } + static async void Test () { await 9; /usr/lib/monodoc/sources/cs-errors.zip/CS4012 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS4012 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS4012 2039-11-01 23:06:40.000000000 +0100 @@ -3,6 +3,22 @@ CS4012 // CS4012: Parameters or local variables of type `System.TypedReference' cannot be declared in async methods or iterators +// Line: 9 + +using System; +using System.Collections; + +class C +{ + public IEnumerable Iter () + { + int i = 2; + TypedReference tr = __makeref (i); + yield return 1; + } +} + + // CS4012: Parameters or local variables of type `System.TypedReference' cannot be declared in async methods or iterators // Line: 13 using System; @@ -38,21 +54,5 @@ await Task.Factory.StartNew (() => 6); } } - // CS4012: Parameters or local variables of type `System.TypedReference' cannot be declared in async methods or iterators -// Line: 9 - -using System; -using System.Collections; - -class C -{ - public IEnumerable Iter () - { - int i = 2; - TypedReference tr = __makeref (i); - yield return 1; - } -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS4014 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS4014 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS4014 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,67 @@ CS4014 + // CS4014: The statement is not awaited and execution of current method continues before the call is completed. Consider using `await' operator +// Line: 18 +// Compiler options: -warnaserror + +using System; +using System.Threading.Tasks; + +class C +{ + static Task Method () + { + return Task.FromResult (1); + } + + static async Task<int> TestAsync () + { + Method (); + return await Task.FromResult (2); + } +} + + // CS4014: The statement is not awaited and execution of current method continues before the call is completed. Consider using `await' operator +// Line: 17 +// Compiler options: -warnaserror + +using System; +using System.Threading.Tasks; + +class C +{ + static Task Method () + { + return Task.FromResult (1); + } + + static void TestAsync () + { + Func<Task> a = async () => { + await Method (); + Method (); + }; + } +} + + // CS4014: The statement is not awaited and execution of current method continues before the call is completed. Consider using `await' operator +// Line: 18 +// Compiler options: -warnaserror + +using System; +using System.Threading.Tasks; + +class C +{ + static async Task<int> TestAsync () + { + Func<Task> f = null; + f (); + return await Task.FromResult (2); + } +} + // CS4014: The statement is not awaited and execution of current method continues before the call is completed. Consider using `await' operator or calling `Wait' method // Line: 17 // Compiler options: -warnaserror @@ -73,67 +134,6 @@ } } // CS4014: The statement is not awaited and execution of current method continues before the call is completed. Consider using `await' operator -// Line: 17 -// Compiler options: -warnaserror - -using System; -using System.Threading.Tasks; - -class C -{ - static Task Method () - { - return Task.FromResult (1); - } - - static void TestAsync () - { - Func<Task> a = async () => { - await Method (); - Method (); - }; - } -} - - // CS4014: The statement is not awaited and execution of current method continues before the call is completed. Consider using `await' operator -// Line: 18 -// Compiler options: -warnaserror - -using System; -using System.Threading.Tasks; - -class C -{ - static async Task<int> TestAsync () - { - Func<Task> f = null; - f (); - return await Task.FromResult (2); - } -} - - // CS4014: The statement is not awaited and execution of current method continues before the call is completed. Consider using `await' operator -// Line: 18 -// Compiler options: -warnaserror - -using System; -using System.Threading.Tasks; - -class C -{ - static Task Method () - { - return Task.FromResult (1); - } - - static async Task<int> TestAsync () - { - Method (); - return await Task.FromResult (2); - } -} - - // CS4014: The statement is not awaited and execution of current method continues before the call is completed. Consider using `await' operator // Line: 12 // Compiler options: -warnaserror /usr/lib/monodoc/sources/cs-errors.zip/CS7003 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS7003 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS7003 2039-11-01 23:06:40.000000000 +0100 @@ -3,41 +3,6 @@ CS7003 // CS7003: Unbound generic name is not valid in this context -// Line: 10 - -class G<T> -{ -} - -class C -{ - G<> field; -} - // CS7003: Unbound generic name is not valid in this context -// Line: 8 - -class C -{ - static void Main () - { - System.Action<>.Combine (); - } -} - // CS7003: Unbound generic name is not valid in this context -// Line: 12 - -static class C -{ - static void Foo<T> () - { - } - - static void Main () - { - string s = nameof (Foo<>); - } -} - // CS7003: Unbound generic name is not valid in this context // Line: 14 class A<T> @@ -65,6 +30,17 @@ const string f = nameof (G<>); } // CS7003: Unbound generic name is not valid in this context +// Line: 10 + +class G<T> +{ +} + +class C +{ + G<> field; +} + // CS7003: Unbound generic name is not valid in this context // Line: 12 static class C @@ -98,6 +74,30 @@ } } // CS7003: Unbound generic name is not valid in this context +// Line: 12 + +static class C +{ + static void Foo<T> () + { + } + + static void Main () + { + string s = nameof (Foo<>); + } +} + // CS7003: Unbound generic name is not valid in this context +// Line: 8 + +class C +{ + static void Main () + { + System.Action<>.Combine (); + } +} + // CS7003: Unbound generic name is not valid in this context // Line: 4 using SCGL = System.Collections.Generic.List<>; /usr/lib/monodoc/sources/cs-errors.zip/CS7023 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS7023 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS7023 2039-11-01 23:06:40.000000000 +0100 @@ -9,7 +9,7 @@ { public static void Main () { - var v = null as X; + var v = null is X; } } // CS7023: The second operand of `is' or `as' operator cannot be static type `X' @@ -19,7 +19,7 @@ { public static void Main () { - var v = null is X; + var v = null as X; } } /usr/lib/monodoc/sources/cs-errors.zip/CS7034 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS7034 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS7034 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,13 @@ CS7034 + // CS7034: The specified version string `2.0.*.*' does not conform to the required format - major[.minor[.build[.revision]]] +// Line: 6 + +using System.Reflection; + +[assembly: AssemblyVersion("2.0.*.*")] + // CS7034: The specified version string `0.0.0.80420' does not conform to the required format - major[.minor[.build[.revision]]] // Line: 7 @@ -25,12 +32,5 @@ [assembly: AssemblyVersion("2.*")] - // CS7034: The specified version string `2.0.*.*' does not conform to the required format - major[.minor[.build[.revision]]] -// Line: 6 - -using System.Reflection; - -[assembly: AssemblyVersion("2.0.*.*")] - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS7070 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS7070 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS7070 2039-11-01 23:06:40.000000000 +0100 @@ -3,7 +3,7 @@ CS7070 // CS7070: Security attribute `DebugPermissionAttribute' is not valid on this declaration type. Security attributes are only valid on assembly, type and method declarations -// Line: 11 +// Line: 10 using System; using System.Security; @@ -11,11 +11,8 @@ public class Program { - [return: DebugPermission (SecurityAction.LinkDemand)] - public int Show (string message) - { - return 2; - } + [DebugPermission (SecurityAction.RequestMinimum)] + public int i; } [AttributeUsage (AttributeTargets.All, AllowMultiple = true, Inherited = false)] @@ -34,7 +31,7 @@ } // CS7070: Security attribute `DebugPermissionAttribute' is not valid on this declaration type. Security attributes are only valid on assembly, type and method declarations -// Line: 10 +// Line: 11 using System; using System.Security; @@ -42,8 +39,11 @@ public class Program { - [DebugPermission (SecurityAction.RequestMinimum)] - public int i; + [return: DebugPermission (SecurityAction.LinkDemand)] + public int Show (string message) + { + return 2; + } } [AttributeUsage (AttributeTargets.All, AllowMultiple = true, Inherited = false)] @@ -69,14 +69,10 @@ using System.Security.Permissions; public class Program { - - [DebugPermission (SecurityAction.LinkDemand)] - public int Show - { - get { - return 2; - } - } + public delegate int DisplayHandler (string msg); + + [DebugPermission (SecurityAction.RequestMinimum)] + public event DisplayHandler OnShow; } [AttributeUsage (AttributeTargets.All, AllowMultiple = true, Inherited = false)] @@ -102,10 +98,14 @@ using System.Security.Permissions; public class Program { - public delegate int DisplayHandler (string msg); - - [DebugPermission (SecurityAction.RequestMinimum)] - public event DisplayHandler OnShow; + + [DebugPermission (SecurityAction.LinkDemand)] + public int Show + { + get { + return 2; + } + } } [AttributeUsage (AttributeTargets.All, AllowMultiple = true, Inherited = false)] /usr/lib/monodoc/sources/cs-errors.zip/CS7083 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS7083 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS7083 2039-11-01 23:06:40.000000000 +0100 @@ -2,24 +2,24 @@ CS7083 - // CS7083: Expression must be implicitly convertible to Boolean or its type `C' must define operator `true' + // CS7083: Expression must be implicitly convertible to Boolean or its type `C' must define operator `false' // Line: 8 class C { dynamic M (dynamic d) { - return this || d; + return this && d; } } - // CS7083: Expression must be implicitly convertible to Boolean or its type `C' must define operator `false' + // CS7083: Expression must be implicitly convertible to Boolean or its type `C' must define operator `true' // Line: 8 class C { dynamic M (dynamic d) { - return this && d; + return this || d; } } /usr/lib/monodoc/sources/cs-errors.zip/CS8030 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS8030 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS8030 2039-11-01 23:06:40.000000000 +0100 @@ -3,18 +3,6 @@ CS8030 // CS8030: Anonymous function or lambda expression converted to a void returning delegate cannot return a value -// Line: 9 - -delegate void D (int x); - -class X { - static void Main () - { - D d6 = delegate (int x) { return x; }; // Return type mismatch. - } -} - - // CS8030: Anonymous function or lambda expression converted to a void returning delegate cannot return a value // Line: 11 using System; @@ -45,5 +33,17 @@ } } + // CS8030: Anonymous function or lambda expression converted to a void returning delegate cannot return a value +// Line: 9 + +delegate void D (int x); + +class X { + static void Main () + { + D d6 = delegate (int x) { return x; }; // Return type mismatch. + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS8072 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS8072 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS8072 2039-11-01 23:06:40.000000000 +0100 @@ -3,6 +3,20 @@ CS8072 // CS8072: An expression tree cannot contain a null propagating operator +// Line: 11 + +using System; +using System.Linq.Expressions; + +class C +{ + static int Main () + { + Expression<Func<string, char?>> e = l => l?[1]; + return 0; + } +} + // CS8072: An expression tree cannot contain a null propagating operator // Line: 14 using System; @@ -19,19 +33,5 @@ } } - // CS8072: An expression tree cannot contain a null propagating operator -// Line: 11 - -using System; -using System.Linq.Expressions; - -class C -{ - static int Main () - { - Expression<Func<string, char?>> e = l => l?[1]; - return 0; - } -} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS8082 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS8082 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS8082 2039-11-01 23:06:40.000000000 +0100 @@ -3,26 +3,27 @@ CS8082 // CS8082: An argument to nameof operator cannot include sub-expression -// Line: 8 +// Line: 9 class C { void Foo () { - var s = nameof (1.ToString); + dynamic o = null; + var s = nameof (o.ToString ().Equals); } } // CS8082: An argument to nameof operator cannot include sub-expression -// Line: 9 +// Line: 8 class C { void Foo () { - dynamic o = null; - var s = nameof (o.ToString ().Equals); + var v = nameof (this?.Equals); } -} +} + // CS8082: An argument to nameof operator cannot include sub-expression // Line: 8 @@ -30,10 +31,9 @@ { void Foo () { - var v = nameof (this?.Equals); + var s = nameof (1.ToString); } -} - +} // CS8082: An argument to nameof operator cannot include sub-expression // Line: 9 /usr/lib/monodoc/sources/cs-errors.zip/CS8084 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS8084 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS8084 2039-11-01 23:06:40.000000000 +0100 @@ -13,7 +13,7 @@ static void Main () { - string s = nameof (C.Foo<int>); + string s = nameof (Foo<int>); } } // CS8084: An argument to nameof operator cannot be method group with type arguments @@ -27,7 +27,7 @@ static void Main () { - string s = nameof (Foo<int>); + string s = nameof (C.Foo<int>); } } /usr/lib/monodoc/sources/cs-errors.zip/CS8093 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS8093 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS8093 2039-11-01 23:06:40.000000000 +0100 @@ -3,30 +3,6 @@ CS8093 // CS8093: An argument to nameof operator cannot be extension method group -// Line: 21 - -public class A -{ -} - -static class X -{ - public static string Extension (this int a) - { - return null; - } -} - -public static class Test -{ - public static void Main () - { - A a = null; - var x = nameof (a.Extension); - } -} - - // CS8093: An argument to nameof operator cannot be extension method group // Line: 35 using System; @@ -68,5 +44,29 @@ } } } + // CS8093: An argument to nameof operator cannot be extension method group +// Line: 21 + +public class A +{ +} + +static class X +{ + public static string Extension (this int a) + { + return null; + } +} + +public static class Test +{ + public static void Main () + { + A a = null; + var x = nameof (a.Extension); + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS8123 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS8123 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS8123 2039-11-01 23:06:40.000000000 +0100 @@ -2,26 +2,26 @@ CS8123 - // CS8123: The tuple element name `a' is ignored because a different name or no name is specified by the target type `(int, int)' + // CS8123: The tuple element name `b' is ignored because a different name or no name is specified by the target type `(long, string)' // Line: 9 // Compiler options: -warnaserror -class C +static class X { - public static void Main () + static (long a, string x) Test () { - (int tt1, int tt2) t = (a: 1, 2); + return (b: 1, ""); } } - // CS8123: The tuple element name `b' is ignored because a different name or no name is specified by the target type `(long, string)' + // CS8123: The tuple element name `a' is ignored because a different name or no name is specified by the target type `(int, int)' // Line: 9 // Compiler options: -warnaserror -static class X +class C { - static (long a, string x) Test () + public static void Main () { - return (b: 1, ""); + (int tt1, int tt2) t = (a: 1, 2); } } /usr/lib/monodoc/sources/cs-errors.zip/CS8139 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS8139 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS8139 2039-11-01 23:06:40.000000000 +0100 @@ -2,43 +2,43 @@ CS8139 - // CS8139: `D.Prop': cannot change return type tuple element names when overriding inherited member `C.Prop' + // CS8139: `D.M()': cannot change return type tuple element names when overriding inherited member `C.M()' // Line: 14 class C { - public virtual (int a, int b) Prop { - get { - throw null; - } + public virtual (int a, int b) M () + { + throw null; } } class D : C { - public override (int c, int d) Prop { - get { - throw null; - } - } + public override (int c, int d) M () + { + throw null; + } } - // CS8139: `D.M()': cannot change return type tuple element names when overriding inherited member `C.M()' + // CS8139: `D.Prop': cannot change return type tuple element names when overriding inherited member `C.Prop' // Line: 14 class C { - public virtual (int a, int b) M () - { - throw null; + public virtual (int a, int b) Prop { + get { + throw null; + } } } class D : C { - public override (int c, int d) M () - { - throw null; - } + public override (int c, int d) Prop { + get { + throw null; + } + } } // CS8139: `D.M((int, int))': cannot change tuple element names when overriding inherited member `C.M((int, int))' // Line: 13 /usr/lib/monodoc/sources/cs-errors.zip/CS8148 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS8148 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS8148 2039-11-01 23:06:40.000000000 +0100 @@ -2,35 +2,35 @@ CS8148 - // CS8148: `B.Foo()': must not return by reference to match overridden member `A.Foo()' + // CS8148: `B.Foo': must return by reference to match overridden member `A.Foo' // Line: 11 public abstract class A { - public abstract int Foo (); + public abstract ref int Foo { get; } } public class B : A { - public override ref int Foo () - { - + public override long Foo { + get { + throw null; + } } } - // CS8148: `B.Foo': must return by reference to match overridden member `A.Foo' + // CS8148: `B.Foo()': must not return by reference to match overridden member `A.Foo()' // Line: 11 public abstract class A { - public abstract ref int Foo { get; } + public abstract int Foo (); } public class B : A { - public override long Foo { - get { - throw null; - } + public override ref int Foo () + { + } } /usr/lib/monodoc/sources/cs-errors.zip/CS8156 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS8156 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS8156 2039-11-01 23:06:40.000000000 +0100 @@ -5,16 +5,6 @@ // CS8156: An expression cannot be used in this context because it may not be returned by reference // Line: 8 -class Test -{ - ref int Foo () - { - return ref 2; - } -} - // CS8156: An expression cannot be used in this context because it may not be returned by reference -// Line: 8 - class X { int Prop { @@ -28,5 +18,15 @@ return ref Prop; } } + // CS8156: An expression cannot be used in this context because it may not be returned by reference +// Line: 8 + +class Test +{ + ref int Foo () + { + return ref 2; + } +} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS8170 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS8170 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS8170 2039-11-01 23:06:40.000000000 +0100 @@ -3,26 +3,26 @@ CS8170 // CS8170: -// Line: 10 +// Line: 8 public struct S { - int f; - public ref S Foo () { - return ref f; + return ref this; } } // CS8170: -// Line: 8 +// Line: 10 public struct S { + int f; + public ref S Foo () { - return ref this; + return ref f; } } /usr/lib/monodoc/sources/cs-errors.zip/CS8175 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS8175 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS8175 2039-11-01 23:06:40.000000000 +0100 @@ -2,6 +2,23 @@ CS8175 + // CS8175: Cannot use by-reference variable `v' inside an anonymous method, lambda expression, or query expression +// Line: 14 + +using System; + +public class Test +{ + public static void Main() + { + var arr = new int [1]; + ref var v = ref arr [0]; + + Action a = delegate { + ref var v2 = ref v; + }; + } +} // CS8175: Cannot use by-reference variable `s' inside an anonymous method, lambda expression, or query expression // Line: 17 // Compiler options: -langversion:latest @@ -21,22 +38,5 @@ Action a = () => Console.WriteLine (s); } } - // CS8175: Cannot use by-reference variable `v' inside an anonymous method, lambda expression, or query expression -// Line: 14 - -using System; - -public class Test -{ - public static void Main() - { - var arr = new int [1]; - ref var v = ref arr [0]; - - Action a = delegate { - ref var v2 = ref v; - }; - } -} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS8178 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS8178 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS8178 2039-11-01 23:06:40.000000000 +0100 @@ -2,7 +2,7 @@ CS8178 - // CS8178: `await' cannot be used in an expression containing a call to `X.Wrap(int)' because it returns by reference + // CS8178: `await' cannot be used in an expression containing a call to `X.this[int]' because it returns by reference // Line: 12 using System.Threading.Tasks; @@ -13,20 +13,16 @@ async Task Test () { - Foo (ref Wrap (await Task.FromResult (1))) = 4; + Foo (ref this [await Task.FromResult (1)]); } - ref int Wrap (int arg) - { - return ref x; - } + ref int this [int arg] => ref x; - static ref int Foo (ref int arg) + static void Foo (ref int arg) { - return ref arg; } } - // CS8178: `await' cannot be used in an expression containing a call to `X.this[int]' because it returns by reference + // CS8178: `await' cannot be used in an expression containing a call to `X.Wrap(int)' because it returns by reference // Line: 12 using System.Threading.Tasks; @@ -37,13 +33,17 @@ async Task Test () { - Foo (ref this [await Task.FromResult (1)]); + Foo (ref Wrap (await Task.FromResult (1))) = 4; } - ref int this [int arg] => ref x; + ref int Wrap (int arg) + { + return ref x; + } - static void Foo (ref int arg) + static ref int Foo (ref int arg) { + return ref arg; } } /usr/lib/monodoc/sources/cs-errors.zip/CS8200 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS8200 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS8200 2039-11-01 23:06:40.000000000 +0100 @@ -3,47 +3,44 @@ CS8200 // CS8200: Out variable and pattern variable declarations are not allowed within constructor initializers, field initializers, or property initializers -// Line: 6 +// Line: 8 + +using System; public class C { - bool res = Foo () is string s; + event Action H = Foo (out var res); - static object Foo () + static Action Foo (out int arg) { + arg = 2; return null; } -} +} + // CS8200: Out variable and pattern variable declarations are not allowed within constructor initializers, field initializers, or property initializers // Line: 6 -class X +public class C { - public static bool Test { get; } = Foo () is bool x; + bool res = Foo (out int arg); - static object Foo () - { - return false; - } + static bool Foo (out int arg) + { + arg = 2; + return false; + } } // CS8200: Out variable and pattern variable declarations are not allowed within constructor initializers, field initializers, or property initializers -// Line: 11 +// Line: 6 public class C { - public C (bool value) - { - } - - public C () - : this (Foo (out int arg)) - { - } + bool res = Foo () is string s; - static bool Foo (out int arg) + static object Foo () { - arg = 2; - return false; + return null; } } // CS8200: Out variable and pattern variable declarations are not allowed within constructor initializers, field initializers, or property initializers @@ -62,31 +59,34 @@ // CS8200: Out variable and pattern variable declarations are not allowed within constructor initializers, field initializers, or property initializers // Line: 6 -public class C +class X { - bool res = Foo (out int arg); + public static bool Test { get; } = Foo () is bool x; - static bool Foo (out int arg) - { - arg = 2; - return false; - } + static object Foo () + { + return false; + } } // CS8200: Out variable and pattern variable declarations are not allowed within constructor initializers, field initializers, or property initializers -// Line: 8 - -using System; +// Line: 11 public class C { - event Action H = Foo (out var res); + public C (bool value) + { + } - static Action Foo (out int arg) + public C () + : this (Foo (out int arg)) + { + } + + static bool Foo (out int arg) { arg = 2; - return null; + return false; } -} - +} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS8345 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS8345 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS8345 2039-11-01 23:06:40.000000000 +0100 @@ -10,9 +10,9 @@ { } -struct Test +ref struct Test { - S field; + static S field; } // CS8345: Field or auto-implemented property cannot be of type `S' unless it is an instance member of a ref struct // Line: 11 @@ -22,9 +22,9 @@ { } -ref struct Test +struct Test { - static S field; + S field; } \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS8385 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS8385 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS8385 2039-11-01 23:06:40.000000000 +0100 @@ -6,12 +6,11 @@ // Line: 9 // Compiler options: -unsafe -unsafe class C +unsafe struct S { - public static void Main () + public void Test () { - fixed (void* f = Main) - { + fixed (S* i = null) { } } } @@ -20,11 +19,12 @@ // Line: 9 // Compiler options: -unsafe -unsafe struct S +unsafe class C { - public void Test () + public static void Main () { - fixed (S* i = null) { + fixed (void* f = Main) + { } } } /usr/lib/monodoc/sources/cs-errors.zip/CS9030 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS9030 2023-09-30 09:46:34.000000000 +0200 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS9030 2039-11-01 23:06:40.000000000 +0100 @@ -3,19 +3,6 @@ CS9030 // CS9030: The left-hand side of an assignment cannot contain a null propagating operator -// Line: 11 - -using System; - -class MainClass -{ - public static void Main () - { - System.AppDomain a = null; - a?.AssemblyLoad += (sender, args) => Console.Write (args); - } -} - // CS9030: The left-hand side of an assignment cannot contain a null propagating operator // Line: 15 public class Test1 @@ -33,5 +20,18 @@ } } + // CS9030: The left-hand side of an assignment cannot contain a null propagating operator +// Line: 11 + +using System; + +class MainClass +{ + public static void Main () + { + System.AppDomain a = null; + a?.AssemblyLoad += (sender, args) => Console.Write (args); + } +} \ No newline at end of file /usr/lib/monodoc/sources/netdocs.zip/mastersummary.xml differs (HTML document, UTF-8 Unicode text, with very long lines) --- old//usr/lib/monodoc/sources/netdocs.zip/mastersummary.xml 2023-09-30 09:46:44.000000000 +0200 +++ new//usr/lib/monodoc/sources/netdocs.zip/mastersummary.xml 2039-11-01 23:06:50.000000000 +0100 @@ -1,4 +1,31 @@ + + + + The namespace contains classes that support interoperation between managed code and the wrt, and that enable the creation of wrt types with managed code. + + + + + + To be added. + + + + + To be added. + To be added. + + + To be added. + To be added. + + + + To be added. + + + @@ -6,33 +33,77 @@ + + + + The namespace contains advanced types that support diverse namespaces such as the System, Runtime, and the Security namespaces. + + + + The types found in this namespace are intended for use in advanced development. + + + + + To be added. + + + This namespace contains classes for interacting with system resources like event logs, processes, and performance counters. - + To be added. + + To be added. + To be added. + To be added. To be added. - + - To be added. + + The namespace contains the IExpando interface which allows modification of an object by adding or removing its members. - + - + - This namespace provides the core classes for multi-threaded programming, including the Thread class to launch threads as well as several classes for synchronization and multi-threaded resource management. + + The namespace contains classes and attributes that can be used to customize generation and processing of SOAP for objects and fields. The classes of this namespace can be used to indicate the SOAPAction header field, type output, XML element name, and the method XML namespace URI. This information is used by the SOAP serializer during SOAP generation and the Soapsuds Tool (Soapsuds.exe) during Web Services Description Language (WSDL) generation. The information specified by the attributes in this namespace can be used on the receiving end of the generated SOAP to customize processing of the remoted method calls and objects. One of the most important classes of the namespace is class. The class is nonfunctional, and can only be used as the base class for all the metadata attributes. For more information on the SOAPAction HTTP header field, see www.w3.org/tr/soap/#_Toc478383528. - + + + + + + The namespace contains helper classes for accessing the internal members of and objects. + + + + + To be added. + To be added. + + + + + The namespace provides classes that the binary rewriter can use to handle a contract failure. + + + + + To be added. + To be added. @@ -45,159 +116,166 @@ For examples using isolated storage, see Isolated Storage - - To be added. - To be added. + + + To be added. + + - + - The namespace contains classes that represent ASCII and Unicode character encodings; abstract base classes for converting blocks of characters to and from blocks of bytes; and a helper class that manipulates and formats objects without creating intermediate instances of . + The namespace contains classes that define culture-related information, including language, country/region, calendars in use, format patterns for dates, currency, and numbers, and sort order for strings. These classes are useful for writing globalized (internationalized) applications. Classes such as and provide advanced globalization functionalities, including surrogate support and text element processing. - The encoding classes are primarily intended to convert between different encodings or code pages and a Unicode encoding. (UTF-16) encoding is used internally by the .NET Framework, and encoding is often used for storing character data to ensure portability across machines and cultures. - The classes derived from enable you to choose a fallback strategy, which determines how characters that cannot be encoded into a sequence of bytes, or bytes that cannot be decoded into characters, are handled. You can choose one of the following: + The following MSDN blogs include discussions of the namespace and its classes: - Exception fallback. You can choose to throw exceptions on data errors either by using a flag that is available in some class constructors or by using the and classes. If you are concerned about the integrity of the data stream, throwing on an exception is recommended. + + http://blogs.msdn.com/shawnste/ + - Replacement fallback. You can use the and classes to silently change a character to "?" or to the Unicode replacement character (U+FFFD). + + http://blogs.msdn.com/michkap/ + - Best-fit fallback. This option maps a character in one encoding to a character in another encoding. Best fit fallback is often not recommended because it can cause data loss and confusion, and is slower than simple "?" character replacements. However, for ANSI code pages the best-fit behavior is the default. + + http://blogs.msdn.com/kierans/ + - The class is designed for operations that perform extensive manipulations on a single string. Unlike the class, the class is mutable and provides better performance when concatenating or deleting strings. - For more information about , see Character Encoding in the .NET Framework and the MSDN blog Shawn Steele's Thoughts about Windows and .NET Framework Globalization APIs. - + + To be added. + To be added. + + To be added. - - - - The namespace contains code groups, membership conditions, and evidence. These three types of classes are used to create the rules applied by the common language runtime security policy system. Evidence classes are the input to security policy and membership conditions are the switches; together these create policy statements and determine the granted permission set. Policy levels and code groups are the structure of the policy hierarchy. Code groups are the encapsulation of a rule and are arranged hierarchically in a policy level. - - - - - To be added. - To be added. - - + To be added. - + overalldiffered=3 (number of pkgs that are not bit-by-bit identical: 0 is good) overall=1