~/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 @@ -972,10 +972,10 @@ /usr/bin/ikdasm c7f4920b91a4cc349a23db6c133d42786f6465ee7457900d40b60848857a43e4 0 /usr/bin/mcs f32629dc0d71591efac16bd234de60b6c053ee3e2e467c1d82755178c0623d0d 0 /usr/bin/mono 0 -/usr/bin/mono-boehm 4a567558c12c68379407d2558b7cc086dd89240029b57e251c095b577686fd8c 0 +/usr/bin/mono-boehm ba98bfe2e0581769a167f6231e91529f3335a9f19afc4b765a443a334f93974d 0 /usr/bin/mono-configuration-crypto f579579b923c50d2914c90191c2c3d7612f709e5941ee9a8107e64ed940919b6 0 /usr/bin/mono-hang-watchdog 72fb80397fc0c18b793896f4bfe1070e0a9ab587e04884c4912bf3e1403472c7 0 -/usr/bin/mono-sgen 955014be7bc171a480ad124c1fb392de9cb3448218c963873b0266526ba094cd 0 +/usr/bin/mono-sgen 4dda2238e8847201ae0b04f2c700546cdd8ea57a7cd78e12a7b7d2da2c02a876 0 /usr/bin/mono-test-install d426c66af27d8568cb79aa418f12c30ad84647091e4cddb47c84034a8f90f6f7 0 /usr/bin/mozroots 6c20cbb676d618aee0db91ba8b697b0c5e4895ece2a47f4af1f97523b6f065cf 0 /usr/bin/peverify d3c4689ddfd96d99917e33d02e0cdc25c863e93ddd9cca461495c943c4792e20 0 @@ -1133,11 +1133,11 @@ /usr/lib/mono/4.5/Microsoft.CSharp.dll 0 /usr/lib/mono/4.5/Microsoft.CodeAnalysis.CSharp.Scripting.dll cd7b4cb0497a3466998b982e578c20dde131322c12c2a922b05ad719c2d2497b 0 /usr/lib/mono/4.5/Microsoft.CodeAnalysis.CSharp.dll 080de7ea75e6449ed2dc705324a0c8a78e297bb4c606fd23f905a58afad196e4 0 -/usr/lib/mono/4.5/Microsoft.CodeAnalysis.CSharp.dll.so 7b16f2e90cff37646e370f0d3bb81347d6124167b3c65473b43fff40dac56bda 0 +/usr/lib/mono/4.5/Microsoft.CodeAnalysis.CSharp.dll.so 6a4274bc74e243d2007f03eee58a4df35451c53f93a5a4a77b4eef21f699aef7 0 /usr/lib/mono/4.5/Microsoft.CodeAnalysis.Scripting.dll cec3d953f00689e3b6045c2186f01b95481035d4dce7418a8f1c8111d7e32c6b 0 /usr/lib/mono/4.5/Microsoft.CodeAnalysis.VisualBasic.dll 7a5585de1e6aa68b51ba0ee5066abffbee817ca1d396e8efe8966aa60ff3d9e8 0 /usr/lib/mono/4.5/Microsoft.CodeAnalysis.dll 32850546f8822070fdaa7ec69eba505f4b6be88802926d58bad67169b0158193 0 -/usr/lib/mono/4.5/Microsoft.CodeAnalysis.dll.so 022135c0827b023b5d500d77ea62f59fead29e165d035a3589201106b1f80b54 0 +/usr/lib/mono/4.5/Microsoft.CodeAnalysis.dll.so cb540abd3bd1f02e7abc1fb8f37842d6d1e806d8e177f7cf9622994eafcb56aa 0 /usr/lib/mono/4.5/Microsoft.VisualC.dll 0 /usr/lib/mono/4.5/Mono.Btls.Interface.dll 0 /usr/lib/mono/4.5/Mono.CSharp.dll 0 @@ -1151,7 +1151,7 @@ /usr/lib/mono/4.5/Mono.Simd.dll 0 /usr/lib/mono/4.5/Mono.Tasklets.dll 0 /usr/lib/mono/4.5/System.Collections.Immutable.dll 2f05a2c489c2d30a6cca346d4ce184323d70eb4f5afa6bed34d5800274444e57 0 -/usr/lib/mono/4.5/System.Collections.Immutable.dll.so 26a31d5fad5b9a1323545b3c22079d2c935105e0444092fc10db0ef7af7a8e22 0 +/usr/lib/mono/4.5/System.Collections.Immutable.dll.so 485ad7436653b0d69faacb539f83a2b538454247dab731e1d2774c434055f809 0 /usr/lib/mono/4.5/System.Configuration.dll 0 /usr/lib/mono/4.5/System.Core.dll 0 /usr/lib/mono/4.5/System.Deployment.dll 0 @@ -1170,7 +1170,7 @@ /usr/lib/mono/4.5/System.Numerics.dll 0 /usr/lib/mono/4.5/System.Reflection.Context.dll 0 /usr/lib/mono/4.5/System.Reflection.Metadata.dll 2e180767f1415cb5bbed14450e1d4003cf56a9da6aeaf91ce969a4b9d2a54314 0 -/usr/lib/mono/4.5/System.Reflection.Metadata.dll.so 288de727765fb654860fcdc2374e50d7d55bb91800ae947f295b287e1d50c95b 0 +/usr/lib/mono/4.5/System.Reflection.Metadata.dll.so d1fbd9549c010196046bd2e5ab1e6ced37dc9251d856850e58447b59de20404f 0 /usr/lib/mono/4.5/System.Runtime.CompilerServices.Unsafe.dll 92d535dd1653250da662c3a5b92943c8030651176c81a509cd74e2b4bec26cff 0 /usr/lib/mono/4.5/System.Security.dll 0 /usr/lib/mono/4.5/System.Threading.Tasks.Dataflow.dll 0 @@ -1187,8 +1187,8 @@ /usr/lib/mono/4.5/System.dll 0 /usr/lib/mono/4.5/VBCSCompiler.exe 81d14be838075063af805982fa50f8546c98474d78fed5908c421ce04709895d 0 /usr/lib/mono/4.5/VBCSCompiler.exe.config 788a17dff08e3f748d3d97f4aa4b4fde169ed98b5bd3dbf0e8a6f386a163b1c7 0 -/usr/lib/mono/4.5/al.exe ef5c20eab771a8bdb96d4e86bf552ae1b610d8db454187a39466cb54aecba62b 0 -/usr/lib/mono/4.5/al.pdb 3f23f772a90c2b8c3bd8d01f5511a678dfbd5817c02638da7cf9e3b5ec346716 0 +/usr/lib/mono/4.5/al.exe 8559373c0d6966006bed89d136f280b45c138151d06e47c0f9dc47c95b15928b 0 +/usr/lib/mono/4.5/al.pdb 37f5455b6bd94ca8bdf4557321025f2ce96c93d6e3e25b26e7155b84f8e299eb 0 /usr/lib/mono/4.5/cert-sync.exe 706265e0ed1083920030a5e806a71c9658d284708813c4d758dbceaad2aa2f6b 0 /usr/lib/mono/4.5/cert-sync.pdb 2886d763857ca7634790636742b3934f5d0e9e3bc2f7cf051777ddb1d0ea4db8 0 /usr/lib/mono/4.5/certmgr.exe b6506512cfd8748d3d6f01dd585cad134d9571bd6c0c7a149b5b71016a7c8315 0 @@ -1199,7 +1199,7 @@ /usr/lib/mono/4.5/crlupdate.pdb 3e72ca4ccee44d5fb63fc29cf0bd4f1ae25c2660971b04b4f3bac2375030fa6a 0 /usr/lib/mono/4.5/csc.exe 1d738e812e88a3f67053dfe9835dcf5d19a6be37ece958b9d963d8f7a90a8008 0 /usr/lib/mono/4.5/csc.exe.config a6e2537b2a49d0914faaf13b4ffe16e0472f30856c47af58084de307501420f3 0 -/usr/lib/mono/4.5/csc.exe.so 7492b8f939209f2aed60db70b189034c246a4d7609a500d4518315fd9d50dadf 0 +/usr/lib/mono/4.5/csc.exe.so 643631a2e7005144682c08adeca2faef05217071481143742ae541e6fd8880bc 0 /usr/lib/mono/4.5/csc.rsp e3ecdcd552e69af527025ac8da50c64086dff0cf40f12835ef875a3895771c39 0 /usr/lib/mono/4.5/cscompmgd.dll 0 /usr/lib/mono/4.5/csharp.exe 6062d1fad86856af83ab235584b21a0877e7a4d65ca94c661ab8ad3ca67641a4 0 @@ -1207,17 +1207,17 @@ /usr/lib/mono/4.5/csi.exe 9cae82465eb0a3f41f188de815d155b3b6bc57090e15b09501c381a38951f189 0 /usr/lib/mono/4.5/csi.exe.config 8d715b6b1c6dbeff49f2a31d5fe0df0f47ee5bb59ff51fce7f0963bab7be702e 0 /usr/lib/mono/4.5/csi.rsp 46a0095443c3d26f7f29c368252845d77b95d46038c94347b6fbf1a72a1c0b21 0 -/usr/lib/mono/4.5/gacutil.exe 6697f154863447914963b7de89b76708268dd3f7d7e0820fd5383d37da5400ba 0 -/usr/lib/mono/4.5/gacutil.pdb 35cc2d0477e9511f1427fabc2bf90a96b420e941f55f1f423a968f78fed93466 0 -/usr/lib/mono/4.5/ikdasm.exe 8efa0d10961e57ccc87dbedbb7db675da128064c1cc27a48a0bfe2ad1684d704 0 -/usr/lib/mono/4.5/ikdasm.pdb 2038bb1b504921cd747c9c477faaad50a813b9a8fec5fb66bbc908069675343f 0 -/usr/lib/mono/4.5/mcs.exe 20d3c609f61bd32ada2682c9994a801f04a2eb8a7ca42b0e33bc391235ed9ee1 0 -/usr/lib/mono/4.5/mcs.exe.so 72331619d26d03965574749d5b6a52216df19e5135ca8374ab39119c2037c92b 0 -/usr/lib/mono/4.5/mcs.pdb 67d302908ac36636a294a8a19198b9ccaa0f2d0547ce3e7602671226125e4039 0 +/usr/lib/mono/4.5/gacutil.exe 6069d03fdfcf80dc8ca56c05426a3ed62da4c9aae7e0504b03e6b8794a63c1ca 0 +/usr/lib/mono/4.5/gacutil.pdb 05219812922c438a55f1541e75894077fa7dbe35f94b8d30d03462e6996c021f 0 +/usr/lib/mono/4.5/ikdasm.exe e979ae664e1b70171490d19a28df6eca87f0040eac151e06c468e3a023d45e3e 0 +/usr/lib/mono/4.5/ikdasm.pdb 2de8f51b97c26e92c3d88f67223d08d60e8870b8336362d4cf2b6a70371bfd28 0 +/usr/lib/mono/4.5/mcs.exe c1c1d01f10e2041f72a2ce76cb5c6a59e8bbf4da85d7533e1b3b02de0cf9d4df 0 +/usr/lib/mono/4.5/mcs.exe.so 23b2e23392dc4b3a7451cfcca7a759dd73fb2b979a60938bcb50c7f128a7ca1b 0 +/usr/lib/mono/4.5/mcs.pdb f67aaf570021a93417c12247d5016bc1b4c5a0d0b644f655aee4c788b4ae18f3 0 /usr/lib/mono/4.5/mozroots.exe ea0e0921a3060c389ab9f82e69f9fe1e234955b9a3e8f14b297b41d1847bc5b4 0 /usr/lib/mono/4.5/mozroots.pdb a3dc131ca2df156b6f46c6b1f2392eeedc21a12da4503be14fbe08a9f8f6d7ba 0 /usr/lib/mono/4.5/mscorlib.dll 3ca882017bdb8e04dccb5297ca88e95f9a1f744c92d1b6dac40e0e99b4e16177 0 -/usr/lib/mono/4.5/mscorlib.dll.so 4e37c3fe7a79177090c682da251020e4492d03c386b59371749cfcda64783b0d 0 +/usr/lib/mono/4.5/mscorlib.dll.so dab7d24fdeca3494b96880913367f2abdbf21b170aec4f8b39e3b25fa2647494 0 /usr/lib/mono/4.5/mscorlib.pdb 5edc9cbb956a2564bfff718467abc948a7d2b14d44bb8973337b8ef5e84885b8 0 /usr/lib/mono/4.5/setreg.exe e47cd956c8c6d3a4b50dd92831bcab951a7a24f012a1ec001c100cda7440893d 0 /usr/lib/mono/4.5/setreg.pdb ac627f90d0a6802a856fc0e5c96f281f85bbb1b13ef521612f14494ffd351ffb 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 section .rodata --- old /usr/bin/mono-boehm (objdump) +++ new /usr/bin/mono-boehm (objdump) @@ -11,9 +11,9 @@ 318060 74696f6e 733a0063 6f6e6669 675f6469 tions:.config_di 318070 723a004d 4f4e4f5f 50415448 006d6163 r:.MONO_PATH.mac 318080 68696e65 636f6e66 69673a00 656e763a hineconfig:.env: - 318090 006c6962 72617279 3a004d6f 6e204465 .library:.Mon De - 3180a0 63203238 2031303a 35323a32 32205554 c 28 10:52:22 UT - 3180b0 43203230 32300000 556e6b6e 6f776e20 C 2020..Unknown + 318090 006c6962 72617279 3a005468 75204a61 .library:.Thu Ja + 3180a0 6e203331 2030303a 30393a30 37205554 n 31 00:09:07 UT + 3180b0 43203230 33360000 556e6b6e 6f776e20 C 2036..Unknown 3180c0 73747265 616d206f 6e20656d 62656464 stream on embedd 3180d0 65642070 61636b61 67653a20 25730a00 ed package: %s.. 3180e0 6d696e69 2d72756e 74696d65 2e630074 mini-runtime.c.t /usr/bin/mono-sgen differs in ELF section .rodata --- old /usr/bin/mono-sgen (objdump) +++ new /usr/bin/mono-sgen (objdump) @@ -11,9 +11,9 @@ 343060 74696f6e 733a0063 6f6e6669 675f6469 tions:.config_di 343070 723a004d 4f4e4f5f 50415448 006d6163 r:.MONO_PATH.mac 343080 68696e65 636f6e66 69673a00 656e763a hineconfig:.env: - 343090 006c6962 72617279 3a004d6f 6e204465 .library:.Mon De - 3430a0 63203238 2031303a 35323a35 36205554 c 28 10:52:56 UT - 3430b0 43203230 32300000 556e6b6e 6f776e20 C 2020..Unknown + 343090 006c6962 72617279 3a005468 75204a61 .library:.Thu Ja + 3430a0 6e203331 2030303a 30393a34 31205554 n 31 00:09:41 UT + 3430b0 43203230 33360000 556e6b6e 6f776e20 C 2036..Unknown 3430c0 73747265 616d206f 6e20656d 62656464 stream on embedd 3430d0 65642070 61636b61 67653a20 25730a00 ed package: %s.. 3430e0 6d696e69 2d72756e 74696d65 2e630074 mini-runtime.c.t /usr/lib/mono/4.5/Microsoft.CodeAnalysis.CSharp.dll.so differs in ELF section .rodata --- old /usr/lib/mono/4.5/Microsoft.CodeAnalysis.CSharp.dll.so (objdump) +++ new /usr/lib/mono/4.5/Microsoft.CodeAnalysis.CSharp.dll.so (objdump) @@ -282039,9 +282039,9 @@ bc8b20 b0014483 16458615 458e1445 8f131c0a ..D..E..E..E.... bc8b30 44080345 08064508 0e45080f 470c0708 D..E..E..E..G... bc8b40 410b362e 31322e30 2e313037 20287461 A.6.12.0.107 (ta - bc8b50 7262616c 6c204d6f 6e204465 63203238 rball Mon Dec 28 - bc8b60 2031303a 35323a35 36205554 43203230 10:52:56 UTC 20 - bc8b70 32302900 30444135 43394331 2d443443 20).0DA5C9C1-D4C + bc8b50 7262616c 6c205468 75204a61 6e203331 rball Thu Jan 31 + bc8b60 2030303a 30393a34 31205554 43203230 00:09:41 UTC 20 + bc8b70 33362900 30444135 43394331 2d443443 36).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. /usr/lib/mono/4.5/Microsoft.CodeAnalysis.CSharp.dll.so differs in ELF section .data --- old /usr/lib/mono/4.5/Microsoft.CodeAnalysis.CSharp.dll.so (objdump) +++ new /usr/lib/mono/4.5/Microsoft.CodeAnalysis.CSharp.dll.so (objdump) @@ -23,7 +23,7 @@ bf5120 00b07700 00000000 00b07700 00000000 ..w.......w..... bf5130 f89c7400 00000000 a1380000 e0320400 ..t......8...2.. bf5140 bb4d0000 ab870000 00000000 20000000 .M.......... ... - bf5150 ff695116 3f000000 e50c4200 80000000 .iQ.?.....B..... + bf5150 ff695116 07000000 e50c4200 80000000 .iQ.......B..... bf5160 08000000 08000000 08000000 09000000 ................ bf5170 ffff7f00 00000000 05000000 19000000 ................ bf5180 00000000 00000000 00000000 00000000 ................ @@ -35,5 +35,5 @@ bf51e0 00000000 00000000 00000000 00000000 ................ bf51f0 00000000 00000000 00000000 00000000 ................ bf5200 00000000 00000000 00000000 00000000 ................ - bf5210 00000000 00000000 cb06ea3a 4b8906d1 ...........:K... - bf5220 116003c7 39d4a883 .`..9... + bf5210 00000000 00000000 04cd8b2b 48eeba88 ...........+H... + bf5220 71777f1f fbee1c32 qw.....2 /usr/lib/mono/4.5/Microsoft.CodeAnalysis.dll.so differs in assembler output --- old /usr/lib/mono/4.5/Microsoft.CodeAnalysis.dll.so (disasm) +++ new /usr/lib/mono/4.5/Microsoft.CodeAnalysis.dll.so (disasm) @@ -547473,7 +547473,7 @@ rex.WRB (bad) push %rax (bad) - xor offset(%rsi),%bh + lea offset(%rsi),%edi mov $something,%edi rorb %cl,offset(%rbp) push %rax /usr/lib/mono/4.5/Microsoft.CodeAnalysis.dll.so differs in ELF section .text --- old /usr/lib/mono/4.5/Microsoft.CodeAnalysis.dll.so (objdump) +++ new /usr/lib/mono/4.5/Microsoft.CodeAnalysis.dll.so (objdump) @@ -82753,7 +82753,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 00e86e84 .@...\t=.*....n. + 1443f0 b040bce3 7f5c743d bf2a0100 00e88e1f .@...\t=.*...... 144400 48afbc9a f2d77a3e 0f1f8400 00000000 H.....z>........ 144410 4881ec08 0d000049 8b05428e 3700f700 H......I..B.7... 144420 01000000 7405e8f5 98170049 8b3d0e8f ....t......I.=.. @@ -145269,7 +145269,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 32beb900 0000bfbb ....MbP?2....... + 238730 fca9f1d2 4d62503f 8dbeb900 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.| /usr/lib/mono/4.5/Microsoft.CodeAnalysis.dll.so differs in ELF section .rodata --- old /usr/lib/mono/4.5/Microsoft.CodeAnalysis.dll.so (objdump) +++ new /usr/lib/mono/4.5/Microsoft.CodeAnalysis.dll.so (objdump) @@ -118373,9 +118373,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 30372028 74617262 616c6c20 4d6f6e20 07 (tarball Mon - 4a7640 44656320 32382031 303a3532 3a353620 Dec 28 10:52:56 - 4a7650 55544320 32303230 29003342 41364445 UTC 2020).3BA6DE + 4a7630 30372028 74617262 616c6c20 54687520 07 (tarball Thu + 4a7640 4a616e20 33312030 303a3039 3a343120 Jan 31 00:09:41 + 4a7650 55544320 32303336 29003342 41364445 UTC 2036).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 /usr/lib/mono/4.5/Microsoft.CodeAnalysis.dll.so differs in ELF section .data --- old /usr/lib/mono/4.5/Microsoft.CodeAnalysis.dll.so (objdump) +++ new /usr/lib/mono/4.5/Microsoft.CodeAnalysis.dll.so (objdump) @@ -23,7 +23,7 @@ 4bd120 00902d00 00000000 00902d00 00000000 ..-.......-..... 4bd130 18dd2b00 00000000 391f0000 b8520200 ..+.....9....R.. 4bd140 1e2b0000 ce3e0000 00000000 20000000 .+...>...... ... - 4bd150 ff695116 3f000000 20461b00 80000000 .iQ.?... F...... + 4bd150 ff695116 07000000 20461b00 80000000 .iQ..... F...... 4bd160 08000000 08000000 08000000 09000000 ................ 4bd170 ffff7f00 00000000 05000000 19000000 ................ 4bd180 00000000 00000000 00000000 00000000 ................ @@ -35,5 +35,5 @@ 4bd1e0 00000000 00000000 00000000 00000000 ................ 4bd1f0 00000000 00000000 00000000 00000000 ................ 4bd200 00000000 00000000 00000000 00000000 ................ - 4bd210 00000000 00000000 6d5e2331 43825530 ........m^#1C.U0 - 4bd220 c8487b42 770e092f .H{Bw../ + 4bd210 00000000 00000000 f7df2c5c e2d06cf0 ..........,\..l. + 4bd220 a6c73da3 01bbfc94 ..=..... /usr/lib/mono/4.5/System.Collections.Immutable.dll.so differs in ELF section .rodata --- old /usr/lib/mono/4.5/System.Collections.Immutable.dll.so (objdump) +++ new /usr/lib/mono/4.5/System.Collections.Immutable.dll.so (objdump) @@ -15686,8 +15686,8 @@ 8e410 0b1c0c07 08900144 0e50448d 0a458e09 .......D.PD..E.. 8e420 1c0a4408 0d45080e 440c0708 410b362e ..D..E..D...A.6. 8e430 31322e30 2e313037 20287461 7262616c 12.0.107 (tarbal - 8e440 6c204d6f 6e204465 63203238 2031303a l Mon Dec 28 10: - 8e450 35323a35 36205554 43203230 32302900 52:56 UTC 2020). + 8e440 6c205468 75204a61 6e203331 2030303a l Thu Jan 31 00: + 8e450 30393a34 31205554 43203230 33362900 09:41 UTC 2036). 8e460 36353138 44304536 2d304341 382d3446 6518D0E6-0CA8-4F 8e470 36422d39 3135432d 30373334 31413033 6B-915C-07341A03 8e480 31413332 00537973 74656d2e 436f6c6c 1A32.System.Coll /usr/lib/mono/4.5/System.Collections.Immutable.dll.so differs in ELF section .data --- old /usr/lib/mono/4.5/System.Collections.Immutable.dll.so (objdump) +++ new /usr/lib/mono/4.5/System.Collections.Immutable.dll.so (objdump) @@ -23,7 +23,7 @@ 92120 00100500 00000000 00100500 00000000 ................ 92130 c8a70400 00000000 8a000000 c84f0000 .............O.. 92140 6f090000 53060000 00000000 20000000 o...S....... ... - 92150 ff695116 3f000000 07a90300 80000000 .iQ.?........... + 92150 ff695116 07000000 07a90300 80000000 .iQ............. 92160 08000000 08000000 08000000 09000000 ................ 92170 ffff7f00 00000000 05000000 19000000 ................ 92180 00000000 00000000 00000000 00000000 ................ @@ -35,5 +35,5 @@ 921e0 00000000 00000000 00000000 00000000 ................ 921f0 00000000 00000000 00000000 00000000 ................ 92200 00000000 00000000 00000000 00000000 ................ - 92210 00000000 00000000 0330f283 d4306f7b .........0...0o{ - 92220 2af5c3f2 5dd95cb1 *...].\. + 92210 00000000 00000000 5bb72854 8e41500f ........[.(T.AP. + 92220 5c3dfc81 798dc048 \=..y..H /usr/lib/mono/4.5/System.Reflection.Metadata.dll.so differs in ELF section .rodata --- old /usr/lib/mono/4.5/System.Reflection.Metadata.dll.so (objdump) +++ new /usr/lib/mono/4.5/System.Reflection.Metadata.dll.so (objdump) @@ -20544,9 +20544,9 @@ d73b0 01440e60 448c0c45 8d0b458e 0a458f09 .D.`D..E..E..E.. d73c0 1c0a4408 0c45080d 45080e45 080f440c ..D..E..E..E..D. d73d0 0708410b 362e3132 2e302e31 30372028 ..A.6.12.0.107 ( - d73e0 74617262 616c6c20 4d6f6e20 44656320 tarball Mon Dec - d73f0 32382031 303a3532 3a353620 55544320 28 10:52:56 UTC - d7400 32303230 29003442 44343332 44302d41 2020).4BD432D0-A + d73e0 74617262 616c6c20 54687520 4a616e20 tarball Thu Jan + d73f0 33312030 303a3039 3a343120 55544320 31 00:09:41 UTC + d7400 32303336 29003442 44343332 44302d41 2036).4BD432D0-A d7410 3039382d 34354433 2d383637 332d3437 098-45D3-8673-47 d7420 45353637 42383634 41340053 79737465 E567B864A4.Syste d7430 6d2e5265 666c6563 74696f6e 2e4d6574 m.Reflection.Met /usr/lib/mono/4.5/System.Reflection.Metadata.dll.so differs in ELF section .data --- old /usr/lib/mono/4.5/System.Reflection.Metadata.dll.so (objdump) +++ new /usr/lib/mono/4.5/System.Reflection.Metadata.dll.so (objdump) @@ -23,7 +23,7 @@ dd120 00700800 00000000 00700800 00000000 .p.......p...... dd130 40180800 00000000 b7030000 28580000 @...........(X.. dd140 4e070000 4e0d0000 00000000 20000000 N...N....... ... - dd150 ff695116 3f000000 71a40400 80000000 .iQ.?...q....... + dd150 ff695116 07000000 71a40400 80000000 .iQ.....q....... dd160 08000000 08000000 08000000 09000000 ................ dd170 ffff7f00 00000000 05000000 19000000 ................ dd180 00000000 00000000 00000000 00000000 ................ @@ -35,5 +35,5 @@ dd1e0 00000000 00000000 00000000 00000000 ................ dd1f0 00000000 00000000 00000000 00000000 ................ dd200 00000000 00000000 00000000 00000000 ................ - dd210 00000000 00000000 7b9a52b7 013ca097 ........{.R..<.. - dd220 2338214f 4eccacdc #8!ON... + dd210 00000000 00000000 882cc69f 3aa52834 .........,..:.(4 + dd220 24951fdb 2f22c880 $.../".. 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 3c 7a 01 00 23 42 6c 6f 62 00 00 00 7a 27 8f c5 |!| +000001d0 00 00 02 00 c3 21 00 00 01 00 d0 21 00 00 02 00 |.....!.....!....| +000001e0 05 22 00 00 01 00 12 22 00 00 02 00 28 23 00 00 |."....."....(#..| +000001f0 01 00 35 23 00 00 02 00 56 25 00 00 01 00 63 25 |..5#....V%....c%| +00000200 00 00 02 00 54 27 00 00 01 00 61 27 00 00 02 00 |....T'....a'....| +00000210 30 28 00 00 01 00 3d 28 00 00 02 00 f2 2a 00 00 |0(....=(.....*..| +00000220 01 00 ff 2a 00 00 02 00 e2 2b 00 00 01 00 ef 2b |...*.....+.....+| +00000230 00 00 02 00 11 2d 00 00 01 00 1e 2d 00 00 02 00 |.....-.....-....| 00000240 /usr/lib/mono/4.5/csc.exe.so differs in ELF section .rodata --- old /usr/lib/mono/4.5/csc.exe.so (objdump) +++ new /usr/lib/mono/4.5/csc.exe.so (objdump) @@ -1969,8 +1969,8 @@ 15ac0 448c0544 8e04448f 031c0a44 08034408 D..D..D....D..D. 15ad0 0c44080e 44080f41 08060c07 08410b36 .D..D..A.....A.6 15ae0 2e31322e 302e3130 37202874 61726261 .12.0.107 (tarba - 15af0 6c6c204d 6f6e2044 65632032 38203130 ll Mon Dec 28 10 - 15b00 3a35323a 35362055 54432032 30323029 :52:56 UTC 2020) + 15af0 6c6c2054 6875204a 616e2033 31203030 ll Thu Jan 31 00 + 15b00 3a30393a 34312055 54432032 30333629 :09:41 UTC 2036) 15b10 00453641 34374330 462d4646 32392d34 .E6A47C0F-FF29-4 15b20 4345312d 42463439 2d454645 46384531 CE1-BF49-EFEF8E1 15b30 33424531 46006373 6300 3BE1F.csc. /usr/lib/mono/4.5/csc.exe.so differs in ELF section .data --- old /usr/lib/mono/4.5/csc.exe.so (objdump) +++ new /usr/lib/mono/4.5/csc.exe.so (objdump) @@ -23,7 +23,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 ................ @@ -35,5 +35,5 @@ 171e0 00000000 00000000 00000000 00000000 ................ 171f0 00000000 00000000 00000000 00000000 ................ 17200 00000000 00000000 00000000 00000000 ................ - 17210 00000000 00000000 a365381b 4a997792 .........e8.J.w. - 17220 22728520 871ed521 "r. ...! + 17210 00000000 00000000 8a66a44d 417b8d03 .........f.MA{.. + 17220 a04cce6b e2b35ff2 .L.k.._. 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 c4 72 01 00 23 42 6c 6f 62 00 00 00 44 fc f5 ae |.r..#Blob...D...| -00000080 32 05 d8 43 b0 06 d6 a6 2b c0 5e f8 01 4c ed cf |2..C....+.^..L..| +00000070 5c 70 01 00 23 42 6c 6f 62 00 00 00 1c fa 5c e8 |\p..#Blob.....\.| +00000080 76 81 e2 4e a0 79 ec 22 42 55 dc ab c6 ac 87 b8 |v..N.y."BU......| 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 cf 00 00 00 01 00 e3 00 00 00 02 00 |................| -00000150 9b 03 00 00 01 00 af 03 00 00 02 00 cd 04 00 00 |................| -00000160 01 00 e1 04 00 00 02 00 f1 05 00 00 01 00 05 06 |................| -00000170 00 00 02 00 ce 06 00 00 01 00 e2 06 00 00 02 00 |................| -00000180 dc 08 00 00 01 00 f0 08 00 00 02 00 fc 10 00 00 |................| -00000190 01 00 10 11 00 00 02 00 63 11 00 00 01 00 77 11 |........c.....w.| -000001a0 00 00 02 00 9a 16 00 00 01 00 ae 16 00 00 02 00 |................| -000001b0 40 18 00 00 01 00 54 18 00 00 02 00 d4 1b 00 00 |@.....T.........| -000001c0 01 00 e8 1b 00 00 02 00 8e 1e 00 00 01 00 a2 1e |................| -000001d0 00 00 02 00 6d 25 00 00 01 00 81 25 00 00 02 00 |....m%.....%....| -000001e0 e9 2a 00 00 01 00 fd 2a 00 00 02 00 0b 34 00 00 |.*.....*.....4..| -000001f0 01 00 1f 34 00 00 02 00 61 35 00 00 01 00 75 35 |...4....a5....u5| -00000200 00 00 02 00 da 35 00 00 01 00 ee 35 00 00 02 00 |.....5.....5....| -00000210 b6 50 00 00 01 00 cc 50 00 00 02 00 62 52 00 00 |.P.....P....bR..| -00000220 01 00 78 52 00 00 02 00 a2 53 00 00 01 00 b8 53 |..xR.....S.....S| -00000230 00 00 02 00 55 54 00 00 01 00 6b 54 00 00 02 00 |....UT....kT....| +00000140 d0 00 00 00 91 00 00 00 01 00 9d 00 00 00 02 00 |................| +00000150 3b 02 00 00 01 00 48 02 00 00 02 00 18 03 00 00 |;.....H.........| +00000160 01 00 25 03 00 00 02 00 ee 03 00 00 01 00 fb 03 |..%.............| +00000170 00 00 02 00 04 0c 00 00 01 00 11 0c 00 00 02 00 |................| +00000180 e7 0d 00 00 01 00 f4 0d 00 00 02 00 30 0f 00 00 |............0...| +00000190 01 00 3d 0f 00 00 02 00 c6 10 00 00 01 00 d3 10 |..=.............| +000001a0 00 00 02 00 91 12 00 00 01 00 9e 12 00 00 02 00 |................| +000001b0 ef 17 00 00 01 00 fc 17 00 00 02 00 f1 1a 00 00 |................| +000001c0 01 00 fe 1a 00 00 02 00 31 21 00 00 01 00 3e 21 |........1!....>!| +000001d0 00 00 02 00 c3 21 00 00 01 00 d0 21 00 00 02 00 |.....!.....!....| +000001e0 05 22 00 00 01 00 12 22 00 00 02 00 28 23 00 00 |."....."....(#..| +000001f0 01 00 35 23 00 00 02 00 56 25 00 00 01 00 63 25 |..5#....V%....c%| +00000200 00 00 02 00 54 27 00 00 01 00 61 27 00 00 02 00 |....T'....a'....| +00000210 30 28 00 00 01 00 3d 28 00 00 02 00 f2 2a 00 00 |0(....=(.....*..| +00000220 01 00 ff 2a 00 00 02 00 e2 2b 00 00 01 00 ef 2b |...*.....+.....+| +00000230 00 00 02 00 11 2d 00 00 01 00 1e 2d 00 00 02 00 |.....-.....-....| 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 98 c2 01 00 23 42 6c 6f 62 00 00 00 83 33 9c d5 |....#Blob....3..| -00000080 6b 23 98 47 86 2e 27 18 c1 47 f5 30 40 b9 fe 89 |k#.G..'..G.0@...| +00000070 90 c2 01 00 23 42 6c 6f 62 00 00 00 d5 3e 99 eb |....#Blob....>..| +00000080 f3 66 09 42 91 6c 8d 24 92 59 5f 8c e0 d9 42 99 |.f.B.l.$.Y_...B.| 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 8a 15 00 00 01 00 9f 15 |................| -00000160 00 00 02 00 57 18 00 00 01 00 6c 18 00 00 02 00 |....W.....l.....| -00000170 8a 19 00 00 01 00 9f 19 00 00 02 00 b0 1a 00 00 |................| -00000180 01 00 c5 1a 00 00 02 00 8f 1b 00 00 01 00 a4 1b |................| -00000190 00 00 02 00 9e 1d 00 00 01 00 b3 1d 00 00 02 00 |................| -000001a0 c0 25 00 00 01 00 d5 25 00 00 02 00 28 26 00 00 |.%.....%....(&..| -000001b0 01 00 3d 26 00 00 02 00 59 2b 00 00 01 00 6e 2b |..=&....Y+....n+| -000001c0 00 00 02 00 02 2d 00 00 01 00 17 2d 00 00 02 00 |.....-.....-....| -000001d0 9a 30 00 00 01 00 af 30 00 00 02 00 56 33 00 00 |.0.....0....V3..| -000001e0 01 00 6b 33 00 00 02 00 22 3a 00 00 01 00 37 3a |..k3....":....7:| -000001f0 00 00 02 00 a3 3f 00 00 01 00 b8 3f 00 00 02 00 |.....?.....?....| -00000200 c6 48 00 00 01 00 dd 48 00 00 02 00 1f 4a 00 00 |.H.....H.....J..| -00000210 01 00 36 4a 00 00 02 00 9d 4a 00 00 01 00 b4 4a |..6J.....J.....J| -00000220 00 00 02 00 9d 65 00 00 01 00 b4 65 00 00 02 00 |.....e.....e....| -00000230 4a 67 00 00 01 00 61 67 00 00 02 00 8c 68 00 00 |Jg....ag.....h..| +00000150 01 00 8c 01 00 00 02 00 55 15 00 00 01 00 6a 15 |........U.....j.| +00000160 00 00 02 00 08 17 00 00 01 00 1d 17 00 00 02 00 |................| +00000170 d7 17 00 00 01 00 ec 17 00 00 02 00 b5 18 00 00 |................| +00000180 01 00 ca 18 00 00 02 00 d3 20 00 00 01 00 e8 20 |......... ..... | +00000190 00 00 02 00 be 22 00 00 01 00 d3 22 00 00 02 00 |....."....."....| +000001a0 0f 24 00 00 01 00 24 24 00 00 02 00 ae 25 00 00 |.$....$$.....%..| +000001b0 01 00 c3 25 00 00 02 00 6b 27 00 00 01 00 80 27 |...%....k'.....'| +000001c0 00 00 02 00 d2 2c 00 00 01 00 e7 2c 00 00 02 00 |.....,.....,....| +000001d0 dc 2f 00 00 01 00 f1 2f 00 00 02 00 24 36 00 00 |./...../....$6..| +000001e0 01 00 39 36 00 00 02 00 be 36 00 00 01 00 d3 36 |..96.....6.....6| +000001f0 00 00 02 00 08 37 00 00 01 00 1d 37 00 00 02 00 |.....7.....7....| +00000200 33 38 00 00 01 00 48 38 00 00 02 00 69 3a 00 00 |38....H8....i:..| +00000210 01 00 7e 3a 00 00 02 00 6f 3c 00 00 01 00 84 3c |..~:....o<.....<| +00000220 00 00 02 00 54 3d 00 00 01 00 69 3d 00 00 02 00 |....T=....i=....| +00000230 1e 40 00 00 01 00 35 40 00 00 02 00 18 41 00 00 |.@....5@.....A..| 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 assembler output --- old /usr/lib/mono/4.5/mcs.exe.so (disasm) +++ new /usr/lib/mono/4.5/mcs.exe.so (disasm) @@ -22,1374 +22,191 @@ nop nop -IKVM_Reflection_CustomModifiers_get_Initial: +IKVM_Reflection_ConstructorInfo__ctor: sub $something,%rsp - mov offset(%rip),%rax # - mov (%rax),%rax add $something,%rsp retq - data16 nopw %cs:offset(%rax,%rax,1) - xchg %ax,%ax + nopl offset(%rax) -IKVM_Reflection_CustomModifiers__ctor_System_Collections_Generic_List_1_IKVM_Reflection_Emit_CustomModifiersBuilder_Item: - push %rbp - mov %rsp,%rbp - sub $something,%rsp - mov %rbx,-offset(%rbp) - mov %r12,-offset(%rbp) - mov %r13,-offset(%rbp) - mov %r14,-offset(%rbp) - mov %r15,-offset(%rbp) - mov %rdi,%r14 - mov %rsi,%r15 - mov offset(%rip),%rax # - testl $something,(%rax) - je - callq - xor %eax,%eax - mov %rax,-offset(%rbp) - mov %rax,-offset(%rbp) - mov %rax,-offset(%rbp) - mov %rax,-offset(%rbp) - mov %rax,-offset(%rbp) - mov %rax,-offset(%rbp) - mov %rax,-offset(%rbp) - mov %rax,-offset(%rbp) - mov offset(%rip),%rdi # - rex testl $something,offset(%rdi) - jne - callq - mov offset(%rip),%rax # - mov (%rax),%rdi - mov offset(%rip),%rax # - mov (%rax),%rsi - callq - movzbq %al,%r13 - cmpl $something,(%r15) - movslq offset(%r15),%r12 - mov %rbp,%rsi - add $something,%rsi - mov %r15,%rdi - cmpl $something,(%r15) - callq - jmpq - xchg %ax,%ax - mov offset(%rip),%rax # - testl $something,(%rax) - je - callq - mov %rbp,%rax - add $something,%rax - add $something,%rax - mov (%rax),%rcx - mov %rcx,-offset(%rbp) - mov offset(%rax),%rax - mov %rax,-offset(%rbp) - movzbl -offset(%rbp),%eax - cmp %r13d,%eax - je - movzbl -offset(%rbp),%eax - movzbq %al,%r13 - inc %r12d - mov %rbp,%rdi - add $something,%rdi - callq - test %eax,%eax - jne - movq $something,-offset(%rbp) +IKVM_Reflection_ConstructorInfo_ToString: sub $something,%rsp - callq - add $something,%rsp - mov -offset(%rbp),%rax - test %rax,%rax - je - callq - jmp - mov %rsp,-offset(%rbp) - mov offset(%rip),%rax # - testl $something,(%rax) - je - callq - mov %rbp,%rax - add $something,%rax - mov %rax,-offset(%rbp) - mov -offset(%rbp),%rsp - retq - mov offset(%rip),%rdi # - mov %r12,%rsi - callq - mov %rax,(%r14) - mov %r14,%rcx - shr $something,%ecx - and $something,%rcx - mov offset(%rip),%rdx # - add %rdx,%rcx - movb $something,(%rcx) - mov offset(%rip),%rdi # - rex testl $something,offset(%rdi) - jne - callq - mov offset(%rip),%rax # - mov (%rax),%rdi - mov offset(%rip),%rax # - mov (%rax),%rsi - callq - movzbq %al,%r13 - xor %r12d,%r12d - mov %rbp,%rsi - add $something,%rsi - mov %r15,%rdi - cmpl $something,(%r15) - callq - jmpq - nop + mov %rdi,(%rsp) mov offset(%rip),%rax # testl $something,(%rax) - je + je callq - mov %rbp,%rax - add $something,%rax - add $something,%rax - mov (%rax),%rcx - mov %rcx,-offset(%rbp) - mov offset(%rax),%rax - mov %rax,-offset(%rbp) - movzbl -offset(%rbp),%eax - cmp %r13d,%eax - je - movzbl -offset(%rbp),%eax - movzbq %al,%r13 - mov (%r14),%rcx - mov %r12,%rax - inc %r12d - mov %rcx,%r15 - mov %rax,%rbx - test %r13d,%r13d - jne - mov offset(%rip),%rax # - mov (%rax),%rax - mov %rax,-offset(%rbp) - jmp - mov offset(%rip),%rax # + mov (%rsp),%rdi + mov %rdi,%rax mov (%rax),%rax - mov %rax,-offset(%rbp) - mov %r15,%rdi - mov %rbx,%rsi - mov -offset(%rbp),%rdx - mov (%r15),%rax callq *offset(%rax) - mov (%r14),%rax - mov %r12,%rsi - inc %r12d - mov -offset(%rbp),%rdx mov %rax,%rdi mov (%rax),%rax callq *offset(%rax) - mov %rbp,%rdi - add $something,%rdi - callq - test %eax,%eax - jne - movq $something,-offset(%rbp) - sub $something,%rsp - callq - add $something,%rsp - mov -offset(%rbp),%rax - test %rax,%rax - je - callq - jmp - mov %rsp,-offset(%rbp) - mov offset(%rip),%rax # - testl $something,(%rax) - je - callq - mov %rbp,%rax - add $something,%rax - mov %rax,-offset(%rbp) - mov -offset(%rbp),%rsp - retq /usr/lib/mono/4.5/mcs.exe.so differs in ELF section .rela.dyn --- old /usr/lib/mono/4.5/mcs.exe.so (objdump) +++ new /usr/lib/mono/4.5/mcs.exe.so (objdump) @@ -9,31 +9,31 @@ 0290 48be2900 00000000 40f04500 00000000 H.).....@.E..... 02a0 08000000 00000000 a01d4500 00000000 ..........E..... 02b0 58f04500 00000000 08000000 00000000 X.E............. - 02c0 40862b00 00000000 60f04500 00000000 @.+.....`.E..... - 02d0 08000000 00000000 90ee2a00 00000000 ..........*..... + 02c0 60862b00 00000000 60f04500 00000000 `.+.....`.E..... + 02d0 08000000 00000000 a0ee2a00 00000000 ..........*..... 02e0 68f04500 00000000 08000000 00000000 h.E............. - 02f0 a87d2b00 00000000 70f04500 00000000 .}+.....p.E..... + 02f0 c87d2b00 00000000 70f04500 00000000 .}+.....p.E..... 0300 08000000 00000000 08b02a00 00000000 ..........*..... 0310 78f04500 00000000 08000000 00000000 x.E............. - 0320 68332b00 00000000 80f04500 00000000 h3+.......E..... - 0330 08000000 00000000 88ee2a00 00000000 ..........*..... + 0320 78332b00 00000000 80f04500 00000000 x3+.......E..... + 0330 08000000 00000000 98ee2a00 00000000 ..........*..... 0340 88f04500 00000000 08000000 00000000 ..E............. - 0350 00ee2a00 00000000 90f04500 00000000 ..*.......E..... - 0360 08000000 00000000 08102b00 00000000 ..........+..... + 0350 10ee2a00 00000000 90f04500 00000000 ..*.......E..... + 0360 08000000 00000000 18102b00 00000000 ..........+..... 0370 a0f04500 00000000 08000000 00000000 ..E............. - 0380 90842b00 00000000 a8f04500 00000000 ..+.......E..... - 0390 08000000 00000000 38862b00 00000000 ........8.+..... + 0380 b0842b00 00000000 a8f04500 00000000 ..+.......E..... + 0390 08000000 00000000 58862b00 00000000 ........X.+..... 03a0 b0f04500 00000000 08000000 00000000 ..E............. 03b0 90aa2a00 00000000 b8f04500 00000000 ..*.......E..... - 03c0 08000000 00000000 3f0d4500 00000000 ........?.E..... + 03c0 08000000 00000000 af0c4500 00000000 ..........E..... 03d0 c0f04500 00000000 08000000 00000000 ..E............. - 03e0 0d0d4500 00000000 00f14500 00000000 ..E.......E..... - 03f0 08000000 00000000 640d4500 00000000 ........d.E..... + 03e0 7d0c4500 00000000 00f14500 00000000 }.E.......E..... + 03f0 08000000 00000000 d40c4500 00000000 ..........E..... 0400 08f14500 00000000 08000000 00000000 ..E............. 0410 60be2900 00000000 10f14500 00000000 `.).......E..... 0420 08000000 00000000 8caa2a00 00000000 ..........*..... 0430 18f14500 00000000 08000000 00000000 ..E............. - 0440 18d44400 00000000 20f14500 00000000 ..D..... .E..... + 0440 88d34400 00000000 20f14500 00000000 ..D..... .E..... 0450 08000000 00000000 00b02a00 00000000 ..........*..... 0460 28f14500 00000000 08000000 00000000 (.E............. 0470 00b02a00 00000000 30f14500 00000000 ..*.....0.E..... /usr/lib/mono/4.5/mcs.exe.so differs in ELF section .text --- old /usr/lib/mono/4.5/mcs.exe.so (objdump) +++ new /usr/lib/mono/4.5/mcs.exe.so (objdump) @@ -3,16706 +3,16706 @@ Contents of section .text: 001000 90909090 90909090 90909090 90909090 ................ - 001010 4883ec08 498b05d5 e2450048 8b004883 H...I....E.H..H. - 001020 c408c366 662e0f1f 84000000 00006690 ...ff.........f. - 001030 55488bec 4881ecb0 00000048 895dd84c UH..H......H.].L - 001040 8965e04c 896de84c 8975f04c 897df84c .e.L.m.L.u.L.}.L - 001050 8bf74c8b fe498b05 04e24500 f7000100 ..L..I....E..... - 001060 00007405 e8f7ad29 0033c048 89459848 ..t....).3.H.E.H - 001070 8945a048 8945a848 8945b048 8945b848 .E.H.E.H.E.H.E.H - 001080 8945c048 8945c848 8945d049 8b3d66e2 .E.H.E.H.E.I.=f. - 001090 450040f7 472d0100 00007505 e8c9ad29 E.@.G-....u....) - 0010a0 00498b05 48e24500 488b3849 8b054ee2 .I..H.E.H.8I..N. - 0010b0 4500488b 30e8baad 29004c0f b6e84183 E.H.0...).L...A. - 0010c0 3f004d63 6720488b f54883c6 98498bff ?.Mcg H..H...I.. - 0010d0 41833f00 e8a5ad29 00e94400 00006690 A.?....)..D...f. - 0010e0 498b0579 e14500f7 00010000 007405e8 I..y.E.......t.. - 0010f0 6cad2900 488bc548 83c09848 83c01048 l.).H..H...H...H - 001100 8b084889 4db8488b 40084889 45c00fb6 ..H.M.H.@.H.E... - 001110 45c0413b c5740b0f b645c04c 0fb6e841 E.A;.t...E.L...A - 001120 ffc4488b fd4883c7 98e85aad 290085c0 ..H..H....Z.)... - 001130 75ae48c7 45900000 00004883 ec08e814 u.H.E.....H..... - 001140 00000048 83c40848 8b459048 85c07405 ...H...H.E.H..t. - 001150 e83dad29 00eb2e48 89a568ff ffff498b .=.)...H..h...I. - 001160 05fbe045 00f70001 00000074 05e8eeac ...E.......t.... - 001170 2900488b c54883c0 98488945 88488ba5 ).H..H...H.E.H.. - 001180 68ffffff c3498b3d 7ce14500 498bf4e8 h....I.=|.E.I... - 001190 08ad2900 49890649 8bcec1e9 094881e1 ..).I..I.....H.. - 0011a0 ffff7f00 498b158d e0450048 03cac601 ....I....E.H.... - 0011b0 01498b3d 40e14500 40f7472d 01000000 .I.=@.E.@.G-.... - 0011c0 7505e8a3 ac290049 8b0522e1 4500488b u....).I..".E.H. - 0011d0 38498b05 28e14500 488b30e8 94ac2900 8I..(.E.H.0...). - 0011e0 4c0fb6e8 4533e448 8bf54883 c698498b L...E3.H..H...I. - 0011f0 ff41833f 00e884ac 2900e9a2 00000090 .A.?....)....... - 001200 498b0559 e04500f7 00010000 007405e8 I..Y.E.......t.. - 001210 4cac2900 488bc548 83c09848 83c01048 L.).H..H...H...H - 001220 8b084889 4dc8488b 40084889 45d00fb6 ..H.M.H.@.H.E... - 001230 45d0413b c50f844d 0000000f b645d04c E.A;...M.....E.L - 001240 0fb6e849 8b0e498b c441ffc4 4c8bf948 ...I..I..A..L..H - 001250 8bd84585 ed751049 8b0592e0 4500488b ..E..u.I....E.H. - 001260 00488945 80eb0e49 8b0592e0 4500488b .H.E...I....E.H. - 001270 00488945 80498bff 488bf348 8b558049 .H.E.I..H..H.U.I - 001280 8b07ff90 08010000 498b0649 8bf441ff ........I..I..A. - 001290 c4488b55 c8488bf8 488b00ff 90080100 .H.U.H..H....... - 0012a0 00488bfd 4883c798 e8dbab29 0085c00f .H..H......).... - 0012b0 854bffff ff48c785 78ffffff 00000000 .K...H..x....... - 0012c0 4883ec08 e8170000 004883c4 08488b85 H........H...H.. - 0012d0 78ffffff 4885c074 05e8b4ab 2900eb31 x...H..t....)..1 - 0012e0 4889a558 ffffff49 8b0572df 4500f700 H..X...I..r.E... - 0012f0 01000000 7405e865 ab290048 8bc54883 ....t..e.).H..H. - 001300 c0984889 8570ffff ff488ba5 58ffffff ..H..p...H..X... - 001310 c3488b5d d84c8b65 e04c8b6d e84c8b75 .H.].L.e.L.m.L.u - 001320 f04c8b7d f8c9c366 0f1f8400 00000000 .L.}...f........ - 001330 4883ec18 48893c24 48897424 08488bcf H...H.<$H.t$.H.. - 001340 488b4424 08488901 c1e90948 81e1ffff H.D$.H.....H.... - 001350 7f00498b 15dfde45 004803ca c6010148 ..I....E.H.....H - 001360 83c418c3 66662e0f 1f840000 00000090 ....ff.......... - 001370 4883ec38 48893424 48897c24 28498b05 H..8H.4$H.|$(I.. - 001380 dcde4500 f7000100 00007405 e8cfaa29 ..E.......t....) - 001390 00488b44 2428488b 3033c048 89442418 .H.D$(H.03.H.D$. - 0013a0 48894424 20488d7c 2418e8f7 aa290048 H.D$ H.|$....).H - 0013b0 8b442418 48894424 08488b44 24204889 .D$.H.D$.H.D$ H. - 0013c0 44241048 8b142448 8bc2488b 4c240848 D$.H..$H..H.L$.H - 0013d0 890a488b d0c1ea09 4881e2ff ff7f0049 ..H.....H......I - 0013e0 8b3552de 45004803 d6c60201 4883c008 .5R.E.H.....H... - 0013f0 488b4c24 10488908 4883c438 c30f1f00 H.L$.H..H..8.... - 001400 4883ec28 48897c24 20498b05 50de4500 H..(H.|$ I..P.E. - 001410 f7000100 00007405 e843aa29 00488b7c ......t..C.).H.| - 001420 2420488b f4e886aa 2900498b 3ddfde45 $ H.....).I.=..E - 001430 00be2000 0000e87f aa290048 8bf04883 .. ......).H..H. - 001440 c610488b ce488b14 24488916 488bf1c1 ..H..H..$H..H... - 001450 ee094881 e6ffff7f 00498b3d d8dd4500 ..H......I.=..E. - 001460 4803f7c6 06014883 c108488b 54240848 H.....H...H.T$.H - 001470 89114883 c428c366 0f1f8400 00000000 ..H..(.f........ - 001480 4883ec28 48897c24 20498b05 d0dd4500 H..(H.|$ I....E. - 001490 f7000100 00007405 e8c3a929 00488b7c ......t....).H.| - 0014a0 2420488b f4e806aa 2900498b 3d5fde45 $ H.....).I.=_.E - 0014b0 00be2000 0000e8ff a9290048 8bf04883 .. ......).H..H. - 0014c0 c610488b ce488b14 24488916 488bf1c1 ..H..H..$H..H... - 0014d0 ee094881 e6ffff7f 00498b3d 58dd4500 ..H......I.=X.E. - 0014e0 4803f7c6 06014883 c108488b 54240848 H.....H...H.T$.H - 0014f0 89114883 c428c366 0f1f8400 00000000 ..H..(.f........ - 001500 4883ec08 48893c24 488bc748 8b004885 H...H.<$H..H..H. - 001510 c0400f94 c0480fb6 c04883c4 08c36690 .@...H...H....f. - 001520 4883ec18 48893c24 48897424 08498b05 H...H.<$H.t$.I.. - 001530 2cdd4500 f7000100 00007405 e81fa929 ,.E.......t....) - 001540 00488b04 24488b38 488b7424 08e872a9 .H..$H.8H.t$..r. - 001550 29004883 c418c366 0f1f8400 00000000 ).H....f........ - 001560 4883ec38 4c892c24 48897c24 20488974 H..8L.,$H.|$ H.t - 001570 2428498b 05e7dc45 00f70001 00000074 $(I....E.......t - 001580 05e8daa8 290033c0 48894424 10488944 ....).3.H.D$.H.D - 001590 24184c8b 6c242849 8bc54885 c0742248 $.L.l$(I..H..t"H - 0015a0 8b442428 488b0048 8b00488b 4010488b .D$(H..H..H.@.H. - 0015b0 4010498b 0d5fdd45 00483bc1 74034533 @.I.._.E.H;.t.E3 - 0015c0 ed488d74 2410498b fde800a9 29000fb6 .H.t$.I.....)... - 0015d0 44241085 c00f8420 00000048 8d7c2410 D$..... ...H.|$. - 0015e0 e8f3a829 00488944 2408488b 7c242048 ...).H.D$.H.|$ H - 0015f0 8b742408 e8e9a829 00eb0233 c04c8b2c .t$....)...3.L., - 001600 244883c4 38c3662e 0f1f8400 00000000 $H..8.f......... - 001610 4883ec08 48893c24 498b0541 dc4500f7 H...H.<$I..A.E.. - 001620 00010000 007405e8 34a82900 488b0424 .....t..4.).H..$ - 001630 488b38e8 b4a82900 4883c408 c30f1f00 H.8...).H....... - 001640 55488bec 4883ec60 4c896de8 4c8975f0 UH..H..`L.m.L.u. - 001650 4c897df8 4c8bff49 8b0502dc 4500f700 L.}.L..I....E... - 001660 01000000 7405e8f5 a7290033 c0488945 ....t....).3.H.E - 001670 c8488945 d0488945 d8488945 e0498b07 .H.E.H.E.H.E.I.. - 001680 4885c075 0f498b05 94dc4500 488b00e9 H..u.I....E.H... - 001690 52010000 498b3d8d dc4500be 30000000 R...I.=..E..0... - 0016a0 e815a829 00488945 a0488bf8 e845a829 ...).H.E.H...E.) - 0016b0 00488b45 a04c8bf0 4d8b2d71 dc450048 .H.E.L..M.-q.E.H - 0016c0 8bf54883 c6c8498b ffe8e2a7 2900e9a9 ..H...I.....)... - 0016d0 00000048 8d642400 498b0581 db4500f7 ...H.d$.I....E.. - 0016e0 00010000 007405e8 74a72900 488bf548 .....t..t.).H..H - 0016f0 83c6d848 8bfd4883 c7c8e801 a8290049 ...H..H......).I - 001700 8bfe498b f541833e 00e8fca7 2900488b ..I..A.>....).H. - 001710 c80fb645 e04c8bf9 85c00f85 09000000 ...E.L.......... - 001720 4d8b2d11 dc4500eb 074d8b2d 10dc4500 M.-..E...M.-..E. - 001730 498bff49 8bf54183 3f00e8cb a7290048 I..I..A.?....).H - 001740 8945a048 8b45d848 8bf8488b 00ff9078 .E.H.E.H..H....x - 001750 01000048 8bf0488b 45a0488b f8833800 ...H..H.E.H...8. - 001760 e8a5a729 00488bf8 be290000 00833800 ...).H...)....8. - 001770 e89fa729 004d8b2d ccdb4500 488bfd48 ...).M.-..E.H..H - 001780 83c7c8e8 96a72900 85c00f85 48ffffff ......).....H... - 001790 48c745c0 00000000 4883ec08 e8140000 H.E.....H....... - 0017a0 004883c4 08488b45 c04885c0 7405e8df .H...H.E.H..t... - 0017b0 a62900eb 28488965 b0498b05 a0da4500 .)..(H.e.I....E. - 0017c0 f7000100 00007405 e893a629 00488bc5 ......t....).H.. - 0017d0 4883c0c8 488945b8 488b65b0 c3498bfe H...H.E.H.e..I.. - 0017e0 498b06ff 50484c8b 6de84c8b 75f04c8b I...PHL.m.L.u.L. - 0017f0 7df8c9c3 66662e0f 1f840000 00000090 }...ff.......... - 001800 4883ec08 48893c24 498b0551 da4500f7 H...H.<$I..Q.E.. - 001810 00010000 007405e8 44a62900 488b0424 .....t..D.).H..$ - 001820 488b38e8 00a72900 4883c408 c30f1f00 H.8...).H....... - 001830 55488bec 4881ec90 0000004c 8965e04c UH..H......L.e.L - 001840 896de84c 8975f04c 897df84c 8bf74c8b .m.L.u.L.}.L..L. - 001850 fe498b05 08da4500 f7000100 00007405 .I....E.......t. - 001860 e8fba529 0033c048 8945b048 8945b848 ...).3.H.E.H.E.H - 001870 8945c048 8945c848 8945d048 8945d849 .E.H.E.H.E.H.E.I - 001880 8b064885 c0750f49 8b05c2da 4500488b ..H..u.I....E.H. - 001890 00e98801 00004533 ed488bf5 4883c6b0 ......E3.H..H... - 0018a0 498bfee8 08a62900 e9360000 00666690 I.....)..6...ff. - 0018b0 498b05a9 d94500f7 00010000 007405e8 I....E.......t.. - 0018c0 9ca52900 488bf548 83c6c048 8bfd4883 ..).H..H...H..H. - 0018d0 c7b0e829 a629000f b645c841 3bc77503 ...).)...E.A;.u. - 0018e0 41ffc548 8bfd4883 c7b0e82f a6290085 A..H..H..../.).. - 0018f0 c075bd48 c745a800 00000048 83ec08e8 .u.H.E.....H.... - 001900 14000000 4883c408 488b45a8 4885c074 ....H...H.E.H..t - 001910 05e87ca5 2900eb28 48896588 498b053d ..|.)..(H.e.I..= - 001920 d94500f7 00010000 007405e8 30a52900 .E.......t..0.). - 001930 488bc548 83c0b048 8945a048 8b6588c3 H..H...H.E.H.e.. - 001940 498b3dc1 d9450049 8bf5e84d a529004c I.=..E.I...M.).L - 001950 8be0488b f54883c6 b0498bfe e84fa529 ..H..H...I...O.) - 001960 00e95200 00006690 498b05f1 d84500f7 ..R...f.I....E.. - 001970 00010000 007405e8 e4a42900 488bf548 .....t....).H..H - 001980 83c6d048 8bfd4883 c7b0e871 a529000f ...H..H....q.).. - 001990 b645d841 3bc70f85 1c000000 498bc5ff .E.A;.......I... - 0019a0 c8488bf0 4c8be848 8b55d049 8bfc498b .H..L..H.U.I..I. - 0019b0 0424ff90 08010000 488bfd48 83c7b0e8 .$......H..H.... - 0019c0 5aa52900 85c075a0 48c74598 00000000 Z.)...u.H.E..... - 0019d0 4883ec08 e8140000 004883c4 08488b45 H........H...H.E - 0019e0 984885c0 7405e8a7 a42900eb 2e4889a5 .H..t....)...H.. - 0019f0 78ffffff 498b0565 d84500f7 00010000 x...I..e.E...... - 001a00 007405e8 58a42900 488bc548 83c0b048 .t..X.).H..H...H - 001a10 89459048 8ba578ff ffffc349 8bc44c8b .E.H..x....I..L. - 001a20 65e04c8b 6de84c8b 75f04c8b 7df8c9c3 e.L.m.L.u.L.}... - 001a30 4883ec08 48893c24 498b0521 d84500f7 H...H.<$I..!.E.. - 001a40 00010000 007405e8 14a42900 488b3c24 .....t....).H.<$ - 001a50 be010000 00e8d8a4 29004883 c408c390 ........).H..... - 001a60 4883ec08 48893c24 498b05f1 d74500f7 H...H.<$I....E.. - 001a70 00010000 007405e8 e4a32900 488b3c24 .....t....).H.<$ - 001a80 33f6e8ab a4290048 83c408c3 0f1f4000 3....).H......@. - 001a90 4883ec38 48891c24 4c896424 084c896c H..8H..$L.d$.L.l - 001aa0 24104c89 7424184c 897c2420 4c8bf74c $.L.t$.L.|$ L..L - 001ab0 8bfe498b 05a7d745 00f70001 00000074 ..I....E.......t - 001ac0 05e89aa3 2900498b 064885c0 750d498b ....).I..H..u.I. - 001ad0 06488944 2428e983 0100004d 8b2e4533 .H.D$(.....M..E3 - 001ae0 e4e93501 00006690 498b0571 d74500f7 ..5...f.I..q.E.. - 001af0 00010000 007405e8 64a32900 498b0649 .....t..d.).I..I - 001b00 63cc3948 180f86af 01000048 8d44c820 c.9H.......H.D. - 001b10 488b3849 8b05d6d7 4500488b 30e852a3 H.8I....E.H.0.R. - 001b20 290085c0 0f85ee00 0000498b 064963cc ).........I..Ic. - 001b30 3948180f 867a0100 00488d44 c820488b 9H...z...H.D. H. - 001b40 38498b05 b8d74500 488b30e8 24a32900 8I....E.H.0.$.). - 001b50 85c00f85 c0000000 498b0649 63cc3948 ........I..Ic.9H - 001b60 180f8645 01000048 8d44c820 488b0048 ...E...H.D. H..H - 001b70 8bf8498b f7488b00 ff904001 0000488b ..I..H....@...H. - 001b80 d8498b0e 4963d439 51180f86 0d010000 .I..Ic.9Q....... - 001b90 488d4cd1 20488b09 483bc10f 84770000 H.L. H..H;...w.. - 001ba0 00498b06 4c3be80f 85580000 00498b06 .I..L;...X...I.. - 001bb0 488bf883 3800e881 a329004c 8be84d85 H...8....).L..M. - 001bc0 ed0f843e 00000049 8b450048 8b000fb6 ...>...I.E.H.... - 001bd0 481a4883 f9010f85 ba000000 488b4008 H.H.........H.@. - 001be0 488b4010 488b4010 498b0d69 d7450048 H.@.H.@.I..i.E.H - 001bf0 3bc10f85 97000000 498b4510 4885c00f ;.......I.E.H... - 001c00 857b0000 00498bfd 498bf448 8bd3498b .{...I..I..H..I. - 001c10 4500ff90 08010000 41ffc449 8b0e4863 E.......A..I..Hc - 001c20 4118443b e00f8cbd feffff48 c7442430 A.D;.......H.D$0 /usr/lib/mono/4.5/mcs.exe.so differs in ELF section .rodata --- old /usr/lib/mono/4.5/mcs.exe.so (objdump) +++ new /usr/lib/mono/4.5/mcs.exe.so (objdump) @@ -3,999 +3,999 @@ Contents of section .rodata: 2ab000 00000000 00000000 e2290000 0a000000 .........)...... - 2ab010 31040000 02000000 00000a00 14002200 1.............". - 2ab020 2c003a00 44004e00 5c006c00 77008c00 ,.:.D.N.\.l.w... - 2ab030 9700a200 ad00b800 c300ce00 d900e400 ................ - 2ab040 ef00fa00 05011001 1b012601 31013c01 ..........&.1.<. - 2ab050 47015201 5d016801 73017e01 89019401 G.R.].h.s.~..... - 2ab060 9f01aa01 b501c001 cb01d601 e101ec01 ................ - 2ab070 f7010202 12021e02 29023402 3f024a02 ........).4.?.J. - 2ab080 55026402 6f027a02 85029002 9b02a602 U.d.o.z......... - 2ab090 b102bc02 c702d202 dd02e802 f7020603 ................ - 2ab0a0 11031c03 2c033703 42034d03 58036303 ....,.7.B.M.X.c. - 2ab0b0 6e037903 84038f03 9a03a503 b003bb03 n.y............. - 2ab0c0 c603d103 dc03e703 f203fd03 08041804 ................ - 2ab0d0 23042e04 39044404 4f045a04 65047004 #...9.D.O.Z.e.p. - 2ab0e0 7b048604 9604a104 ac04b704 c604d104 {............... - 2ab0f0 dc04e704 f204fd04 08051305 22052d05 ............".-. - 2ab100 38054305 4e055905 69057405 7f058a05 8.C.N.Y.i.t..... - 2ab110 9505a005 ab05b605 c105cc05 d705e205 ................ - 2ab120 ed05fd05 0d061806 23062e06 39064406 ........#...9.D. - 2ab130 50065b06 6a067406 7f068e06 a806b806 P.[.j.t......... - 2ab140 c806d306 e206f106 06071607 21072c07 ............!.,. - 2ab150 37074707 52076107 6c077707 82078d07 7.G.R.a.l.w..... - 2ab160 9d07ac07 b707c207 cd07e107 ec07f707 ................ - 2ab170 02080d08 18082308 2e083908 44084f08 ......#...9.D.O. - 2ab180 5a086508 74088408 8f089a08 a508b008 Z.e.t........... - 2ab190 bb08c608 d108dc08 e708f208 fd080809 ................ - 2ab1a0 13091e09 29093409 3f094a09 55096009 ....).4.?.J.U.`. - 2ab1b0 6b097609 81098c09 9709a209 ad09b809 k.v............. - 2ab1c0 c309ce09 d909e409 ef09fa09 050a100a ................ - 2ab1d0 1b0a260a 310a3c0a 470a520a 610a710a ..&.1.<.G.R.a.q. - 2ab1e0 7c0a870a 920a9d0a a80ab30a be0ac90a |............... - 2ab1f0 d40adf0a ea0af50a 000b0b0b 160b210b ..............!. - 2ab200 2c0b370b 420b4d0b 580b630b 6e0b790b ,.7.B.M.X.c.n.y. - 2ab210 840b8f0b 9a0ba50b b00bbb0b c60bd10b ................ - 2ab220 dc0be70b f20bfd0b 080c130c 1e0c290c ..............). - 2ab230 340c410c 4c0c570c 620c6d0c 780c830c 4.A.L.W.b.m.x... - 2ab240 8e0c990c a40caf0c ba0cc50c d00cdb0c ................ - 2ab250 eb0cf60c 010d0c0d 170d220d 2d0d380d ..........".-.8. - 2ab260 430d4e0d 590d640d 6f0d7a0d 850d900d C.N.Y.d.o.z..... - 2ab270 9b0da60d b10dbc0d c70dd20d dd0de80d ................ - 2ab280 f30dfe0d 090e140e 1f0e2a0e 350e400e ..........*.5.@. - 2ab290 4b0e560e 610e6c0e 770e820e 8d0e980e K.V.a.l.w....... - 2ab2a0 a30eae0e b90ec40e cf0eda0e e50ef00e ................ - 2ab2b0 fb0e060f 110f1c0f 270f320f 3d0f480f ........'.2.=.H. - 2ab2c0 530f5e0f 690f740f 7f0f8a0f 950fa10f S.^.i.t......... - 2ab2d0 ac0fb70f c20fcd0f d80fe30f ee0ff90f ................ - 2ab2e0 04100f10 1a102510 30103b10 46105110 ......%.0.;.F.Q. - 2ab2f0 5c106710 72107d10 88109310 9e10a910 \.g.r.}......... - 2ab300 b410bf10 ca10d510 e010eb10 f6100111 ................ - 2ab310 0e111b11 28113511 42114f11 5c116911 ....(.5.B.O.\.i. - 2ab320 76118311 90119d11 aa11b711 c411d111 v............... - 2ab330 de11eb11 f8110512 12121f12 2c123912 ............,.9. - 2ab340 46125312 60126d12 7a128712 9412a112 F.S.`.m.z....... - 2ab350 ae12bd12 ca12d712 e412f112 fe120b13 ................ - 2ab360 18132913 36134313 50135d13 6a137713 ..).6.C.P.].j.w. - 2ab370 85139213 a613b313 c013cd13 da13e713 ................ - 2ab380 fb130814 15142214 2f143c14 49145614 ......"./.<.I.V. - 2ab390 63147014 7d148a14 9714a414 b114be14 c.p.}........... - 2ab3a0 d214df14 ec14f914 06151315 20152d15 ............ .-. - 2ab3b0 3a154715 54156115 6e157b15 88159515 :.G.T.a.n.{..... - 2ab3c0 a215b015 bd15ca15 d715e415 f115fe15 ................ - 2ab3d0 0b161916 26163316 40164d16 5a166716 ....&.3.@.M.Z.g. - 2ab3e0 74168116 8e169b16 a816b516 c216cf16 t............... - 2ab3f0 dc16e916 f6160317 10172417 31173e17 ..........$.1.>. - 2ab400 4b175817 65177217 7f178c17 9917a617 K.X.e.r......... - 2ab410 b317c017 cd17da17 e717f817 09181d18 ................ - 2ab420 2a183e18 4b185818 65187218 7f188c18 *.>.K.X.e.r..... - 2ab430 9918a618 b318c018 cd18da18 e718f418 ................ - 2ab440 01190e19 1b192819 35194219 50195d19 ......(.5.B.P.]. - 2ab450 6b197c19 89199619 a319b019 bd19ca19 k.|............. - 2ab460 d719e419 f119fe19 0b1a181a 331a401a ............3.@. - 2ab470 4d1a611a 6e1a7b1a 8c1a9d1a aa1ab71a M.a.n.{......... - 2ab480 c41ad11a de1aeb1a f81a051b 121b1f1b ................ - 2ab490 2c1b391b 461b571b 641b721b 7f1b8c1b ,.9.F.W.d.r..... - 2ab4a0 a01bad1b ba1bce1b db1be81b fc1b091c ................ - 2ab4b0 161c231c 371c4b1c 581c651c 721c7f1c ..#.7.K.X.e.r... - 2ab4c0 8c1c9a1c a71cb41c c11cce1c db1cef1c ................ - 2ab4d0 fc1c101d 1d1d381d 451d561d 631d701d ......8.E.V.c.p. - 2ab4e0 7d1d8a1d 971da41d b11dbe1d cb1dd81d }............... - 2ab4f0 e51df21d ff1d0c1e 191e261e 3a1e551e ..........&.:.U. - 2ab500 621e6f1e 7c1e891e 961ea31e b71ec41e b.o.|........... - 2ab510 d11ee21e ef1efc1e 091f161f 241f311f ............$.1. - 2ab520 3e1f4b1f 581f651f 721f861f 931fa01f >.K.X.e.r....... - 2ab530 ad1fba1f c71fd41f e11fee1f fb1f0820 ............... - 2ab540 15202220 2f203c20 49205620 63207020 . " / < I V c p - 2ab550 7d208e20 9b20a820 b520c220 cf20dc20 } . . . . . . . - 2ab560 e920f620 03211021 1d212a21 37214421 . . .!.!.!*!7!D! - 2ab570 51215e21 6b217821 85219221 9f21ac21 Q!^!k!x!.!.!.!.! - 2ab580 b921ca21 d721e421 f121fe21 0b221822 .!.!.!.!.!.!."." - 2ab590 25223222 3f224c22 59226622 73228022 %"2"?"L"Y"f"s"." - 2ab5a0 8d229a22 a722b422 c122ce22 db22e822 ."."."."."."."." - 2ab5b0 f5220223 0f231c23 29233623 43235023 .".#.#.#)#6#C#P# - 2ab5c0 5d236a23 77238423 91239e23 ab23b823 ]#j#w#.#.#.#.#.# - 2ab5d0 c523d223 df23ec23 f9230624 13242024 .#.#.#.#.#.$.$ $ - 2ab5e0 2d243a24 47245424 61246e24 7b248824 -$:$G$T$a$n${$.$ - 2ab5f0 9524a224 af24bc24 c924d624 e324f024 .$.$.$.$.$.$.$.$ - 2ab600 fd240a25 17252b25 38254525 52255f25 .$.%.%+%8%E%R%_% - 2ab610 6c257925 86259325 a025ad25 ba25c725 l%y%.%.%.%.%.%.% - 2ab620 d425e125 ee25fb25 08261526 22262f26 .%.%.%.%.&.&"&/& - 2ab630 3c264926 56266326 70267d26 8a269726 <&I&V&c&p&}&.&.& - 2ab640 a426b126 be26cb26 d826e526 f226ff26 .&.&.&.&.&.&.&.& - 2ab650 13272027 2d273a27 47275427 61276e27 .' '-':'G'T'a'n' - 2ab660 7b278827 95279f27 ac27b927 c627da27 {'.'.'.'.'.'.'.' - 2ab670 e827f527 02280f28 1c282928 36284328 .'.'.(.(.()(6(C( - 2ab680 50285d28 6a287728 84289528 a228af28 P(](j(w(.(.(.(.( - 2ab690 bc28c928 d628e328 f028fd28 0a291729 .(.(.(.(.(.(.).) - 2ab6a0 24293129 3e294b29 58296529 72297f29 $)1)>)K)X)e)r).) - 2ab6b0 8c299929 a629b329 c029cd29 da29e729 .).).).).).).).) - 2ab6c0 f429012a 0e2a1b2a 362a432a 502a5d2a .).*.*.*6*C*P*]* - 2ab6d0 6a2a772a 842a912a 9e2aad2a ba2ac72a j*w*.*.*.*.*.*.* - 2ab6e0 d42ae12a ee2afb2a 132b272b 342b412b .*.*.*.*.+'+4+A+ - 2ab6f0 4e2b5b2b 682b752b 822b8f2b a32bb02b N+[+h+u+.+.+.+.+ - 2ab700 bd2bca2b d72be42b f12bfe2b 0f2c1c2c .+.+.+.+.+.+.,., - 2ab710 292c362c 432c502c 5d2c6a2c 772c842c ),6,C,P,],j,w,., - 2ab720 912c9e2c ab2cb82c c52cd22c df2cec2c .,.,.,.,.,.,.,., - 2ab730 f92c062d 132d202d 2d2d3a2d 4b2d582d .,.-.- ---:-K-X- - 2ab740 652d722d 7f2d8c2d 992da62d b32dc02d e-r-.-.-.-.-.-.- - 2ab750 cd2dda2d e72df42d 082e182e 252e322e .-.-.-.-....%.2. - 2ab760 3f2e4c2e 592e662e 732e802e 8d2e9a2e ?.L.Y.f.s....... - 2ab770 a72eb42e c52ed22e df2eec2e f92e062f .............../ - 2ab780 132f202f 2d2f3a2f 472f542f 612f6e2f ./ /-/:/G/T/a/n/ - 2ab790 7b2f882f 952fa22f af2fbc2f c92fd62f {/./././././././ - 2ab7a0 e32ff02f fd2f0a30 17302430 31303e30 ./././.0.0$010>0 - 2ab7b0 4b305830 65307230 7f308c30 9930a630 K0X0e0r0.0.0.0.0 - 2ab7c0 b330c030 cd30da30 eb30f830 05311231 .0.0.0.0.0.0.1.1 - 2ab7d0 1f312c31 39314631 53315d31 6a317731 .1,191F1S1]1j1w1 - 2ab7e0 84319131 9e31ab31 b831c531 d231df31 .1.1.1.1.1.1.1.1 - 2ab7f0 ec31f931 06321332 20322d32 3e324b32 .1.1.2.2 2-2>2K2 - 2ab800 58326532 72327f32 8c329932 a632b332 X2e2r2.2.2.2.2.2 - 2ab810 c032cd32 da32e732 f4320133 0e331b33 .2.2.2.2.2.3.3.3 - 2ab820 28333533 42334f33 60336d33 7a338733 (353B3O3`3m3z3.3 - 2ab830 9433a133 ae33bb33 c833d533 e233ef33 .3.3.3.3.3.3.3.3 - 2ab840 fc330934 16342334 30343d34 4a345734 .3.4.4#404=4J4W4 - 2ab850 64347134 7e348f34 9c34aa34 b734c434 d4q4~4.4.4.4.4.4 - 2ab860 d134e534 f234ff34 0c351935 26353335 .4.4.4.4.5.5&535 - 2ab870 40355135 5e356b35 78350103 0b010103 @5Q5^5k5x5...... - 2ab880 03010103 1d080104 01010508 010641ff ..............A. - 2ab890 ffffffbf 44010101 01010101 4c010301 ....D.......L... - 2ab8a0 03010101 01015d01 0101ffff ffffa000 ......]......... - 2ab8b0 00000000 00006104 01010101 01016c01 ......a.......l. - 2ab8c0 01010101 01030101 78ffffff ff880000 ........x....... - 2ab8d0 79010101 01018081 010101ff ffffff7c y..............| - 2ab8e0 00000000 80858086 01010101 01010101 ................ - 2ab8f0 01809001 01010101 ffffffff 6b8096ff ............k... - 2ab900 ffffff6a 8097809a 01010304 01010101 ...j............ - 2ab910 0180a901 01010101 01010301 80b50101 ................ - 2ab920 01010104 01010480 c5010401 01040103 ................ - 2ab930 030180db 03030301 03030303 0380f703 ................ - 2ab940 03030101 01030103 810b0303 03030101 ................ - 2ab950 03030381 25030303 03010303 0303813f ....%..........? - 2ab960 05030101 01010101 01814f01 01030303 ..........O..... - 2ab970 03030303 81690303 03030303 03050181 .....i.......... - 2ab980 85010301 01010101 01018191 03030501 ................ - 2ab990 01030401 0181aa01 01040101 01010101 ................ - 2ab9a0 81b70101 03010301 04010181 c8010101 ................ - 2ab9b0 01030101 010181d6 01010101 01010101 ................ - 2ab9c0 0181e001 01030103 01030101 81f00303 ................ - 2ab9d0 03030303 03030382 0e010101 01010303 ................ - 2ab9e0 0101821c 03010103 03010101 01822c01 ..............,. - 2ab9f0 01010301 03010101 823c0103 01010101 .........<...... - 2aba00 01030182 4c010101 03010101 01018258 ....L..........X - 2aba10 01010101 01010103 01826401 01010101 ..........d..... - 2aba20 01010101 826e0101 03010101 01030182 .....n.......... - 2aba30 7c010101 01010101 01018286 03010101 |............... - 2aba40 03010103 01829601 01010101 01010103 ................ - 2aba50 82a20101 01010301 03010182 b0010103 ................ - 2aba60 01010101 010582c0 01010101 01030301 ................ - 2aba70 0182ce01 06030101 01010101 82e20101 ................ - 2aba80 1a030101 01ffffff fcfc8307 831180ce ................ - 2aba90 39030503 03261203 84640303 0616010d 9....&...d...... - 2abaa0 03010184 9a010401 01010101 010184a7 ................ - 2abab0 01010401 01010101 0184b401 01010101 ................ - 2abac0 01010103 84d30503 06040104 04060984 ................ - 2abad0 fe010b01 0101ffff fffaf300 00000000 ................ - 2abae0 0000850e 03160805 03853d06 06060606 ..........=..... - 2abaf0 06060606 85790606 06060606 06060685 .....y.......... - 2abb00 b5060607 07070708 080885fd 08080808 ................ - 2abb10 08080808 08864d08 08080808 08050303 ......M......... - 2abb20 868b0b03 06030308 03060386 bc0a030c ................ - 2abb30 06030303 030386ed 29060306 06060606 ........)....... - 2abb40 03875810 06030303 08060805 87980303 ..X............. - 2abb50 090a0606 03030387 cb030303 03030308 ................ - 2abb60 040487ee 03070a06 010101ff fffff7f5 ................ - 2abb70 00000088 0c030303 0603ffff fff7e200 ................ - 2abb80 88240303 05050603 06060688 52030303 .$..........R... - 2abb90 03030303 03038870 03030303 030303ff .......p........ - 2abba0 fffff77b 8888888b 03030303 05030505 ...{............ - 2abbb0 0688b506 030b0303 03030303 88de0303 ................ - 2abbc0 03030303 08030700 89050c03 03130303 ................ - 2abbd0 0308895b 03081003 0c030306 03899a03 ...[............ - 2abbe0 06030606 03130303 89d40303 140c0303 ................ - 2abbf0 0603088a 25030303 03030603 06038a4c ....%..........L - 2abc00 03061212 03031214 038aae06 05030303 ................ - 2abc10 28030303 8af60303 03030303 0303038b (............... - 2abc20 14030606 03030303 03038b38 03030303 ...........8.... /usr/lib/mono/4.5/mcs.exe.so differs in ELF section .data.rel.ro --- old /usr/lib/mono/4.5/mcs.exe.so (objdump) +++ new /usr/lib/mono/4.5/mcs.exe.so (objdump) @@ -2,1029 +2,1029 @@ /usr/lib/mono/4.5/mcs.exe.so: file format elf64-x86-64 Contents of section .data.rel.ro: - 451da0 e86bf2ba ffe886f2 baffe881 f5baffe8 .k.............. - 451db0 bcf5baff e847f6ba ffe8c2f6 baffe83d .....G.........= - 451dc0 f7baffe8 58f7baff e893f7ba ffe83ef8 ....X.........>. - 451dd0 baffe869 f8baffe8 24fabaff e84ffaba ...i....$....O.. - 451de0 ffe84afc baffe875 fcbaffe8 a0fcbaff ..J....u........ - 451df0 e8dbfeba ffe89601 bbffe851 02bbffe8 ...........Q.... - 451e00 1c04bbff e84704bb ffe892ff ffffe84d .....G.........M - 451e10 05bbffe8 7805bbff e8b305bb ffe8ee05 ....x........... - 451e20 bbffe829 06bbffe8 5406bbff e87f06bb ...)....T....... - 451e30 ffe8aa06 bbffe8d5 06bbffe8 0007bbff ................ - 451e40 e8cb07bb ffe8f607 bbffe841 08bbffe8 ...........A.... - 451e50 7c08bbff e88708bb ffe8c208 bbffe8fd |............... - 451e60 08bbffe8 3809bbff e8b30abb ffe8fe0a ....8........... - 451e70 bbffe839 0bbbffe8 740bbbff e81fffff ...9....t....... - 451e80 ffe81aff ffffe815 ffffffe8 10ffffff ................ - 451e90 e80bffff ffe806ff ffffe801 ffffffe8 ................ - 451ea0 fcfeffff e8570bbb ffe8e20b bbffe81d .....W.......... - 451eb0 0cbbffe8 580cbbff e8930cbb ffe8ce0c ....X........... - 451ec0 bbffe809 0dbbffe8 440dbbff e87f0dbb ........D....... - 451ed0 ffe8ba0d bbffe8f5 0dbbffe8 300ebbff ............0... - 451ee0 e86b0ebb ffe8a60e bbffe8e1 0ebbffe8 .k.............. - 451ef0 fc0ebbff e8070fbb ffe8120f bbffe84d ...............M - 451f00 0fbbffe8 98feffff e893feff ffe88efe ................ - 451f10 ffffe849 0fbbffe8 c40fbbff e84f10bb ...I.........O.. - 451f20 ffe89a10 bbffe8f5 10bbffe8 4011bbff ............@... - 451f30 e89b12bb ffe83613 bbffe821 14bbffe8 ......6....!.... - 451f40 2c14bbff e857feff ffe852fe ffffe84d ,....W....R....M - 451f50 feffffe8 48feffff e843feff ffe81e14 ....H....C...... - 451f60 bbffe859 14bbffe8 a414bbff e8df14bb ...Y............ - 451f70 ffe81a15 bbffe855 15bbffe8 9015bbff .......U........ - 451f80 e8cb15bb ffe80616 bbffe841 16bbffe8 ...........A.... - 451f90 7c16bbff e8b716bb ffe8f216 bbffe82d |..............- - 451fa0 17bbffe8 6817bbff e8a317bb ffe8de17 ....h........... - 451fb0 bbffe8e9 fdffffe8 e417bbff e8dffdff ................ - 451fc0 ffe83a18 bbffe8b5 18bbffe8 3019bbff ..:.........0... - 451fd0 e8bb19bb ffe8161a bbffe811 1dbbffe8 ................ - 451fe0 7c1dbbff e8b71dbb ffe8121e bbffe84d |..............M - 451ff0 1ebbffe8 881ebbff e8c31ebb ffe8fe1e ................ - 452000 bbffe839 1fbbffe8 741fbbff e8af1fbb ...9....t....... - 452010 ffe8ea1f bbffe825 20bbffe8 4020bbff .......% ...@ .. - 452020 e8db20bb ffe83621 bbffe871 21bbffe8 .. ...6!...q!... - 452030 ac21bbff e8e721bb ffe82222 bbffe85d .!....!...""...] - 452040 22bbffe8 9822bbff e82323bb ffe86e23 "...."...##...n# - 452050 bbffe889 23bbffe8 2424bbff e86f24bb ....#...$$...o$. - 452060 ffe88a24 bbffe835 25bbffe8 8025bbff ...$...5%....%.. - 452070 e89b25bb ffe85626 bbffe891 26bbffe8 ..%...V&....&... - 452080 cc27bbff e8f728bb ffe81229 bbffe8dd .'....(....).... - 452090 29bbffe8 282abbff e8832abb ffe8ce2a )...(*....*....* - 4520a0 bbffe8e9 2abbffe8 342bbbff e87f2bbb ....*...4+....+. - 4520b0 ffe8ca2b bbffe815 2cbbffe8 602cbbff ...+....,...`,.. - 4520c0 e8ab2cbb ffe8f62c bbffe841 2dbbffe8 ..,....,...A-... - 4520d0 8c2dbbff e8972dbb ffe8a22d bbffe8ad .-....-....-.... - 4520e0 2dbbffe8 f82dbbff e8732ebb ffe8be2e -....-...s...... - 4520f0 bbffe8d9 2ebbffe8 242fbbff e80f30bb ........$/....0. - 452100 ffe86a30 bbffe8b5 30bbffe8 c030bbff ..j0....0....0.. - 452110 e8cb30bb ffe81631 bbffe861 31bbffe8 ..0....1...a1... - 452120 ac31bbff e8f731bb ffe84232 bbffe88d .1....1...B2.... - 452130 32bbffe8 d832bbff e82333bb ffe82e33 2....2...#3....3 - 452140 bbffe879 33bbffe8 c433bbff e80f34bb ...y3....3....4. - 452150 ffe86a35 bbffe8a5 36bbffe8 6037bbff ..j5....6...`7.. - 452160 e8bb37bb ffe8c637 bbffe8d1 37bbffe8 ..7....7....7... - 452170 dc37bbff e8f737bb ffe8a238 bbffe8cd .7....7....8.... - 452180 38bbffe8 f838bbff e81339bb ffe82e39 8....8....9....9 - 452190 bbffe839 3abbffe8 843abbff e8cf3abb ...9:....:....:. - 4521a0 ffe81a3b bbffe865 3bbbffe8 b03bbbff ...;...e;....;.. - 4521b0 e80b3cbb ffe8563c bbffe8a1 3cbbffe8 ..<...V<....<... - 4521c0 ec3cbbff e8473dbb ffe8923d bbffe8dd .<...G=....=.... - 4521d0 3dbbffe8 283ebbff e8733ebb ffe8be3e =...(>...s>....> - 4521e0 bbffe809 40bbffe8 1440bbff e84f40bb ....@....@...O@. - 4521f0 ffe86a40 bbffe8b5 40bbffe8 e040bbff ..j@....@....@.. - 452200 e8fb40bb ffe84641 bbffe891 41bbffe8 ..@...FA....A... - 452210 0c42bbff e84742bb ffe85242 bbffe86d .B...GB...RB...m - 452220 42bbffe8 b842bbff e80343bb ffe89e43 B....B....C....C - 452230 bbffe8d9 43bbffe8 6444bbff e8df44bb ....C...dD....D. - 452240 ffe82a46 bbffe865 46bbffe8 a046bbff ..*F...eF....F.. - 452250 e8fb46bb ffe81647 bbffe841 47bbffe8 ..F....G...AG... - 452260 0c48bbff e84748bb ffe88248 bbffe8bd .H...GH....H.... - 452270 48bbffe8 f848bbff e81349bb ffe8be49 H....H....I....I - 452280 bbffe8d9 49bbffe8 244abbff e85f4abb ....I...$J..._J. - 452290 ffe81a4b bbffe885 4bbbffe8 104cbbff ...K....K....L.. - 4522a0 e84b4cbb ffe8764d bbffe8d1 4dbbffe8 .KL...vM....M... - 4522b0 0c4ebbff e8474ebb ffe8824e bbffe8ad .N...GN....N.... - 4522c0 4ebbffe8 e84ebbff e8134fbb ffe8ae4f N....N....O....O - 4522d0 bbffe8e9 4fbbffe8 2450bbff e85f50bb ....O...$P..._P. - 4522e0 ffe8ea50 bbffe865 51bbffe8 f051bbff ...P...eQ....Q.. - 4522f0 e82b52bb ffe86652 bbffe8c1 52bbffe8 .+R...fR....R... - 452300 fc52bbff e83753bb ffe87253 bbffe88d .R...7S...rS.... - 452310 53bbffe8 3854bbff e85354bb ffe89e54 S...8T...ST....T - 452320 bbffe8d9 54bbffe8 6455bbff e89f55bb ....T...dU....U. - 452330 ffe85a56 bbffe8c5 56bbffe8 3057bbff ..ZV....V...0W.. - 452340 e86b57bb ffe8a657 bbffe831 58bbffe8 .kW....W...1X... - 452350 7c58bbff e8c758bb ffe81259 bbffe85d |X....X....Y...] - 452360 59bbffe8 a859bbff e8f359bb ffe83e5a Y....Y....Y...>Z - 452370 bbffe889 5abbffe8 d45abbff e81f5bbb ....Z....Z....[. - 452380 ffe83a5b bbffe855 5bbbffe8 705bbbff ..:[...U[...p[.. - 452390 e8ab5bbb ffe8e65b bbffe831 5cbbffe8 ..[....[...1\... - 4523a0 7c5cbbff e8b75cbb ffe8025d bbffe88d |\....\....].... - 4523b0 5dbbffe8 485ebbff e8b35ebb ffe8fe5e ]...H^....^....^ - 4523c0 bbffe869 5fbbffe8 5460bbff e88f60bb ...i_...T`....`. - 4523d0 ffe8ca60 bbffe805 61bbffe8 4061bbff ...`....a...@a.. - 4523e0 e87b61bb ffe8c661 bbffe801 62bbffe8 .{a....a....b... - 4523f0 3c62bbff e8d762bb ffe81263 bbffe88d . + 451ec0 bbffe8e9 04bbffe8 3405bbff e84f05bb ........4....O.. + 451ed0 ffe80a06 bbffe845 06bbffe8 8007bbff .......E........ + 451ee0 e8ab08bb ffe8c608 bbffe891 09bbffe8 ................ + 451ef0 dc09bbff e8370abb ffe8820a bbffe89d .....7.......... + 451f00 0abbffe8 e80abbff e8330bbb ffe87e0b .........3....~. + 451f10 bbffe8c9 0bbbffe8 140cbbff e85f0cbb ............._.. + 451f20 ffe8aa0c bbffe8f5 0cbbffe8 400dbbff ............@... + 451f30 e84b0dbb ffe8560d bbffe861 0dbbffe8 .K....V....a.... + 451f40 ac0dbbff e8270ebb ffe8720e bbffe88d .....'....r..... + 451f50 0ebbffe8 d80ebbff e8c30fbb ffe81e10 ................ + 451f60 bbffe869 10bbffe8 7410bbff e87f10bb ...i....t....... /usr/lib/mono/4.5/mcs.exe.so differs in ELF section .data --- old /usr/lib/mono/4.5/mcs.exe.so (objdump) +++ new /usr/lib/mono/4.5/mcs.exe.so (objdump) @@ -7,23 +7,23 @@ 45f020 00000000 00000000 00000000 00000000 ................ 45f030 00100000 00000000 48be2900 00000000 ........H.)..... 45f040 a01d4500 00000000 00000000 00000000 ..E............. - 45f050 00000000 00000000 40862b00 00000000 ........@.+..... - 45f060 90ee2a00 00000000 a87d2b00 00000000 ..*......}+..... - 45f070 08b02a00 00000000 68332b00 00000000 ..*.....h3+..... - 45f080 88ee2a00 00000000 00ee2a00 00000000 ..*.......*..... - 45f090 08102b00 00000000 00000000 00000000 ..+............. - 45f0a0 90842b00 00000000 38862b00 00000000 ..+.....8.+..... - 45f0b0 90aa2a00 00000000 3f0d4500 00000000 ..*.....?.E..... - 45f0c0 0d0d4500 00000000 00000000 00000000 ..E............. + 45f050 00000000 00000000 60862b00 00000000 ........`.+..... + 45f060 a0ee2a00 00000000 c87d2b00 00000000 ..*......}+..... + 45f070 08b02a00 00000000 78332b00 00000000 ..*.....x3+..... + 45f080 98ee2a00 00000000 10ee2a00 00000000 ..*.......*..... + 45f090 18102b00 00000000 00000000 00000000 ..+............. + 45f0a0 b0842b00 00000000 58862b00 00000000 ..+.....X.+..... + 45f0b0 90aa2a00 00000000 af0c4500 00000000 ..*.......E..... + 45f0c0 7d0c4500 00000000 00000000 00000000 }.E............. 45f0d0 00000000 00000000 00000000 00000000 ................ 45f0e0 00000000 00000000 00000000 00000000 ................ 45f0f0 00000000 00000000 00000000 00000000 ................ - 45f100 640d4500 00000000 60be2900 00000000 d.E.....`.)..... - 45f110 8caa2a00 00000000 18d44400 00000000 ..*.......D..... + 45f100 d40c4500 00000000 60be2900 00000000 ..E.....`.)..... + 45f110 8caa2a00 00000000 88d34400 00000000 ..*.......D..... 45f120 00b02a00 00000000 00b02a00 00000000 ..*.......*..... 45f130 50be2900 00000000 83170000 10790100 P.)..........y.. 45f140 9f170000 e2290000 00000000 20000000 .....)...... ... - 45f150 ff695116 3f000000 cd4d1900 80000000 .iQ.?....M...... + 45f150 ff695116 07000000 204d1900 80000000 .iQ..... M...... 45f160 08000000 08000000 08000000 09000000 ................ 45f170 ffff7f00 00000000 05000000 19000000 ................ 45f180 00000000 00000000 00000000 00000000 ................ @@ -35,5 +35,5 @@ 45f1e0 00000000 00000000 00000000 00000000 ................ 45f1f0 00000000 00000000 00000000 00000000 ................ 45f200 00000000 00000000 00000000 00000000 ................ - 45f210 00000000 00000000 9d31d1eb 21d62f6e .........1..!./n - 45f220 89a4d7c5 6aebf993 ....j... + 45f210 00000000 00000000 bced6fc5 2445ee2c ..........o.$E., + 45f220 25a1ee46 2b1d9d95 %..F+... /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 34 88 05 00 23 42 6c 6f 62 00 00 00 ad cd c5 b7 |4...#Blob.......| -00000080 4b 87 1e 40 98 40 0f ca 13 5f 1c 8a bf 38 a7 f9 |K..@.@..._...8..| +00000070 10 85 05 00 23 42 6c 6f 62 00 00 00 78 25 7f b8 |....#Blob...x%..| +00000080 f5 14 ff 45 a6 ac d5 26 d6 03 33 58 da 36 3b fd |...E...&..3X.6;.| 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 cf 00 00 00 01 00 e3 00 00 00 02 00 9b 03 00 00 |................| -00000150 01 00 af 03 00 00 02 00 cd 04 00 00 01 00 e1 04 |................| -00000160 00 00 02 00 f1 05 00 00 01 00 05 06 00 00 02 00 |................| -00000170 ce 06 00 00 01 00 e2 06 00 00 02 00 dc 08 00 00 |................| -00000180 01 00 f0 08 00 00 02 00 fc 10 00 00 01 00 10 11 |................| -00000190 00 00 02 00 63 11 00 00 01 00 77 11 00 00 02 00 |....c.....w.....| -000001a0 9a 16 00 00 01 00 ae 16 00 00 02 00 40 18 00 00 |............@...| -000001b0 01 00 54 18 00 00 02 00 d4 1b 00 00 01 00 e8 1b |..T.............| -000001c0 00 00 02 00 8e 1e 00 00 01 00 a2 1e 00 00 02 00 |................| -000001d0 6d 25 00 00 01 00 81 25 00 00 02 00 e9 2a 00 00 |m%.....%.....*..| -000001e0 01 00 fd 2a 00 00 02 00 0b 34 00 00 01 00 1f 34 |...*.....4.....4| -000001f0 00 00 02 00 61 35 00 00 01 00 75 35 00 00 02 00 |....a5....u5....| -00000200 da 35 00 00 01 00 ee 35 00 00 02 00 b6 50 00 00 |.5.....5.....P..| -00000210 01 00 cc 50 00 00 02 00 62 52 00 00 01 00 78 52 |...P....bR....xR| -00000220 00 00 02 00 a2 53 00 00 01 00 b8 53 00 00 02 00 |.....S.....S....| -00000230 55 54 00 00 01 00 6b 54 00 00 02 00 80 5b 00 00 |UT....kT.....[..| +00000140 91 00 00 00 01 00 9d 00 00 00 02 00 3b 02 00 00 |............;...| +00000150 01 00 48 02 00 00 02 00 18 03 00 00 01 00 25 03 |..H...........%.| +00000160 00 00 02 00 ee 03 00 00 01 00 fb 03 00 00 02 00 |................| +00000170 04 0c 00 00 01 00 11 0c 00 00 02 00 e7 0d 00 00 |................| +00000180 01 00 f4 0d 00 00 02 00 30 0f 00 00 01 00 3d 0f |........0.....=.| +00000190 00 00 02 00 c6 10 00 00 01 00 d3 10 00 00 02 00 |................| +000001a0 91 12 00 00 01 00 9e 12 00 00 02 00 ef 17 00 00 |................| +000001b0 01 00 fc 17 00 00 02 00 f1 1a 00 00 01 00 fe 1a |................| +000001c0 00 00 02 00 29 21 00 00 01 00 36 21 00 00 02 00 |....)!....6!....| +000001d0 bb 21 00 00 01 00 c8 21 00 00 02 00 fd 21 00 00 |.!.....!.....!..| +000001e0 01 00 0a 22 00 00 02 00 20 23 00 00 01 00 2d 23 |...".... #....-#| +000001f0 00 00 02 00 4e 25 00 00 01 00 5b 25 00 00 02 00 |....N%....[%....| +00000200 4c 27 00 00 01 00 59 27 00 00 02 00 28 28 00 00 |L'....Y'....((..| +00000210 01 00 35 28 00 00 02 00 ea 2a 00 00 01 00 f7 2a |..5(.....*.....*| +00000220 00 00 02 00 da 2b 00 00 01 00 e7 2b 00 00 02 00 |.....+.....+....| +00000230 09 2d 00 00 01 00 16 2d 00 00 02 00 69 2d 00 00 |.-.....-....i-..| 00000240 /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) @@ -92934,16 +92934,15 @@ callq mov %rax,%rdi callq - rex.R and $something,%al - mov offset(%rip),%rdi # - rex testl $something,offset(%rdi) - add %ah,%al - (bad) - rex.R js - loope - mov offset(%rsp),%edi + add %ah,offset(%rdi) add %al,(%rax) + add %ch,offset(%rcx) add %al,(%rax) + add %al,(%rax) + add %ah,%al + (bad) + cmp $something,%eax + ... add %ah,%al mov $something,%edi add %al,(%rax) @@ -93644,21 +93643,23 @@ callq mov %rax,%rdi callq - js - loope - add %al,(%rax) + pop %rax + outsb %ds:(%rsi),(%dx) + xor %cl,offset(%rax) add %al,(%rax) add %al,(%rax) - loopne + add %ah,%al + (bad) imul %al - adc -offset(%rax),%bh - loope - mov (%rax),%eax + repnz push %rdi + outsb %ds:(%rsi),(%dx) + xor %cl,-offset(%rax) add %al,(%rax) add %al,(%rax) - add %ah,%al - mov $something,%edi - fs and $something,%al + add %al,(%rax) + loopne + sbb $something,%al + mov offset(%rsp),%r12 rex.WR add %r8b,(%rax) add %al,(%rax) jo @@ -95552,10 +95553,10 @@ callq mov %rax,%rdi callq - js - loope - mov %eax,%ecx - mov offset(%rax,%rax,1),%rdx + jp + xor %cl,-offset(%rax) + enterq $something,$0x54 + add %al,(%rax) add %al,(%rax) jo xchg %eax,%esp @@ -103313,23 +103314,16 @@ jmp mov $something,%esi jmp - mov $something,%edx - mov $something,%edx - mov $something,%edx - add %al,(%rax) - add %al,(%rax) - clc - (bad) - mov $something,%edx - mov $something,%edx - add %al,(%rax) - add %al,(%rax) - lock (bad) - mov $something,%edx - mov $something,%edx - add %al,(%rax) + ... add %al,(%rax) - lock jg + add %bh,%al + incl (%rax) + ... + add %dh,%al + incl (%rax) + ... + add %dh,%al + jg (bad) test %al,(%rax) add %al,(%rax) @@ -122531,10 +122525,11 @@ cmp (%rax),%al add %al,(%rax) jmp - or $something,%eax + rcrl $something,offset(%rsi) add %al,(%rax) add %al,(%rax) - lock mov $something,%edi + add %dh,%al + mov $something,%edi add %al,(%rax) ... @@ -137539,13 +137534,13 @@ (bad) jg mov -offset(%rbp),%edx - callq + callq add %al,(%rax) add %al,(%rax) add %al,(%rax) orb $something,-offset(%rbx) - (bad) - loope + push %rdi + xor %al,(%rax) add %al,(%rax) add %al,(%rax) add %bh,%al @@ -138743,17 +138738,15 @@ movss (%rsp),%xmm0 add $something,%rsp retq - (bad) - loope - add %eax,(%rax) + push %rdi + xor %al,(%rax) add %al,(%rax) add %al,(%rax) - andb $something,(%rdi) add %al,(%rax) - movabs 0x12a000000,%al - add %al,%al - jmpq *offset(%rsi) - nopl %cs:offset(%rax,%rax,1) + addb $something,(%rax) + ... + sar $something,%bh + nopw %cs:offset(%rax,%rax,1) nop System_MathF_Log_single_single: @@ -138845,10 +138838,8 @@ movss %xmm0,offset(%rsp) repz sldt (%rax) sar $something,%bh - (bad) - and $something,%al - loope - movups offset(%rsp),%xmm0 + rex.RXB xor $something,%eax + adc %al,offset(%rsp) repz add %al,(%rax) cmpb $something,(%rdi) nopw %cs:offset(%rax,%rax,1) @@ -205834,9 +205825,7 @@ callq loop or -offset(%rbx),%al - scas %es:(%rdi),%eax - push %rsi - loope + rcll $something,(%rax,%rsi,1) mov (%rsp),%ebx add %al,(%rax) add %al,(%rax) @@ -220745,7 +220734,7 @@ add $something,%rsp retq mov offset(%rsp),%edi - callq + callq add %al,(%rax) add %al,(%rax) add %ch,(%rax,%rax,2) @@ -220998,12 +220987,10 @@ (bad) add %eax,(%rax) add %ch,%al /usr/lib/mono/4.5/mscorlib.dll.so differs in ELF section .text --- old /usr/lib/mono/4.5/mscorlib.dll.so (objdump) +++ new /usr/lib/mono/4.5/mscorlib.dll.so (objdump) @@ -23833,8 +23833,8 @@ 05e140 bf430400 00e8d075 4d004889 442430bf .C.....uM.H.D$0. 05e150 fd560000 e8c1754d 00488bd0 488b7424 .V....uM.H..H.t$ 05e160 30bfbd00 0002e8d7 754d0048 8bf8e891 0.......uM.H.... - 05e170 724d0044 2448498b 3d000000 0040f747 rM.D$HI.=....@.G - 05e180 00000000 0000e03f 4478b0e1 488b7c24 .......?Dx..H.|$ + 05e170 724d0000 a7000000 3b000000 a9000000 rM......;....... + 05e180 00000000 0000e03f 3d000000 ab000000 .......?=....... 05e190 00000000 0000e0bf 0f1f8400 00000000 ................ 05e1a0 4883ec18 48897c24 08f20f11 44241049 H...H.|$....D$.I 05e1b0 8b05aa10 8600f700 01000000 7405e82d ............t..- @@ -24021,11 +24021,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 78b0e148 .jM.H....fM.x..H - 05ed40 00000000 0000e03f f6e81278 b0e1488b .......?...x..H. + 05ed30 046a4d00 488bf8e8 c8664d00 586e3048 .jM.H....fM.Xn0H + 05ed40 00000000 0000e03f f6e8f257 6e30488b .......?...Wn0H. 05ed50 00000000 0000e0bf 1c244c8b 6424084c .........$L.d$.L 05ed60 00000000 70999441 184883c4 28c3be74 ....p..A.H..(..t - 05ed70 00000000 361024c1 e8e377b0 e1beed00 ....6.$...w..... + 05ed70 00000000 361024c1 e8c3576e 30beed00 ....6.$...Wn0... 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. @@ -24529,7 +24529,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 474d0078 b0e1488b c8488b54 ....GM.x..H..H.T + 060cf0 8bf8e80d 474d007a 6d30488b c8488b54 ....GM.zm0H..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..$ @@ -26696,9 +26696,9 @@ 069430 8b6c2408 4c8b7424 104c8b7c 24184881 .l$.L.t$.L.|$.H. 069440 c4880300 00c3bea3 040000bf 2a010000 ............*... 069450 e8cbc14c 00be9409 0000ebef be970e00 ...L............ - 069460 00ebe8ba babababa babababa babababa ................ - 069470 00000000 0000f8ff babababa babababa ................ - 069480 00000000 0000f0ff babababa babababa ................ + 069460 00ebe800 00000000 00000000 00000000 ................ + 069470 00000000 0000f8ff 00000000 00000000 ................ + 069480 00000000 0000f0ff 00000000 00000000 ................ 069490 00000000 0000f07f 0f1f8400 00000000 ................ 0694a0 4883ec08 b80e0000 004883c4 08c36690 H........H....f. 0694b0 4883ec18 48893c24 488bc7f2 0f100066 H...H.<$H......f @@ -30095,7 +30095,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 e8b32095 e133c0e9 ..{....... ..3.. + 0768d0 00be7b01 0000ebef e8e3bf5e 3033c0e9 ..{........^03.. 0768e0 00000000 00002440 0f1f8400 00000000 ......$@........ 0768f0 4883ec18 4c893424 4c8bf748 89742408 H...L.4$L..H.t$. 076900 498b0559 898400f7 00010000 007405e8 I..Y.........t.. @@ -31934,7 +31934,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 ef0d9de1 4$H....:........ + 07dbc0 34244883 c418c33a 000000eb efc15e30 4$H....:......^0 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. @@ -35819,8 +35819,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 e8cf228f ........H.U...". - 08cea0 00000000 00000080 8b55e0e8 c0228fe1 .........U...".. + 08ce90 ffffffff ffffff7f 488b55d0 e8ef3357 ........H.U...3W + 08cea0 00000000 00000080 8b55e0e8 e0335730 .........U...3W0 08ceb0 00000000 0000f8ff 0f1f8400 00000000 ................ 08cec0 4883ec28 f20f1144 2410f20f 114c2418 H..(...D$....L$. 08ced0 498b0589 238300f7 00010000 007405e8 I...#........t.. @@ -36128,8 +36128,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 48c38fe1 27010000 ....$H..H...'... - 08e1f0 00000080 27010000 a0000000 2a010000 ....'.......*... + 08e1e0 f30f1004 244883c4 48c35730 00000000 ....$H..H.W0.... + 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.. @@ -36153,10 +36153,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 50248fe1 ........D$(.P$.. + 08e370 0000c0ff 0cf30f10 442428e8 70355730 ........D$(.p5W0 08e380 0000807f 240cf30f 1044240c f20f1144 ....$....D$....D 08e390 0000803f 10442420 f30f1144 240cf30f ...?.D$ ...D$... - 08e3a0 0000c0ff e827248f e1f20f10 442438f3 .....'$.....D$8. + 08e3a0 0000c0ff e8473557 30f20f10 442438f3 .....G5W0...D$8. 08e3b0 0000803f 66662e0f 1f840000 00000090 ...?ff.......... 08e3c0 4883ec28 f30f1144 2410f30f 114c2418 H..(...D$....L$. 08e3d0 f30f1044 2410f30f 110424f3 0f104424 ...D$.....$...D$ @@ -54338,7 +54338,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 e4af56e1 488b1c24 (C...6.C..V.H..$ + 0d5400 28431ceb e2360a43 d4c11430 488b1c24 (C...6.C...0H..$ 0d5410 00000000 0000e03f 24104c8b 6c24184c .......?$.L.l$.L 0d5420 00000000 0000e0bf 0f1f8400 00000000 ................ 0d5430 4883ec18 f20f1144 2408498b 051f9e7e H......D$.I....~ @@ -58523,7 +58523,7 @@ 0e5960 488b4c24 10488908 498b0591 c17d0048 H.L$.H..I....}.H 0e5970 8b004889 44240848 8b7c2408 e8f95645 ..H.D$.H.|$...VE 0e5980 00488904 24498b05 6cc17d00 488b0c24 .H..$I..l.}.H..$ - 0e5990 48890848 83c448c3 8b7c2428 e86ff445 H..H..H..|$(.o.E + 0e5990 48890848 83c448c3 8b7c2428 e86f8e06 H..H..H..|$(.o.. 0e59a0 00000000 00002c40 0f1f8400 00000000 ......,@........ 0e59b0 4883ec18 48897c24 08488bc7 4883c010 H...H.|$.H..H... 0e59c0 488b0048 89042448 8b042448 83c418c3 H..H..$H..$H.... @@ -58588,7 +58588,7 @@ 0e5d70 3d2bab7d 00f20f10 05330000 00e85a23 =+.}.....3....Z# 0e5d80 45004889 45f0488b 75f0488b 7de8e839 E.H.E.H.u.H.}..9 0e5d90 244500e9 09000000 33c0eb05 b8010000 $E......3....... - 0e5da0 004c8b7d f8c9c30e 010000e8 10f345e1 .L.}..........E. + 0e5da0 004c8b7d f8c9c30e 010000e8 108d0630 .L.}...........0 0e5db0 00000000 0000f03f 0f1f8400 00000000 .......?........ 0e5dc0 55488bec 4881ece0 0000004c 8975f04c UH..H......L.u.L 0e5dd0 897df84c 8bf74c8b fe498b05 80947d00 .}.L..L..I....}. @@ -88683,7 +88683,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 c438c3e0 4c8b2424 4c8b6c24 084c8b74 .8..L.$$L.l$.L.t + 15b690 c438c32f 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 @@ -180680,7 +180680,7 @@ 2c2c30 4c8b3424 4c8b7c24 084883c4 28c3beb7 L.4$L.|$.H..(... 2c2c40 000000bf 13010000 e8d32927 00bec800 ..........)'.... 2c2c50 0000ebef bed50000 00ebe800 0000483b ..............H; - 2c2c60 00000000 00002440 455cdf48 85c00f84 ......$@E\.H.... + 2c2c60 00000000 00002440 10252e48 85c00f84 ......$@.%.H.... 2c2c70 00000000 0000f03f 4510488b 4008498b .......?E.H.@.I. 2c2c80 00000000 00003e40 0f1f8400 00000000 ......>@........ 2c2c90 4883ec08 498b05c5 c55f00f7 00010000 H...I...._...... @@ -289044,7 +289044,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 c36df0dd 488d7c24 ....H....m..H.|$ + 46a120 c4bf0c00 4883c418 c3ddab2c 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... @@ -289058,7 +289058,7 @@ 46a1d0 0f110424 f20f1004 24660f57 c9660f2f ...$....$f.W.f./ 46a1e0 c80f8616 000000f2 0f100424 f20f100d ...........$.... 46a1f0 1c000000 f20f58c1 f20f1104 24f20f10 ......X.....$... - 46a200 04244883 c408c300 00488bfc e8cf6df0 .$H......H....m. + 46a200 04244883 c408c300 00488bfc e82fddab .$H......H.../.. 46a210 00000000 00807640 2408488d 7c2408e8 ......v@$.H.|$.. 46a220 00000000 00807640 0f1f8400 00000000 ......v@........ 46a230 4883ec08 f20f1104 24f20f10 0424f20f H.......$....$.. @@ -289104,7 +289104,7 @@ 46a4b0 0f100d09 000000f2 0f5ec148 83c418c3 .........^.H.... 46a4c0 00000000 0018f540 10442410 4c8b3424 .......@.D$.L.4$ 46a4d0 00000000 00002e40 28c3be52 000000bf .......@(..R.... - 46a4e0 00000000 cd928341 ddbeba00 0000ebef .......A........ + 46a4e0 00000000 cd928341 2cbeba00 0000ebef .......A,....... 46a4f0 00000000 00000040 c8f20f2a c0488d7c .......@...*.H.| 46a500 00000000 0000e03f 0f1f8400 00000000 .......?........ 46a510 4883ec08 48893c24 488bc72d 8d070000 H...H.<$H..-.... @@ -289153,7 +289153,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 0000e8d5 6cf0dd48 8bd0488b .+......l..H..H. + 46a7f0 e82bae0c 0000e835 dcab2c48 8bd0488b .+.....5..,H..H. 46a800 00000000 0018f540 0f1f8400 00000000 .......@........ 46a810 4883ec18 f20f1104 24498b05 404a4500 H.......$I..@JE. 46a820 f7000100 00007405 e8c3ab0c 00f20f10 ......t......... @@ -289621,7 +289621,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 c3ffe8fd $....D$.H..H.... + 46c530 2408f20f 10442408 4883c448 c3ffe85d $....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.. @@ -289757,8 +289757,8 @@ 46cd80 ebccbe09 030000eb c5be5903 0000ebbe ..........Y..... 46cd90 bea90300 00ebb7be f9030000 ebb0baba ................ 46cda0 d61a4aed 45b45d3f babababa babababa ..J.E.]?........ - 46cdb0 bea4315a 475543bf babababa babababa ..1ZGUC......... - 46cdc0 b81e85eb 516847c0 babababa babababa ....QhG......... + 46cdb0 bea4315a 475543bf 910a0000 00000000 ..1ZGUC......... /usr/lib/mono/4.5/mscorlib.dll.so differs in ELF section .rodata --- old /usr/lib/mono/4.5/mscorlib.dll.so (objdump) +++ new /usr/lib/mono/4.5/mscorlib.dll.so (objdump) @@ -215064,9 +215064,9 @@ 89c130 3a458d39 458e3845 8f371c0a 44080345 :E.9E.8E.7..D..E 89c140 08064508 0c45080d 45080e45 080f470c ..E..E..E..E..G. 89c150 0708410b 362e3132 2e302e31 30372028 ..A.6.12.0.107 ( - 89c160 74617262 616c6c20 4d6f6e20 44656320 tarball Mon Dec - 89c170 32382031 303a3532 3a353620 55544320 28 10:52:56 UTC - 89c180 32303230 29003545 30453044 38442d41 2020).5E0E0D8D-A + 89c160 74617262 616c6c20 54687520 4a616e20 tarball Thu Jan + 89c170 33312030 303a3039 3a343120 55544320 31 00:09:41 UTC + 89c180 32303336 29003545 30453044 38442d41 2036).5E0E0D8D-A 89c190 3845452d 34304244 2d383934 452d4330 8EE-40BD-894E-C0 89c1a0 30373744 38393538 4345006d 73636f72 077D8958CE.mscor 89c1b0 6c696200 lib. /usr/lib/mono/4.5/mscorlib.dll.so differs in ELF section .data --- old /usr/lib/mono/4.5/mscorlib.dll.so (objdump) +++ new /usr/lib/mono/4.5/mscorlib.dll.so (objdump) @@ -23,7 +23,7 @@ 8bf120 00405500 00000000 00405500 00000000 .@U......@U..... 8bf130 e8535300 00000000 39200000 18820200 .SS.....9 ...... 8bf140 0a300000 e36a0000 00000000 20000000 .0...j...... ... - 8bf150 ff695116 3f000000 231e3200 80000000 .iQ.?...#.2..... + 8bf150 ff695116 07000000 231e3200 80000000 .iQ.....#.2..... 8bf160 08000000 08000000 08000000 09000000 ................ 8bf170 ffff7f00 00000000 05000000 19000000 ................ 8bf180 00000000 00000000 00000000 00000000 ................ @@ -35,5 +35,5 @@ 8bf1e0 00000000 00000000 00000000 00000000 ................ 8bf1f0 00000000 00000000 00000000 00000000 ................ 8bf200 00000000 00000000 00000000 00000000 ................ - 8bf210 00000000 00000000 bfc2b0b7 ce3b0da6 .............;.. - 8bf220 712fa080 153726d7 q/...7&. + 8bf210 00000000 00000000 c1b05771 2a787466 ..........Wq*xtf + 8bf220 a052f035 533240f8 .R.5S2@. 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 @@ -4010,8 +4010,8 @@ /usr/lib/mono/4.5/ictool.pdb 612e765cb0f80a745020bd0c895d1b198a81dc406c440ec3510fa25806532902 0 /usr/lib/mono/4.5/ilasm.exe 15dbeb4f1bdc7269c87fe24e4c4d7a216a11f531c6d860a0ac40a0c44cb522e3 0 /usr/lib/mono/4.5/ilasm.pdb 6556d3d45b7e5eafe473b9eef27f040b4ef5ca8659c12829b41320d676f80de6 0 -/usr/lib/mono/4.5/illinkanalyzer.exe 0ec8d19fe8d870e9154e7d29883cf95df9f1ea0feebf76781b01f1c0517e6864 0 -/usr/lib/mono/4.5/illinkanalyzer.pdb 019d3a15a2cf37b29ae95b22f3f481a7b3a94550df9ee1eb5b4e426e6babb962 0 +/usr/lib/mono/4.5/illinkanalyzer.exe 05f74b8514985b909d11136c7c2c70b295c138b613b5a5a25df2427c640762e3 0 +/usr/lib/mono/4.5/illinkanalyzer.pdb 7a60f0de1d3972575d7c0358ce0eaed8a2cd27dfc41c54bbd4a1764111c7dfac 0 /usr/lib/mono/4.5/installvst.exe 005317242fef65b9ec836a6ad5e908a74f9a3b532483cc043d486d0756de9bca 0 /usr/lib/mono/4.5/installvst.pdb 905b24f38dfa13186cb42a3ae1b6e029933992a6032e6f43d15b107c1bf705ea 0 /usr/lib/mono/4.5/lc.exe ca98a042d7565937350caa5de64f6a2c1ee9e9b750d6befa4fb1ce90a001728d 0 @@ -4022,8 +4022,8 @@ /usr/lib/mono/4.5/makecert.pdb cbfad87c776999137b2b52d383b5d3cb445bce09a1b9b703ac4cdb8629ab679a 0 /usr/lib/mono/4.5/mdbrebase.exe 4e6d1c94e2d9d02286d128b7ec157bdf0dda6f394b797715f1eba59ffb0a4a20 0 /usr/lib/mono/4.5/mdbrebase.pdb fc6324919a16083228dffbb49c4820a2a3c70c23bc1452916767d5f41a189c5b 0 -/usr/lib/mono/4.5/mkbundle.exe 44b82e26f9e2486f7718b1f4ec1a7ad999b464ec0b2388f3046c321b7801dabd 0 -/usr/lib/mono/4.5/mkbundle.pdb 91d6a94baca64ad4f8bdb3715de04519c104b96fe658b95a7c039a933b72d0ac 0 +/usr/lib/mono/4.5/mkbundle.exe f283f32f7e4d868b35e40b904fa0f6db81f5843e959c9808a6b198d3b6426f80 0 +/usr/lib/mono/4.5/mkbundle.pdb 35193b7542391934bc3611c4081bf62ab8749e8323bdead83d7151604ec087db 0 /usr/lib/mono/4.5/mono-api-diff.exe 28e8c9017d6ed4300affd1a469a666465c74d3d7a48a1a7afacdefd7f46ccfb9 0 /usr/lib/mono/4.5/mono-api-diff.pdb dc1fa8435c2f0558e3f9b1c7f35f77a8b463c1414c10e948addfc694622cd059 0 /usr/lib/mono/4.5/mono-api-html.exe e24cbfd45e94dfddb136c452fd063ed6a01280b36078344ffcdc80b3452ced8c 0 @@ -4035,14 +4035,14 @@ /usr/lib/mono/4.5/mono-shlib-cop.exe c1ae527f2982fc470eec6923e3b73f3591ac7f67d3422e4ed3af588c81f56e73 0 /usr/lib/mono/4.5/mono-shlib-cop.exe.config aa7d21b8b5c1bef43e8a080609e1623e5ab2e6fbcfaf9b1fc132fa5ef6bd72a5 0 /usr/lib/mono/4.5/mono-shlib-cop.pdb 0db4d4e4cb68df31eb18b8d5652e4e673dc975a513e2306a5c1e5edd18bf5be4 0 -/usr/lib/mono/4.5/mono-symbolicate.exe fc346cca3600816ef151013af31a103167a13b342520e8d50aa12d73c264004a 0 -/usr/lib/mono/4.5/mono-symbolicate.pdb 9d3d76affc1cdcc42be1bf17e6d3b63100caccdbf24b114e60392ed4b4479432 0 +/usr/lib/mono/4.5/mono-symbolicate.exe 207d10b5b8c35451debb5956d7d5b27b58fdc019fd7b62cc5d21b8196df2a73e 0 +/usr/lib/mono/4.5/mono-symbolicate.pdb d6c9f884c832391473caa50a2c81fe38aa17f652076dda5a1c3a03eea1069186 0 /usr/lib/mono/4.5/mono-xmltool.exe 5236be00d99c879b65185d40ef72fb01b3e2d7c7df8053670d5c4e4990466a96 0 /usr/lib/mono/4.5/mono-xmltool.pdb 8915462eada9a267d5e637e02979ee82b7b5acb88632ea755250dcba5e89cec4 0 /usr/lib/mono/4.5/monolinker.exe a8c9afd7c4553cc76777ebf0a6625b3ab96c92eab3a544cec04b128e86864200 0 /usr/lib/mono/4.5/monolinker.pdb e5af93cac2ce1f73d531ae189b493ba2c16ea809c7d6cda0e04d2f7756e9f898 0 -/usr/lib/mono/4.5/monop.exe 0c07c6b5340afe4a60101aa6a3fbe59e44b7abf988c17dbb711424d8a2f27226 0 -/usr/lib/mono/4.5/monop.pdb 74400321587fbcf95e93cf36663d6a9187a354d34321428662228b72898b45f4 0 +/usr/lib/mono/4.5/monop.exe 816f7b96f5405466a13879c245924d3ae01798c01fd83ac8adc4935bf4bfdb9d 0 +/usr/lib/mono/4.5/monop.pdb 2ca6f9222a8b02997336ec7d6118849fd83714c56fc3812d7b0fd5c55e846539 0 /usr/lib/mono/4.5/pdb2mdb.exe d306afc58f631d262dba0b9ee81b61d86bea606f13fd7163bf79ec53a5ffb8e1 0 /usr/lib/mono/4.5/pdb2mdb.pdb 426f24bf45b91d39e4d1429877747d89e520e741d1d0fc6f0e1c60140e5f84f0 0 /usr/lib/mono/4.5/permview.exe 87d0e40fe79cad4e001876bdbb417a4680a81f7de7e47e500b1fb21fad74c1a8 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 '113' (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,9 +1,9 @@ 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 44 21 00 00 23 42 6c 6f 62 00 00 00 27 5d 94 94 |D!..#Blob...']..| -00000080 68 1e 80 47 87 f3 9c ae 41 16 47 9c 25 93 c5 f0 |h..G....A.G.%...| -00000090 01 00 00 06 57 5f a2 0b 09 0e 00 00 01 00 00 00 |....W_..........| +00000070 54 21 00 00 23 42 6c 6f 62 00 00 00 10 98 6d c5 |T!..#Blob.....m.| +00000080 14 62 f1 46 9f ac a2 97 51 f6 fe f0 a6 f6 a7 c3 |.b.F....Q.......| +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.......,.......| 000000c0 4d 00 00 00 01 00 00 00 3b 00 00 00 11 00 00 00 |M.......;.......| @@ -12,22 +12,22 @@ 000000f0 07 00 00 00 00 00 00 00 02 00 00 01 00 00 00 00 |................| 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 80 00 01 00 |................| -00000130 8d 00 02 00 f0 01 01 00 fe 01 02 00 d2 04 01 00 |................| -00000140 e2 04 02 00 02 07 01 00 12 07 02 00 6f 09 01 00 |............o...| -00000150 7f 09 02 00 01 00 ae 00 02 00 1f 02 02 00 77 02 |..............w.| -00000160 02 00 cf 02 02 00 d7 02 02 00 4b 03 02 00 76 03 |..........K...v.| -00000170 02 00 a1 03 02 00 b7 03 02 00 05 04 02 00 45 04 |..............E.| -00000180 02 00 57 04 02 00 69 04 02 00 7b 04 00 00 00 00 |..W...i...{.....| -00000190 02 00 92 04 03 00 03 05 03 00 1e 05 03 00 39 05 |..............9.| -000001a0 03 00 54 05 03 00 5b 05 03 00 80 05 03 00 e8 05 |..T...[.........| -000001b0 03 00 a3 06 04 00 33 07 00 00 00 00 04 00 44 07 |......3.......D.| -000001c0 04 00 4b 07 04 00 52 07 04 00 9a 07 04 00 f3 07 |..K...R.........| -000001d0 04 00 54 08 00 00 00 00 04 00 5b 08 04 00 63 08 |..T.......[...c.| -000001e0 05 00 a0 09 05 00 ad 09 00 00 00 00 05 00 bf 09 |................| -000001f0 05 00 e7 09 05 00 ef 09 05 00 3b 0a 05 00 52 0a |..........;...R.| -00000200 05 00 5f 0a 05 00 67 0a 05 00 6f 0a 05 00 7c 0a |.._...g...o...|.| -00000210 05 00 89 0a 05 00 91 0a 05 00 9e 0a 05 00 a6 0a |................| -00000220 05 00 ae 0a 05 00 b6 0a 05 00 be 0a 05 00 c6 0a |................| -00000230 05 00 ce 0a 05 00 d6 0a 05 00 de 0a 05 00 eb 0a |................| +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 |........ ...{...| +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.| +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...}.....| +00000210 05 00 97 0a 05 00 9f 0a 05 00 ac 0a 05 00 b4 0a |................| +00000220 05 00 bc 0a 05 00 c4 0a 05 00 cc 0a 05 00 d4 0a |................| +00000230 05 00 dc 0a 05 00 e4 0a 05 00 ec 0a 05 00 f9 0a |................| 00000240 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 04 87 01 00 23 42 6c 6f 62 00 00 00 60 7e e3 9e |....#Blob...`~..| -00000080 00 b1 59 48 bf 6d 5b d8 8a 3a da 59 74 2a ff d5 |..YH.m[..:.Yt*..| +00000070 d0 86 01 00 23 42 6c 6f 62 00 00 00 79 c0 81 84 |....#Blob...y...| +00000080 ef 3c 2e 42 8e a5 60 e5 7d 17 c8 11 b2 a6 d2 93 |.<.B..`.}.......| 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 19 1c 00 00 01 00 2e 1c 00 00 02 00 e6 1e 00 00 |................| -00000160 01 00 fb 1e 00 00 02 00 19 20 00 00 01 00 2e 20 |......... ..... | -00000170 00 00 02 00 3f 21 00 00 01 00 54 21 00 00 02 00 |....?!....T!....| -00000180 1d 22 00 00 01 00 32 22 00 00 02 00 0c 24 00 00 |."....2".....$..| -00000190 01 00 21 24 00 00 02 00 2e 2c 00 00 01 00 43 2c |..!$.....,....C,| -000001a0 00 00 02 00 96 2c 00 00 01 00 ab 2c 00 00 02 00 |.....,.....,....| -000001b0 c6 31 00 00 01 00 db 31 00 00 02 00 6e 33 00 00 |.1.....1....n3..| -000001c0 01 00 83 33 00 00 02 00 05 37 00 00 01 00 1a 37 |...3.....7.....7| -000001d0 00 00 02 00 c0 39 00 00 01 00 d5 39 00 00 02 00 |.....9.....9....| -000001e0 a7 40 00 00 01 00 be 40 00 00 02 00 2a 46 00 00 |.@.....@....*F..| -000001f0 01 00 41 46 00 00 02 00 50 4f 00 00 01 00 67 4f |..AF....PO....gO| -00000200 00 00 02 00 a9 50 00 00 01 00 c0 50 00 00 02 00 |.....P.....P....| -00000210 26 51 00 00 01 00 3d 51 00 00 02 00 20 6c 00 00 |&Q....=Q.... l..| -00000220 01 00 37 6c 00 00 02 00 cd 6d 00 00 01 00 e4 6d |..7l.....m.....m| -00000230 00 00 02 00 0f 6f 00 00 01 00 26 6f 00 00 02 00 |.....o....&o....| +00000150 e4 1b 00 00 01 00 f9 1b 00 00 02 00 97 1d 00 00 |................| +00000160 01 00 ac 1d 00 00 02 00 65 1e 00 00 01 00 7a 1e |........e.....z.| +00000170 00 00 02 00 23 1f 00 00 01 00 38 1f 00 00 02 00 |....#.....8.....| +00000180 40 27 00 00 01 00 55 27 00 00 02 00 2a 29 00 00 |@'....U'....*)..| +00000190 01 00 3f 29 00 00 02 00 7b 2a 00 00 01 00 90 2a |..?)....{*.....*| +000001a0 00 00 02 00 19 2c 00 00 01 00 2e 2c 00 00 02 00 |.....,.....,....| +000001b0 eb 2d 00 00 01 00 00 2e 00 00 02 00 51 33 00 00 |.-..........Q3..| +000001c0 01 00 66 33 00 00 02 00 5b 36 00 00 01 00 70 36 |..f3....[6....p6| +000001d0 00 00 02 00 9b 3c 00 00 01 00 b0 3c 00 00 02 00 |.....<.....<....| +000001e0 35 3d 00 00 01 00 4a 3d 00 00 02 00 7f 3d 00 00 |5=....J=.....=..| +000001f0 01 00 94 3d 00 00 02 00 aa 3e 00 00 01 00 bf 3e |...=.....>.....>| +00000200 00 00 02 00 e0 40 00 00 01 00 f7 40 00 00 02 00 |.....@.....@....| +00000210 e7 42 00 00 01 00 fe 42 00 00 02 00 cd 43 00 00 |.B.....B.....C..| +00000220 01 00 e4 43 00 00 02 00 99 46 00 00 01 00 b0 46 |...C.....F.....F| +00000230 00 00 02 00 93 47 00 00 01 00 aa 47 00 00 02 00 |.....G.....G....| 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 90 c3 01 00 23 42 6c 6f 62 00 00 00 47 35 16 41 |....#Blob...G5.A| -00000080 ad 82 52 4e 8f 3d 52 e4 22 3e a2 4b 5b 69 82 92 |..RN.=R.">.K[i..| +00000070 a4 c3 01 00 23 42 6c 6f 62 00 00 00 0b 91 3f 29 |....#Blob.....?)| +00000080 69 ec 91 47 a8 57 a9 03 2d 72 c4 2f ff e5 5f fc |i..G.W..-r./.._.| 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 7d 00 00 00 |............}...| -00000150 01 00 8b 00 00 00 02 00 86 01 00 00 01 00 95 01 |................| -00000160 00 00 02 00 eb 01 00 00 01 00 fa 01 00 00 02 00 |................| -00000170 5b 02 00 00 01 00 6a 02 00 00 02 00 90 03 00 00 |[.....j.........| -00000180 01 00 9f 03 00 00 02 00 70 06 00 00 01 00 7f 06 |........p.......| -00000190 00 00 02 00 51 07 00 00 01 00 60 07 00 00 02 00 |....Q.....`.....| -000001a0 64 0c 00 00 01 00 73 0c 00 00 02 00 b7 0c 00 00 |d.....s.........| -000001b0 01 00 c6 0c 00 00 02 00 2c 0d 00 00 01 00 3b 0d |........,.....;.| -000001c0 00 00 02 00 03 0e 00 00 01 00 12 0e 00 00 02 00 |................| -000001d0 82 0e 00 00 01 00 91 0e 00 00 02 00 2a 0f 00 00 |............*...| -000001e0 01 00 39 0f 00 00 02 00 91 0f 00 00 01 00 a0 0f |..9.............| -000001f0 00 00 02 00 15 11 00 00 01 00 24 11 00 00 02 00 |..........$.....| -00000200 b7 17 00 00 01 00 c6 17 00 00 02 00 6a 1a 00 00 |............j...| -00000210 01 00 79 1a 00 00 02 00 a4 1a 00 00 01 00 b3 1a |..y.............| -00000220 00 00 02 00 1b 1b 00 00 01 00 2a 1b 00 00 02 00 |..........*.....| -00000230 8a 1b 00 00 01 00 99 1b 00 00 02 00 3a 1c 00 00 |............:...| +00000140 e9 00 00 00 06 00 00 00 05 00 00 00 88 00 00 00 |................| +00000150 01 00 96 00 00 00 02 00 38 03 00 00 01 00 47 03 |........8.....G.| +00000160 00 00 02 00 e6 03 00 00 01 00 f5 03 00 00 02 00 |................| +00000170 2e 04 00 00 01 00 3d 04 00 00 02 00 a9 05 00 00 |......=.........| +00000180 01 00 b8 05 00 00 02 00 1e 06 00 00 01 00 2d 06 |..............-.| +00000190 00 00 02 00 f2 06 00 00 01 00 01 07 00 00 02 00 |................| +000001a0 69 07 00 00 01 00 78 07 00 00 02 00 02 08 00 00 |i.....x.........| +000001b0 01 00 11 08 00 00 02 00 66 08 00 00 01 00 75 08 |........f.....u.| +000001c0 00 00 02 00 cb 08 00 00 01 00 da 08 00 00 02 00 |................| +000001d0 3d 09 00 00 01 00 4c 09 00 00 02 00 1d 0c 00 00 |=.....L.........| +000001e0 01 00 2c 0c 00 00 02 00 e1 0c 00 00 01 00 f0 0c |..,.............| +000001f0 00 00 02 00 87 0d 00 00 01 00 96 0d 00 00 02 00 |................| +00000200 eb 0d 00 00 01 00 fa 0d 00 00 02 00 0c 0f 00 00 |................| +00000210 01 00 1b 0f 00 00 02 00 7d 0f 00 00 01 00 8c 0f |........}.......| +00000220 00 00 02 00 02 10 00 00 01 00 11 10 00 00 02 00 |................| +00000230 1f 15 00 00 01 00 2e 15 00 00 02 00 bc 1b 00 00 |................| 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 bc 97 01 00 23 42 6c 6f 62 00 00 00 1e 29 86 4c |....#Blob....).L| -00000080 c9 42 ee 49 ad 97 96 1c 37 f0 96 85 b5 e4 51 cd |.B.I....7.....Q.| +00000070 98 97 01 00 23 42 6c 6f 62 00 00 00 a9 43 67 d3 |....#Blob....Cg.| +00000080 f0 03 6c 42 85 2a c4 80 d8 c2 b7 c8 d0 18 04 f8 |..lB.*..........| 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 42 08 00 00 01 00 57 08 00 00 02 00 |....B.....W.....| -00000170 10 0b 00 00 01 00 25 0b 00 00 02 00 40 0c 00 00 |......%.....@...| -00000180 01 00 55 0c 00 00 02 00 66 0d 00 00 01 00 7b 0d |..U.....f.....{.| -00000190 00 00 02 00 45 0e 00 00 01 00 5a 0e 00 00 02 00 |....E.....Z.....| -000001a0 55 10 00 00 01 00 6a 10 00 00 02 00 77 18 00 00 |U.....j.....w...| -000001b0 01 00 8c 18 00 00 02 00 df 18 00 00 01 00 f4 18 |................| -000001c0 00 00 02 00 0f 1e 00 00 01 00 24 1e 00 00 02 00 |..........$.....| -000001d0 b7 1f 00 00 01 00 cc 1f 00 00 02 00 4f 23 00 00 |............O#..| -000001e0 01 00 64 23 00 00 02 00 0a 26 00 00 01 00 1f 26 |..d#.....&.....&| -000001f0 00 00 02 00 ea 2c 00 00 01 00 ff 2c 00 00 02 00 |.....,.....,....| -00000200 69 32 00 00 01 00 7e 32 00 00 02 00 8b 3b 00 00 |i2....~2.....;..| -00000210 01 00 a0 3b 00 00 02 00 e2 3c 00 00 01 00 f7 3c |...;.....<.....<| -00000220 00 00 02 00 5e 3d 00 00 01 00 73 3d 00 00 02 00 |....^=....s=....| -00000230 45 58 00 00 01 00 5c 58 00 00 02 00 f3 59 00 00 |EX....\X.....Y..| +00000160 00 00 02 00 0e 08 00 00 01 00 23 08 00 00 02 00 |..........#.....| +00000170 be 09 00 00 01 00 d3 09 00 00 02 00 8c 0a 00 00 |................| +00000180 01 00 a1 0a 00 00 02 00 6b 0b 00 00 01 00 80 0b |........k.......| +00000190 00 00 02 00 89 13 00 00 01 00 9e 13 00 00 02 00 |................| +000001a0 73 15 00 00 01 00 88 15 00 00 02 00 c4 16 00 00 |s...............| +000001b0 01 00 d9 16 00 00 02 00 63 18 00 00 01 00 78 18 |........c.....x.| +000001c0 00 00 02 00 34 1a 00 00 01 00 49 1a 00 00 02 00 |....4.....I.....| +000001d0 9a 1f 00 00 01 00 af 1f 00 00 02 00 a5 22 00 00 |............."..| +000001e0 01 00 ba 22 00 00 02 00 e5 28 00 00 01 00 fa 28 |...".....(.....(| +000001f0 00 00 02 00 7f 29 00 00 01 00 94 29 00 00 02 00 |.....).....)....| +00000200 ca 29 00 00 01 00 df 29 00 00 02 00 f6 2a 00 00 |.).....).....*..| +00000210 01 00 0b 2b 00 00 02 00 2c 2d 00 00 01 00 41 2d |...+....,-....A-| +00000220 00 00 02 00 32 2f 00 00 01 00 47 2f 00 00 02 00 |....2/....G/....| +00000230 16 30 00 00 01 00 2b 30 00 00 02 00 e0 32 00 00 |.0....+0.....2..| 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 @@ -181,27 +181,27 @@ /usr/lib/monodoc/sources 0 /usr/lib/monodoc/sources/Mono.source d02fcffc93e8efd86d7bf90ebbd9efd82a48a7ed6603a64f17245812f637d6cf 0 /usr/lib/monodoc/sources/Mono.tree 273c209768c1596f13655575417934ca283b29e742337895a6f3dc502c8d5ff6 0 -/usr/lib/monodoc/sources/Mono.zip e55a63ee97a6804ea328387754e329fa84061fd02fd9cb0627b2e68960fafdf2 0 +/usr/lib/monodoc/sources/Mono.zip 59a882e327dfd59e45049cde7c9a4c2182da6e373d0b326c9332ca6923ec1253 0 /usr/lib/monodoc/sources/Novell.source d27df8ca6ed3ef3db0884fb38d3be4e671ee04d81a0493b542b5731576eb0b2a 0 /usr/lib/monodoc/sources/Novell.tree eafc871db9bab8d800cccf458d263a7fe769ac4871fa122185050bc38da0c752 0 -/usr/lib/monodoc/sources/Novell.zip 490ba0b15b07548380e6fa783742e3f727f9aa993ed77a8b808e088ae12e9053 0 +/usr/lib/monodoc/sources/Novell.zip 5374c87c10c3e510a44f1e0f6426b779536c4a526145814694336a59735f67e5 0 /usr/lib/monodoc/sources/cs-errors.tree d8878bd82dda036f2e61310a41c86ad7af05c2295dd4a0cadfab302bfab95ff4 0 -/usr/lib/monodoc/sources/cs-errors.zip 8911e57428d8f56aa3a3aed83e814c3f39f4474e635da370614f9714660d096b 0 +/usr/lib/monodoc/sources/cs-errors.zip 9368f2f153ce40e9f68ca98aa4b2a3ae6e367caaec82c2c3ef5bd21d9cdada69 0 /usr/lib/monodoc/sources/ecma334.tree bffc503f76f95fa7af05c48b7cc936380e9b9a39f5a30921ce685c5337e13938 0 -/usr/lib/monodoc/sources/ecma334.zip dc002e6283f612c0a2d5a684a1dc204081e96c1e867197e158ba93ec6044fa80 0 +/usr/lib/monodoc/sources/ecma334.zip cd4871de9ff86ed4c755a0fa19d1fc0b1226c09e4b4068cfbbb0e98f32167736 0 /usr/lib/monodoc/sources/lang-csharp.source e56326f2846c7da47f8ab4097d2815b1c8cd8da92c09c7ef0c0c093832a16a39 0 /usr/lib/monodoc/sources/mono-file-formats.source f18ca74316f325db710f3a00abf5e353fe7aa22389a8435ef9254811c6c4be01 0 /usr/lib/monodoc/sources/mono-file-formats.tree c7756d581871c269dbf36cd46e77c0ebc4004b55868b4b53f32f73f601c9e0c1 0 -/usr/lib/monodoc/sources/mono-file-formats.zip bf4d925daa5aa33e98d66bf261299b0a21e47ac246e1e44e2f64c8568a0937ea 0 +/usr/lib/monodoc/sources/mono-file-formats.zip bbefc18e6eaf0543b370740203aa3daea0840e20a8650d50323b4b134559fe2b 0 /usr/lib/monodoc/sources/mono-tools.source 76b790ba8a0514362d091e538d911999f2a0c7938ee3008971e4e20214fce606 0 /usr/lib/monodoc/sources/mono-tools.tree c218ec49f7dd2a85f1e2e5731a20ef9392e89b32205d578f25d4cf90e293e0d1 0 -/usr/lib/monodoc/sources/mono-tools.zip a204915c9ef33617969e975a35d76de2d9be7095f3883def8dd30f5c94517c8d 0 +/usr/lib/monodoc/sources/mono-tools.zip f10557c8c9f8ee588d77f361f24a8740c3e7f06e03d15ace70b705252501dfea 0 /usr/lib/monodoc/sources/monoapi.source 8f78af424d38125ed13b6e6de064d36b859f5557a0cdef11001643ad0c88f006 0 /usr/lib/monodoc/sources/monoapi.tree 30829e908cd963eded1d870233c4bd8c1429b8ddf715f53b4ed186c47143babf 0 -/usr/lib/monodoc/sources/monoapi.zip 13ef7c949fcc23b78438dd60c92a636705c8f5276c4833360b9c9abd829909f0 0 +/usr/lib/monodoc/sources/monoapi.zip 2f18a75e054e6d125eab92d9c9d5edce6982882408714b493e3eee5e3a6edb51 0 /usr/lib/monodoc/sources/netdocs.source b2359f125959c0013b032a2834ce8f2108471345e35bb76b403d74c93354ac97 0 /usr/lib/monodoc/sources/netdocs.tree 18e1fed643062dae008a59b65ee3e1fb871d6416d80da416a7113a38aa2ce05c 0 -/usr/lib/monodoc/sources/netdocs.zip 8c4731cf9bcbaeb55bbc257d81ad0cb31dde40d32489314abf26710f8d8c81df 0 +/usr/lib/monodoc/sources/netdocs.zip 1348a3e99b64477d75e87f8426590e6b79065fdd9517650fe5fce2460c4c6bd4 0 /usr/lib64/pkgconfig/monodoc.pc b8c0e387c88e0d011c421d59365109015685c197c8fb3f4b0f70557c6bb7eb4b 0 /usr/share/man/man1/mdassembler.1.gz c0495f419d18668f836389625f4197f9c7fcc43b95f0460c16bb804aa009a26a 2 /usr/share/man/man1/mdoc-assemble.1.gz 325628a02ee95b3a0d4538d133ee55fcb2bd1bdcfb150c80d9f00e29e47c9dd4 2 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 2020-12-28 11:27:14.000000000 +0000 +++ new//usr/lib/monodoc/sources/Mono.zip/mastersummary.xml 2036-01-31 00:46:22.000000000 +0000 @@ -1,9 +1,5 @@ - - To be added. - To be added. - - + To be added. To be added. @@ -11,11 +7,15 @@ - + To be added. To be added. - + + To be added. + To be added. + + To be added. To be added. @@ -177,53 +177,51 @@ + To be added. + To be added. + + Types to help parse command-line options. Types to help parse command-line options. - + To be added. To be added. - + To be added. To be added. - + To be added. To be added. - + To be added. To be added. - - High-level Unix wrapper types. + + The deprecated Mono.Posix namespace, use + instead. + + This namespace provides functionality to access Posix/Unix features. It has been deprecated in favor of the new namespace. + + + 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 @@ -260,26 +258,34 @@ - - 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 @@ -316,53 +322,47 @@ - - The deprecated Mono.Posix namespace, use - instead. - - This namespace provides functionality to access Posix/Unix features. It has been deprecated in favor of the new namespace. - 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0012 2036-01-31 00:46:20.000000000 +0000 @@ -2,28 +2,13 @@ CS0012 - // 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-3-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: 7 +// Compiler options: -r:CS0012-10-lib.dll class Test { - public static void Main () - { - var b = new B (); - b.value = null; - } -} - // 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 - -public class C -{ - public static void Main () - { - var val = B.ArrayMember; - } + event D<Test> e; } // 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 @@ -47,45 +32,54 @@ } } - // 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-lib.dll class Test { public static void Main () { - B.Foo<long> (1); + var b = new B (); + b.Test (); + b.Test (); } -} - - // 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 `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 -class Program : Lib1.Class1<int> +public class X { -} - + public static void Main () + { + A.Test (); + } +} // 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-9-lib.dll +// Compiler options: -r:CS0012-13-lib.dll class Test { public static void Main () { - A.M<string> (); + var a = B.Value; } -} - // 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 +} + + // 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-18-lib.dll class Test { - event D<Test> e; -} + public static void Main () + { + 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-14-lib.dll @@ -98,29 +92,29 @@ } } - // 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' + // 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-22-lib.dll +// Compiler options: -r:CS0012-9-lib.dll -public class C +class Test { public static void Main () { - B.Sum (null); + 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' -// Line: 9 -// Compiler options: -r:CS0012-6-lib.dll +// Line: 10 +// Compiler options: -r:CS0012-3-lib.dll class Test { public static void Main () { - A.M.Foo (); + var b = new B (); + b.value = null; } -} - +} // 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 @@ -132,129 +126,105 @@ object o = typeof (B.N); } } - // CS0012: The type `X`1.Y.Z.W' 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-21-lib.dll - -public class C -{ - public static void Main () - { - new B (); - } -} - // 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-13-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 -class Test +class Program : Lib1.Class1<int> { - public static void Main () - { - var a = B.Value; - } } - // 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' + // 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-4-lib.dll +// Compiler options: -r:CS0012-lib.dll class Test { public static void Main () { var b = new B (); - b.Prop = null; + 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 `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-18-lib.dll +// Compiler options: -r:CS0012-23-lib.dll /usr/lib/monodoc/sources/cs-errors.zip/CS0019 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0019 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0019 2036-01-31 00:46:20.000000000 +0000 @@ -2,44 +2,8 @@ CS0019 - // CS0019: Operator `-' cannot be applied to operands of type `float' and `decimal' -// Line: 6 - -class S -{ - const decimal d = 0f - 1m; -} - - // CS0019: Operator `!=' cannot be applied to operands of type `method group' and `string' -// Line: 20 - -namespace InternalAccess -{ - public abstract class Base - { - internal string Prop () { return "a"; } - } - - public class DerivedProtectedExample : Base - { - protected new string Prop { get { return "E"; } } - } - - class MainClass - { - public static int Main () - { - DerivedProtectedExample dpe = new DerivedProtectedExample (); - if (dpe.Prop != "A") - return 2; - - return 0; - } - } -} - - // CS0019: Operator `>>' cannot be applied to operands of type `E' and `int' -// Line : 10 + // CS0019: Operator `|' cannot be applied to operands of type `E' and `int' +// Line: 10 enum E: byte { Min @@ -47,114 +11,62 @@ class T { static void Main () { - E error = E.Min >> 2; - } -} - - // CS0019: Operator `!=' cannot be applied to operands of type `ulong?' and `int' -// Line: 8 - -class C -{ - static void Test (ulong? x, int y) - { - if (x != y) - { - } + E error = E.Min | 4; } } - // CS0019: Operator `-' cannot be applied to operands of type `ulong' and `sbyte' -// Line: 6 - -class S -{ - const ulong u = (ulong)0 - (sbyte)1; -} - - // CS0019: Operator `==' cannot be applied to operands of type `anonymous method' and `anonymous method' -// Line: 8 + // CS0019: Operator `&&' cannot be applied to operands of type `bool?' and `bool?' +// Line: 10 +using System; -public class C +class X { - public static void Main () + static void Main () { - bool b = delegate () {} == delegate () {}; + bool? a = false, b = false; + Console.WriteLine (a && b); } } - // CS0019: Operator `??' cannot be applied to operands of type `null' and `anonymous method' -// Line: 8 - -delegate void D (); + // CS0019: Operator `-' cannot be applied to operands of type `A' and `B' +// Line : 20 -class F +enum A { - D d = null ?? delegate { }; + A1, + A2 } - - // CS0019: Operator `-' cannot be applied to operands of type `string' and `ulong' -// Line : 12 - -using System; -public class C +enum B { - public static void Main () - { - ulong aa = 10; - ulong bb = 3; - Console.WriteLine("bug here --> "+aa-bb); - } + B1, + B2 } - - // CS0019: Operator `+' cannot be applied to operands of type `Program' and `Program' -// Line: 8 -public class Program +class C { - static void Main () - { - Program b = default (Program) + default (Program); - } -} - - // CS0019: Operator `>=' cannot be applied to operands of type `ulong' and `sbyte' -// Line: 7 - -class X { - bool ret (ulong u, sbyte s) - { - return (u >= s); - } + static void Main () + { + System.Console.WriteLine (A.A1 - B.B1); + } } - // CS0019: Operator `&&' cannot be applied to operands of type `bool' and `null' -// Line: 14 + // CS0019: Operator `==' cannot be applied to operands of type `int' and `S?' +// Line: 15 -class C +struct S { - public static void Main () - { - bool b = true; - b = b && null; - } + 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 `method group' and `null' -// Line: 8 public class C { public static void Main () { - bool a = DelegateMethod == null; + S? s; + var b = 1 == s; } - - static int DelegateMethod(bool b) - { - return 3; - } } // CS0019: Operator `+' cannot be applied to operands of type `Test.Zub' and `Test.Zub' @@ -177,124 +89,91 @@ } - // CS0019: Operator `>=' cannot be applied to operands of type `ulong' and `short' + // CS0019: Operator `>=' cannot be applied to operands of type `ulong' and `sbyte' // Line: 7 /usr/lib/monodoc/sources/cs-errors.zip/CS0021 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0021 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0021 2036-01-31 00:46:20.000000000 +0000 @@ -2,29 +2,29 @@ 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 `System.Array' +// Line: 9 -class Test +using System; +class X { - public static void Main () + public void Foo (Array bar) { - int i = 0; - Console.WriteLine ("Get i[2]: {0}", i[2]); + object baz = bar[0]; } } - // CS0021: Cannot apply indexing with [] to an expression of type `System.Array' -// Line: 9 - + // CS0021: Cannot apply indexing with [] to an expression of type `int' +// Line: 10 using System; -class X + +class Test { - public void Foo (Array bar) + public static void Main () { - object baz = bar[0]; + int i = 0; + Console.WriteLine ("Get i[2]: {0}", i[2]); } } @@ -41,26 +41,26 @@ }; } } - // CS0021: Cannot apply indexing with [] to an expression of type `G' -// Line: 8 + // CS0021: Cannot apply indexing with [] to an expression of type `method group' +// Line: -public class Foo<G> +class X { - public static void Bar () + public void Foo () { - int i = default (G)[0]; + object baz = Foo [0]; } } - // CS0021: Cannot apply indexing with [] to an expression of type `method group' -// Line: + // CS0021: Cannot apply indexing with [] to an expression of type `G' +// Line: 8 -class X +public class Foo<G> { - public void Foo () + public static void Bar () { - object baz = Foo [0]; + int i = default (G)[0]; } } /usr/lib/monodoc/sources/cs-errors.zip/CS0023 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0023 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0023 2036-01-31 00:46:20.000000000 +0000 @@ -2,15 +2,47 @@ CS0023 - // CS0023: The `++' operator cannot be applied to operand of type `X' -// Line: 9 + // CS0023: The `.' operator cannot be applied to operand of type `null' +// Line: 8 -class X { - static void Main () +class C +{ + public static void Main () { - X x = new X(); + string s = null.ToString (); + } +} + // CS0023: The `.' operator cannot be applied to operand of type `int*' +// Line: 8 +// Compiler options: -unsafe - x++; +class C +{ + static unsafe int* Foo () + { + return (int*)0; + } + + public static void Main () + { + unsafe { + string s = Foo().ToString (); + } + } +} + // CS0023: The `?' operator cannot be applied to operand of type `T' +// Line: 13 + +interface IFoo<T> +{ + T Call (); +} + +class C1 +{ + U Foo<T, U> (IFoo<T> t) + { + return t?.Call (); } } @@ -31,69 +63,71 @@ } } - // CS0023: The `.' operator cannot be applied to operand of type `void' -// Line: 12 + // CS0023: The `?' operator cannot be applied to operand of type `method group' +// Line: 14 -using System; - -public class Testing -{ - public static void DoNothing() {} - - public static void Main() - { - Console.WriteLine(DoNothing().ToString()); - } -} - - // CS0023: The `?' operator cannot be applied to operand of type `int' -// Line: 11 +class X +{ + void Test () + { + } -using System; + public static void Main () + { + X x = null; + System.Action n = x?.Test; + } +} + // CS0023: The `?' operator cannot be applied to operand of type `null' +// Line: 8 class C { - static void Main() + static void Main () { - int k = 0; - var r = k?.ToString (); + var res = null?[0]; } } - // CS0023: The `.' operator cannot be applied to operand of type `null' -// Line: 8 + // CS0023: The `?' operator cannot be applied to operand of type `void' +// Line: 10 + +using System; class C { - public static void Main () + static void Main () { - string s = null.ToString (); + var v = Console.WriteLine ()?[0]; } } - // CS0023: The `++' operator cannot be applied to operand of type `bool' -// Line: 13 + // CS0023: The `-' operator cannot be applied to operand of type `A' +// Line: 16 -public class C{ - public static bool Foo{ - get{ - return false; - } - set{ - } - } - public static void Main(){ - Foo++; - } + +class A +{ + public static implicit operator ulong (A mask) + { + return 8; + } +} + +class X +{ + static A a = null; + static object o = -a; } - // CS0023: The `?' operator cannot be applied to operand of type `int' -// Line: 9 + // CS0023: The `+' operator cannot be applied to operand of type `string' +// Line: 10 -public class C +using System; + +public class Test { - static void Main() + static void Main () { - string s = null; - var x = s?.Length?.ToString (); + Console.WriteLine ("a" + + "b"); } } // CS0023: The `+' operator cannot be applied to operand of type `X' @@ -104,24 +138,32 @@ static object o = +x; } - // CS0023: The `.' operator cannot be applied to operand of type `int*' -// Line: 8 -// Compiler options: -unsafe + // CS0023: The `.' operator cannot be applied to operand of type `method group' +// Line: 20 -class C +using System; + +enum Enum { - static unsafe int* Foo () + Test +} + +class A : Attribute +{ + public A (object e) { - return (int*)0; } - - public static void Main () +} + /usr/lib/monodoc/sources/cs-errors.zip/CS0026 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0026 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0026 2036-01-31 00:46:20.000000000 +0000 @@ -3,22 +3,22 @@ CS0026 // CS0026: Keyword `this' is not valid in a static property, static method, or static field initializer -// Line: 4 +// Line: 6 class X { - static object o = this; - - static int Main () + static void A () { - return 1; + this = null; } } // CS0026: Keyword `this' is not valid in a static property, static method, or static field initializer -// Line: 6 +// Line: 4 class X { - static void A () + static object o = this; + + static int Main () { - this = null; + return 1; } } /usr/lib/monodoc/sources/cs-errors.zip/CS0027 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0027 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0027 2036-01-31 00:46:20.000000000 +0000 @@ -21,25 +21,6 @@ } - // CS0007: Keyword `this' is not available in the current context -// Line: 14 - -class B -{ - public B (object o) - { - } -} - -class C : B -{ - public C () - : base (this) - { - } -} - - // CS0027: Keyword `this' is not available in the current context // Line: 7 @@ -64,5 +45,24 @@ const object y = this; } + // CS0007: Keyword `this' is not available in the current context +// Line: 14 + +class B +{ + public B (object o) + { + } +} + +class C : B +{ + public C () + : base (this) + { + } +} + + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0028 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0028 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0028 2036-01-31 00:46:20.000000000 +0000 @@ -2,18 +2,6 @@ CS0028 - // CS0028: `T.Main()' has the wrong signature to be an entry point -// Line: 6 -// Compiler options: -warnaserror:28 -warn:4 - -class T { - public static bool Main () - { - return false; - } -} - - // CS0028: `T.Main(int)' has the wrong signature to be an entry point // Line: 8 // Compiler options: -warnaserror -warn:4 @@ -27,6 +15,18 @@ } } + + // CS0028: `T.Main()' has the wrong signature to be an entry point +// Line: 6 +// Compiler options: -warnaserror:28 -warn:4 + +class T { + public static bool Main () + { + return false; + } +} + \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0029 2036-01-31 00:46:20.000000000 +0000 @@ -2,82 +2,105 @@ CS0029 - // CS0029: Cannot implicitly convert type `string' to `MyTypeImplicitOnly?' -// Line: 13 + // CS0029: Cannot implicitly convert type `int' to `(long, bool)' +// Line: 8 -struct MyTypeImplicitOnly +class C { + static void Test () + { + System.ValueTuple<long, bool> arg = 1; + } } + + // CS0029: Cannot implicitly convert type `string' to `int' +// Line: 8 class C { - static void Main () + void Exists (int _) { - MyTypeImplicitOnly? mt = null; - mt = null + mt; + _ = "2"; + } +} + // CS0029: Cannot implicitly convert type `T[]' to `I[]' +// Line: 12 + +interface I +{ +} + +class C +{ + static void Foo<T> (T [] t) where T : I + { + I [] i = t; } } - // CS0029: Cannot implicitly convert type `T2' to `T1' + // CS0029: Cannot implicitly convert type `string' to `int' // Line: 8 -class Test +class A<T> where T : CB, IA { - static void Foo<T1, T2> (T1 t1, T2 t2) + void Foo (T t) { - T1 a = default (T2); + t.Prop = "3"; } } - - // CS0029: Cannot implicitly convert type `string' to `double' -// Line: 11 -using System; +class CB : CA +{ +} -public sealed class BoundAttribute : System.Attribute +class CA { - public double D; + public int Prop { get; set; } } -class C +interface IA { - [Bound (D = "Dude!")] - double d2; + string Prop { get; set; } } - // CS0029: Cannot implicitly convert type `bool' to `int' -// Line : 7 + // CS0029: Cannot implicitly convert type `B [cs0029-26, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null -- *PATH*/cs0029-26.cs]' to `B [CS0029-26-lib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=36f3ae7e947792e3 -- *PATH*/CS0029-26-lib.dll]' +// Line: 16 +// Compiler options: -r:R1=CS0029-26-lib.dll -class T { - static int Main () - { - int a = default(bool); - } +extern alias R1; + +public class B +{ } - - // CS0029: Cannot implicitly convert type `U' to `int' -// Line: 13 -abstract class A<T> +public class C { - public abstract void Foo<U> (U arg) where U : T; + public static void Main () + { + B b1 = null; + R1::B b2 = b1; + } } + + // CS0029: Cannot implicitly convert type `T' to `int*' +// Line: 8 +// Compiler options: -unsafe -class B : A<int> +class T { - public override void Foo<U> (U arg) + static unsafe void Main () { - int i = arg; + int* a = default (T); } } - // CS0029: Cannot implicitly convert type `int' to `(long, bool)' + // CS0029: Cannot implicitly convert type `T2' to `T1' // Line: 8 -class C +class Test { - static void Test () + static void Foo<T1, T2> (T1 t1, T2 t2) { - System.ValueTuple<long, bool> arg = 1; + T1 a = default (T2); } } @@ -86,44 +109,70 @@ // Compiler options: -unsafe class T { - static unsafe int Main () + static unsafe void Main () { - int *a = default(T); + int *a = (T) null; } } - // CS0029: Cannot implicitly convert type `T[]' to `U[]' -// Line: 8 + // CS0029: Cannot implicitly convert type `Bar<long>' to `Foo<int>' +// Line: 15 +class Foo<T> +{ +} -class Test +class Bar<T> : Foo<T> { - static void Main () - { - Foo<int, object> (new int[] { 1 }); - } +} - static U[] Foo<T, U> (T[] arg) where T : U where U : class +class X +{ + static void Main () { - return arg; + Foo<int> foo = new Bar<long> (); } } - // CS0029: Cannot implicitly convert type `string' to `int' -// Line: 11 + // CS0029: Cannot implicitly convert type `System.TypedReference' to `object' +// Line: 10 using System; -using System.Threading.Tasks; -class C +class Test { - public async Task<int> Test () + public static void Main () { - return await Call (); /usr/lib/monodoc/sources/cs-errors.zip/CS0030 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0030 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0030 2036-01-31 00:46:20.000000000 +0000 @@ -2,68 +2,6 @@ CS0030 - // CS0030: Cannot convert type `string' to `char' -// Line: 8 - -public class Blah { - - public static int Main () - { - char ch = (char)"a"; - } -} - - // CS0030: Cannot convert type `T[,]' to `System.Collections.Generic.IEnumerable<T>' -// Line: 10 - -using System.Collections.Generic; - -class C -{ - IEnumerable<T> Foo<T> (T [,] a) - { - return (IEnumerable<T>) a; - } -} - - // CS0030: Cannot convert type `System.Enum' to `int' -// Line: 11 - -using System; - -class MainClass -{ - public static void Main () - { - Enum e = null; - int i = (int) e; - } -} - - // CS0030: Cannot convert type `long' to `System.DayOfWeek?' -// Line: 10 - -using System; - -class C -{ - static void Main () - { - var dow = (DayOfWeek?) long.MaxValue; - } -} - // CS0030: Cannot convert type `bool' to `int' -// Line: 9 - -class X -{ - static void Main () - { - const bool b = true; - int a = (int)(b ? true : false); - } -} - // CS0030: Cannot convert type `S' to `E' // Line: 10 @@ -93,36 +31,32 @@ } } - // CS0030: Cannot convert type `object' to `S' -// Line: 13 -// Compiler options: -langversion:latest + // CS0030: Cannot convert type `Blah' to `float' +// Line: 12 -ref struct S -{ -} +public class Blah { -class X -{ - public static void Foo (object o) - { - var res = (S) o; - } -} - // CS0030: Cannot convert type `T' to `X' -// Line: 8 -class Foo<T> - where T : System.ICloneable -{ - public X Test (T t) + public static int Main () { - return (X) t; + Blah k; + + k = new Blah (); + + float f = (float) k; + } } + + // CS0030: Cannot convert type `bool' to `int' +// Line: 9 class X { static void Main () - { } + { + const bool b = true; + int a = (int)(b ? true : false); + } } // CS0030: Cannot convert type `Position' to `Board.Stone' @@ -158,22 +92,6 @@ - // CS0030: Cannot convert type `string' to `IA' -// Line: 13 - -interface IA -{ -} - -class MainClass -{ - public static void Main () - { - string s = "s"; - IA i = (IA) s; - } -} - // CS0030: Cannot convert type `TestCase.MyEnum' to `TestCase.OSType' // Line: 9 @@ -208,45 +126,97 @@ } } - // CS0030: Cannot convert type `Blah' to `float' -// Line: 12 + // CS0030: Cannot convert type `string' to `char' +// Line: 8 public class Blah { public static int Main () { - Blah k; - - k = new Blah (); - - float f = (float) k; - + char ch = (char)"a"; } } - // CS0030: Cannot convert type `X' to `S' -// Line: 10 + // CS0030: Cannot convert type `object' to `S' +// Line: 13 +// Compiler options: -langversion:latest -struct S { +ref struct S +{ } -class X { +class X +{ + public static void Foo (object o) + { + var res = (S) o; + } +} + // CS0030: Cannot convert type `T2[]' to `T1[]' +// Line: 8 + +class X +{ + static void Foo<T1,T2> (T2[] array) where T1 : class where T2 : struct + { + T1[] a = (T1[])array; + } +} /usr/lib/monodoc/sources/cs-errors.zip/CS0031 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0031 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0031 2036-01-31 00:46:20.000000000 +0000 @@ -2,12 +2,17 @@ CS0031 - // CS0031: Constant value `1.42' cannot be converted to a `int' -// Line: 6 + // CS0031: Constant value `1022' cannot be converted to a `byte' +// Line: 9 -class X +public class Test { - const int val = 1.42f; + public static void Main() + { + unchecked { + byte b = 1024 - 2; + } + } } // CS0031: Constant value `-1' cannot be converted to a `byte' // Line: 9 @@ -26,16 +31,38 @@ { const uint b = -'a'; } - // CS0031: Constant value `-9' 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 { - public static void Main() + const int val = 1.42f; +} + // CS0031: Constant value `200000000000' cannot be converted to a `int' +// Line: 7 +// Compiler options: -unsafe + +public unsafe struct C +{ + private fixed long test_1 [200000000000]; +} + + + // CS0031: Constant value `256' cannot be converted to a `byte' +// Line : 7 + +public class Blah { + + public enum MyEnum : byte { + Foo = 256, + Bar + } + + public static void Main () { - uint b = -9; } -} +} + // CS0031: Constant value `1000M' cannot be converted to a `byte' // Line: 8 @@ -48,18 +75,6 @@ } - // CS0031: Constant value `1022' cannot be converted to a `byte' -// Line: 9 - -public class Test -{ - public static void Main() - { - unchecked { - byte b = 1024 - 2; - } - } -} // CS0031: Constant value `999999999999999' cannot be converted to a `int' // Line: 9 @@ -73,30 +88,15 @@ } - // CS0031: Constant value `256' cannot be converted to a `byte' -// Line : 7 - -public class Blah { - - public enum MyEnum : byte { - Foo = 256, - Bar - } + // CS0031: Constant value `-9' cannot be converted to a `uint' +// Line: 9 - public static void Main () +public class Test +{ + public static void Main() { + uint b = -9; } -} - - // CS0031: Constant value `200000000000' cannot be converted to a `int' -// Line: 7 -// Compiler options: -unsafe - -public unsafe struct C -{ - private fixed long test_1 [200000000000]; -} - - +} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0034 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0034 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0034 2036-01-31 00:46:20.000000000 +0000 @@ -29,28 +29,6 @@ } } - // 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"; - } - - public static void Main () - { - A a = new A (); - object o = a + a; - System.Console.WriteLine (o); - } -} - // CS0034: Operator `+' is ambiguous on operands of type `Y' and `X' // Line: 22 public class Y { @@ -89,6 +67,63 @@ } + // CS0034: Operator `+' is ambiguous on operands of type `null' and `null' +// Line: 8 + +class C +{ + public static void Main () + { + const string s3 = null + null; + } +} + // CS0034: Operator `==' is ambiguous on operands of type `Foo' and `Foo' +// Line: 23 + +public struct Foo +{ + public static implicit operator int? (Foo f) + { + return 1; + } + + public static implicit operator bool? (Foo f) + { + return false; + } +} + +class C +{ + 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"; + } + + public static void Main () + { + A a = new A (); + object o = a + a; + System.Console.WriteLine (o); + } +} + // CS0034: Operator `!=' is ambiguous on operands of type `Program.A' and `Program.B' // Line: 36 @@ -128,40 +163,5 @@ } } - // CS0034: Operator `+' is ambiguous on operands of type `null' and `null' -// Line: 8 - -class C -{ - public static void Main () - { - const string s3 = null + null; - } -} - // CS0034: Operator `==' is ambiguous on operands of type `Foo' and `Foo' -// Line: 23 - -public struct Foo -{ - public static implicit operator int? (Foo f) - { - return 1; - } - - public static implicit operator bool? (Foo f) - { - return false; - } -} - -class C -{ - public static void Main () - { - Foo f; - Foo f2; - var v = f == f2; - } -} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0035 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0035 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0035 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,31 @@ CS0035 + // CS0035: Operator `-' is ambiguous on an operand of type `A' +// Line: 22 + +class A +{ + public static implicit operator float(A x) + { + return 0; + } + + public static implicit operator decimal(A x) + { + return 0; + } +} + +class M +{ + static void Main() + { + A a = new A (); + float f = -a; + } +} + // CS0035: Operator `++' is ambiguous on an operand of type `MyType' // Line: 31 @@ -35,30 +60,5 @@ x++; } } - // CS0035: Operator `-' is ambiguous on an operand of type `A' -// Line: 22 - -class A -{ - public static implicit operator float(A x) - { - return 0; - } - - public static implicit operator decimal(A x) - { - return 0; - } -} - -class M -{ - static void Main() - { - A a = new A (); - float f = -a; - } -} - \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0037 2036-01-31 00:46:20.000000000 +0000 @@ -3,38 +3,14 @@ CS0037 // 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 `S' because it is a value type -// Line: 10 -struct S { - int a; -} +// Line: 9 class X { static void Main () { - S s = (S) null; - } -} - - // CS0037: Cannot convert null to `char' because it is a value type -// Line: 12 - -class C -{ - static void Test () - { - char c = 'c'; - switch (c) - { - case 'a': - goto case null; + int s = 44; + switch (s) { + case null: break; } } } @@ -54,6 +30,30 @@ } } + // CS0037: Cannot convert null to `S' because it is a value type +// Line: 10 +struct S { + int a; +} + +class X { + static void Main () + { + S s = (S) null; + } +} + + // CS0037: Cannot convert null to `char' because it is a value type +// Line: 8 + +class Test +{ + static void Main () + { + char p = null; + } +} + // CS0037: Cannot convert null to `bool' because it is a value type // Line: 19 @@ -81,10 +81,9 @@ class C { - int [,] i = new int [2,null] { { 1 }, { 2 } }; + object [,] i = new int [2,1] { { null }, { 2 } }; } - - + // CS0037: Cannot convert null to `bool' because it is a value type // Line: 13 @@ -100,29 +99,30 @@ [Bound (Dec = null)] double d2; } - // CS0037: Cannot convert null to `int' because it is a value type -// Line: 9 + // CS0037: Cannot convert null to `char' because it is a value type +// Line: 12 -class X { - static void Main () +class C +{ + static void Test () { - int s = 44; - switch (s) { - case null: break; + char c = 'c'; + switch (c) + { + case 'a': + goto case null; } } } - // CS0037: Cannot convert null to `char' because it is a value type -// Line: 8 + // CS0037: Cannot convert null to `int' because it is a value type +// Line: 6 -class Test +class C { - static void Main () - { - char p = null; - } + int [,] i = new int [2,null] { { 1 }, { 2 } }; } + \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0038 2036-01-31 00:46:20.000000000 +0000 @@ -2,45 +2,6 @@ CS0038 - // 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 `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 `X' via nested type `X.Y' // Line: 15 using System; @@ -64,6 +25,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 `Outer' via nested type `Outer.Inner' // Line: 33 @@ -101,6 +82,25 @@ } } + // 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 `B' via nested type `B.C' // Line: 14 /usr/lib/monodoc/sources/cs-errors.zip/CS0050 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0050 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0050 2036-01-31 00:46:20.000000000 +0000 @@ -2,22 +2,6 @@ CS0050 - // CS0050: Inconsistent accessibility: return type `ErrorCS0052' is less accessible than method `Foo.Method()' -// Line: 10 - -using System; - -class ErrorCS0052 { -} - -public class Foo { - public ErrorCS0052 Method () { - Console.WriteLine ("The compile should advice the return type of this method is less accessible than the method."); - } - public static void Main () {} -} - - // CS0050: Inconsistent accessibility: return type `X' is less accessible than method `Foo.Bar()' // Line: 13 @@ -40,5 +24,21 @@ } + // CS0050: Inconsistent accessibility: return type `ErrorCS0052' is less accessible than method `Foo.Method()' +// Line: 10 + +using System; + +class ErrorCS0052 { +} + +public class Foo { + public ErrorCS0052 Method () { + Console.WriteLine ("The compile should advice the return type of this method is less accessible than the method."); + } + public static void Main () {} +} + + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0051 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0051 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0051 2036-01-31 00:46:20.000000000 +0000 @@ -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 `MyClass.X' is less accessible than method `MyClass.method(MyClass.X)' // Line: 12 @@ -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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0052 2036-01-31 00:46:20.000000000 +0000 @@ -17,22 +17,6 @@ public class A { - protected class B {} - - public class C - { - protected class D - { - public B b; - } - } -} - - // CS0052: Inconsistent accessibility: field type `A.B' is less accessible than field `A.C.D.b' -// Line: 12 - -public class A -{ private class B { } public class C @@ -44,6 +28,22 @@ } } + // CS0052: Inconsistent accessibility: field type `A.B' is less accessible than field `A.C.D.b' +// Line: 12 + +public class A +{ + protected class B {} + + public class C + { + protected class D + { + public B b; + } + } +} + // CS0052: Inconsistent accessibility: field type `C' is less accessible than field `PublicClass.member' // Line: 8 /usr/lib/monodoc/sources/cs-errors.zip/CS0053 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0053 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0053 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,22 @@ CS0053 + // CS0053: Inconsistent accessibility: property type `Blah[]' is less accessible than property `A.B' +// Line: 6 + +public class A { + + public Blah [] B { + get { return null; } + } + + static void Main () {} +} + +class Blah { + +} + // CS0053: Inconsistent accessibility: property type `ErrorCS0053' is less accessible than property `Foo.Property' // Line: 11 @@ -41,21 +57,5 @@ } } - // CS0053: Inconsistent accessibility: property type `Blah[]' is less accessible than property `A.B' -// Line: 6 - -public class A { - - public Blah [] B { - get { return null; } - } - - static void Main () {} -} - -class Blah { - -} - \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0060 2036-01-31 00:46:20.000000000 +0000 @@ -2,12 +2,45 @@ CS0060 - // CS0060: Inconsistent accessibility: base class `X' is less accessible than class `Y' -// Line: 6 -class 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> +{ + class Bar + { + } } -public class Y : X { + + // CS0060: Inconsistent accessibility: base class `A<C>.B' is less accessible than class `D' +// Line: 13 + +public class A<T> +{ + public class B {} +} + +internal class C : A<C> +{ +} + +public class D : C.B +{ +} + + // CS0060: Inconsistent accessibility: base class `Foo<Bar.Baz>' is less accessible than class `Bar' +// Line: 7 + +public class Foo<K> { +} + +public class Bar : Foo<Bar.Baz> { + private class Baz { + } } // CS0060: Inconsistent accessibility: base class `B.C.E' is less accessible than class `B.A.D' @@ -30,17 +63,6 @@ } } - // 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 { - } -} - // CS0060: Inconsistent accessibility: base class `A.B.Base' is less accessible than class `A.B.Derived' // Line: 9 @@ -53,20 +75,6 @@ } } - // 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 `Foo<Bar.Baz>' is less accessible than class `Bar' // Line: 7 @@ -74,7 +82,7 @@ } public class Bar : Foo<Bar.Baz> { - private class Baz { + internal class Baz { } } @@ -93,20 +101,12 @@ } } - // CS0060: Inconsistent accessibility: base class `A<C>.B' is less accessible than class `D' -// Line: 13 - -public class A<T> -{ - public class B {} -} - -internal class C : A<C> -{ + // CS0060: Inconsistent accessibility: base class `X' is less accessible than class `Y' +// Line: 6 +class X { } -public class D : C.B -{ +public class Y : X { } // CS0060: Inconsistent accessibility: base class `X.A.D.E' is less accessible than class `X.A.B.F' /usr/lib/monodoc/sources/cs-errors.zip/CS0061 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0061 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0061 2036-01-31 00:46:20.000000000 +0000 @@ -2,29 +2,12 @@ CS0061 - // 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 public class A { - protected interface IDerived : B.IBase + protected internal interface IDerived : B.IBase { } } @@ -41,7 +24,7 @@ public class A { - protected internal interface IDerived : B.IBase + protected interface IDerived : B.IBase { } } @@ -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/CS0065 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0065 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0065 2036-01-31 00:46:20.000000000 +0000 @@ -2,33 +2,33 @@ CS0065 - // CS0065: `EventClass<T>.handler': event property must have both add and remove accessors -// Line: 10 + // CS0065: `EventClass.handler': event property must have both add and remove accessors +// Line : 9 using System; public delegate void EventHandler (object sender, EventArgs e); -public class EventClass<T> -{ - event EventHandler handler { add {} } +public class EventClass { + event EventHandler handler { add; } } +public class MainClass { + public static void Main () {} +} - // CS0065: `EventClass.handler': event property must have both add and remove accessors -// Line : 9 + // CS0065: `EventClass<T>.handler': event property must have both add and remove accessors +// Line: 10 using System; public delegate void EventHandler (object sender, EventArgs e); -public class EventClass { - event EventHandler handler { add; } +public class EventClass<T> +{ + event EventHandler handler { add {} } } -public class MainClass { - public static void Main () {} -} \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0067 2036-01-31 00:46:20.000000000 +0000 @@ -2,16 +2,23 @@ CS0067 - // CS0067: The event `S.EH' is never used -// Line: 9 -// Compiler options: -warnaserror -warn:3 + // CS0067: The event `Foo.OnFoo' is never used +// Line: 12 +// Compiler options: -warnaserror -warn:4 using System; -static class S -{ - public static event EventHandler EH; +class ErrorCS0067 { + public delegate void FooHandler (); } + +class Foo { + private event ErrorCS0067.FooHandler OnFoo; + + public static void Main () { + } +} + // CS0067: The event `EventTestClass.Elapsed' is never used // Line: 8 @@ -29,23 +36,16 @@ event EventHandler Elapsed; } - // CS0067: The event `Foo.OnFoo' is never used -// Line: 12 -// Compiler options: -warnaserror -warn:4 + // CS0067: The event `S.EH' is never used +// Line: 9 +// Compiler options: -warnaserror -warn:3 using System; -class ErrorCS0067 { - public delegate void FooHandler (); -} - -class Foo { - private event ErrorCS0067.FooHandler OnFoo; - - public static void Main () { - } +static class S +{ + public static event EventHandler EH; } - // CS0067: The event `Foo.OnFoo' is never used // Line: 12 /usr/lib/monodoc/sources/cs-errors.zip/CS0071 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0071 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0071 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,22 @@ CS0071 + // CS0071: `ErrorCS0071.IFoo.OnFoo': An explicit interface implementation of an event must use property syntax +// Line: 13 + +using System; + +public delegate void Foo (object source); + +interface IFoo { + event Foo OnFoo; +} + +class ErrorCS0071 : IFoo { + event Foo IFoo.OnFoo; +} + + // CS0071: `Test.IBlah.Foo': An explicit interface implementation of an event must use property syntax // Line: 14 @@ -43,21 +59,5 @@ - // CS0071: `ErrorCS0071.IFoo.OnFoo': An explicit interface implementation of an event must use property syntax -// Line: 13 - -using System; - -public delegate void Foo (object source); - -interface IFoo { - event Foo OnFoo; -} - -class ErrorCS0071 : IFoo { - event Foo IFoo.OnFoo; -} - - \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0079 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,44 @@ CS0079 + // CS0079: The event `C.ev' can only appear on the left hand side of `+=' or `-=' operator +// Line: 14 + +class C +{ + static event System.EventHandler ev + { + add { } + remove { } + } + + static void Main () + { + ev *= null; + } +} + + // CS0079: The event `Foo.BaseFoo.Changed' can only appear on the left hand side of `+=' or `-=' operator +// Line: 16 + +using System; + +namespace Foo +{ + public delegate void VoidHandler (); + + public class BaseFoo + { + public extern event VoidHandler Changed; + + public string Name { + set { + Changed (); + } + } + } +} + // CS0079: The event `Foo.Event2' can only appear on the left hand side of `+=' or `-=' operator // Line: 11 @@ -21,23 +59,6 @@ } } - // CS0079: The event `C.ev' can only appear on the left hand side of `+=' or `-=' operator -// Line: 14 - -class C -{ - static event System.EventHandler ev - { - add { } - remove { } - } - - static void Main () - { - ev *= null; - } -} - // CS0079: The event `ErrorCS0079.OnFoo' can only appear on the left hand side of `+=' or `-=' operator // Line: 19 @@ -80,27 +101,6 @@ public string Name { set { - Changed (); - } - } - } -} - - // CS0079: The event `Foo.BaseFoo.Changed' can only appear on the left hand side of `+=' or `-=' operator -// Line: 16 - -using System; - -namespace Foo -{ - public delegate void VoidHandler (); - - public class BaseFoo - { - public extern event VoidHandler Changed; - - public string Name { - set { Changed (); } } /usr/lib/monodoc/sources/cs-errors.zip/CS0081 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0081 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0081 2036-01-31 00:46:20.000000000 +0000 @@ -3,6 +3,16 @@ CS0081 // 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 class D<string> @@ -20,15 +30,5 @@ { } - // 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0082 2036-01-31 00:46:20.000000000 +0000 @@ -2,68 +2,42 @@ CS0082 - // CS0082: A member `Test.get_Value()' is already reserved -// Line: 7 + // CS0082: A member `Test.set_Item(int, string)' is already reserved +// Line : 6 public class Test { - public string get_Value () { return null; } - public string Value { - get { } + public string this [int i] { + get { return ""; } } + public void set_Item (int i, string s) { } } // CS0082: A member `ISample.set_Item(int, int)' is already reserved // Line: 6 public interface ISample { - void set_Item (int a, int b); int this[int i] { set; } + void set_Item (int a, int b); } - // CS0082: A member `Test.get_Value()' is already reserved -// Line: 6 - -public class Test -{ - public string Value { - set { } - } - public string get_Value () { return null; } -} - - // CS0082: A member `Test.add_XX(Test.MyEvent)' is already reserved -// Line: 12 - -public class Test -{ - public delegate void MyEvent (); - public event MyEvent XX { - add { } - remove { } - } - - public void add_XX (MyEvent e) { return; } -} - - // CS0082: A member `ISample.set_Item(int, int)' is already reserved // Line: 6 public interface ISample { - int this[int i] { set; } void set_Item (int a, int b); + int this[int i] { set; } } - // CS0082: A member `Test.set_Item(int, string)' is already reserved -// Line : 6 + // CS0082: A member `Test.get_Value()' is already reserved +// Line: 6 public class Test { - public string this [int i] { - get { return ""; } + public string Value { + set { } } - public void set_Item (int i, string s) { } + public string get_Value () { return null; } } // CS0082: A member `I.set_Item(int[], params int[])' is already reserved @@ -107,5 +81,31 @@ } } + // 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.add_XX(Test.MyEvent)' is already reserved +// Line: 12 + +public class Test +{ + public delegate void MyEvent (); + public event MyEvent XX { + add { } + remove { } + } + + public void add_XX (MyEvent e) { return; } +} + + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0100 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0100 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0100 2036-01-31 00:46:20.000000000 +0000 @@ -2,27 +2,47 @@ CS0100 - // CS0100: The parameter name `obj' is a duplicate -// Line: 4 + // CS0100: The parameter name `a' is a duplicate +// Line: 6 +// +// Author: +// Alejandro Snchez Acosta <raciel@es.gnu.org> +// +// (C) Alejandro Snchez Acosta +// -abstract class C +public class X { - public abstract int this [object obj, object obj] { - set; + 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 `obj' is a duplicate -// Line: 4 +// Line: 6 -public delegate void D (object obj, object obj); +public abstract class TestClass +{ + public abstract void TestMethod (object obj, object obj); +} // CS0100: The parameter name `obj' is a duplicate // Line: 4 -class C +abstract class C { - public static extern bool operator +(C obj, C obj); + public abstract int this [object obj, object obj] { + set; + } } // CS0100: The parameter name `obj' is a duplicate @@ -33,38 +53,25 @@ public extern C (object obj, object obj); } - // CS0100: The parameter name `obj' is a duplicate + // CS100: The parameter name `obj' is a duplicate // Line: 6 -public abstract class TestClass +abstract class C { - public abstract void TestMethod (object obj, object obj); -} + public abstract int this [object obj, object obj] => 1; +} + // CS0100: The parameter name `obj' is a duplicate +// Line: 4 + +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 +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 static extern bool operator +(C obj, C obj); } - // CS0100: The parameter name `a' is a duplicate // Line: 10 @@ -79,12 +86,5 @@ } } - // CS100: The parameter name `obj' is a duplicate -// Line: 6 - -abstract class C -{ - public abstract int this [object obj, object obj] => 1; -} \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0101 2036-01-31 00:46:20.000000000 +0000 @@ -8,6 +8,14 @@ class Test {} + // CS0101: The namespace `N' already contains a definition for `Test<T>' +// Line: 7 +// Compiler options: CS0101-9-2.cs + +namespace N +{ + class Test<T> {} +} // CS0101: The namespace `Test' already contains a definition for `Foo' // Line: 10 @@ -17,11 +25,30 @@ { } - namespace Foo + namespace Foo.PP { } } + // CS0101: The namespace `AA.VV' already contains a definition for `SomeEnum' +// Line: 10 +using System; + +namespace AA { + namespace VV { + public enum SomeEnum { + Something1, + Something2 + } + + public enum SomeEnum { + Dog, + Fish, + Cat + } + } +} + // CS0101: The namespace `global::' already contains a definition for `Test' // Line: 6 @@ -31,6 +58,20 @@ { } + // CS0101: The namespace `Test' already contains a definition for `Foo' +// Line: 10 + +namespace Test +{ + public class Foo + { + } + + namespace Foo + { + } +} + // CS0101: The namespace `N' already contains a definition for `C' // Line: 13 @@ -58,25 +99,6 @@ { } - // CS0101: The namespace `AA.VV' already contains a definition for `SomeEnum' -// Line: 10 -using System; - -namespace AA { - namespace VV { - public enum SomeEnum { - Something1, - Something2 - } - - public enum SomeEnum { - Dog, - Fish, - Cat - } - } -} - // CS0101: The namespace `global::' already contains a definition for `SomeEnum' // Line: 10 using System; @@ -106,27 +128,5 @@ - // CS0101: The namespace `Test' already contains a definition for `Foo' -// Line: 10 - -namespace Test -{ - public class Foo - { - } - - namespace Foo.PP - { - } -} - - // CS0101: The namespace `N' already contains a definition for `Test<T>' -// Line: 7 -// Compiler options: CS0101-9-2.cs - -namespace N -{ - class Test<T> {} -} \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0102 2036-01-31 00:46:20.000000000 +0000 @@ -2,13 +2,53 @@ CS0102 - // CS0102: The type `SampleClass' already contains a definition for `A' + // CS0102: The type `X<T>' already contains a definition for `T' +// Line: 11 + +class X <T> { + int T; +} + +class W { + static void Main () {} +} + + // CS0102: The type `C' already contains a definition for `Item' +// Line: 7 + +class C +{ + bool this [int i] { get { return false; } } + bool Item (int i) { return false; } +} + + // 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 `op_Implicit' +// Line: 10 + +public class SampleClass { + + static public implicit operator SampleClass (byte value) { + return new SampleClass(); + } - public void A () {} + public bool op_Implicit; +} + // CS0102: The type `SampleClass' already contains a definition for `set_Item' +// Line: 6 + +public class SampleClass { + protected const int set_Item = 3; + const int set_Item = 5; } // CS0102: The type `X' already contains a definition for `False' // Line: 11 @@ -26,6 +66,16 @@ } } } + // 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 `T' already contains a definition for `A' // Line: 6 @@ -34,6 +84,32 @@ public string A (int a) { return "a"; } } + // 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 `SampleClass' already contains a definition for `EE' +// Line: 6 + +public class SampleClass { + public delegate void EE (); + public event EE EE; +} + // 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 `CS0102' already contains a definition for `Clone' // Line: 6 @@ -49,6 +125,22 @@ } } + // CS0102: The type `SampleClass' already contains a definition for `MyEvent' +// Line: 7 + +public class SampleClass { + public delegate void MyEvent (); + + public void MyEvent () {} +} + // CS0102: The type `SampleClass' already contains a definition for `A' +// Line: 7 + +public class SampleClass { + partial class A {} + + public void A () {} +} // CS0102: The type `ErrorClass' already contains a definition for `Blah' // Line: 7 @@ -70,76 +162,6 @@ int A () {} } - // CS0102: The type `SampleClass' already contains a definition for `set_Item' -// Line: 7 - -public class SampleClass { - protected const int set_Item = 3; - public int Item { - set {} - } -} - - // CS0102: The type `SampleClass' already contains a definition for `EE' -// Line: 6 - -public class SampleClass { - public delegate void EE (); - public event EE EE; -} - // CS0102: The type `SampleClass' already contains a definition for `op_Implicit' -// Line: 10 - -public class SampleClass { - - static public implicit operator SampleClass (byte value) { - return new SampleClass(); - } - - public bool op_Implicit; -} - // CS0102: The type `X<T>' already contains a definition for `T' -// Line: 11 - -class X <T> { - int T; -} - -class W { - static void Main () {} -} - - // 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' already contains a definition for `Item' -// Line: 7 - -class C -{ - bool this [int i] { get { return false; } } - bool Item (int i) { return false; } -} - - // CS0102: The type `C<get_Foo>' already contains a definition for `get_Foo' -// Line: 6 - -class C<get_Foo> /usr/lib/monodoc/sources/cs-errors.zip/CS0103 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0103 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0103 2036-01-31 00:46:20.000000000 +0000 @@ -2,21 +2,6 @@ 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; - } -} - // C0103: The name `s' does not exist in the current context // Line: 7 // Compiler options: -langversion:experimental @@ -28,45 +13,73 @@ { } } - // CS0103: The name `i' does not exist in the current context -// Line: 6 + // CS0103: The name `bar' does not exist in the current context +// Line: 8 -class X { - void Y () { - for (; true; ++i) { break; } +public class Test +{ + static void Main () + { + if (false && bar ()) { + } } -} - - - // CS0103: The name `_' does not exist in the current context +} + // CS0103: The name `nameof' does not exist in the current context // Line: 8 -class C +static class C { - void Test () + static void Main () { - _.ToString (); + string s = nameof (nameof); } } - // CS0103: The name `Foo' does not exist in the current context -// Line: 17 + // CS0103: The name `de' does not exist in the current context +// Line: 4 -using static S; +[assembly: System.Reflection.AssemblyCulture(de)] +public class Hello { +} + + // CS0103: The name `count' does not exist in the current context +// Line: 6 -class S +class ClassMain { + public static void Main () { + count++; + } +} + + + // CS0103: The name `b' does not exist in the current context +// Line: 11 + +using System.Linq; + +class C { - public void Foo () + public static void Main () { + var e = from a in "abcd" + join b in "defg" on b equals "g" + select a; } } + + // CS0103: The name `Console' does not exist in the current context +// Line: 10 -class Test + +class C { - public static void Main () + delegate void WithOutParam (string value); + + static void Main() { - Foo (); + WithOutParam o = (s) => Console.WriteLine(); } -} +} + // CS0103: The name `value' does not exist in the current context // Line: 8 // Compiler options: -langversion:experimental @@ -81,25 +94,40 @@ } - // CS0103: The name `List' does not exist in the current context -// Line: 8 + // CS0103: The name `i' does not exist in the current context +// Line: 6 -class X +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 { - public static void Main () + void Test () { - var r = nameof (List<int2>); + i = 0; } -} - // CS0103: The name `Value' does not exist in the current context -// Line: 9 +} + + // CS0103: The name `a' does not exist in the current context +// Line: 11 +using System.Linq; -public class Test +class C { - static void Main () + public static void Main () { - var v = new { Field = Value }; + var e = from a in "abcd" + join b in "defg" on "a" equals a + select a; } } @@ -116,121 +144,93 @@ } } - // CS0103: The name `Console' does not exist in the current context -// Line: 10 + // CS0103: The name `a1' does not exist in the current context +// Line: 11 +using System.Linq; class C { - delegate void WithOutParam (string value); - - static void Main() + public static void Main () { - WithOutParam o = (s) => Console.WriteLine(); + var e = + from a1 in "abcd" + select a1; + + a1 = null; } } - // CS0103: The name `nameof' does not exist in the current context + // CS0103: The name `_' does not exist in the current context /usr/lib/monodoc/sources/cs-errors.zip/CS0104 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0104 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0104 2036-01-31 00:46:20.000000000 +0000 @@ -3,6 +3,53 @@ CS0104 // CS0104: `X' is an ambiguous reference between `A.X' and `B.X' +// Line: 16 +namespace A { + class X { + } +} + +namespace B { + class X { + } +} + +namespace C { + using A; + using B; + class D : X { + + static void Main () {} + } +} + + // CS0104: `XAttribute' is an ambiguous reference between `A.XAttribute' and `B.XAttribute' +// Line: 21 + +using System; + +namespace A +{ + class XAttribute : Attribute { } +} + +namespace B +{ + class XAttribute : Attribute { } +} + +namespace C +{ + using A; + using B; + + [X] + class Test + { + } +} + + // CS0104: `X' is an ambiguous reference between `A.X' and `B.X' // Line: 25 namespace A @@ -101,52 +148,5 @@ } } - // CS0104: `X' is an ambiguous reference between `A.X' and `B.X' -// Line: 16 -namespace A { - class X { - } -} - -namespace B { - class X { - } -} - -namespace C { - using A; - using B; - class D : X { - - static void Main () {} - } -} - - // CS0104: `XAttribute' is an ambiguous reference between `A.XAttribute' and `B.XAttribute' -// Line: 21 - -using System; - -namespace A -{ - class XAttribute : Attribute { } -} - -namespace B -{ - class XAttribute : Attribute { } -} - -namespace C -{ - using A; - using B; - - [X] - class Test - { - } -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0105 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0105 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0105 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,20 @@ CS0105 + // CS0105: The using directive for `N.M' appeared previously in this namespace +// Line: 8 +// Compiler options: -warnaserror -warn:3 + +namespace N +{ + using M; + using N.M; + + namespace M + { + } +} + // CS0105: The using directive for `System' appeared previously in this namespace // Line: 6 // Compiler options: -warnaserror -warn:3 @@ -9,6 +23,12 @@ using System; using global::System; + // CS0105: The using directive for `System.Console' appeared previously in this namespace +// Line: 6 +// Compiler options: -warnaserror -warn:3 + +using static System.Console; +using static System.Console; // CS0105: The using directive for `System' appeared previously in this namespace // Line: 6 // Compiler options: -warnaserror -warn:3 @@ -25,25 +45,5 @@ } } - // CS0105: The using directive for `System.Console' appeared previously in this namespace -// Line: 6 -// Compiler options: -warnaserror -warn:3 - -using static System.Console; -using static System.Console; - // CS0105: The using directive for `N.M' appeared previously in this namespace -// Line: 8 -// Compiler options: -warnaserror -warn:3 - -namespace N -{ - using M; - using N.M; - - namespace M - { - } -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0106 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0106 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0106 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,17 @@ CS0106 + // CS0106: The modifier `sealed' is not valid for this item +// Line: 6 + +struct S +{ + public sealed override int GetHashCode () + { + return 1; + } +} + // CS0106: The modifier `static' is not valid for this item // Line: 6 @@ -10,28 +21,30 @@ public static delegate int Count (); } - // CS0106: The modifier `unsafe' is not valid for this item -// Line: 5 + // CS0106: The modifier `volatile' is not valid for this item +// Line: 8 // Compiler options: -unsafe -unsafe enum E +public unsafe struct S { + volatile fixed char b[8]; } + - // CS0106: The modifier `async' is not valid for this item -// Line: 6 + // CS0106: The modifier `unsafe' is not valid for this item +// Line: 5 +// Compiler options: -unsafe -interface I +unsafe enum E { - async void M (); } - // CS0106: The modifier `readonly' is not valid for this item + // CS0106: The modifier `public' is not valid for this item // Line: 6 -// Compiler option: -langversion:latest -readonly interface I +interface S { + public void Foo (); } // CS0106: The modifier `public' is not valid for this item @@ -57,15 +70,15 @@ } } - // CS0106: The modifier `volatile' is not valid for this item -// Line: 8 -// Compiler options: -unsafe + // CS0106: The modifier `virtual' is not valid for this item +// Line: 7 -public unsafe struct S +class C { - volatile fixed char b[8]; + public int Foo { + virtual set { } + } } - // CS0106: The modifier `abstract' is not valid for this item // Line: 6 @@ -77,33 +90,20 @@ } } - // CS0106: The modifier `sealed' is not valid for this item + // CS0106: The modifier `async' is not valid for this item // Line: 6 -struct S -{ - public sealed override int GetHashCode () - { - return 1; - } -} - - // CS0106: The modifier `virtual' is not valid for this item -// Line: 7 - -class C +interface I { - public int Foo { - virtual set { } - } + 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 -interface S +readonly interface I { - public void Foo (); } /usr/lib/monodoc/sources/cs-errors.zip/CS0108 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0108 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0108 2036-01-31 00:46:20.000000000 +0000 @@ -2,153 +2,81 @@ CS0108 - // CS0108: `Derived.Prop(bool)' hides inherited member `Base.Prop'. Use the new keyword if hiding was intended -// Line: 13 + // CS0108: `Derived.Prop' hides inherited member `Base.Prop'. Use the new keyword if hiding was intended +// Line: 14 // Compiler options: -warnaserror -warn:2 class Base { - public bool Prop = false; + public int Prop { + get { + return 0; + } + } } class Derived : Base { - public void Prop (bool b) {} + public bool Prop = false; } - // 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' hides inherited member `Base.Prop'. Use the new keyword if hiding was intended +// Line: 10 // 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 int Prop { + get { + return 0; + } } } - // CS0108: `Derived.Method()' hides inherited member `Base.Method()'. Use the new keyword if hiding was intended -// Line: 11 + // CS0108: `Derived.F()' hides inherited member `Base.F()'. Use the new keyword if hiding was intended +// Line: // Compiler options: -warnaserror -warn:2 class Base { - public bool Method () { return false; } - public void Method (int a) {} + public void F () {} } class Derived : Base { - public void Method () {} + void F () {} } - // CS0108: `IMutableSequence.this[int]' hides inherited member `ISequence.this[int]'. Use the new keyword if hiding was intended -// Line: 15 -// Compiler options: -warnaserror -warn:2 + // CS0108: `A.B.AnInt' hides inherited member `A.AnInt'. Use the new keyword if hiding was intended +// Line: 11 +// Compiler options: -warnaserror -public interface ISequence +public abstract class A { - object this [int index] - { - get; - } -} + static readonly int AnInt = 2; -public interface IMutableSequence : ISequence -{ - object this [int index] + public class B : A { - get; - set; + static readonly int AnInt = 3; } -} - // CS0108: `Derived.Action<U>' hides inherited member `Base.Action<U>'. Use the new keyword if hiding was intended -// Line: 12 -// Compiler options: -warnaserror - -public abstract class Base -{ - public delegate void Action<U> (U val); -} - -public class Derived : Base -{ - public delegate void Action<U> (U i); } - // CS0108: `B.Adapter' hides inherited member `A.Adapter'. Use the new keyword if hiding was intended + // CS0108: `BaseConcrete.InnerDerived<T>()' hides inherited member `BaseGeneric<string>.InnerDerived'. Use the new keyword if hiding was intended // Line: 14 -// Compiler options: -warnaserror -warn:2 +// Compiler options: -warn:2 -warnaserror -class A +class BaseGeneric<T> { - public abstract class Adapter + public class InnerDerived { } } -class B : A -{ - public int Adapter { get; set; } -} - // CS0108: `Derived.Prop' hides inherited member `Base.Prop'. Use the new keyword if hiding was intended -// Line: 14 -// Compiler options: -warnaserror -warn:2 - -class Base { - public int Prop { - get { - return 0; - } - } -} - -class Derived : Base { - public bool Prop = false; -} - - // CS0108: `IB.Foo(int)' hides inherited member `IA.Foo'. Use the new keyword if hiding was intended -// Line: 13 -// Compiler options: -warnaserror - -interface IA -{ - bool Foo { get; } -} - -interface IB : IA +class BaseConcrete : BaseGeneric<string> { - new void Foo (); - void Foo (int a); -} - - // CS0108: `Libs.MyLib' hides inherited member `Foo.MyLib'. Use the new keyword if hiding was intended -// Line: 18 -// Compiler options: -warnaserror -warn:2 - -using System; -using System.Runtime.InteropServices; - -class Test { - [DllImport (Libs.MyLib)] - private static extern void foo (); - - public static void Main () + public void InnerDerived<T> () { } } - -class Libs : Foo { - internal const string MyLib = "SomeLibrary"; -} -class Foo { - internal const string MyLib = "Foo"; -} // CS0108: `Derived.Prop' hides inherited member `Base.Prop(int)'. Use the new keyword if hiding was intended // Line: 10 @@ -166,63 +94,82 @@ } } - // CS0108: `A.B.AnInt' hides inherited member `A.AnInt'. Use the new keyword if hiding was intended + // CS0108: `Derived.Method()' hides inherited member `Base.Method()'. Use the new keyword if hiding was intended // Line: 11 -// Compiler options: -warnaserror +// Compiler options: -warnaserror -warn:2 /usr/lib/monodoc/sources/cs-errors.zip/CS0109 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0109 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0109 2036-01-31 00:46:20.000000000 +0000 @@ -2,26 +2,44 @@ CS0109 - // CS0109: The member `Derived.Test()' does not hide an inherited member. The new keyword is not required -// Line: 10 + // CS0109: The member `DerivedClass.get_Value()' does not hide an inherited member. The new keyword is not required +// Line: 14 // Compiler options: -warnaserror -warn:4 -class Base { - void Test (bool arg) {} +class BaseClass { + protected virtual int Value { + get { + return 0; + } + set { } + } } -class Derived : Base { - new void Test () {} -} - // CS0109: The member `Outer.Inner' does not hide an inherited member. The new keyword is not required -// Line: 7 +abstract class DerivedClass: BaseClass { + protected new int get_Value () { + return 1; + } +} + + +class ErrorClass: DerivedClass { + protected override int Value { + get { + return 0; + } + set { } + } + + static void Main () {} +} + + + // CS0109: The member `BaseClass.Val' does not hide an inherited member. The new keyword is not required +// Line: 6 // Compiler options: -warnaserror -warn:4 -class Outer -{ - public new class Inner - { - } +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 @@ -51,6 +69,22 @@ new internal Action<U> Action; } + // 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 + +using System.Collections; + +public class Test: ArrayList +{ + 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 @@ -63,74 +97,26 @@ public new bool this [string arg] { set {} } } - // CS0109: The member `BaseClass.Val' does not hide an inherited member. The new keyword is not required -// Line: 6 -// Compiler options: -warnaserror -warn:4 - -class BaseClass { - public new const bool Val = false; -} - // CS0109: The member `BaseClass.Location' does not hide an inherited member. The new keyword is not required -// Line: 6 -// Compiler options: -warnaserror -warn:4 - -class BaseClass { - public new int Location { set { } } -} - // CS0109: The member `DerivedClass.get_Value()' does not hide an inherited member. The new keyword is not required -// Line: 14 + // 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 BaseClass { - protected virtual int Value { - get { - return 0; - } - set { } - } -} - -abstract class DerivedClass: BaseClass { - protected new int get_Value () { - return 1; - } -} - - -class ErrorClass: DerivedClass { - protected override int Value { - get { - return 0; - } - set { } - } - - static void Main () {} +class Base { + void Test (bool arg) {} } - - // CS0109: The member `Test.this[string]' does not hide an inherited member. The new keyword is not required -// Line: 9 +class Derived : Base { + new void Test () {} +} + // CS0109: The member `Outer.Inner' does not hide an inherited member. The new keyword is not required +// Line: 7 // Compiler options: -warnaserror -warn:4 -using System.Collections; - -public class Test: ArrayList +class Outer { - public new string this[string index] + public new class Inner { - set - { - } } -} - - // CS0109: The member `BaseClass.Location' does not hide an inherited member. The new keyword is not required -// Line: 6 -// Compiler options: -warnaserror -warn:4 - -class BaseClass { - public new int Location; } // CS0109: The member `Wrapper.DerivedClass.AnInt' does not hide an inherited member. The new keyword is not required // Line: 18 @@ -153,5 +139,19 @@ } } + // CS0109: The member `BaseClass.Location' does not hide an inherited member. The new keyword is not required +// Line: 6 +// Compiler options: -warnaserror -warn:4 + +class BaseClass { + public new int Location { set { } } +} + // CS0109: The member `BaseClass.Location' does not hide an inherited member. The new keyword is not required +// Line: 6 +// Compiler options: -warnaserror -warn:4 + +class BaseClass { + public new int Location; +} \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0111 2036-01-31 00:46:20.000000000 +0000 @@ -2,37 +2,6 @@ CS0111 - // CS0111: A member `C.I<int>.Prop' is already defined. Rename this member or use different parameter types -// Line: 12 - -interface I<T> -{ - T Prop { get; set; } -} - -class C : I<int> -{ - int I<int>.Prop { get; set; } - int I<int>.Prop { get; set; } -} - - // CS0111: A member `Test.EmptyClass.~EmptyClass()' is already defined. Rename this member or use different parameter types -// Line: 12 - -namespace Test -{ - public class EmptyClass - { - ~EmptyClass () - { - } - - ~EmptyClass () - { - } - } -} - // CS0111: A member `C.this[params int[]]' is already defined. Rename this member or use different parameter types // Line: 6 @@ -42,30 +11,37 @@ bool this [params int[] i] { get { return false; } } } - // CS0111: A member `Blah.I.M<U>(int)' is already defined. Rename this member or use different parameter types -// Line : 12 + // CS0111: A member `C.Foo()' is already defined. Rename this member or use different parameter types +// Line: 11 -public interface I + +public partial class C { - void M<T> (int i); + void Foo () + { + } + + partial void Foo (); + + partial void Foo () + { + } } + + // CS0111: A member `C.Foo<U>(G<U>)' is already defined. Rename this member or use different parameter types +// Line : 14 -public class Blah: I +class G<T> { - void I.M<T> (int i) {} - void I.M<U> (int i) {} } - - // CS0111: A member `C.Method(object)' is already defined. Rename this member or use different parameter types -// Line: 10 -class C +public class C { - void Method (dynamic d) + void Foo<T> (G<T> g) { } - - void Method (object d) + + void Foo<U> (G<U> u) { } } @@ -93,45 +69,60 @@ } } - // CS0111: A member `Blah.I.M()' is already defined. Rename this member or use different parameter types -// Line : 12 + // CS0111: A member `T.T()' is already defined. Rename this member or use different parameter types +// Line : 6 -public interface I -{ - void M (); -} +class T { + T () {} + T () {} -public class Blah: I -{ - void I.M () {} - void I.M () {} + public static void Main () + { + } } - // CS0111: A member `C.Foo<U>(G<U>)' is already defined. Rename this member or use different parameter types -// Line : 14 + // CS0111: A member `T.T()' is already defined. Rename this member or use different parameter types +// Line: 9 -class G<T> -{ +partial class T { + T () {} } -public class C +partial class T { + T () {} +} + + // CS0111: A member `Test.EmptyClass.~EmptyClass()' is already defined. Rename this member or use different parameter types +// Line: 12 + +namespace Test { - void Foo<T> (G<T> g) - { - } - - void Foo<U> (G<U> u) + public class EmptyClass { + ~EmptyClass () + { + } + + ~EmptyClass () + { + } } } - // CS0111: A member `ISample.Blah()' is already defined. Rename this member or use different parameter types -// Line: 6 + // CS0111: A member `Blah.I.M<X>()' is already defined. Rename this member or use different parameter types +// Line : 12 -public interface ISample { - int Blah (); - int Blah (); +public interface I +{ + void M<X> (); } + +public class Blah: I +{ + void I.M<X> () {} + void I.M<X> () {} +} + // CS0111: A member `C.Foo()' is already defined. Rename this member or use different parameter types // Line: 12 @@ -149,6 +140,24 @@ } } + // CS0111: A member `C.Foo<U>(U)' is already defined. Rename this member or use different parameter types +// Line : 12 + +public class C +{ + void Foo (int i) + { + } + + void Foo<T> (T i) + { + } + + void Foo<U> (U i) + { + } +} + /usr/lib/monodoc/sources/cs-errors.zip/CS0115 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0115 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0115 2036-01-31 00:46:20.000000000 +0000 @@ -19,46 +19,6 @@ } } - // CS0115: `X.Bla()' is marked as an override but no suitable method found to override -// Line: 5 - -class X { - public override void Bla () - { - } -} - - // CS0115: `MyTestExtended.GetName()' is marked as an override but no suitable method found to override -// Line: 12 -// Compiler options: -r:CS0534-4-lib.dll - -using System; -public class MyTestExtended : MyTestAbstract -{ - public MyTestExtended() : base() - { - } - - protected override string GetName() { return "foo"; } - public static void Main(string[] args) - { - Console.WriteLine("Calling PrintName"); - MyTestExtended test = new MyTestExtended(); - test.PrintName(); - Console.WriteLine("Out of PrintName"); - } - -} - - // CS0115: `X.this[int]' is marked as an override but no suitable indexer found to override -// Line: 5 - -class X { - public override long this [int i] { - set { } - } -} - // CS0115: `C.P' is marked as an override but no accessible `set' accessor found to override // Line: 11 @@ -77,6 +37,15 @@ set { } } } + // CS0115: `X.Bla()' is marked as an override but no suitable method found to override +// Line: 5 + +class X { + public override void Bla () + { + } +} + // CS0115: `DerivedClass.get_Value()' is marked as an override but no suitable method found to override // Line: 13 @@ -96,6 +65,37 @@ static void Main () {} } + // CS0115: `X.this[int]' is marked as an override but no suitable indexer found to override +// Line: 5 + +class X { + public override long this [int i] { + 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 + +using System; +public class MyTestExtended : MyTestAbstract +{ + public MyTestExtended() : base() + { + } + + protected override string GetName() { return "foo"; } + public static void Main(string[] args) + { + Console.WriteLine("Calling PrintName"); + MyTestExtended test = new MyTestExtended(); + test.PrintName(); + Console.WriteLine("Out of PrintName"); + } + +} + // CS0115: `B.MyMissingSuperclassEvent' is marked as an override but no suitable event found to override // Line: 10 /usr/lib/monodoc/sources/cs-errors.zip/CS0117 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0117 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0117 2036-01-31 00:46:20.000000000 +0000 @@ -2,19 +2,44 @@ CS0117 - // CS0117: `A' does not contain a definition for `CODE' -// Line: 6 + // CS0117: `Color' does not contain a definition for `Transparent' +// Line: -class X +using System; + +struct Color { - public static void Foo (int i, string code = A.CODE) +} + +static class ExtensionMethods +{ + public static Color Transparent (this Color c) { + return new Color (); } } -class A +class MainClass { -} + public static void Main () + { + var c = Color.Transparent (); + } +} + + // CS0117: `System.Console' does not contain a definition for `WriteLINE' +// Line: 10 + +using System; + +public class Test +{ + public static void Main () + { + var x = nameof (Console.WriteLINE); + } +} + // CS0117: `Data' does not contain a definition for `Count' // Line: 15 @@ -47,42 +72,39 @@ { } } - // CS0117: `Color' does not contain a definition for `Transparent' -// Line: - -using System; + // CS0117: `A' does not contain a definition for `CODE' +// Line: 6 -struct Color +class X { + public static void Foo (int i, string code = A.CODE) + { + } } -static class ExtensionMethods +class A { - public static Color Transparent (this Color c) +} + // CS0117: `A' does not contain a definition for `Method' +// Line: 8 + +public class E : A +{ + void Test () { - return new Color (); + base.Method (); } } -class MainClass +static class S { - public static void Main () + public static void Method (this A a) { - var c = Color.Transparent (); } } - - // CS0117: `string' does not contain a definition for `Parse' -// Line: 10 - -using System; -class string_parse +public class A { - public static void Main () - { - string drawBackLabel = string.Parse("absDrawBack"); - } } // CS0117: `System.Runtime.CompilerServices.IndexerNameAttribute' does not contain a definition for `errorarg' // Line: @@ -99,6 +121,18 @@ } } + // CS0117: `string' does not contain a definition for `Parse' +// Line: 10 + +using System; + +class string_parse +{ + public static void Main () + { + string drawBackLabel = string.Parse("absDrawBack"); + } +} // CS0117: `System.Reflection.BindingFlags' does not contain a definition for `Private' // Line: 8 @@ -114,39 +148,5 @@ } } - // CS0117: `System.Console' does not contain a definition for `WriteLINE' -// Line: 10 - -using System; - -public class Test -{ - public static void Main () - { - var x = nameof (Console.WriteLINE); - } -} - - // CS0117: `A' does not contain a definition for `Method' -// Line: 8 - -public class E : A -{ - void Test () - { - base.Method (); - } -} - -static class S -{ - public static void Method (this A a) - { - } -} - -public class A -{ -} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0118 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0118 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0118 2036-01-31 00:46:20.000000000 +0000 @@ -2,75 +2,31 @@ CS0118 - // CS0118: `X.Foo' is a `property' but a `method group' was expected + // CS0118: `Foo<X>' is a `type' but a `variable' was expected // Line: 12 - + +public class Foo<T> +{ +} + class X { - static int Foo { - get { return 1; } - } - static void Main () { - Foo (1); + Foo<X> = new Foo<X> (); } } - // CS0118: `Region.Value' is a `field' but a `type' was expected + // CS0118: `N' is a `namespace' but a `type' was expected // Line: 8 -public sealed class Region -{ - int Value; - - [Value(2)] - public Region() {} -} - - // 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: `System' is a `namespace' but a `type' was expected -// Line: 9 - -public class C +namespace N { - public object Test (object a) - { - return (System)(a); - } } - - // CS0118: `A.s' is a `field' but a `type' was expected -// Line: 11 -class A -{ - public string s; -} - -class X : A +public class C<T> where T : N { - s MyProperty { - get { - return s; - } - } -} - +} // CS0118: `x.a.B' is a `property' but a `type' was expected // Line: 9 @@ -116,36 +72,74 @@ } } - // CS0118: `Martin.Test' is a `namespace' but a `type' was expected -// Line: 15 -using System; -using Foo; + // CS0118: `A.s' is a `field' but a `type' was expected +// Line: 11 -namespace Foo +class A { - public class Test : Attribute - { + public string s; +} + +class X : A +{ + s MyProperty { + get { + return s; + } } } + + // CS0118: `C' is a `type' but a `variable' was expected +// Line: 8 -namespace Martin.Test +class C { - [Test] - public class X + public static void Main () { + int i = (C) +1; } } - // CS0118: `M.N' is a `namespace' but a `variable' was expected -// Line: 10 + // CS0118: `X.s' is a `field' but a `type' was expected +// Line: 6 +class X { + string s; -namespace M.N + s MyProperty { + get { + return s; + } + } +} + + // CS0118: `A.Foo(string)' is a `method group' but a `type' was expected +// Line: 15 + +public class A { - public class Foo + public static void Foo (string Setting) { - public Foo (object value) + } +} + +class Example +{ + public void Main(string[] args) + { + A a = new A.Foo ("test"); + } +} + // 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 () { - N = value; + B c = new B (); } } } @@ -165,70 +159,76 @@ } } - // CS0118: `C' is a `type' but a `variable' was expected -// Line: 8 + // CS0118: `System' is a `namespace' but a `type' was expected +// Line: 9 -class C +public class C { - public static void Main () + public object Test (object a) { - int i = (C) +1; - } -} - - // CS0118: `X.s' is a `field' but a `type' was expected /usr/lib/monodoc/sources/cs-errors.zip/CS0119 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0119 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0119 2036-01-31 00:46:20.000000000 +0000 @@ -2,19 +2,6 @@ CS0119 - // 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 parameter', where a `variable', `value' or `type' was expected // Line: 8 @@ -26,20 +13,23 @@ } } - // CS0119: Expression denotes a `variable', where a `method group' was expected -// Line: 11 + // CS0119: Expression denotes a `type', where a `variable', `value' or `method group' was expected +// Line: 14 using System; -class X +namespace Test { - static void Main () + public delegate void SomeDel (Action a); + + public class TestClass { - Delegate d = null; - Console.WriteLine (d (null, null)); + public void TestMethod () + { + SomeDel (() => { }); + } } -} - +} // CS0119: Expression denotes a `namespace', where a `variable', `value' or `method group' was expected // Line: 8 @@ -50,23 +40,31 @@ System.Collections.Generic (""); } } - // CS0119: Expression denotes a `type', where a `variable', `value' or `method group' was expected -// Line: 14 + // 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 `variable', where a `method group' was expected +// Line: 11 using System; -namespace Test +class X { - public delegate void SomeDel (Action a); - - public class TestClass + static void Main () { - public void TestMethod () - { - SomeDel (() => { }); - } + Delegate d = null; + Console.WriteLine (d (null, null)); } -} +} + // CS0119: Expression denotes a `type', where a `variable' or `value' was expected // Line: 15 @@ -98,19 +96,18 @@ } - // CS0119: Expression denotes a `variable', where a `type' was expected -// Line: 9 + // CS0119: Expression denotes a `variable', where a `type' or `method group' was expected +// Line: 10 -class A +delegate void D (); + +class C { - private string test; - public void f () - { - this.test bad = null; - } - static void Main () {} + public void Foo (int i) + { + D d = new D (i); + } } - // CS0119: Expression denotes a `type parameter', where a `variable', `value' or `type' was expected // Line: 15 @@ -130,16 +127,19 @@ } } - // CS0119: Expression denotes a `method group', where a `variable', `value' or `type' was expected -// Line: 8 + // CS0119: Expression denotes a `variable', where a `type' was expected +// Line: 9 -class C +class A { - static void Main () - { - throw Main; - } + private string test; + public void f () + { + this.test bad = null; + } + static void Main () {} } + // CS0119: Expression denotes a `type', where a `variable', `value' or `method group' was expected // Line: 10 /usr/lib/monodoc/sources/cs-errors.zip/CS0120 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0120 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0120 2036-01-31 00:46:20.000000000 +0000 @@ -2,160 +2,97 @@ CS0120 - // CS0120: An object reference is required to access non-static member `C.Test(string)' -// Line: 8 + // CS0120: An object reference is required to access non-static member `Program.x' +// Line: 6 -class C -{ - static void Test (int i) - { - Test ("a"); - } - - void Test (string s) - { - } +class Program { + int x; + const int y = x; } - // CS0120: An object reference is required to access non-static member `MemRefMonoBug.Int32' -// Line: 11 + // CS0120: An object reference is required to access non-static member `MainClass.Callback()' +// Line: 9 using System; -public class MemRefMonoBug { - private int Int32; // this member has the same name as System.Int32 class - public static void Main () - { - new MemRefMonoBug ().Int32 = 0; // this line causes no problem - Int32 = 0; // mcs crashes in this line - } -} - - // CS0120: An object reference is required to access non-static member `App.Test' -// Line: 15 - -class App +class MainClass : BaseClass { - Test a = new Test (); - - public Test Test - { - get { return a; } - } - - public static void Main (string[] args) + public MainClass (string a, Action callback) + : base (a, () => Callback ()) { - Test.Run (); } -} - -class Test -{ - public void Run () { } -} - - // CS0120: An object reference is required to access non-static member `Derived.Foo()' -// Line: 16 -using System; - -public class Base -{ - public Base (Action a) + private void Callback () { } } -public class Derived : Base +public class BaseClass { - public Derived () - : base (() => Foo ()) + public BaseClass (string a, int b) { } - void Foo () + public BaseClass (string a, Action callback) { } } - // CS0120: An object reference is required to access non-static member `MainClass.Test' -// Line: 20 + // CS0120: An object reference is required to access non-static member `Babble.Protocol.Auth.Account' +// Line: 28 -public class Test +using System; + +namespace Babble.Protocol { - public void Foo () + public class Query { + public Query(Account a) + { + } } -} -public class MainClass -{ - public Test Test + public class Account { - get; - set; } - - public static void Main (string[] args) + + public class Auth { - Test.Foo (); + public Account Account + { + get { return null; } + } + + private class AuthQuery : Query + { + public AuthQuery() : base(Account) + { + } + } } } - // CS0120: An object reference is required to access non-static member `MainClass.Callback()' -// Line: 9 + // CS0120: An object reference is required to access non-static member `B.M()' +// Line: 16 using System; -class MainClass : BaseClass +class A { - public MainClass (string a, Action callback) - : base (a, () => Callback ()) - { - } - - private void Callback () + protected A (Action a) { } } -public class BaseClass +class B : A { - public BaseClass (string a, int b) + public B () + : base (M) { } - - public BaseClass (string a, Action callback) + + void M () { } -} - // CS0120: An object reference is required to access non-static member `Test.Add8(int)' -// Line: 12 - -using System; -using System.Threading; -using System.Reflection; -using System.Reflection.Emit; - -public class Test { - - public Test () : this (Add8(4), 6) { - string hostName = System.Net.Dns.GetHostName (); - Console.WriteLine ("Hostname: " + hostName); - } - - public Test (int i, int j) { - Console.WriteLine ("GOT : " + i + " : " + j); - } - - - public static void Main (String[] args) { - Test t = new Test (); /usr/lib/monodoc/sources/cs-errors.zip/CS0121 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0121 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0121 2036-01-31 00:46:20.000000000 +0000 @@ -2,94 +2,97 @@ CS0121 - // CS0121: The call is ambiguous between the following methods or properties: `A.B.X.Test(this int)' and `A.C.X.Test(this int)' -// Line: 37 - -using System; + // CS0121: The call is ambiguous between the following methods or properties: `A.Foo<int>(int, G<int>)' and `A.Foo<int>(int, object)' +// Line: 18 -namespace A.B +class A { - static class X + static int Foo<T> (T a, G<T> y = null) { - public static int Test (this int o) - { - return 1; - } + return 1; } -} -namespace A.C -{ - static class X + static int Foo<T> (T a, object y = null) { - public static int Test (this int o) - { - return 2; - } + return 2; } -} - -namespace C -{ - using A.B; - using static A.C.X; - class M + public static int Main () { - public static int Main () - { - if (1.Test () != 1) - return 1; + if (A.Foo<int> (99) != 2) + return 1; - return 0; - } + return 0; } -} - // CS0121: The call is ambiguous between the following methods or properties: `V2.operator -(V2, V2)' and `V3.operator -(V3, V3)' -// Line: 45 +} -public struct V3 +class G<U> { - public float x, y, z; +} + + // CS0122: The call is ambiguous between the following methods or properties: `Test.Foo(IIn<string>)' and `Test.Foo(IIn<Test>)' +// Line: 22 - public V3 (float ix, float iy, float iz) { x = ix; y = iy; z = iz; } +interface IIn<in T> +{ +} - static public V3 operator - (V3 lhs, V3 rhs) +class Test +{ + + static void Foo (IIn<string> f) { - return new V3 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z); } -} -public struct V2 -{ - public float x, y; + static void Foo (IIn<Test> f) + { + } - public V2 (float ix, float iy) { x = ix; y = iy; } + public static int Main () + { + IIn<object> test = null; + Foo (test); - public static implicit operator V2 (V3 v) + return 0; + } +} + + // 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) { - return new V2 (v.x, v.y); } - public static implicit operator V3 (V2 v) + static void a (double d, int i) { - return new V3 (v.x, v.y, 0); } - static public V2 operator - (V2 lhs, V2 rhs) + public static void Main () { - return new V2 (lhs.x - rhs.x, lhs.y - rhs.y); + a (0, 0); } -} +} + + // CS0121: The call is ambiguous between the following methods or properties: `C.Foo(byte)' and `C.Foo(int)' +// Line: 18 -internal class Test +class C { - static void Main () + static int Foo (byte b = 9) { - V2 a = new V2 (); - V3 b = new V3 (); - - V2 s = a - b; + return 4; + } + + static int Foo (int i = 8) + { + return 2; + } + + public static void Main () + { + Foo (); } } @@ -119,145 +122,155 @@ } } - // 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: `Program.Foo(System.Func<string,dynamic>)' and `Program.Foo(System.Func<object>)' +// Line: 10 -class X { - static void a (int i, double d) +using System; + +public static class Program +{ + public static void Main () { + Foo (Bar); } - static void a (double d, int i) + public static dynamic Bar (string s1) { + return 1; + } + + public static object Bar () { + return 2; } - public static void Main () + public static void Foo (Func<string, dynamic> input) { - a (0, 0); } -} - - // CS0121: The call is ambiguous between the following methods or properties: `Test.Foo(string, params object[])' and `Test.Foo(string, params int[])' + + public static void Foo (Func<object> input) + { + } +} /usr/lib/monodoc/sources/cs-errors.zip/CS0122 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0122 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0122 2036-01-31 00:46:20.000000000 +0000 @@ -2,99 +2,40 @@ CS0122 - // CS0122: `Test.TestClass.TestClass()' is inaccessible due to its protection level -// Line: 17 + // CS0122: `Test.Foo.IBar' is inaccessible due to its protection level +// Line: 11 -namespace Test +public class Test { - public class TestClass + public class Foo { - private TestClass() : base() - { - } + protected interface IBar {} } - - class Class1 + + private class Bar : Foo.IBar { - static void Main(string[] args) - { - TestClass test = new TestClass(); - } } -} - // CS0122: `X.a.get' is inaccessible due to its protection level -// Line: 16 -public class X { - private int a { - get { - return 1; - } - } -} - -internal class Y : X -{ - int D (X x) - { - if (x.a == 2) - return 0; - return 0; - } -} - - // CS0122: `Test<A>' is inaccessible due to its protection level -// Line: 8 -// Compiler options: -r:CS0122-35-lib.dll - -class X -{ - static void Main () - { - Test<float> test = new Test<float> (); - } + public static void Main () {} } - // CS0122: `Test.foo' is inaccessible due to its protection level -// Line: 10 + // CS0122: `Data.Count' is inaccessible due to its protection level +// Line: 13 -internal class Test -{ - protected const int foo = 0; -} -internal class Rest +class Data { - protected const int foo = Test.foo; - - static void Main () {} + int Count; } - - // CS0122: `A.Foo()' is inaccessible due to its protection level -// Line: 23 -class A +public class Test { - public void Foo (int i) - { - } - - private void Foo () + static void Main () { + var c = new Data { Count = 10 }; } } - -class B : A -{ - public static void Main () - { - } - - void Test () - { - Foo (); - } -} + // CS0122: `MainClass.Nested.Delegate()' is inaccessible due to its protection level // Line: 18 @@ -117,80 +58,51 @@ } - // CS0122: `Test.Foo.Bar' is inaccessible due to its protection level -// Line: 11 + // CS0122: `Test.Method' is inaccessible due to its protection level +// Line: 17 public class Test { - public class Foo - { - private class Bar {} - } - - private class Bar : Foo.Bar + protected void Method () { } - public static void Main () {} -} - - - // CS0122: `Test.Foo.IBar' is inaccessible due to its protection level -// Line: 11 - -public class Test -{ - public class Foo - { - protected interface IBar {} - } - - private class Bar : Foo.IBar + private void Method (int i) { } - - public static void Main () {} } - - // CS0122: `A.prop' is inaccessible due to its protection level -// Line: 19 -// Compiler options: -t:library - -class A +public class C { - int i; + 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 - int prop - { - set { i = value; } - } -} +using System; +using X; -class B : A -{ - void M () - { - prop = 2; - } +class T : Y { + public T(String test, String test1) : base(test) { + } + static void Main () {} } - // CS0122: `Test.SomeAttribute.SomeAttribute()' is inaccessible due to its protection level -// Line: 10 + // CS0122: `Y.Y(string)' is inaccessible due to its protection level +// Line: 12 /usr/lib/monodoc/sources/cs-errors.zip/CS0123 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0123 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0123 2036-01-31 00:46:20.000000000 +0000 @@ -2,63 +2,27 @@ CS0123 - // CS0123: A method or delegate `MainClass.Delegate()' parameters do not match delegate `TestDelegate(bool)' parameters -// Line: 12 - -delegate int TestDelegate(bool b); - -public class MainClass { - public static int Delegate() { - return 0; - } - - public static void Main() { - TestDelegate delegateInstance = new TestDelegate (Delegate); - } -} - - - // CS0123: A method or delegate `MainClass.Delegate()' parameters do not match delegate `TestDelegate(bool)' parameters -// Line: 17 - -delegate IA TestDelegate(bool b); + // CS0123: A method or delegate `Program.method(A)' parameters do not match delegate `D(dynamic)' parameters +// Line: 19 -interface IA {} +delegate object D (dynamic b); -public class MainClass : IA +class A { - static MainClass Delegate() - { - return null; - } - - 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); - -public class MainClass +class Program { - public static int Delegate(bool b) + static string method (A a) { - return 0; + return ""; } - public static void Main() + static void Main () { - TestDelegateA a = new TestDelegateA (Delegate); - TestDelegateB b = new TestDelegateB (a); + var d = new D (method); } } - // CS0123: A method or delegate `C.Button1_Click(params object[])' parameters do not match delegate `EventHandler(params int[])' parameters // Line: 20 @@ -79,18 +43,6 @@ } } - // 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.Method(ref dynamic)' parameters do not match delegate `C.D(dynamic)' parameters // Line: 14 @@ -111,65 +63,70 @@ // CS0123: A method or delegate `object.ToString()' parameters do not match delegate `System.Func<string>()' parameters // Line: 16 -// Compiler options: -langversion:latest using System; -public ref struct S -{ -} - class Test { public static void Main () { - var s = new S (); - Func<string> f = s.ToString; + Func<string> f = default (TypedReference).ToString; } } - // 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 `Test.Foo(int, bool)' parameters do not match delegate `System.Func<int,bool>(int)' parameters +// Line: 15 -class A -{ -} +using System; -class Program +class Test { - static string method (A a) + static bool Foo (int x, bool option = true) { - return ""; + return true; } static void Main () { - var d = new D (method); + Func<int, bool> f = Foo; } } - // CS0123: A method or delegate `X.f1(int, object)' parameters do not match delegate `X.Function(int, int)' parameters -// Line: 13 + // CS0123: A method or delegate `MainClass.Delegate()' parameters do not match delegate `TestDelegate(bool)' parameters +// Line: 12 -using System; +delegate int TestDelegate(bool b); -class X -{ - public delegate bool Function(int arg1, int arg2); +public class MainClass { + public static int Delegate() { + return 0; + } - static void Main () + 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); + +public class MainClass +{ + public static int Delegate(bool b) { - Delegate [] d = new Delegate [] { - new Function (f1), - }; + return 0; } - static bool f1 (int a, object b) + public static void Main() { - return false; + TestDelegateA a = new TestDelegateA (Delegate); + TestDelegateB b = new TestDelegateB (a); } } + // CS0123: A method or delegate `A<T,U>.M(T)' parameters do not match delegate `A<T,U>.D(U)' parameters // Line: 10 @@ -184,23 +141,66 @@ } } - // CS0123: A method or delegate `Test.Foo(int, bool)' parameters do not match delegate `System.Func<int,bool>(int)' parameters /usr/lib/monodoc/sources/cs-errors.zip/CS0126 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0126 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0126 2036-01-31 00:46:20.000000000 +0000 @@ -2,32 +2,6 @@ CS0126 - // CS0126: An object of a type convertible to `int' is required for the return statement -// Line: 15 - -using System.Threading.Tasks; - -class MainClass -{ - public static void Main () - { - Task<C> v = null; - - Task.Run (async () => { - await Task.Yield (); - if (v == null) { - return; - } - - return 1; - }); - } -} - -public class C -{ - string Id { get; set; } -} // CS0126: An object of a type convertible to `string' is required for the return statement // Line: 7 @@ -57,5 +31,31 @@ } } + // CS0126: An object of a type convertible to `int' is required for the return statement +// Line: 15 + +using System.Threading.Tasks; + +class MainClass +{ + public static void Main () + { + Task<C> v = null; + + Task.Run (async () => { + await Task.Yield (); + if (v == null) { + return; + } + + return 1; + }); + } +} + +public class C +{ + string Id { get; set; } +} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0128 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0128 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0128 2036-01-31 00:46:20.000000000 +0000 @@ -16,19 +16,6 @@ } } - // 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 `xx' is already defined in this scope // Line: 9 @@ -41,21 +28,18 @@ } } // CS0128: A local variable named `x' is already defined in this scope -// Line: 9 +// Line: 8 -class X -{ - public static void Main () +class x { + static int y () { - Foo (out int x); - Foo (out int x); - } + int x = 1; + int x = 2; - static void Foo (out int arg) - { - arg = 2; + return x + x; } -} +} + // CS0128: A local variable named `res' is already defined in this scope // Line: 13 @@ -74,5 +58,21 @@ } } + // CS0128: A local variable named `x' is already defined in this scope +// Line: 9 + +class X +{ + public static void Main () + { + Foo (out int x); + Foo (out int x); + } + + static void Foo (out int arg) + { + arg = 2; + } +} \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0131 2036-01-31 00:46:20.000000000 +0000 @@ -18,6 +18,24 @@ } } // CS0131: The left-hand side of an assignment must be a variable, a property or an indexer +// Line: 15 +// Compiler options: -unsafe + +unsafe struct MyStruct +{ + public fixed char Name[32]; +} + +unsafe class MainClass +{ + public static void Main () + { + var str = new MyStruct(); + str.Name = null; + } +} + + // CS0131: The left-hand side of an assignment must be a variable, a property or an indexer // Line: 7 class X { @@ -75,23 +93,5 @@ } } - // CS0131: The left-hand side of an assignment must be a variable, a property or an indexer -// Line: 15 -// Compiler options: -unsafe - -unsafe struct MyStruct -{ - public fixed char Name[32]; -} - -unsafe class MainClass -{ - public static void Main () - { - var str = new MyStruct(); - str.Name = null; - } -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0132 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0132 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0132 2036-01-31 00:46:20.000000000 +0000 @@ -3,17 +3,17 @@ CS0132 // CS0132: `X.X(int)': The static constructor must be parameterless -// Line: 5 +// Line: 4 class X { - static int ii = 55; static X (int x) { } } // CS0132: `X.X(int)': The static constructor must be parameterless -// Line: 4 +// Line: 5 class X { + static int ii = 55; static X (int x) { } /usr/lib/monodoc/sources/cs-errors.zip/CS0133 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0133 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0133 2036-01-31 00:46:20.000000000 +0000 @@ -9,22 +9,19 @@ { void Foo () { - const object o = null ?? ""; + const object o = "" ?? null; } } - // CS0133: The expression being assigned to `c' must be a constant or default value -// Line: 10 + // CS0133: The expression being assigned to `o' must be a constant or default value +// Line: 8 -class C +class X { void Foo () { - int[] array; - int idx; - const int c = array [idx]; + const object o = null ?? ""; } -} - +} // CS0133: The expression being assigned to `x' must be a constant or default value // Line: 7 @@ -35,24 +32,16 @@ } } - // CS0133: The expression being assigned to `o' must be a constant or default value -// Line: 8 + // CS0133: The expression being assigned to `c' must be a constant or default value +// Line: 10 -class X +class C { void Foo () { - const object o = "" ?? null; - } -} - // CS0133: The expression being assigned to `b' must be a constant or default value -// Line: 8 - -class X -{ - static void Main () - { - const int b = true ? 1 : b; + int[] array; + int idx; + const int c = array [idx]; } } @@ -81,5 +70,16 @@ } } + // CS0133: The expression being assigned to `b' must be a constant or default value +// Line: 8 + +class X +{ + static void Main () + { + const int b = true ? 1 : b; + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0134 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0134 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0134 2036-01-31 00:46:20.000000000 +0000 @@ -2,19 +2,12 @@ CS0134 - // CS0134: A constant `C.b' of reference type `object' can only be initialized with null -// Line: 6 - -class C -{ - const object a = null, b = 1; -} - // CS0134: A constant `C.b' of reference type `bool[]' can only be initialized with null + // CS0134: A constant `C.o' of reference type `object' can only be initialized with null // Line: 6 -class C +public class C { - const bool [] b = { true }; + public const object o = "12345"; } // CS0134: A constant `o' of reference type `object' can only be initialized with null @@ -28,12 +21,12 @@ } } - // CS0134: A constant `C.o' of reference type `object' can only be initialized with null + // CS0134: A constant `C.b' of reference type `bool[]' can only be initialized with null // Line: 6 -public class C +class C { - public const object o = "12345"; + const bool [] b = { true }; } // CS0134: A constant `T.i' of reference type `decimal[]' can only be initialized with null @@ -44,5 +37,12 @@ const decimal[] i = new decimal [] { 2m }; } + // CS0134: A constant `C.b' of reference type `object' can only be initialized with null +// Line: 6 + +class C +{ + const object a = null, b = 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0136 2036-01-31 00:46:20.000000000 +0000 @@ -2,45 +2,81 @@ CS0136 - // 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 + // CS0136: A local variable named `i' cannot be declared in this scope because it would give a different meaning to `i', which is already used in a `parent or current' scope to denote something else +// Line: 10 -using System.Linq; +using System; + +class T +{ + public void Foo (int i) + { + Action<int> v = x => { int i = 9; }; + } +} + + // 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 +using System; + +public delegate void Hello (Test test); public class Test { - public static void Main () + public void Whatever () + { } + + static void Main () { - var l = from v in "abcd" select (v => v); + Test t = new Test (); + Hello hello = delegate (Test t) { + t.Whatever (); + }; + 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 -// Line: 11 +// Line: 10 -using System; +internal class Program +{ + public static void Main () + { + object o = null; + if (o is string s) { + int s = 1; + } + } +} + // 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 { - void Test2 (object o) + static void Main () { - if (o is ValueType s) { - if (o is long s) { - Console.WriteLine (s); - } + for (int j = 0; j < 5; j++) { + Fun m = delegate { + int i = j; + return "<<" + i + ">>"; + }; + + int i = j; } } -} - // 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; } } @@ -67,61 +103,66 @@ } } - // 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 -using System; + // 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 -public delegate void Hello (Test test); +using System.Linq; public class Test { - public void Whatever () - { } - - static void RunIt (Test t) + public static void Main () { - Hello hello = delegate (Test test) { - Test t = test; - t.Whatever (); - }; - hello (t); + var l = from v in "abcd" select (v => v); } +} + + // CS0136: A local variable named `v' cannot be declared in this scope because it would give a different meaning to `v', which is already used in a `child' scope to denote something else +// Line: 11 - static void Main () +using System.Linq; + +class C +{ + public static void Main () { - Test t = new Test (); - RunIt (t); + var l = from v in "abcd" select v; + int 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 `parent or current' scope to denote something else -// Line: 14 -using System; - -public delegate void Hello (Test test); + // CS0136: A local variable named `res' cannot be declared in this scope because it would give a different meaning to `res', which is already used in a `child' scope to denote something else +// Line: 15 -public class Test +class C { - public void Whatever () - { } - - static void RunIt (Test t) + public void Foo (int i, int v) { - Hello hello = delegate (Test t) { - t.Whatever (); - }; - hello (t); + switch (i) { + case 1: + if (v > 0) { + int res = 1; + } + break; + case 2: + int res = 2; + break; + } } +} + + // 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 - static void Main () +class X { + public static void Bar (int j, params int [] args) { - Test t = new Test (); - RunIt (t); + 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: 18 +// Line: 17 using System; /usr/lib/monodoc/sources/cs-errors.zip/CS0139 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0139 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0139 2036-01-31 00:46:20.000000000 +0000 @@ -3,13 +3,27 @@ CS0139 // CS0139: No enclosing loop out of which to break or continue +// Line: 9 + +class Foo { + static void Main () + { + try {} + finally { + break; + } + } +} + + + // CS0139: No enclosing loop out of which to break or continue // Line: 8 class Foo { static void Main () { try { - continue; + break; } finally { throw new System.Exception (); } @@ -17,26 +31,27 @@ } // CS0139: No enclosing loop out of which to break or continue -// Line: 9 +// Line: 8 class Foo { static void Main () { - try {} - finally { - break; + try { + continue; + } finally { + throw new System.Exception (); } } } - // 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 (); @@ -68,23 +83,6 @@ } // CS0139: No enclosing loop out of which to break or continue -// Line: 10 -public class Test -{ - public static void Foo (char c) - { - switch (char.GetUnicodeCategory (c)) { - default: - if (c == 'a') - continue; - System.Console.WriteLine (); - break; - } - } -} - - - // CS0139: No enclosing loop out of which to break or continue // Line: 9 class Foo { @@ -92,7 +90,7 @@ { try { } catch { - break; + continue; } finally { throw new System.Exception (); } @@ -100,19 +98,21 @@ } // CS0139: No enclosing loop out of which to break or continue -// Line: 9 - -class Foo { - static void Main () - { - try { - } catch { - continue; - } finally { - throw new System.Exception (); - } - } +// Line: 10 +public class Test +{ + public static void Foo (char c) + { + switch (char.GetUnicodeCategory (c)) { + default: + if (c == 'a') + continue; + System.Console.WriteLine (); + break; + } + } } + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0144 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0144 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0144 2036-01-31 00:46:20.000000000 +0000 @@ -4,6 +4,20 @@ // CS0144: Cannot create an instance of the abstract class or interface `X' // Line: 11 +interface X { + void A (); + +} + +class Demo { + static void Main () + { + object x = new X (); + } +} + + // CS0144: Cannot create an instance of the abstract class or interface `X' +// Line: 11 abstract class X { public abstract void B (); @@ -27,19 +41,5 @@ modelo= new ITest (); } } - // CS0144: Cannot create an instance of the abstract class or interface `X' -// Line: 11 -interface X { - void A (); - -} - -class Demo { - static void Main () - { - object x = new X (); - } -} - \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0146 2036-01-31 00:46:20.000000000 +0000 @@ -2,48 +2,11 @@ CS0146 - // 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 `Baz' and `Foo.Bar' -// Line: 5 - -class Foo : Baz { - public class Bar {} -} -class Baz : Foo.Bar {} - - // 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 class A : A {} - // CS0146: Circular base class dependency involving `B' and `A' -// Line: 7 - -class A : B { -} - -class B : A { -} - // CS0146: Circular base class dependency involving `B<T>' and `A<float>' // Line: 8 @@ -60,6 +23,19 @@ { } } + // 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 `C' and `A' // Line: 4 @@ -73,5 +49,29 @@ { } + // 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 `Baz' and `Foo.Bar' +// Line: 5 + +class Foo : Baz { + public class Bar {} +} +class Baz : Foo.Bar {} + + // CS0146: Circular base class dependency involving `B' and `A' +// Line: 7 + +class A : B { +} + +class B : A { +} + \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0149 2036-01-31 00:46:20.000000000 +0000 @@ -3,19 +3,6 @@ CS0149 // CS0149: Method name expected -// Line: 8 - -delegate void TestDelegate(); - -public class MainClass -{ - public static void Main () - { - TestDelegate delegateInstance = new TestDelegate (); - } -} - - // CS0149: Method name expected // Line: 17 public class Blah { @@ -49,5 +36,18 @@ } } + // CS0149: Method name expected +// Line: 8 + +delegate void TestDelegate(); + +public class MainClass +{ + public static void Main () + { + TestDelegate delegateInstance = new TestDelegate (); + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0150 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0150 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0150 2036-01-31 00:46:20.000000000 +0000 @@ -3,28 +3,32 @@ CS0150 // CS0150: A constant value is expected -// Line : 12 - -using System; +// Line: 8 -public class Blah { - - public static void Main () +public class C +{ + void Test () { - int foo = 6; - - int [] i = new int [foo] { 0, 1, 2, 3, 4, 5 }; + var zCoords = new double[uint.MaxValue] { 0 }; } } // CS0150: A constant value is expected -// Line: 8 +// Line : 14 -public class C +using System; + +public class Blah { - void Test () + static readonly string Test; + + public static void Main () { - var zCoords = new double[uint.MaxValue] { 0 }; + string s = null; + switch (s) { + case Blah.Test: + break; + } } } @@ -44,21 +48,17 @@ } } // CS0150: A constant value is expected -// Line : 14 +// Line : 12 using System; -public class Blah -{ - static readonly string Test; +public class Blah { public static void Main () { - string s = null; - switch (s) { - case Blah.Test: - break; - } + int foo = 6; + + int [] i = new int [foo] { 0, 1, 2, 3, 4, 5 }; } } /usr/lib/monodoc/sources/cs-errors.zip/CS0151 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0151 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0151 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,46 @@ CS0151 + // 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; + } + + static void Main () + { + X? x = null; + switch (x) { + default: + break; + } + } +} + + // CS0151: A switch expression of type `X?' cannot be converted to an integral type, bool, char, string, enum or nullable type +// Line: 19 + +struct X +{ + public static implicit operator int? (X x) + { + return 1; + } + + static void Main () + { + 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: 28 @@ -61,26 +101,6 @@ } } - // CS0151: A switch expression of type `X?' cannot be converted to an integral type, bool, char, string, enum or nullable type -// Line: 19 - -struct X -{ - public static implicit operator int? (X x) - { - return 1; - } - - static void Main () - { - X? x = null; - switch (x) { - default: - break; - } - } -} - // 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 @@ -112,25 +132,5 @@ } } } - // 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; - } - - static void Main () - { - X? x = null; - switch (x) { - default: - break; - } - } -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0152 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0152 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0152 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,20 @@ 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 @@ -42,20 +56,6 @@ } } } - - // 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0154 2036-01-31 00:46:20.000000000 +0000 @@ -2,45 +2,42 @@ CS0154 - // CS0154: The property or indexer `A.name' cannot be used in this context because it lacks the `get' accessor -// Line: 21 + // CS0154: The property or indexer `Test.this[bool]' cannot be used in this context because it lacks the `get' accessor +// Line: 13 -public class A +class Test { - public string name - { - set - { - name = value; - } - } + public int this[bool b] { set {} } } -public class B +class C { public static void Main () { - A a = new A (); - string b = a.name; + int i = new Test()[false]; } } - - // 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. + // CS0154: The property or indexer `BugReport.MyProperty' cannot be used in this context because it lacks the `get' accessor +// Line: 16 -class A { - public int Foo { get { return 1; } } -} +static class BugReport +{ + static float MyProperty { + set { } + } -class B : A { - public new int Foo { set { } } - static void Main () + static void MyExtension (this float val) { - System.Console.WriteLine (new B ().Foo); } -} + + public static void Main () + { + MyProperty.MyExtension (); + } +} + + // CS0154: The property or indexer `A.this[int]' cannot be used in this context because it lacks the `get' accessor // Line: 18 @@ -63,41 +60,44 @@ } - // CS0154: The property or indexer `BugReport.MyProperty' cannot be used in this context because it lacks the `get' accessor -// Line: 16 + // CS0154: The property or indexer `A.name' cannot be used in this context because it lacks the `get' accessor +// Line: 21 -static class BugReport +public class A { - static float MyProperty { - set { } - } - - static void MyExtension (this float val) + public string name { + set + { + name = value; + } } +} +public class B +{ public static void Main () { - MyProperty.MyExtension (); + A a = new A (); + string b = a.name; } } - + - // CS0154: The property or indexer `Test.this[bool]' cannot be used in this context because it lacks the `get' accessor + // 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. -class Test -{ - public int this[bool b] { set {} } +class A { + public int Foo { get { return 1; } } } -class C -{ - public static void Main () +class B : A { + public new int Foo { set { } } + static void Main () { - int i = new Test()[false]; + System.Console.WriteLine (new B ().Foo); } -} - +} \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0155 2036-01-31 00:46:20.000000000 +0000 @@ -3,25 +3,14 @@ CS0155 // CS0155: The type caught or thrown must be derived from System.Exception -// Line: 9 - -class X -{ - public int Test () => throw ""; -} - - // CS0155: The type caught or thrown must be derived from System.Exception -// Line: 9 - -class Test -{ - public static void Main () - { - try {} - catch (int[]) {} - } +// 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 @@ -49,14 +38,25 @@ } // CS0155: The type caught or thrown must be derived from System.Exception -// Line: 7 -class X { - static void Main () - { - int a = 9; - throw a; - } +// Line: 9 + +class X +{ + public int Test () => throw ""; } + // CS0155: The type caught or thrown must be derived from System.Exception +// Line: 9 + +class Test +{ + public static void Main () + { + try {} + catch (int[]) {} + } +} + + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0156 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0156 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0156 2036-01-31 00:46:20.000000000 +0000 @@ -3,7 +3,7 @@ CS0156 // CS0156: A throw statement with no arguments is not allowed outside of a catch clause -// Line: 12 +// Line: 14 using System; @@ -12,16 +12,16 @@ static void Main () { try { - Console.WriteLine ("Test CS0156"); + Console.WriteLine ("TEST"); + } + finally { throw; } - catch { - } } } // CS0156: A throw statement with no arguments is not allowed outside of a catch clause -// Line: 14 +// Line: 12 using System; @@ -30,11 +30,11 @@ static void Main () { try { - Console.WriteLine ("TEST"); - } - finally { + Console.WriteLine ("Test CS0156"); throw; } + catch { + } } } /usr/lib/monodoc/sources/cs-errors.zip/CS0157 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0157 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0157 2036-01-31 00:46:20.000000000 +0000 @@ -3,34 +3,50 @@ CS0157 // CS0157: Control cannot leave the body of a finally clause -// Line: 11 +// Line: 12 class T { static void Main () { - while (true) { + while (true) { try { System.Console.WriteLine ("trying"); } finally { - goto foo; + try { + break; + } + catch {} } - foo : - ; } } } // 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 { static void Main () { - while (true) { + while (true) { try { System.Console.WriteLine ("trying"); } finally { - break; + goto foo; } + foo : + ; } } } @@ -40,42 +56,26 @@ class T { static void Main () { - while (true) { + while (true) { try { System.Console.WriteLine ("trying"); } finally { - continue; + 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: 12 +// Line: 11 class T { static void Main () { - while (true) { + while (true) { try { System.Console.WriteLine ("trying"); } finally { - try { - break; - } - catch {} + continue; } } } /usr/lib/monodoc/sources/cs-errors.zip/CS0158 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0158 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0158 2036-01-31 00:46:20.000000000 +0000 @@ -2,51 +2,6 @@ CS0158 - // CS0158: The label `Foo' shadows another label by the same name in a contained scope -// Line: 17 -using System; - -public delegate void Hello (Test test); - -public class Test -{ - public void Whatever () - { } - - static void RunIt (Test t) - { - Hello hello = delegate (Test test) { - Foo: - Hello hello2 = delegate (Test test2) { - Foo: - test2.Whatever (); - }; - hello2 (test); - }; - hello (t); - } - - static void Main () - { - Test t = new Test (); - RunIt (t); - } -} - - // 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 `LBL4' shadows another label by the same name in a contained scope // Line: 17 @@ -145,6 +100,51 @@ Hello hello2 = delegate (Test test2) { Foo: test2.Whatever (); + }; + hello2 (test); + }; + hello (t); + } + + static void Main () + { + Test t = new Test (); + RunIt (t); + } +} + + // 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; + +public delegate void Hello (Test test); + +public class Test +{ + public void Whatever () + { } + + static void RunIt (Test t) + { + Hello hello = delegate (Test test) { + Foo: + Hello hello2 = delegate (Test test2) { + Foo: + test2.Whatever (); }; hello2 (test); }; /usr/lib/monodoc/sources/cs-errors.zip/CS0159 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0159 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0159 2036-01-31 00:46:20.000000000 +0000 @@ -18,6 +18,24 @@ } // CS0159: The label `a:' could not be found within the scope of the goto statement +// Line: 9 + +public class A +{ + public static void Main () + { + int i = 9; + goto a; + switch (i) { + case 9: + a: + break; + } + } +} + + + // CS0159: The label `a:' could not be found within the scope of the goto statement // Line: 8 class Foo { @@ -32,6 +50,21 @@ } } + // CS0159: The label `case null:' could not be found within the scope of the goto statement +// Line: 1 + +class y { + static void Main () + { + string x = null; + + switch (x){ + case "": goto case null; + } + } +} + + // CS0159: The label `skip:' could not be found within the scope of the goto statement // Line: 9 @@ -46,20 +79,20 @@ } - // CS0159: The label `case null:' could not be found within the scope of the goto statement -// Line: 1 + // CS0159: The label `a:' could not be found within the scope of the goto statement +// Line: 9 -class y { +class Foo { static void Main () { - string x = null; - - switch (x){ - case "": goto case null; + int i = 9; + goto a; + while (i != 9) { + a: + throw new System.Exception ("huh?"); } } } - // CS0159: The label `case 20:' could not be found within the scope of the goto statement // Line: 13 @@ -79,24 +112,6 @@ } - // CS0159: The label `a:' could not be found within the scope of the goto statement -// Line: 9 - -public class A -{ - public static void Main () - { - int i = 9; - goto a; - switch (i) { - case 9: - a: - break; - } - } -} - - // CS0159: The label `default:' could not be found within the scope of the goto statement // Line: 10 @@ -121,20 +136,5 @@ } } - // 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; - while (i != 9) { - a: - throw new System.Exception ("huh?"); - } - } -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0161 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0161 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0161 2036-01-31 00:46:20.000000000 +0000 @@ -2,16 +2,6 @@ CS0161 - // 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 { @@ -27,6 +17,16 @@ } + // 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 /usr/lib/monodoc/sources/cs-errors.zip/CS0162 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0162 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0162 2036-01-31 00:46:20.000000000 +0000 @@ -4,36 +4,17 @@ // CS0162: Unreachable code detected // Line: 10 -// Compiler options: -warnaserror - -class C -{ - void Test (int a) - { - return; - if (a > 0) { - int x = a + 20; - return; - } - } -} - // CS0162: Unreachable code detected -// Line: 9 // Compiler options: -warnaserror -warn:2 -class Error +class C { - void Test () + static int Main () { - if (1 == 0) { - try { - } catch (System.Net.Sockets.SocketException sex) { - int x = (int)sex.SocketErrorCode; - } - } + while (!new bool {}); + return 1; } - -} +} + // CS0162: Unreachable code detected // Line: 12 // Compiler options: -warnaserror -warn:2 @@ -54,49 +35,6 @@ // CS0162: Unreachable code detected -// 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 -warn:2 - -class C -{ - static int Main () - { - while (!new bool {}); - return 1; - } -} - - // CS0162: Unreachable code detected -// Line: 12 -// Compiler options: -warnaserror -warn:2 - -using System; - -class E -{ - public void Method (int i) - { - throw new ArgumentNullException (); - Console.WriteLine ("Once upon a time.."); - } -} - - // CS0162: Unreachable code detected // Line: 18 // Compiler options: -warnaserror -warn:2 @@ -112,9 +50,27 @@ internal void Close() { - if ((_enumFlags & Flags.Removed) != 0) + if ((Flags.Removed & _enumFlags) != (Flags.Removed & _enumFlags)) Console.WriteLine ("error"); } + + static void Main () {} +} + + // 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 @@ -138,23 +94,37 @@ } // CS0162: Unreachable code detected -// Line: 10 -// Compiler options: -warnaserror +// Line: 11 +// Compiler options: -warnaserror -warn:2 -using System; +public class Test +{ + public static void Main () + { + return; -class C + Test testStr; + return; + } +} + + // CS0162: Unreachable code detected +// Line: 11 +// Compiler options: -warnaserror -warn:2 + +class Error { void Test () { - return; - const int a = 0; - if (a > 0) { - int x = a + 20; - return; + switch (10) + { + case 9: + break; } } -} + +} + // CS0162: Unreachable code detected // Line: 12 // Compiler options: -warnaserror @@ -177,87 +147,35 @@ // CS0162: Unreachable code detected -// Line: 11 +// Line: 18 // Compiler options: -warnaserror -warn:2 -public class Test -{ - public static void Main () - { - return; - - Test testStr; - return; - } -} - - // CS0162: Unreachable code detected -// Line: 14 -// Compiler options: -warnaserror - using System; class X { - /usr/lib/monodoc/sources/cs-errors.zip/CS0163 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0163 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0163 2036-01-31 00:46:20.000000000 +0000 @@ -3,19 +3,6 @@ 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; @@ -35,5 +22,18 @@ } } } + // 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0165 2036-01-31 00:46:20.000000000 +0000 @@ -3,131 +3,239 @@ CS0165 // CS0165: Use of unassigned local variable `a' -// Line: 16 +// Line: 9 -class Test +class C { + public static int test4 () + { + int a; + + try { + a = 3; + } catch { + } + + // CS0165 + return a; + } +} + + // CS0165: Use of unassigned local variable `v' +// Line: 19 + +using System; + +class X { - public static bool Foo (out int v) + void Foo (out int value) { - v = 0; - return false; + value = 1; } - static void Main() + public static void Main () { - int a; - bool b = false; - if ((b || Foo (out a)) && b) - return; - else - System.Console.WriteLine (a); + int v; + X[] x = null; + + x?[0].Foo (out v); + Console.WriteLine (v); } } - // CS0165: Use of unassigned local variable `errors' + // CS0165: Use of unassigned local variable `a' // Line: 9 -class T +class C { static void Main () { - dynamic errors; - errors.Call (); + int a; + Foo (out a, a); } -} - + + static void Foo (out int a, int b) + { + a = b; + } +} // CS0165: Use of unassigned local variable `a' -// Line: 16 +// Line: 9 using System; +class Test { + + static void Main () { + Action a = () => a(); + } +} + // CS0165: Use of unassigned local variable `y' +// Line: 12 + +class test +{ + static void Main(string[] args) + { + { + int x = 8; + } + string y; + args[0] = y; // use of unassigned variable y + } +} + + // CS0165: Use of unassigned local variable `s' +// Line: 9 + class Program { - public static void Main () + static void Main () + { + S s; + s.Test (); + } +} + +struct S +{ + public string pp; + + public void Test () + { + } +} + // CS0165: Use of unassigned local variable `a' +// Line: 17 + +class Test +{ + public static bool Foo (out int v) + { + v = 0; + return false; + } + + static void Main() { int a; - string s = ""; + bool b = false; - do { - } while (s != "s" && (a = 4) > 3); + if ((b && Foo (out a)) || b) { + System.Console.WriteLine (a); + } + } +} + // CS0165: Use of unassigned local variable `s' +// Line: 12 +// Compiler options: -r:CS0165-51-lib.dll - Console.WriteLine (a); +using System; + +class C<T> where T : class +{ + public static void Foo () + { + S<T> s; + Console.WriteLine (s); } } - // CS0165: Use of unassigned local variable `fb' + // CS0165: Use of unassigned local variable `foo' // Line: 17 -using System.Collections; +struct Rectangle +{ + internal int x; + public int X { + set { } + } +} -public class EntryPoint +public class Foo { public static void Main () { - ArrayList fields = new ArrayList (); + Rectangle foo; + foo.X = 5; + } +} + + // CS0165: Use of unassigned local variable `fb' +// Line: 15 +using System.Collections; - Field fb; - while (fields.Count > 0) { - fb = (Field) fields[0]; - } +public class EntryPoint { + public static void Main() { /usr/lib/monodoc/sources/cs-errors.zip/CS0168 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0168 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0168 2036-01-31 00:46:20.000000000 +0000 @@ -14,18 +14,6 @@ return null; } } - // CS0168: The variable `p' is declared but never used -// Line: 9 -// Compiler options: -warn:3 -warnaserror - -class Main -{ - public void Method (int i) - { - long p; - } -} - // CS0168: The variable `e' is declared but never used // Line: 10 // Compiler options: -warn:3 -warnaserror @@ -41,5 +29,17 @@ } + // CS0168: The variable `p' is declared but never used +// Line: 9 +// Compiler options: -warn:3 -warnaserror + +class Main +{ + public void Method (int i) + { + long p; + } +} + \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0170 2036-01-31 00:46:20.000000000 +0000 @@ -3,6 +3,26 @@ CS0170 // CS0170: Use of possibly unassigned field `a' +// Line: 17 + +using System; + +public struct S +{ + public Action a; +} + + +public class Test +{ + static void Main () + { + S s; + s.a += delegate { }; + } +} + + // CS0170: Use of possibly unassigned field `a' // Line: 21 namespace CS0170 @@ -27,54 +47,6 @@ } } - // 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 - -public class C -{ - public int v; -} - -public struct S -{ - public int a; - public C c; -} - -public class Test -{ - static void Main () - { - S s; - s.a = 2; - int xx = s.c.v; - } -} - // CS0170: Use of possibly unassigned field `c' // Line: 24 @@ -102,24 +74,28 @@ } } - // CS0170: Use of possibly unassigned field `a' -// Line: 17 + // CS0170: Use of possibly unassigned field `p' +// Line: 21 using System; -public struct S +struct S2 { - public Action a; + public int p; } +struct S +{ + public S2 s2; +} -public class Test +class C { - static void Main () - { + static void Main() + { S s; - s.a += delegate { }; - } + Console.WriteLine (s.s2.p); + } } // CS0170: Use of possibly unassigned field `c' @@ -136,5 +112,29 @@ c = 1; } } + // CS0170: Use of possibly unassigned field `c' +// Line: 21 + +public class C +{ + public int v; +} + +public struct S +{ + public int a; + public C c; +} + +public class Test +{ + static void Main () + { + S s; + s.a = 2; + int xx = s.c.v; + } +} + \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0171 2036-01-31 00:46:20.000000000 +0000 @@ -2,18 +2,6 @@ CS0171 - // CS0171: Field `X.x' must be fully assigned before control leaves the constructor -// Line: -struct X { - public readonly int x; - - X (int a) - { - } - - static void Main () {} -} - // CS0171: Field `Test.v2' must be fully assigned before control leaves the constructor // Line: 28 @@ -37,23 +25,40 @@ } } - // CS0171: Field `S1.s2' must be fully assigned before control leaves the constructor -// Line: 11 - -using System; + // CS0171: Field `S<TKey>.key' must be fully assigned before control leaves the constructor +// Line: 13 -struct S1 -{ - S2 s2; +public struct S<TKey> { + internal TKey key; - public S1 (int arg) + public TKey Key { + get { return key; } + private set { key = value; } + } + + public S (TKey key) { + Key = key; } } + + // CS0171: Field `Test.x' must be fully assigned before control leaves the constructor +// Line: 10 -struct S2 +public struct Test { - int field; + internal int x; + + public Test (int x) + { + X = x; + } + + public int X + { + get { return x; } + set { x = value; } + } } // CS0171: Field `S.value' must be fully assigned before control leaves the constructor @@ -75,40 +80,35 @@ } } - // CS0171: Field `S<TKey>.key' must be fully assigned before control leaves the constructor -// Line: 13 + // CS0171: Field `S1.s2' must be fully assigned before control leaves the constructor +// Line: 11 -public struct S<TKey> { - internal TKey key; +using System; - public TKey Key { - get { return key; } - private set { key = value; } - } - - public S (TKey key) +struct S1 +{ + S2 s2; + + public S1 (int arg) { - Key = key; } } - - // CS0171: Field `Test.x' must be fully assigned before control leaves the constructor -// Line: 10 -public struct Test +struct S2 { - internal int x; + int field; +} + + // 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 `S.ev' must be fully assigned before control leaves the constructor /usr/lib/monodoc/sources/cs-errors.zip/CS0172 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0172 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0172 2036-01-31 00:46:20.000000000 +0000 @@ -2,35 +2,6 @@ CS0172 - // CS0172: Type of conditional expression cannot be determined as `X' and `Y' convert implicitly to each other -// Line: 25 - -class X { - public static implicit operator X (Y y) - { - return null; - } -} - -class Y { - public static implicit operator Y (X x) - { - return null; - } -} - -class Z -{ - static void Main () - { - X x = new X (); - Y y = new Y (); - - object d = (x == x) ? x : y; - } - -} - // CS0172: Type of conditional expression cannot be determined as `ClassA' and `ClassB' convert implicitly to each other // Line: 29 @@ -63,5 +34,34 @@ } } + // CS0172: Type of conditional expression cannot be determined as `X' and `Y' convert implicitly to each other +// Line: 25 + +class X { + public static implicit operator X (Y y) + { + return null; + } +} + +class Y { + public static implicit operator Y (X x) + { + return null; + } +} + +class Z +{ + static void Main () + { + X x = new X (); + Y y = new Y (); + + object d = (x == x) ? x : y; + } + +} + \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0173 2036-01-31 00:46:20.000000000 +0000 @@ -12,16 +12,6 @@ var s = b ? throw null : throw null; } } - // CS0173: Type of conditional expression cannot be determined because there is no implicit conversion between `int' and `null' -// Line: 29 - -public class MainClass { - public static void Main() { - bool result = false; - System.Console.WriteLine (result ? 1 : null); - } -} - // CS0173: Type of conditional expression cannot be determined because there is no implicit conversion between `null' and `null' // Line: 8 @@ -33,6 +23,28 @@ } } + // CS0173: Type of conditional expression cannot be determined because there is no implicit conversion between `dynamic' and `void' +// Line: 19 + +class X +{ + static void Main () + { + dynamic d = null; + dynamic t = true ? d : Main (); + } +} + + // CS0173: Type of conditional expression cannot be determined because there is no implicit conversion between `int' and `null' +// Line: 29 + +public class MainClass { + public static void Main() { + bool result = false; + System.Console.WriteLine (result ? 1 : null); + } +} + // CS0173: Type of conditional expression cannot be determined because there is no implicit conversion between `anonymous method' and `anonymous method' // Line: 11 @@ -47,18 +59,6 @@ } } - // CS0173: Type of conditional expression cannot be determined because there is no implicit conversion between `dynamic' and `void' -// Line: 19 - -class X -{ - static void Main () - { - dynamic d = null; - dynamic t = true ? d : Main (); - } -} - // CS0173: Type of conditional expression cannot be determined because there is no implicit conversion between `null' and `null' // Line: 10 /usr/lib/monodoc/sources/cs-errors.zip/CS0176 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0176 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0176 2036-01-31 00:46:20.000000000 +0000 @@ -2,17 +2,6 @@ CS0176 - // CS0176: Static member `string.Empty' cannot be accessed with an instance reference, qualify it with a type name instead -// Line: 9 - -class X -{ - public static void Main () - { - string y = null; - var x = y?.Empty; - } -} // CS0176: Static member `MyClass.Start(string)' cannot be accessed with an instance reference, qualify it with a type name instead // Line: 10 using System; @@ -33,6 +22,38 @@ } } + // 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; +} + +class T { + 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 { + public static void void_method () + { + } + public void void_method (int i) + { + } +} + +class Y { + void m (X arg) + { + arg.void_method (); + } +} + // CS0176: Static member `X.CONST' cannot be accessed with an instance reference, qualify it with a type name instead // Line: 12 @@ -48,6 +69,36 @@ } } + // 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 `string.Empty' cannot be accessed with an instance reference, qualify it with a type name instead +// Line: 9 + +class X +{ + public static void Main () + { + string y = null; + var x = y?.Empty; + } +} // CS0176: Static member `A.Foo()' cannot be accessed with an instance reference, qualify it with a type name instead // Line: 21 @@ -90,56 +141,5 @@ System.Console.WriteLine (T.X); } } - // 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; -} - -class T { - 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 { - public static void void_method () - { - } - public void void_method (int i) - { - } -} - -class Y { - void m (X arg) - { - arg.void_method (); - } -} - \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0177 2036-01-31 00:46:20.000000000 +0000 @@ -2,67 +2,6 @@ CS0177 - // CS0177: The out parameter `f' must be assigned to before control leaves the current method -// Line: 5 - -class ClassMain { - public static void test2 (int a, out float f) - { - // CS0177 - if (a == 5) - return; - - f = 8.53F; - } -} - - - // CS0177: The out parameter `output' must be assigned to before control leaves the current method -// Line: 8 - -class Test -{ - static bool TryAction<T> (out T output) - { - return false; - } - - static void Main () - { - Test value; - TryAction<Test> (out value); - } -} - - // 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 `o' must be assigned to before control leaves the current method -// Line: 4 -// Compiler options: -langversion:experimental - -class Test(out int o) -{ -} - // CS0177: The out parameter `val' must be assigned to before control leaves the current method // Line: 12 @@ -85,69 +24,44 @@ return true; } } - // CS0177: The out parameter `s' must be assigned to before control leaves the current method -// Line: 17 - -public class C -{ -} + // CS0177: The out parameter `output' must be assigned to before control leaves the current method +// Line: 10 -public struct S +class Test { - public C c; -} + delegate T Creator<T> (); -public class Test -{ - void M (out S s) + static bool TryAction<T> (Creator<T> creator, out T output) where T : struct { - var xx = s.c; + return false; } } // CS0177: The out parameter `a' must be assigned to before control leaves the current method -// Line: 6 +// Line: 21 -class Foo { - static void test39 (out int a) - { - int x_0 = 0; - int ll_1 = 0; - - switch (0) { - default: - switch (x_0) { - default: - if (ll_1 == 0) - break; - else - goto k_1; - } - a = 5; - break; - k_1: - break; - } - } +using System; - static void Main () { int x; test39 (out x); } -} +class OutputParam +{ + public static void Main(string[] args) + { + int a; + Method(out a); + Console.WriteLine(a); + } - - // CS0177: The out parameter `arg' must be assigned to before control leaves the current method -// Line: 12 + public static void Method(out int a) + { + int b; -class C -{ - delegate void D (string s, out int arg); + try { + b = 5; + return; + } catch (Exception) { throw; } - public static void Main () - { - D d = delegate (string s, out int arg) - { - return; - }; - } + a = b; + } } // CS0177: The out parameter `f' must be assigned to before control leaves the current method @@ -170,33 +84,6 @@ } - // CS0177: The out parameter `a' must be assigned to before control leaves the current method -// Line: 21 - -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 `display' must be assigned to before control leaves the current method // Line: 5 @@ -235,6 +122,66 @@ /usr/lib/monodoc/sources/cs-errors.zip/CS0179 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0179 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0179 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,21 @@ CS0179 + // CS0179: `X.extern_method()' cannot declare a body because it is marked extern +// Line: + +class X { + + public extern int extern_method () + { + } + + public static void Main () + { + } +} + + // CS0179: `Bar.Foo.set' cannot declare a body because it is marked extern // Line: 5 @@ -28,20 +43,5 @@ } - // CS0179: `X.extern_method()' cannot declare a body because it is marked extern -// Line: - -class X { - - public extern int extern_method () - { - } - - public static void Main () - { - } -} - - \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0181 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,27 @@ CS0181 + // CS0181: Attribute constructor parameter has type `System.Enum', which is not a valid attribute parameter type +// Line: 18 + +using System; + +enum E +{ + Value +} + +class AAttribute : Attribute +{ + public AAttribute (Enum e) + { + } +} + +[A (E.Value)] +class Test +{ +} // CS0181: Attribute constructor parameter has type `int[][]', which is not a valid attribute parameter type // Line: 13 @@ -35,27 +56,6 @@ [Test (null)] public void Method () {} } - // CS0181: Attribute constructor parameter has type `System.Enum', which is not a valid attribute parameter type -// Line: 18 - -using System; - -enum E -{ - Value -} - -class AAttribute : Attribute -{ - public AAttribute (Enum e) - { - } -} - -[A (E.Value)] -class Test -{ -} // CS0181: Attribute constructor parameter has type `System.Attribute', which is not a valid attribute parameter type // Line: 6 /usr/lib/monodoc/sources/cs-errors.zip/CS0182 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0182 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0182 2036-01-31 00:46:20.000000000 +0000 @@ -3,24 +3,20 @@ CS0182 // CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression -// Line: 4 +// Line: 13 -[A (false ? new object () : null)] -class AAttribute : System.Attribute +using System; + +class MyAttribute : Attribute { - public AAttribute (object value) + public MyAttribute (object s) { } } - - // 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 (); +[My (decimal.MaxValue)] +class X +{ } // CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression @@ -28,23 +24,38 @@ using System; -[AttributeUsage (AttributeTargets.All)] -public class MineAttribute : Attribute { - public MineAttribute (Type [] t) - { - } -} - -[Mine(new Type [(ulong) 3])] -public class Foo +class TestAttribute: Attribute { + public TestAttribute (object o) {} } +public class E +{ + [Test (new int[][] { null })] + public static void Main () + { + System.Reflection.MethodBase.GetCurrentMethod().GetCustomAttributes (true); + } +} + // CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression +// Line: 13 +using System; +class MyAttribute : Attribute { + public MyAttribute (string s) + { + } +} +[My (null as string)] +class X { + static void Main () + { + } +} // CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression // Line: 10 @@ -65,41 +76,30 @@ [AttributeUsage (AttributeTargets.All)] public class MineAttribute : Attribute { - public MineAttribute (Type [] t) + public MineAttribute (object t) { } } -[Mine(new Type [2])] +[Mine(new Type [2,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: 6 - -using System.Reflection; +// Line: 8 -[assembly: AssemblyKeyFile(string.Empty)] - - // CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression -// Line: 4 +using System.Runtime.CompilerServices; -[A (true is bool)] -class AAttribute : System.Attribute +public class C { - public AAttribute (bool b) - { + [IndexerName ("1" + 2)] + public string this [int i] { + set { } } } @@ -108,49 +108,41 @@ using System; -class MyAttribute : Attribute -{ - public MyAttribute (object s) +[AttributeUsage (AttributeTargets.All)] +public class MineAttribute : Attribute { + public MineAttribute (Type [] t) { } } -[My (decimal.MaxValue)] -class X +[Mine(new Type [(ulong) 3])] +public class Foo { } + + + + + + // CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression // Line: 8 -using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; -public class C -{ - [IndexerName ("1" + 2)] - public string this [int i] { - set { } - } +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; +// Line: 6 -class TestAttribute: Attribute -{ - public TestAttribute (object o) {} -} +using System.Reflection; -public class E -{ - [Test (new int[][] { null })] - public static void Main () - { - System.Reflection.MethodBase.GetCurrentMethod().GetCustomAttributes (true); - } -} +[assembly: AssemblyKeyFile(string.Empty)] + // CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression /usr/lib/monodoc/sources/cs-errors.zip/CS0183 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0183 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0183 2036-01-31 00:46:20.000000000 +0000 @@ -2,16 +2,17 @@ CS0183 - // CS0183: The given expression is always of the provided (`int?') type -// Line: 10 + // CS0183: The given expression is always of the provided (`int') type +// Line: // Compiler options: -warnaserror -warn:1 -class X -{ - public void Foo () +class X { + + static void Main () { - int? x = null; - if (x is int?) { + int i = 5; + + if (i is int){ } } } @@ -32,32 +33,34 @@ } } - // CS0183: The given expression is always of the provided (`int') type -// Line: + // CS0183: The given expression is always of the provided (`int?') type +// Line: 10 // Compiler options: -warnaserror -warn:1 -class X { - - static void Main () +class X +{ + public void Foo () { - int i = 5; - - if (i is int){ + int? x = null; + if (x is int?) { } } } - // CS0183: The given expression is always of the provided (`object') type -// Line: 10 -// Compiler options: -warnaserror -warn:1 + // CS0183: The given expression is always of the provided (`U') type +// Line: 14 +// Compiler options: -warnaserror -class X +abstract class A<T> { - public void Foo () + public abstract bool Foo<U> (U arg) where U : T; +} + +class B : A<int> +{ + public override bool Foo<U> (U arg) { - int x = 1; - if (x is object) { - } + return arg is U; } } @@ -74,20 +77,17 @@ } } - // CS0183: The given expression is always of the provided (`U') type -// Line: 14 -// Compiler options: -warnaserror - -abstract class A<T> -{ - public abstract bool Foo<U> (U arg) where U : T; -} + // CS0183: The given expression is always of the provided (`object') type +// Line: 10 +// Compiler options: -warnaserror -warn:1 -class B : A<int> +class X { - public override bool Foo<U> (U arg) + public void Foo () { - return arg is U; + int x = 1; + if (x is object) { + } } } /usr/lib/monodoc/sources/cs-errors.zip/CS0184 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0184 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0184 2036-01-31 00:46:20.000000000 +0000 @@ -2,34 +2,13 @@ CS0184 - // CS0184: The given expression is never of the provided (`byte') type -// Line: 13 -// Compiler options: -warnaserror -warn:1 - -class S {} - -class X -{ - static void Main () - { - const S x = null; - - if (x is byte) { - } - } -} - - // CS0184: The given expression is never of the provided (`int') type -// Line: 10 + // CS0184: The given expression is never of the provided (`string') type +// Line: 7 // Compiler options: -warnaserror -warn:1 -class X -{ - public void Foo<T> () where T : class - { - T t = default (T); - if (t is int) { - } +class A { + static void Main () { + System.Console.WriteLine (null is string); } } @@ -46,52 +25,34 @@ } } - // CS0184: The given expression is never of the provided (`decimal') type -// Line: 7 + // CS0184: The given expression is never of the provided (`Y') type +// Line: 10 // Compiler options: -warnaserror -warn:1 -class A +class Y { - static void Main () - { - System.Console.WriteLine (1 is decimal); - } } - - // CS0184: The given expression is never of the provided (`byte') type -// Line: -// Compiler options: -warnaserror -warn:1 - -class X { - static void Main () +class X +{ + public void Foo () { - int a = 1; - - if (a is byte){ + X x = null; + if (x is Y) { } } } - // 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 (`B') type -// Line: 9 + // CS0184: The given expression is never of the provided (`int') type +// Line: 10 // Compiler options: -warnaserror -warn:1 -class B +class X { - static void Foo () + public void Foo<T> () where T : class { - if (1 is B) { + T t = default (T); + if (t is int) { } } } @@ -112,20 +73,30 @@ } } - // CS0184: The given expression is never of the provided (`Y') type -// Line: 10 + // CS0184: The given expression is never of the provided (`B') type +// Line: 9 // Compiler options: -warnaserror -warn:1 -class Y +class B { + static void Foo () + { + if (1 is B) { + } + } } + + // CS0184: The given expression is never of the provided (`byte') type +// Line: +// Compiler options: -warnaserror -warn:1 -class X -{ - public void Foo () +class X { + + static void Main () { - X x = null; - if (x is Y) { + int a = 1; + + if (a is byte){ } } } @@ -164,5 +135,34 @@ } } + // CS0184: The given expression is never of the provided (`byte') type +// Line: 13 +// Compiler options: -warnaserror -warn:1 + +class S {} + +class X +{ + static void Main () + { + const S x = null; + + if (x is byte) { + } + } +} + + // CS0184: The given expression is never of the provided (`decimal') type +// Line: 7 +// Compiler options: -warnaserror -warn:1 + +class A +{ + static void Main () + { + System.Console.WriteLine (1 is decimal); + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0188 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0188 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0188 2036-01-31 00:46:20.000000000 +0000 @@ -3,20 +3,6 @@ CS0188 // CS0188: The `this' object cannot be used before all of its fields are assigned to -// Line: 6 - -struct Sample { - public Sample(string text) { - Initialize(); - this.text = text; - } - - void Initialize() { - } - - public string text; -} - // CS0188: The `this' object cannot be used before all of its fields are assigned to // Line: 16 struct Foo @@ -36,55 +22,6 @@ } // CS0188: The `this' object cannot be used before all of its fields are assigned to -// Line: 10 - -struct B -{ - public int a; - - public B (int foo) - { - Test (); - } - - public void Test () - { - } -} - // CS0188: The `this' object cannot be used before all of its fields are assigned to -// Line: 8 - -struct Sample -{ - public Sample (int arg) - { - 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 - -struct Foo -{ - public int bar; - public int baz; - - public int Bar { - get { return bar; } - } - - public Foo (int baz) - { - this.baz = baz; - bar = Bar - 1; - } -} - - // CS0188: The `this' object cannot be used before all of its fields are assigned to // Line: 8 struct Sample @@ -132,6 +69,20 @@ } } // CS0188: The `this' object cannot be used before all of its fields are assigned to +// Line: 8 + +struct Sample +{ + public Sample (int arg) + { + 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: 10 public struct Test @@ -150,5 +101,54 @@ } } + // CS0188: The `this' object cannot be used before all of its fields are assigned to +// Line: 6 + +struct Sample { + public Sample(string text) { + Initialize(); + this.text = text; + } + + void Initialize() { + } + + public string text; +} + // CS0188: The `this' object cannot be used before all of its fields are assigned to +// Line: 16 + +struct Foo +{ + public int bar; + public int baz; + + public int Bar { + get { return bar; } + } + + public Foo (int baz) + { + this.baz = baz; + bar = Bar - 1; + } +} + + // CS0188: The `this' object cannot be used before all of its fields are assigned to +// Line: 10 + +struct B +{ + public int a; + + public B (int foo) + { + Test (); + } + + public void Test () + { + } +} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0193 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0193 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0193 2036-01-31 00:46:20.000000000 +0000 @@ -3,29 +3,29 @@ CS0193 // CS0193: The * or -> operator must be applied to a pointer -// Line: 10 +// Line: 9 // Compiler options: -unsafe -class C -{ - unsafe static void Foo (object o) +unsafe class X { + static void Main () { - bool x = false; - if (o is bool ? *x : null) { - } + int a = 0; + if (*a == 0) + return; } } // CS0193: The * or -> operator must be applied to a pointer -// Line: 9 +// Line: 10 // Compiler options: -unsafe -unsafe class X { - static void Main () +class C +{ + unsafe static void Foo (object o) { - int a = 0; - if (*a == 0) - return; + bool x = false; + if (o is bool ? *x : null) { + } } } /usr/lib/monodoc/sources/cs-errors.zip/CS0200 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0200 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0200 2036-01-31 00:46:20.000000000 +0000 @@ -2,36 +2,6 @@ CS0200 - // CS0200: Property or indexer `X.P' cannot be assigned to (it is read-only) -// Line: 13 - -class X { - static int P { - get { - return 1; - } - } - - static int Main () - { - P = 10; - return 1; - } -} - - // CS0200: Property or indexer `C.S' cannot be assigned to (it is read-only) -// Line: 10 - -class C -{ - public static int S { get; } - - public C () - { - S = 3; - } -} - // CS0200: Property or indexer `A.Counter' cannot be assigned to (it is read-only) // Line: 9 @@ -65,6 +35,23 @@ Type = typeof (string); } } + // CS0200: Property or indexer `X.P' cannot be assigned to (it is read-only) +// Line: 13 + +class X { + static int P { + get { + return 1; + } + } + + static int Main () + { + P = 10; + return 1; + } +} + // CS0200: Property or indexer `C.P' cannot be assigned to (it is read-only) // Line: 10 @@ -93,6 +80,19 @@ base.X = 1; } } + // CS0200: Property or indexer `C.S' cannot be assigned to (it is read-only) +// Line: 10 + +class C +{ + public static int S { get; } + + public C () + { + S = 3; + } +} + // CS0200: Property or indexer `X.this[int]' cannot be assigned to (it is read-only) // Line: 14 /usr/lib/monodoc/sources/cs-errors.zip/CS0201 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0201 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0201 2036-01-31 00:46:20.000000000 +0000 @@ -3,14 +3,37 @@ CS0201 // CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement -// Line: 9 +// Line: 7 -public class X +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: 10 + +using System.Linq; + +class C { public static void Main () { - return; - 1+1; + from s in "string" select s; } } // CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement @@ -28,25 +51,19 @@ // CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement -// Line: 10 - -using System.Linq; +// Line: 13 -class C +class C<T> { + static T Test () + { + return default (T); + } + public static void Main () { - from s in "string" select s; + Test ().Foo; } -} - // 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 @@ -64,29 +81,29 @@ } // 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; + +public class X +{ + public static void Main () + { + 2 * 3; + } } // CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement // Line: 9 -class D +public class X { - void Foo () + public static void Main () { - System.Threading.Tasks.TaskFactory m = null; - m.StartNew (() => delegate { }); + return; + 1+1; } -} - +} // CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement // Line: 8 @@ -101,45 +118,28 @@ // CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement -// Line: 10 - -using System; - -class X -{ - public static void Main () - { - new Func<int> (() => 0); - } -} - // CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement -// Line: 13 +// Line: 9 -class C<T> +class D { - static T Test () - { - return default (T); - } - - public static void Main () + void Foo () { - Test ().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 +// Line: 10 using System; -public class X +class X { public static void Main () { - 2 * 3; + new Func<int> (() => 0); } -} - +} \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0202 2036-01-31 00:46:20.000000000 +0000 @@ -2,25 +2,6 @@ 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 @@ -45,5 +26,24 @@ } } + // 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0205 2036-01-31 00:46:20.000000000 +0000 @@ -2,19 +2,39 @@ CS0205 - // CS0205: Cannot call an abstract base member `A.Foobar.get' -// Line: 22 + // CS0205: Cannot call an abstract base member `A.Foobar()' +// Line: 21 using System; public abstract class A { - public abstract int Foobar { get; } + public abstract void Foobar (); } public class B: A { - public override int Foobar { + public override void Foobar () + { + base.Foobar (); + } + + static void Main () + { + B b = new B (); + b.Foobar (); + } +} + + // CS0205: Cannot call an abstract base member `A.Foobar.get' +// Line: 18 +// Compiler options: -r:CS0205-3-lib.dll + +using System; + +public class B: A1 +{ + protected override int Foobar { get { return base.Foobar; } @@ -47,29 +67,32 @@ } - // CS0205: Cannot call an abstract base member `A.Foobar()' -// Line: 21 + // CS0205: Cannot call an abstract base member `A.Foobar.get' +// Line: 22 using System; public abstract class A { - public abstract void Foobar (); + public abstract int Foobar { get; } } public class B: A { - public override void Foobar () - { - base.Foobar (); - } + public override int Foobar { + get { + return base.Foobar; + } + } - static void Main () - { - B b = new B (); - b.Foobar (); - } + static void Main () + { + B b = new B (); + if (b.Foobar == 1) { + } + } } + // CS0205: Cannot call an abstract base member `A.OnUpdate' // Line: 17 @@ -113,28 +136,5 @@ } } - // CS0205: Cannot call an abstract base member `A.Foobar.get' -// Line: 18 -// Compiler options: -r:CS0205-3-lib.dll - -using System; - -public class B: A1 -{ - protected override int Foobar { - get { - return base.Foobar; - } - } - - static void Main () - { - B b = new B (); - if (b.Foobar == 1) { - } - } -} - - \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0206 2036-01-31 00:46:20.000000000 +0000 @@ -3,17 +3,25 @@ CS0206 // CS0206: A property, indexer or dynamic member access may not be passed as `ref' or `out' parameter -// Line: 10 +// Line: 16 -class X +using System; + +public class Test { - static int P { get; set; } + public static void WriteOutData (out dynamic d) + { + d = 5.0; + } - static void Main () + public static void Main (string[] args) { - ref int rl = ref 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: 22 @@ -43,26 +51,6 @@ // CS0206: A property, indexer or dynamic member access may not be passed as `ref' or `out' parameter -// Line: 16 - -using System; - -public class Test -{ - public static void WriteOutData (out dynamic d) - { - d = 5.0; - } - - public static void Main (string[] args) - { - 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: 15 class X { @@ -97,5 +85,17 @@ } } + // CS0206: A property, indexer or dynamic member access may not be passed as `ref' or `out' parameter +// Line: 10 + +class X +{ + static int P { get; set; } + + static void Main () + { + ref int rl = ref 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0208 2036-01-31 00:46:20.000000000 +0000 @@ -2,89 +2,104 @@ CS0208 - // 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 `CS208.Foo' +// Line: 20 // Compiler options: -unsafe -using System.Runtime.InteropServices; - -[StructLayout(LayoutKind.Sequential)] -internal unsafe struct _Port { - [MarshalAs(UnmanagedType.ByValTStr, SizeConst=128)] char[] port; -} +namespace CS208 +{ + public class Foo + { + } -unsafe class d { - static void Main () + public class Bar { - _Port * port = null; + unsafe static void Main () + { + Foo f = new Foo (); + Foo *s = &f; + } } } - // 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 `object' +// Line: 11 +// Compiler options: -unsafe -public class Splay<T> +using System; +using System.Runtime.InteropServices; + +class C { - unsafe private struct Node - { - private Node * parent; - private T data; - } + [DllImport ("xml2")] + unsafe static extern object* valuePop (IntPtr context); + public static void Main () + { + } } - - // CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type `Foo.P' -// Line: 18 -// 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 unsafe class Foo +class X { - public class P - { - public P* GetEnumerator () - { - return null; - } - } - - public static void Main () - { - P o = new P (); - foreach (P p in o) - { - } - } + 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 `Foo' -// Line: 11 + // 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 unsafe partial struct Foo +namespace CS208 { -} + public class Foo + { + public int Add (int a, int b) + { + return a + b; + } + } -public unsafe partial struct Foo -{ - public Foo *foo; - string x; + public class Bar + { + unsafe static void Main () + { + Foo f = new Foo (); + void *s = &f; + } + } } + + // CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type `X' +// Line: 8 +// Compiler options: -unsafe +unsafe struct X { + string a; + static void Main () { + X* y; + } +} - // CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type `foo' -// Line: 11 + // CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type `_Port' +// Line: 16 // Compiler options: -unsafe -struct foo { - public delegate void bar (int x); - public bar barf; +using System.Runtime.InteropServices; + +[StructLayout(LayoutKind.Sequential)] +internal unsafe struct _Port { + [MarshalAs(UnmanagedType.ByValTStr, SizeConst=128)] char[] port; } -unsafe class t { - static void Main () { - foo *f = null; +unsafe class d { + static void Main () + { + _Port * port = null; } } @@ -109,6 +124,24 @@ } } + // CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type `S' +// Line: 9 +// Compiler options: /unsafe + +unsafe public class C +{ + S* i; +} + +public struct S +{ + AC ac; +} + +abstract class AC +{ +} + // 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 @@ -123,18 +156,6 @@ } - // CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type `X' -// Line: 8 -// Compiler options: -unsafe - -unsafe struct X { - string a; - static void Main () { - X* y; /usr/lib/monodoc/sources/cs-errors.zip/CS0210 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0210 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0210 2036-01-31 00:46:20.000000000 +0000 @@ -3,25 +3,6 @@ CS0210 // CS0210: You must provide an initializer in a fixed or using statement declaration -// Line: 14 - -using System; - -public class C : IDisposable -{ - public void Dispose () - { - } - - static void Main () - { - using (C a = new C (), b) { - } - } -} - - - // CS0210: You must provide an initializer in a fixed or using statement declaration // Line: 7 // Compiler options: -unsafe @@ -46,5 +27,24 @@ } + // CS0210: You must provide an initializer in a fixed or using statement declaration +// Line: 14 + +using System; + +public class C : IDisposable +{ + public void Dispose () + { + } + + static void Main () + { + using (C a = new C (), b) { + } + } +} + + \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0212 2036-01-31 00:46:20.000000000 +0000 @@ -3,6 +3,27 @@ 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 @@ -24,27 +45,6 @@ } } - // 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: 17 // Compiler options: -unsafe /usr/lib/monodoc/sources/cs-errors.zip/CS0214 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0214 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0214 2036-01-31 00:46:20.000000000 +0000 @@ -3,68 +3,37 @@ CS0214 // CS0214: Pointers and fixed size buffers may only be used in an unsafe context -// Line: 12 +// Line: 8 // Compiler options: -unsafe -using System; - 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: 17 -// Compiler options: -unsafe - -public unsafe delegate void Bar (int* x); - -class X -{ - public X (Bar bar) - { } - - unsafe static void Test (int* b) - { } + public void a () + { + void *p; + } - static void Main () - { - 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* A { set { } } +class C +{ + int*[] data = new int*[16]; - void Foo () + unsafe C () { - A = null; } - - static void Main () {} } // CS0214: Pointers and fixed size buffers may only be used in an unsafe context -// Line: 8 +// Line: 6 // Compiler options: -unsafe class X { - public void a () - { - void *p; - } - - static void Main () {} + void *a; } // CS214: Pointers and fixed size buffers may only be used in an unsafe context @@ -92,41 +61,73 @@ } // 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* A { set { } } + + void Foo () + { + A = null; + } + + static void Main () {} } // CS0214: Pointers and fixed size buffers may only be used in an unsafe context -// Line: 11 +// Line: 13 // Compiler options: -unsafe -public class C +class C { - unsafe int* i; + public static unsafe void Write (params int*[] args) + { + } public static void Main () { - var v = new C().i; + Write (); } } // CS0214: Pointers and fixed size buffers may only be used in an unsafe context -// Line: 6 +// Line: 13 // Compiler options: -unsafe -class Test -{ - public void Main () - { - byte* arr = stackalloc byte [4]; - } +struct X { + static unsafe void *a () + { + return null; + } + + static void Main () + { + a (); + } + } + + // CS0214: Pointers and fixed size buffers may only be used in an unsafe context +// Line: 16 +// Compiler options: -unsafe + +using System; +public class Driver +{ + public static unsafe byte* Frob + { + get { return (byte *) 0; } + } + + public static void Main () + { + IntPtr q = (IntPtr) Frob; + } +} // CS0214: Pointers and fixed size buffers may only be used in an unsafe context // Line: 9 @@ -141,33 +142,38 @@ } // CS0214: Pointers and fixed size buffers may only be used in an unsafe context -// Line: 7 +// Line: 17 // Compiler options: -unsafe -class C +public unsafe delegate void Bar (int* x); + +class X { - int*[] data = new int*[16]; - - unsafe C () + public X (Bar bar) + { } + + unsafe static void Test (int* b) + { } + + static void Main () { + X x = new X (Test); } /usr/lib/monodoc/sources/cs-errors.zip/CS0216 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0216 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0216 2036-01-31 00:46:20.000000000 +0000 @@ -16,6 +16,23 @@ } } + // CS0216: The operator `Test.operator ==(Test, bool)' requires a matching operator `!=' to also be defined +// Line: 11 + +public abstract class Test +{ + public static bool operator == (Test lhs, bool rhs) + { + return false; + } + + public static bool operator != (Test lhs, IDoNotExist rhs) + { + return !(lhs == rhs); + } +} + + // CS0216: The operator `X.operator <(X, int)' requires a matching operator `>' to also be defined // Line: 5 @@ -31,19 +48,18 @@ // CS0216: The operator `Test.operator ==(Test, bool)' requires a matching operator `!=' to also be defined -// Line: 11 +// Line: 10 -public abstract class Test +partial class Test +{ +} + +partial class Test { public static bool operator == (Test lhs, bool rhs) { return false; } - - public static bool operator != (Test lhs, IDoNotExist rhs) - { - return !(lhs == rhs); - } } @@ -85,21 +101,5 @@ } } - // CS0216: The operator `Test.operator ==(Test, bool)' requires a matching operator `!=' to also be defined -// Line: 10 - -partial class Test -{ -} - -partial class Test -{ - public static bool operator == (Test lhs, bool rhs) - { - return false; - } -} - - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0217 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0217 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0217 2036-01-31 00:46:20.000000000 +0000 @@ -2,33 +2,6 @@ CS0217 - // CS0217: A user-defined operator `UserOperatorClass.operator &(UserOperatorClass, UserOperatorClass)' must have each parameter type and return type of the same type in order to be applicable as a short circuit operator -// Line: 22 - -public class UserOperatorClass -{ - public static bool operator & (UserOperatorClass u1, UserOperatorClass u2) { - return true; - } - - public static bool operator true (UserOperatorClass u) { - return true; - } - - public static bool operator false (UserOperatorClass u) { - return false; - } - - public static void Main () { - - UserOperatorClass x = new UserOperatorClass(); - UserOperatorClass y = new UserOperatorClass(); - UserOperatorClass z = x && y; - } -} - - - // CS0217: A user-defined operator `UserOperatorClass.operator &(UserOperatorClass, bool)' must have each parameter type and return type of the same type in order to be applicable as a short circuit operator // Line: 25 @@ -58,6 +31,33 @@ } + + // CS0217: A user-defined operator `UserOperatorClass.operator &(UserOperatorClass, UserOperatorClass)' must have each parameter type and return type of the same type in order to be applicable as a short circuit operator +// Line: 22 + +public class UserOperatorClass +{ + public static bool operator & (UserOperatorClass u1, UserOperatorClass u2) { + return true; + } + + public static bool operator true (UserOperatorClass u) { + return true; + } + + public static bool operator false (UserOperatorClass u) { + return false; + } + + public static void Main () { + + UserOperatorClass x = new UserOperatorClass(); + UserOperatorClass y = new UserOperatorClass(); + UserOperatorClass z = x && y; + } +} + + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0219 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0219 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0219 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,34 @@ CS0219 + // CS0219: The constant `C' is never used +// Line: 9 +// Compiler options: -warn:3 -warnaserror + +class C +{ + public static void Main () + { + const int C = 1; + } +} + // CS0219: The variable `e' is assigned but its value is never used +// Line: 12 +// Compiler options: -warn:3 -warnaserror + +using System; +public class ConsoleStub +{ + public static void Main() + { + try { + } catch (Exception e) { + e = null; + } + } +} + + // CS0219: The variable `p' is assigned but its value is never used // Line: 9 // Compiler options: -warn:3 -warnaserror @@ -25,23 +53,6 @@ int n\U00000065xt = 0; } } - // CS0219: The variable `i' is assigned but its value is never used -// Line: 14 -// Compiler options: -warn:3 -warnaserror - -using System.Collections.Generic; - -class C -{ - IEnumerable<int> Test () - { - try { - yield return 1; - } finally { - int i = 100; - } - } -} // CS0219: The variable `o' is assigned but its value is never used // Line: 10 // Compiler options: -warn:3 -warnaserror @@ -57,34 +68,6 @@ } } - // CS0219: The variable `e' is assigned but its value is never used -// Line: 12 -// Compiler options: -warn:3 -warnaserror - -using System; -public class ConsoleStub -{ - public static void Main() - { - try { - } catch (Exception e) { - e = null; - } - } -} - - - // CS0219: The constant `C' is never used -// Line: 9 -// Compiler options: -warn:3 -warnaserror - -class C -{ - public static void Main () - { - const int C = 1; - } -} // CS0219: The variable `o' is assigned but its value is never used // Line: 10 // Compiler options: -warn:3 -warnaserror @@ -103,5 +86,22 @@ } } + // CS0219: The variable `i' is assigned but its value is never used +// Line: 14 +// Compiler options: -warn:3 -warnaserror + +using System.Collections.Generic; + +class C +{ + IEnumerable<int> Test () + { + try { + yield return 1; + } finally { + int i = 100; + } + } +} \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0220 2036-01-31 00:46:20.000000000 +0000 @@ -5,23 +5,10 @@ // CS0220: The operation overflows at compile time in checked mode // Line: 7 -enum E1 : byte -{ - A = 2 -} - -enum E2 : ulong -{ - A = ulong.MaxValue - 1, - B = E1.A * E2.A -} - - // CS0220: The operation overflows at compile time in checked mode -// Line: 7 - public class MainClass { static void Main () { - int a = -int.MinValue; + const long a = long.MaxValue; + long b = 2 * a; } } @@ -30,14 +17,16 @@ // 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; - } +enum E1 : byte +{ + A = 2 } - +enum E2 : ulong +{ + A = ulong.MaxValue - 1, + B = E1.A * E2.A +} // CS0220: The operation overflows at compile time in checked mode // Line: 10 @@ -51,5 +40,16 @@ var i = arr[long.MaxValue]; } } + // CS0220: The operation overflows at compile time in checked mode +// Line: 7 + +public class MainClass { + static void Main () { + int a = -int.MinValue; + } +} + + + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0221 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0221 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0221 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,48 @@ CS0221 + // CS0221: Constant value `-200' cannot be converted to a `byte' (use `unchecked' syntax to override) +// Line: 6 + +enum AA : byte { a, b = 200 } + +public class C +{ + public static void Main () + { + const int b = AA.a - AA.b; + } +} + + // CS0221: Constant value `-91' cannot be converted to a `E' (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); + } +} + + // CS0221: Constant value `-1' cannot be converted to a `char' (use `unchecked' syntax to override) +// Line: 10 + +class C +{ + static void Main () + { + unchecked { + checked { + const char c = (char) -1; + } + } + } +} + // CS0221: Constant value `256' cannot be converted to a `byte' (use `unchecked' syntax to override) // Line: 13 @@ -18,59 +60,63 @@ } } - // CS0221: Constant value `3.402823E+38' cannot be converted to a `ulong' (use `unchecked' syntax to override) + // CS0221: Constant value `Infinity' cannot be converted to a `uint' (use `unchecked' syntax to override) // Line: 6 class X { static void Main () { - const float d = float.MaxValue; - ulong b = (ulong) d; + System.Console.WriteLine ((uint)double.PositiveInfinity); } } - // CS0221: Constant value `NaN' cannot be converted to a `int' (use `unchecked' syntax to override) + // CS0221: Constant value `3.402823E+38' cannot be converted to a `ulong' (use `unchecked' syntax to override) // Line: 6 class X { static void Main () { - System.Console.WriteLine ((int)double.NaN); + const float d = float.MaxValue; + ulong b = (ulong) d; } } - // CS0221: Constant value `-10.1' cannot be converted to a `byte' (use `unchecked' syntax to override) -// Line: 6 + // 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 () { - byte d = (byte)-10.1d; + E error = (E)(-9); + System.Console.WriteLine (error); } } - // CS0221: Constant value `-200' cannot be converted to a `byte' (use `unchecked' syntax to override) -// Line: 6 - -enum AA : byte { a, b = 200 } + // CS0221: Constant value `4294967295' cannot be converted to a `int' (use `unchecked' syntax to override) +// Line: 5 -public class C -{ - public static void Main () +class X { + int a = (int) 0xffffffff; + + static void Main () { - const int b = AA.a - AA.b; + } } - // CS0221: Constant value `-1' cannot be converted to a `char' (use `unchecked' syntax to override) -// Line: 10 + // CS0221: Constant value `-1' cannot be converted to a `ushort' (use `unchecked' syntax to override) +// Line: 11 class C { + delegate void D (); + static void Main () { - unchecked { - checked { - const char c = (char) -1; - } - } + D d = unchecked (delegate { + const ushort s = (ushort) -1; + }); } } @@ -89,39 +135,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 `-1' cannot be converted to a `byte' (use `unchecked' syntax to override) -// Line: 11 - -using System; - -public class My3Attribute : Attribute -{ - public My3Attribute (byte b) {} -} - -[My3((byte)-1)] -public class Test { } - // CS0221: Constant value `Infinity' cannot be converted to a `uint' (use `unchecked' syntax to override) -// Line: 6 - -class X { - static void Main () { - System.Console.WriteLine ((uint)double.PositiveInfinity); - } -} - // CS0221: Constant value `-Infinity' cannot be converted to a `ushort' (use `unchecked' syntax to override) // Line: 6 @@ -131,55 +144,42 @@ } } - // CS0221: Constant value `NaN' cannot be converted to a `char' (use `unchecked' syntax to override) + // CS0221: Constant value `NaN' cannot be converted to a `int' (use `unchecked' syntax to override) // Line: 6 class X { static void Main () { - System.Console.WriteLine ((char)float.NaN); + System.Console.WriteLine ((int)double.NaN); } } - // CS0221: Constant value `-1' cannot be converted to a `ushort' (use `unchecked' syntax to override) + // CS0221: Constant value `-1' cannot be converted to a `byte' (use `unchecked' syntax to override) // Line: 11 -class C -{ - delegate void D (); /usr/lib/monodoc/sources/cs-errors.zip/CS0229 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0229 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0229 2036-01-31 00:46:20.000000000 +0000 @@ -2,18 +2,34 @@ CS0229 - // CS0229: Ambiguity between `TestLib.FOO' and `TestLib.FOO' -// Line: 9 -// Compiler options: -r:CS0229-3-lib.dll + // CS0229: Ambiguity between `A.N' and `B.N' +// Line: 26 -public class Test +using static A; +using static B; + +class A { - public static void Main() - { - System.Console.WriteLine(TestLib.FOO); - } + public class N + { + public static void Foo () + { + } + } } - + +class B +{ + public static int N; +} + +class Test +{ + public static void Main () + { + N.Foo (); + } +} // CS0229: Ambiguity between `IList.Test' and `ICounter.Test' // Line: 26 @@ -42,6 +58,18 @@ t.Test += null; } } + // CS0229: Ambiguity between `TestLib.FOO()' and `TestLib.FOO' +// Line: 9 +// Compiler options: -r:CS0229-4-lib.dll + +public class Test +{ + public static void Main() + { + System.Console.WriteLine(TestLib.FOO); + } +} + // CS0229: Ambiguity between `Program.I1.Id' and `Program.I2.Id' // Line: 18 @@ -63,9 +91,9 @@ } } - // CS0229: Ambiguity between `TestLib.FOO()' and `TestLib.FOO' + // CS0229: Ambiguity between `TestLib.FOO' and `TestLib.FOO' // Line: 9 -// Compiler options: -r:CS0229-4-lib.dll +// Compiler options: -r:CS0229-3-lib.dll public class Test { @@ -101,33 +129,5 @@ t.Count = 9; } } - // CS0229: Ambiguity between `A.N' and `B.N' -// Line: 26 - -using static A; -using static B; - -class A -{ - public class N - { - public static void Foo () - { - } - } -} - -class B -{ - public static int N; -} - -class Test -{ - public static void Main () - { - N.Foo (); - } -} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0231 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0231 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0231 2036-01-31 00:46:20.000000000 +0000 @@ -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 (int i, params object[] o, bool b) {} } @@ -22,7 +22,7 @@ // Line: 5 class Test { - void Foo (int i, params object[] o, bool b) {} + void Foo (int i, params object[] o, params bool[] b) {} } /usr/lib/monodoc/sources/cs-errors.zip/CS0234 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0234 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0234 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,24 @@ CS0234 + // CS0234: The type or namespace name `Type' does not exist in the namespace `MonoTests.System'. Are you missing an assembly reference? +// Line: 12 + +using System; + +namespace MonoTests.System +{ + public class Test + { + public static void Main () + { + Console.WriteLine (System.Type.GetType ("System.String")); + } + } +} + + + // CS0234: The type or namespace name `Linq' does not exist in the namespace `System'. Are you missing `System.Core' assembly reference? // Line: 5 // Compiler options: -noconfig @@ -26,23 +44,5 @@ } } - // CS0234: The type or namespace name `Type' does not exist in the namespace `MonoTests.System'. Are you missing an assembly reference? -// Line: 12 - -using System; - -namespace MonoTests.System -{ - public class Test - { - public static void Main () - { - Console.WriteLine (System.Type.GetType ("System.String")); - } - } -} - - - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0236 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0236 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0236 2036-01-31 00:46:20.000000000 +0000 @@ -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 `C1.CC' // Line: 11 @@ -15,20 +33,6 @@ 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 (); - -class Test -{ - object o1; - - Foo h = delegate () { - o1 = null; - }; -} - - // CS0236: A field initializer cannot reference the nonstatic field, method, or property `C.stuff' // Line: 6 @@ -41,21 +45,17 @@ } } - // 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 `Test.o1' +// Line: 8 +delegate void Foo (); -class X +class Test { - int Foo { - get { - return 9; - } - } - - long Bar = Foo; + object o1; - static void Main () { - } + Foo h = delegate () { + o1 = null; + }; } /usr/lib/monodoc/sources/cs-errors.zip/CS0242 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0242 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0242 2036-01-31 00:46:20.000000000 +0000 @@ -3,6 +3,19 @@ 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 @@ -18,18 +31,5 @@ } - // 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0243 2036-01-31 00:46:20.000000000 +0000 @@ -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/CS0246 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0246 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0246 2036-01-31 00:46:20.000000000 +0000 @@ -2,21 +2,35 @@ CS0246 - // CS0246: The type or namespace name `Uri' could not be found. Are you missing `System' using directive? -// Line: 7 + // CS0246: The type or namespace name `B' could not be found. Are you missing an assembly reference? +// Line: 4 -public interface IFoo +class A : B { - string Heh { get; } // significant to cause the error. - Uri Hoge (); // note that it cannot be resolved here. + public class B + { } } + + // CS0246: The type or namespace name `B' could not be found. Are you missing an assembly reference? +// Line: 4 -public class Foo : IFoo +class A : C<B> { - string IFoo.Heh { get { return null; } } - public System.Uri Hoge () { return null; } + 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; + +namespace Cks.Runtime.Data +{ + public class BigInteger {} +} // CS0246: The type or namespace name `InvalidTypeBlah' could not be found. Are you missing an assembly reference? // Line: 17 @@ -50,79 +64,179 @@ - // CS0246: The type or namespace name `Reflection' could not be found. Are you missing an assembly reference? -// Line: 7 -using System; + // CS0246: The type or namespace name `NotExist' could not be found. Are you missing an assembly reference? +// Line: 6 -class foo { - static void Main(string[] args ) { - Reflection.ConstructorInfo ci; - } -} +class X +{ + NotExist<float> foo; +} + + // CS0246: The type or namespace name `ErrorType' could not be found. Are you missing an assembly reference? +// Line: 5 +interface A { + event ErrorType Test; +} - // CS0246: The type or namespace name `Etp' could not be found. Are you missing an assembly reference? + // CS0246: The type or namespace name `var' could not be found. Are you missing an assembly reference? // Line: 8 -class Test +class C { - static void Main () + public static void Main () { - try { - } catch (Etp e) { - } catch { - } + var[] v = new int[0]; } } - // 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 `M' could not be found. Are you missing an assembly reference? +// Line: 11 + +interface I<T> +{ + void G<TT> (); +} class C { - static void Foo<T> (int i) + void I<M>.G<M> () { } - + public static void Main () { - Foo<TypeMe> (1); } } + // CS0246: The type or namespace name `wrong' could not be found. Are you missing an assembly reference? +// Line: 15 + +using System; + +class X +{ + static void Foo<T> () where T : class + { + } + + public static void Main () + { + Action a = () => { + Foo<wrong> (); + }; + } +} + // CS0246: The type or namespace name `DllImport' could not be found. Are you missing an assembly reference? +// Line: 16 + +using System; +using System.Threading; + +public class Test +{ + static void Main () + { + var tr = new Thread (delegate () { + Foo (); + }); + } + + [DllImport ("Foo")] + extern static void Foo (); +} + // CS0246: The type or namespace name `ErrorType' could not be found. Are you missing an assembly reference? -// Line: 5 +// Line: 4 -interface A { - event ErrorType Test; +public delegate ErrorType Delegate (); + + // CS0246: The type or namespace name `class' could not be found. Are you missing an assembly reference? +// Line: 9 +using System; + +public class classAttribute : Attribute +{ +} + +[@class] +class Foo +{ } - // CS0246: The type or namespace name `aa' could not be found. Are you missing an assembly reference? -// Line: 6 + // CS0246: The type or namespace name `Uri' could not be found. Are you missing `System' using directive? +// Line: 7 -public class Test +public interface IFoo { - [aa.bb] int dummy; + string Heh { get; } // significant to cause the error. + Uri Hoge (); // note that it cannot be resolved here. +} + +public class Foo : IFoo +{ + string IFoo.Heh { get { return null; } } + public System.Uri Hoge () { return null; } } - // CS0246: The type or namespace name `NotExist' could not be found. Are you missing an assembly reference? + // CS0246: The type or namespace name `TypeMe' could not be found. Are you missing an assembly reference? +// Line: 12 + +class C +{ + static void Foo<T> (int i) /usr/lib/monodoc/sources/cs-errors.zip/CS0253 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0253 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0253 2036-01-31 00:46:20.000000000 +0000 @@ -31,6 +31,19 @@ } } + // 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 @@ -46,18 +59,5 @@ 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); - } -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0260 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0260 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0260 2036-01-31 00:46:20.000000000 +0000 @@ -3,11 +3,11 @@ CS0260 // 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 @@ -17,11 +17,11 @@ } // 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 /usr/lib/monodoc/sources/cs-errors.zip/CS0264 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0264 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0264 2036-01-31 00:46:20.000000000 +0000 @@ -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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0266 2036-01-31 00:46:20.000000000 +0000 @@ -2,113 +2,78 @@ CS0266 - // CS0266: Cannot implicitly convert type `long' to `int'. An explicit conversion exists (are you missing a cast?) -// Line : 6 - -class X { - const uint a = 2; - const int b = -a; -} - - - - - // 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 `int' to `X.E'. An explicit conversion exists (are you missing a cast?) +// Line : 9 class X { - static void Main (string [] install) + enum E { } + + static void Main () { - ArrayList order = new ArrayList (); - Hashtable states = new Hashtable (); - - try { - if (install != null){ - foreach (string inst in order){ - Hashtable state = states [inst]; - } - } - } catch { - } + const E e = 1 - 1; } } - - // 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 `Bar' to `X'. An explicit conversion exists (are you missing a cast?) -// Line: 18 + // CS0266: Cannot implicitly convert type `int?' to `E'. An explicit conversion exists (are you missing a cast?) +// Line: 13 -public enum Bar +enum E { - ABar } -class X +class C { - public static explicit operator X (Bar the_bar) - { - return new X(); - } - public static void Main () { - X x = Bar.ABar; + E e = 0; + E r = e - null; } } - // CS0266: Cannot implicitly convert type `E?' to `E'. An explicit conversion exists (are you missing a cast?) -// Line: 13 + // CS0266: Cannot implicitly convert type `S?' to `A'. An explicit conversion exists (are you missing a cast?) +// Line: 9 -enum E +struct S { + public static int Main () + { + S? s = null; + A a = s; + return 0; + } } -class C +struct A { - public static void Main () + public static implicit operator A (S x) { - E e = 0; - E r = e + null; + return new A (); } } - // CS0266: Cannot implicitly convert type `E2' to `E1'. An explicit conversion exists (are you missing a cast?) -// Line : 8 - -enum E1 { A } -enum E2 { A } + // CS0266: Cannot implicitly convert type `long' to `int'. An explicit conversion exists (are you missing a cast?) +// Line : 6 class X { - const E1 e = ~E2.A; + const uint a = 2; + const int b = -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 -using System; -using System.Collections.Generic; -public class Test + + // CS0266: Cannot implicitly convert type `bool?' to `bool'. An explicit conversion exists (are you missing a cast?) +// Line: 9 + +class X { - static void Bla<T, U> () where T : U + static void Main () { - IEnumerable<T> ita = null; - IEnumerable<U> itu = ita; + bool? a = true; + bool b = a & a; } } @@ -123,39 +88,76 @@ } } - // CS0266: Cannot implicitly convert type `int' to `sbyte'. An explicit conversion exists (are you missing a cast?) -// Line: 33 + // CS0266: Cannot implicitly convert type `I' to `C'. An explicit conversion exists (are you missing a cast?) +// Line: 16 -class A3 +interface I { - public static implicit operator sbyte (A3 mask) - { - return 1; - } +} - public static implicit operator uint (A3 mask) - { - return 6; - } - - public static implicit operator long (A3 mask) +struct C : I +{ +} + +class X +{ + static void Main (string[] args) { - return 7; + C c = default (I); } +} + + // CS0266: Cannot implicitly convert type `Foo.MyEnumType' to `uint'. An explicit conversion exists (are you missing a cast?) +// Line: 11 - public static implicit operator ulong (A3 mask) +public class Foo { + enum MyEnumType { MyValue } + + public void Bar () + { /usr/lib/monodoc/sources/cs-errors.zip/CS0267 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0267 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0267 2036-01-31 00:46:20.000000000 +0000 @@ -3,6 +3,13 @@ CS0267 // CS0267: The `partial' modifier can be used only immediately before `class', `struct', `interface', or `void' keyword +// Line: 4 + +public partial static class Test +{ +} + + // CS0267: The `partial' modifier can be used only immediately before `class', `struct', `interface', or `void' keyword // Line: 6 public partial class C @@ -17,12 +24,5 @@ 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 -{ -} - \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0272 2036-01-31 00:46:20.000000000 +0000 @@ -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 @@ -39,6 +23,22 @@ P.Prop = 453422; } } + // 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 `Test.A.B' cannot be used in this context because the set accessor is inaccessible // Line: 16 /usr/lib/monodoc/sources/cs-errors.zip/CS0278 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0278 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0278 2036-01-31 00:46:20.000000000 +0000 @@ -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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0283 2036-01-31 00:46:20.000000000 +0000 @@ -2,19 +2,13 @@ CS0283 - // CS0283: The type `S' cannot be declared const -// Line: 12 - -struct S -{ -} + // CS0283: The type `int*' cannot be declared const +// Line: 10 +// Compiler options: -unsafe -class C +unsafe class Test { - public void Foo () - { - const S s = new S(); - } + const int* o = null; } // CS0283: The type `int?' cannot be declared const // Line: 8 @@ -27,13 +21,19 @@ } } - // CS0283: The type `int*' cannot be declared const -// Line: 10 -// Compiler options: -unsafe + // CS0283: The type `S' cannot be declared const +// Line: 12 -unsafe class Test +struct S { - const int* o = null; +} + +class C +{ + public void Foo () + { + const S s = new S(); + } } // CS0283: The type `S' cannot be declared const // Line: 10 /usr/lib/monodoc/sources/cs-errors.zip/CS0305 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0305 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0305 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,33 @@ CS0305 + // 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 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 `Stack<T>' requires `1' type argument(s) // Line: 11 @@ -19,31 +46,18 @@ } } - // CS0305: Using the generic type `Stack<T>' requires `1' type argument(s) -// Line: 9 - -class Stack<T> -{ } - -class X -{ - Stack stack; -} - - // CS0305: Using the generic method `C.Test<T,Y>(C.Func<T>)' requires `2' type argument(s) -// Line: 14 + // CS0305: Using the generic type `A.B<T>' requires `1' type argument(s) +// Line: 12 -public class C +class A { - public delegate int Func<T> (T t); - - public static void Test<T, Y> (Func<T> f) - { + class B<T> + { } - - public static void Main () + + static void Main() { - Test<int> (delegate (int i) { return i; }); + B b = new B<A>(); } } @@ -67,25 +81,15 @@ } } - // CS0305: Using the generic type `N1.A<T>' requires `1' type argument(s) -// Line: 12 -namespace N1 -{ - class A<T> - { - } -} + // CS0305: Using the generic type `Stack<T>' requires `1' type argument(s) +// Line: 9 -namespace N3 -{ - using W = N1.A; +class Stack<T> +{ } - class X - { - static void Main () - { - } - } +class X +{ + Stack stack; } // CS0305: Using the generic type `N<T>' requires `1' type argument(s) @@ -102,28 +106,24 @@ global::N n = null; } } - // CS0305: Using the generic type `System.Collections.Generic.List<T>' requires `1' type argument(s) -// Line: 8 - -using System.Collections.Generic; - -class X + // CS0305: Using the generic type `N1.A<T>' requires `1' type argument(s) +// Line: 12 +namespace N1 { - List<int,long> list; + class A<T> + { + } } - - // CS0305: Using the generic type `A.B<T>' requires `1' type argument(s) -// Line: 12 -class A +namespace N3 { - class B<T> - { - } - - static void Main() + using W = N1.A; + + class X { - B b = new B<A>(); + static void Main () + { + } } } /usr/lib/monodoc/sources/cs-errors.zip/CS0306 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0306 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0306 2036-01-31 00:46:20.000000000 +0000 @@ -2,19 +2,14 @@ CS0306 - // CS0306: The type `int*' may not be used as a type argument -// Line: 11 + // CS0306: The type `char*' may not be used as a type argument +// Line: 9 // Compiler options: -unsafe -using System.Linq; - -public class C -{ - public static unsafe void Main () - { - var e = from int* a in "aaa" - select a; - } +class F<U> {} +unsafe class O { + F<char *> f; + static void Main () {} } // CS0306: The type `System.ArgIterator' may not be used as a type argument @@ -26,14 +21,19 @@ { } - // CS0306: The type `char*' may not be used as a type argument -// Line: 9 + // CS0306: The type `int*' may not be used as a type argument +// Line: 11 // Compiler options: -unsafe -class F<U> {} -unsafe class O { - F<char *> f; - static void Main () {} +using System.Linq; + +public class C +{ + public static unsafe void Main () + { + var e = from int* a in "aaa" + select a; + } } // CS0306: The type `S' may not be used as a type argument /usr/lib/monodoc/sources/cs-errors.zip/CS0307 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0307 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0307 2036-01-31 00:46:20.000000000 +0000 @@ -2,23 +2,53 @@ CS0307 - // CS0307: The variable `a' cannot be used with type arguments -// Line: 9 + // CS0307: The property `Test<T,U>.Value' cannot be used with type arguments +// Line: 16 -public class Tests +class Test<T, U> { - public static void Test (int a) + public object Value { + get { return null; } + } + + public class B { - a<int> (); + public B (object arg) + { + } + + public static B Default = new B (Value<U>.Default); } } - // CS0307: The type parameter `a' cannot be used with type arguments + // CS0307: The property `B.Get' cannot be used with type arguments +// Line: 14 +public class B +{ + public virtual int Get { + get { return 3; } + } +} + +public class A : B +{ + public override int Get { + get { + return base.Get<int>; + } + } + + public static void Main () + { + } +} + + // CS0307: The variable `a' cannot be used with type arguments // Line: 9 public class Tests { - public static void Test<a> () + public static void Test (int a) { a<int> (); } @@ -42,25 +72,14 @@ } } - // CS0307: The property `B.Get' cannot be used with type arguments -// Line: 14 -public class B -{ - public virtual int Get { - get { return 3; } - } -} + // CS0307: The type parameter `a' cannot be used with type arguments +// Line: 9 -public class A : B +public class Tests { - public override int Get { - get { - return base.Get<int>; - } - } - - public static void Main () + public static void Test<a> () { + a<int> (); } } @@ -87,24 +106,5 @@ } } - // CS0307: The property `Test<T,U>.Value' cannot be used with type arguments -// Line: 16 - -class Test<T, U> -{ - public object Value { - get { return null; } - } - - public class B - { - public B (object arg) - { - } - - public static B Default = new B (Value<U>.Default); - } -} - \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0308 2036-01-31 00:46:20.000000000 +0000 @@ -2,24 +2,14 @@ CS0308 - // CS0308: The non-generic type `N1.A' cannot be used with the type arguments -// Line: 11 -namespace N1 -{ - class A - { } -} + // CS0308: The non-generic type `System.DateTime' cannot be used with the type arguments +// Line: 8 -namespace N3 -{ - using W = N1.A<int>; +using System; - class X - { - static void Main () - { - } - } +class X +{ + DateTime<int> now; } // CS0308: The non-generic type `Stack' cannot be used with the type arguments @@ -33,49 +23,64 @@ Stack<float> stack; } - // CS0308: The non-generic type `Foo' cannot be used with the type arguments -// Line: 16 + // CS0308: The non-generic method `C.TestCall(int)' cannot be used with the type arguments +// Line: 13 -public class Foo +class C { - public string Test<T> () + static void TestCall (int i) { - return null; + } + + public static void Main () + { + dynamic d = 0; + TestCall<int> (d); } } + + // CS0308: The non-generic type `BaseGeneric<T>.InnerDerived' cannot be used with the type arguments +// Line: 19 -public static class Driver +class BaseGeneric<T> { - static object UseBrokenType () + public class InnerDerived { - return Foo<int> ().Test (); } } - - // CS0308: The non-generic type `System.DateTime' cannot be used with the type arguments -// Line: 8 -using System; +class BaseConcrete : BaseGeneric<string> +{ +} -class X +class Program { - DateTime<int> now; + static void Main () + { + new BaseConcrete.InnerDerived<int>(); + } } - // CS0308: The non-generic type `NamingContext' cannot be used with the type arguments -// Line: 6 + // CS0308: The non-generic type `N1.A' cannot be used with the type arguments +// Line: 11 +namespace N1 +{ + class A + { } +} -class Program +namespace N3 { - static NamingContext<int> Lookup () + using W = N1.A<int>; + + class X { - return null; + static void Main () + { + } } } - -class NamingContext -{ -} + // CS0308: The non-generic method `X.Foo()' cannot be used with the type arguments // Line: 12 @@ -91,22 +96,39 @@ } } - // CS0308: The non-generic method `C.TestCall(int)' cannot be used with the type arguments -// Line: 13 + // CS0308: The non-generic type `Foo' cannot be used with the type arguments +// Line: 16 -class C +public class Foo { - static void TestCall (int i) + public string Test<T> () { + return null; } - - public static void Main () +} + +public static class Driver +{ + static object UseBrokenType () { - dynamic d = 0; - TestCall<int> (d); + return Foo<int> ().Test (); } } + // CS0308: The non-generic type `NamingContext' cannot be used with the type arguments +// Line: 6 + +class Program +{ + static NamingContext<int> Lookup () + { + return null; + } +} + +class NamingContext +{ +} // CS0308: The non-generic type `Test.NonGeneric' cannot be used with the type arguments // Line: 8 @@ -122,27 +144,5 @@ } } - // 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>(); - } -} - \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0310 2036-01-31 00:46:20.000000000 +0000 @@ -2,27 +2,27 @@ CS0310 - // 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 `string' must have a public parameterless constructor in order to use it as parameter `T' in the generic type or method `Program.Ret<T>()' // Line: 10 @@ -48,9 +48,9 @@ { } -abstract class A +class A { - public A () + private A () { } } @@ -63,6 +63,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 `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 @@ -71,9 +93,9 @@ { } -class A +abstract class A { - private A () + public A () { } } @@ -105,27 +127,5 @@ - // 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> (); - } -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0311 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0311 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0311 2036-01-31 00:46:20.000000000 +0000 @@ -2,40 +2,32 @@ CS0311 + // 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 `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; +// Line: 19 public class Foo<T> where T : A { - public void Test (T t) - { - Console.WriteLine (t); - Console.WriteLine (t.GetType ()); - t.Hello (); - } } public class A { - public void Hello () - { - Console.WriteLine ("Hello World"); - } } public class B { - public static implicit operator A (B b) - { - return new A (); - } } class X { - Foo<B> b; + Foo<B> foo; static void Main () { @@ -87,32 +79,40 @@ } } - // 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 `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 +// Line: 35 +using System; public class Foo<T> where T : A { + public void Test (T t) + { + Console.WriteLine (t); + Console.WriteLine (t.GetType ()); + t.Hello (); + } } public class A { + public void Hello () + { + Console.WriteLine ("Hello World"); + } } public class B { + public static implicit operator A (B b) + { + return new A (); + } } class X { - Foo<B> foo; + Foo<B> b; static void Main () { /usr/lib/monodoc/sources/cs-errors.zip/CS0312 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0312 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0312 2036-01-31 00:46:20.000000000 +0000 @@ -2,10 +2,10 @@ CS0312 - // 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 `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,9 +15,9 @@ { } - static void Test (E? e) + static void Test (S? s) { - C<E>.Foo (e); + C<S>.Foo (s); } } @@ -40,10 +40,10 @@ } } - // 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0313 2036-01-31 00:46:20.000000000 +0000 @@ -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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0315 2036-01-31 00:46:20.000000000 +0000 @@ -2,40 +2,6 @@ CS0315 - // 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 - -class X -{ - delegate void D<TEventArgs> () where TEventArgs : System.EventArgs; - - D<int> x; -} - - - - // CS0315: The type `int' cannot be used as type parameter `U' in the generic type or method `A<int?>.Test<U>()'. There is no boxing conversion from `int' to `int?' -// Line: 19 - -class A<T> -{ - public static void Test<U> () where U : T - { - } -} - -class B : A<int?> -{ -} - -class Program -{ - public static void Main () - { - B.Test<int> (); - } -} - // 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 @@ -66,6 +32,28 @@ }); } } + // CS0315: The type `int' cannot be used as type parameter `U' in the generic type or method `A<int?>.Test<U>()'. There is no boxing conversion from `int' to `int?' +// Line: 19 + +class A<T> +{ + public static void Test<U> () where U : T + { + } +} + +class B : A<int?> +{ +} + +class Program +{ + public static void Main () + { + B.Test<int> (); + } +} + // 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 @@ -75,6 +63,18 @@ { } } + // 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 + +class X +{ + delegate void D<TEventArgs> () where TEventArgs : System.EventArgs; + + D<int> x; +} + + + // 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 /usr/lib/monodoc/sources/cs-errors.zip/CS0403 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0403 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0403 2036-01-31 00:46:20.000000000 +0000 @@ -3,26 +3,17 @@ CS0403 // 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 +// Line: 7 +class Test<T> { - public static T CreateMethod<T> () + public T Null () { - return (T)null; + return 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 +class X { - public void Foo<T> () where T : struct - { - T t = null; - } - static void Main () { } } @@ -39,17 +30,26 @@ } // CS0403: Cannot convert null to the type parameter `T' because it could be a value type. Consider using `default (T)' instead -// Line: 7 -class Test<T> +// Line: 8 + +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 -class X +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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0406 2036-01-31 00:46:20.000000000 +0000 @@ -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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0407 2036-01-31 00:46:20.000000000 +0000 @@ -2,38 +2,62 @@ CS0407 - // CS0407: A method or delegate `TestDelegateA MainClass.Method(bool)' return type does not match delegate `int TestDelegateA(bool)' return type + // CS0407: A method or delegate `int TestDelegateA(bool)' return type does not match delegate `bool TestDelegateB(bool)' return type // Line: 12 delegate int TestDelegateA (bool b); +delegate bool TestDelegateB (bool b); public class MainClass { - static TestDelegateA Method (bool b) + public static int Delegate(bool b) { - return Method; + return 0; + } + + public static void Main() + { + TestDelegateA a = new TestDelegateA (Delegate); + TestDelegateB b = new TestDelegateB (a); } } - // 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; } } + // CS0407: A method or delegate `int MainClass.Delegate()' return type does not match delegate `void TestDelegate()' return type +// Line: 12 + +delegate void TestDelegate(); + +public class MainClass { + public static int Delegate() { + return 0; + } + + public static void Main() { + TestDelegate delegateInstance = new TestDelegate (Delegate); + } +} + // CS0407: A method or delegate `int int.Parse(string)' return type does not match delegate `object Test.Conv(string)' return type // Line: 17 @@ -49,7 +73,7 @@ } } - // CS0407: A method or delegate `int Program.Foo(object)' return type does not match delegate `void System.Action<dynamic>(dynamic)' return type + // CS0407: A method or delegate `dynamic Program.Foo()' return type does not match delegate `string System.Func<string>()' return type // Line: 10 using System; @@ -58,70 +82,46 @@ { static void Main() { - Action<dynamic> d = Foo; + Func<string> d = Foo; } - static int Foo (object o) + static dynamic Foo () { - return 0; + return 1; } } - // CS0407: A method or delegate `int MainClass.Delegate()' return type does not match delegate `void TestDelegate()' return type -// Line: 12 - -delegate void TestDelegate(); - -public class MainClass { - public static int Delegate() { - return 0; - } - - public static void Main() { - TestDelegate delegateInstance = new TestDelegate (Delegate); - } -} - - // CS0407: A method or delegate `int TestDelegateA(bool)' return type does not match delegate `bool TestDelegateB(bool)' return type -// Line: 12 + // CS0407: A method or delegate `int Program.Foo(object)' return type does not match delegate `void System.Action<dynamic>(dynamic)' return type +// Line: 10 -delegate int TestDelegateA (bool b); -delegate bool TestDelegateB (bool b); +using System; -public class MainClass +class Program { - public static int Delegate(bool b) + static void Main() { - return 0; + Action<dynamic> d = Foo; } - public static void Main() + static int Foo (object o) { - TestDelegateA a = new TestDelegateA (Delegate); - TestDelegateB b = new TestDelegateB (a); + return 0; } } - - // 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 `TestDelegateA MainClass.Method(bool)' return type does not match delegate `int TestDelegateA(bool)' return type +// Line: 12 -using System; +delegate int TestDelegateA (bool b); -class X +public class MainClass { - public delegate object Function(int arg1); - - static void Main () - { - Delegate d = new Function (f); - } - - static int f (int a) + static TestDelegateA Method (bool b) { - return 1; + 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0411 2036-01-31 00:46:20.000000000 +0000 @@ -2,73 +2,24 @@ CS0411 - // CS0411: The type arguments for method `C.Foo<T>(T)' cannot be inferred from the usage. Try specifying the type arguments explicitly -// Line: 10 - -using System; - -class C -{ - static void Main () - { - Foo (new TypedReference ()); - } - - static void Foo<T> (T arg) - { - } -} - - // CS0411: The type arguments for method `Test<float>.Foo<V>(V, V)' cannot be inferred from the usage. Try specifying the type arguments explicitly -// Line: 15 - -class Test<A> -{ - public void Foo<V> (V v, V w) - { } -} + // CS0411: The type arguments for method `C.Test<TR,TA>(C.Func<TR,TA>, C.Func<TR,TA>)' cannot be inferred from the usage. Try specifying the type arguments explicitly +// Line: 16 -class X -{ - static void Main () - { - Test<float> test = new Test<float> (); - test.Foo (8, "Hello World"); - } -} - - // CS0411: The type arguments for method `C.Foo<T>(T)' cannot be inferred from the usage. Try specifying the type arguments explicitly -// Line: 12 - -class C +public class C { - static void X () - { - } + public delegate T1 Func<T1, T2> (T2 t); - static void Foo<T> (T t) - { - Foo(X ()); - } -} - - // CS0411: The type arguments for method `C.TestCall<T>(int)' cannot be inferred from the usage. Try specifying the type arguments explicitly -// Line: 13 - -class C -{ - static void TestCall<T> (int i) + public static TR Test<TR, TA> (Func<TR, TA> f, Func<TR, TA> f2) { + return default (TR); } - public static void Main () + public static void Main() { - dynamic d = 0; - TestCall (d); + int s = Test (delegate (int i) { return 0; }, delegate (int i) { return "a"; }); } -} - +} // CS0411: The type arguments for method `Foo<U>.DoSomething<U>(System.Func<U,U>)' cannot be inferred from the usage. Try specifying the type arguments explicitly // Line: 15 @@ -87,23 +38,42 @@ } } - // 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 + // CS0411: The type arguments for method `System.Linq.Enumerable.OrderBy<TSource,TKey>(this System.Collections.Generic.IEnumerable<TSource>, System.Func<TSource,TKey>)' cannot be inferred from the usage. Try specifying the type arguments explicitly +// Line: 20 -interface I<T> +using System.Collections.Generic; +using System.Linq; + +public class C { + public string Name () + { + return "aa"; + } } -class C : I<long>, I<int> +class Z { - static void Foo<T> (I<T> i) + void Test () { + List<C> l = null; + var r = l.OrderBy (f => f.Name).ToList (); } +} + // CS0411: The type arguments for method `C.Foo<T>(T)' cannot be inferred from the usage. Try specifying the type arguments explicitly +// Line: 10 + +using System; +class C +{ static void Main () { - C c = new C (); - Foo (c); + Foo (new TypedReference ()); + } + + static void Foo<T> (T arg) + { } } @@ -124,35 +94,70 @@ } } - // 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 + // CS0411: The type arguments for method `C.Foo<T>(T[], T[])' cannot be inferred from the usage. Try specifying the type arguments explicitly +// Line: 12 class C { - public static void Foo<T> (ref T t1, ref T t2) + public static void Foo<T> (T[] t1, T[] t2) { } public static void Main () { - string s = "a"; - object o = null; - Foo (ref s, ref o); + Foo (new int[0], new byte[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 + // CS0411: The type arguments for method `M.Foo<T>(System.Func<T>)' cannot be inferred from the usage. Try specifying the type arguments explicitly +// Line: 14 + +using System; + +class M +{ + static void Foo<T> (Func<T> t) + { + } + + public static void Main () + { + Foo (delegate { throw new Exception("foo"); }); + } +} + + // CS0411: The type arguments for method `Test<float>.Foo<V>(V, V)' cannot be inferred from the usage. Try specifying the type arguments explicitly +// Line: 15 + +class Test<A> +{ + public void Foo<V> (V v, V w) + { } +} + +class X +{ + static void Main () + { + Test<float> test = new Test<float> (); + test.Foo (8, "Hello World"); + } +} + + + // CS0411: The type arguments for method `C.TestCall<T>(int)' cannot be inferred from the usage. Try specifying the type arguments explicitly +// Line: 13 /usr/lib/monodoc/sources/cs-errors.zip/CS0412 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0412 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0412 2036-01-31 00:46:20.000000000 +0000 @@ -13,23 +13,23 @@ } // 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; } } // 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; } } /usr/lib/monodoc/sources/cs-errors.zip/CS0414 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0414 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0414 2036-01-31 00:46:20.000000000 +0000 @@ -2,18 +2,6 @@ CS0414 - // CS0414: The private field `X.i' is assigned but its value is never used -// Line: 6 -// Compiler options: -warnaserror -warn:3 - -class X { - int i = 3; - - public void Y () - { - } -} - // CS0414: The private field `X.o' is assigned but its value is never used // Line: 14 // Compiler options: -warnaserror -warn:3 @@ -30,5 +18,17 @@ int o = 4; } + // CS0414: The private field `X.i' is assigned but its value is never used +// Line: 6 +// Compiler options: -warnaserror -warn:3 + +class X { + int i = 3; + + public void Y () + { + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0416 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0416 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0416 2036-01-31 00:46:20.000000000 +0000 @@ -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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0418 2036-01-31 00:46:20.000000000 +0000 @@ -2,32 +2,13 @@ CS0418 - // CS0418: `TestClass': an abstract class cannot be sealed or static -// Line: 4 - -public abstract static class TestClass -{ -} - - // CS0418: `TestClass': an abstract class cannot be sealed or static -// Line: 4 - -public abstract sealed class TestClass -{ -} - // CS0418: `Foo': an abstract class cannot be sealed or static // Line: 3 -public abstract partial class Foo +public abstract sealed partial class Foo { public string myId; } -public static partial class Foo -{ - public string Id { get { return myId; } } -} - public class PartialAbstractCompilationError { public static void Main () @@ -60,13 +41,32 @@ } + // CS0418: `TestClass': an abstract class cannot be sealed or static +// Line: 4 + +public abstract static class TestClass +{ +} + + // CS0418: `TestClass': an abstract class cannot be sealed or static +// Line: 4 + +public abstract sealed class TestClass +{ +} + // CS0418: `Foo': an abstract class cannot be sealed or static // Line: 3 -public abstract sealed partial class Foo +public abstract partial class Foo { public string myId; } +public static partial class Foo +{ + public string Id { get { return myId; } } +} + public class PartialAbstractCompilationError { public static void Main () /usr/lib/monodoc/sources/cs-errors.zip/CS0419 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0419 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0419 2036-01-31 00:46:20.000000000 +0000 @@ -20,23 +20,6 @@ } - // 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 @@ -73,6 +56,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 `System.String.Replace'. Assuming `string.Replace(string, string, bool, System.Globalization.CultureInfo)' but other overloads including `string.Replace(string, string, System.StringComparison)' have also matched // Line: 1 // Compiler options: -doc:dummy.xml -warn:3 -warnaserror /usr/lib/monodoc/sources/cs-errors.zip/CS0420 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0420 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0420 2036-01-31 00:46:20.000000000 +0000 @@ -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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0425 2036-01-31 00:46:20.000000000 +0000 @@ -2,25 +2,30 @@ CS0425 - // CS0425: The constraints for type parameter `V' of method `Foo<T>.Test<V>()' must match the constraints for type parameter `U' of interface method `IFoo<T>.Test<U>()'. Consider using an explicit interface implementation instead -// Line: 13 -interface IFoo<T> + // 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 { - void Test<U> () - where U : T; + 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 -class Foo<T> : IFoo<T> +interface IFoo<T> { - public void Test<V> () - where V :X - { } + void Test<U> () where U : T; } -class X +class Foo<T, X> : IFoo<T> { - static void Main () - { } + public void Test<V> () where V : X + { + } } // 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 @@ -45,31 +50,8 @@ } } - // 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 `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> () @@ -79,6 +61,7 @@ class Foo<T> : IFoo<T> { public void Test<V> () + where V :X { } } @@ -88,45 +71,62 @@ { } } - // 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 + // CS0425: The constraints for type parameter `T' of method `C.Foo<T>()' must match the constraints for type parameter `T' of interface method `I.Foo<T>()'. Consider using an explicit interface implementation instead // Line: 11 -interface IFoo<T> +interface I { - void Test<U> () where U : T; + void Foo<T> (); } -class Foo<T, X> : IFoo<T> +class C : I { - public void Test<V> () where V : X + public void Foo<T> () where T : struct { } } - // 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 + // CS0425: The constraints for type parameter `V' of method `Foo<T>.Test<V>()' must match the constraints for type parameter `U' of interface method `IFoo<T>.Test<U>()'. Consider using an explicit interface implementation instead +// Line: 12 +interface IFoo<T> { - public static void Main () - { - } + void Test<U> () + where U : T; } - - // CS0425: The constraints for type parameter `T' of method `C.Foo<T>()' must match the constraints for type parameter `T' of interface method `I.Foo<T>()'. Consider using an explicit interface implementation instead -// Line: 11 -interface I +class Foo<T> : IFoo<T> { - void Foo<T> (); + public void Test<V> () + { } } -class C : I +class X { - public void Foo<T> () where T : struct - { - } + static void Main () + { } +} + + // 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 + { + } + } } /usr/lib/monodoc/sources/cs-errors.zip/CS0426 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0426 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0426 2036-01-31 00:46:20.000000000 +0000 @@ -2,21 +2,6 @@ CS0426 - // CS0426: The nested type `B' does not exist in the type `A' -// Line: 12 - -class A -{ -} - -class Test -{ - public static void Main() - { - A.B a; - } -} - // CS0426: The nested type `M' does not exist in the type `N' // Line: 6 @@ -46,5 +31,20 @@ { } + // CS0426: The nested type `B' does not exist in the type `A' +// Line: 12 + +class A +{ +} + +class Test +{ + public static void Main() + { + A.B a; + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0428 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0428 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0428 2036-01-31 00:46:20.000000000 +0000 @@ -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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0429 2036-01-31 00:46:20.000000000 +0000 @@ -23,10 +23,11 @@ class Main { - public void Method (int i) - { - var x = true ? 1 : i; - } + public void Method (int i) + { + if (false && i > 10) + return; + } } // CS0429: Unreachable expression code detected @@ -50,11 +51,10 @@ class Main { - public void Method (int i) - { - if (false && i > 10) - return; - } + public void Method (int i) + { + var x = true ? 1 : i; + } } /usr/lib/monodoc/sources/cs-errors.zip/CS0430 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0430 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0430 2036-01-31 00:46:20.000000000 +0000 @@ -5,33 +5,33 @@ // CS0430: The extern alias `dontdefined' was not specified in -reference option // Line: 4 -extern alias dontdefined; using System; +namespace N +{ + extern alias dontdefined; +} + public class Tester { static void Main () { } } - // CS0430: The extern alias `dontdefined' was not specified in -reference option // Line: 4 +extern alias dontdefined; using System; -namespace N -{ - extern alias dontdefined; -} - public class Tester { static void Main () { } } + \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0432 2036-01-31 00:46:20.000000000 +0000 @@ -2,16 +2,10 @@ CS0432 - // CS0432: Alias `X' not found -// Line: 5 - -using X = System; -using X::Collections.Generic; - // CS0432: Alias `fool' not found // Line: 9 -class fool { } +using foo = System; class X { static void Main () @@ -20,10 +14,16 @@ } } + // CS0432: Alias `X' not found +// Line: 5 + +using X = System; +using X::Collections.Generic; + // CS0432: Alias `fool' not found // Line: 9 -using foo = System; +class fool { } class X { static void Main () /usr/lib/monodoc/sources/cs-errors.zip/CS0446 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0446 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0446 2036-01-31 00:46:20.000000000 +0000 @@ -2,32 +2,32 @@ CS0446 - // 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 () { } } - // 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 () { } } /usr/lib/monodoc/sources/cs-errors.zip/CS0450 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0450 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0450 2036-01-31 00:46:20.000000000 +0000 @@ -2,25 +2,25 @@ CS0450 - // CS0450: `A<bool,int>': cannot specify both a constraint class and the `class' or `struct' constraint + // CS0450: `A': cannot specify both a constraint class and the `class' or `struct' constraint // Line: 8 -class A<T, U> +class A { } -delegate void Test<T>() where T : struct, A<bool, int>; +class B<T> where T : class, A +{ +} - // CS0450: `A': cannot specify both a constraint class and the `class' or `struct' constraint + // CS0450: `A<bool,int>': cannot specify both a constraint class and the `class' or `struct' constraint // Line: 8 -class A +class A<T, U> { } -class B<T> where T : class, A -{ -} +delegate void Test<T>() where T : struct, A<bool, int>; \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0452 2036-01-31 00:46:20.000000000 +0000 @@ -2,15 +2,33 @@ 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 `C<T>' -// Line: 10 - -public class C<T> where T : class + // CS0452: The type `int' must be a reference type in order to use it as type parameter `T' in the generic type or method `Foo.Test<T>(ref T)' +// Line: 14 +public class Foo { + public static void Test<T> (ref T t) + where T : class + { } } -delegate C<int> D (); +public class C { + public static void Main () + { + int i = 0; + Foo.Test<int> (ref 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 `Program.M<T>(T, T)' +// Line: 8 + +class Program +{ + public static void M<T> (T item1, T item2 = null) where T : class + { + 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 `C<T>' // Line: 10 @@ -48,11 +66,22 @@ static public void Main() { - int j = TestClass<int>.Value; - Console.WriteLine (j); + int i = TestClass<int>.meth(); + Console.WriteLine (i); } } + // 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 + +public class C<T> where T : class +{ + public int this [params C<ulong>[] args] { + set {} + } +} + + // 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; @@ -75,11 +104,28 @@ static public void Main() { - int i = TestClass<int>.meth(); - Console.WriteLine (i); + int j = TestClass<int>.Value; + Console.WriteLine (j); } } + // CS0452: The type `Foo' must be a reference type in order to use it as type parameter `T' in the generic type or method `MyObject<T>' +// Line: 13 +public class MyObject<T> + where T : class +{ } + +struct Foo +{ } + +class X +{ + MyObject<Foo> foo; + + static void Main () + { } +} + // 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)' // Line: 13 @@ -100,27 +146,6 @@ } } - // 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 - -public class C<T> where T : class -{ - public int this [params C<ulong>[] args] { - set {} - } -} - - - // 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 - { - 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 `A.Foo<T>(T, string)' // Line: 18 @@ -151,39 +176,14 @@ delegate void D (C<int> arg); - // CS0452: The type `Foo' must be a reference type in order to use it as type parameter `T' in the generic type or method `MyObject<T>' -// Line: 13 -public class MyObject<T> - where T : class -{ } - -struct Foo -{ } - -class X -{ - MyObject<Foo> foo; + // 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 - static void Main () - { } -} - - // CS0452: The type `int' must be a reference type in order to use it as type parameter `T' in the generic type or method `Foo.Test<T>(ref T)' -// Line: 14 -public class Foo +public class C<T> where T : class { - public static void Test<T> (ref T t) - where T : class - { } } -public class C { - public static void Main () - { - int i = 0; - Foo.Test<int> (ref i); - } -} +delegate C<int> D (); \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0453 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,20 @@ CS0453 + // CS0453: The type `X' must be a non-nullable value type in order to use it as type parameter `T' in the generic type or method `MyValue<T>' +// Line: 10 +public class MyValue<T> + where T : struct +{ } + +class X +{ + MyValue<X> x; + + static void Main () + { } +} + // 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 @@ -17,29 +31,41 @@ } - // CS0453: The type `X' must be a non-nullable value type in order to use it as type parameter `T' in the generic type or method `MyValue<T>' + // CS0453: The type `Foo' must be a non-nullable value type in order to use it as type parameter `T' in the generic type or method `System.Nullable<T>' // Line: 10 -public class MyValue<T> - where T : struct +public class Foo { } class X { - MyValue<X> x; - static void Main () - { } + { + Foo? foo = new Foo (); + } } - // 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 + // 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 Nullable_Test { - public static int Compare<T> (Nullable<T> left) +public static class Foo +{ + public static string Test_2<T> (this T s) where T : struct { - return 0; + return null; + } +} + +namespace B +{ + public class M + { + public static void Main () + { + new M().Test_2(); + } } } // 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)' @@ -76,41 +102,15 @@ } } - // CS0453: The type `Foo' must be a non-nullable value type in order to use it as type parameter `T' in the generic type or method `System.Nullable<T>' -// Line: 10 -public class Foo -{ } - -class X -{ - static void Main () - { - Foo? foo = new Foo (); - } -} - - // 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 - + // CS0453: The type `T' must be a non-nullable value type in order to use it as type parameter `T' in the generic type or method `System.Nullable<T>' +// Line: 14 using System; -public static class Foo -{ - public static string Test_2<T> (this T s) where T : struct - { - return null; - } -} - -namespace B -{ - public class M +public static class Nullable_Test { + public static int Compare<T> (Nullable<T> left) { - public static void Main () - { - new M().Test_2(); - } + return 0; } } // 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>' /usr/lib/monodoc/sources/cs-errors.zip/CS0455 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0455 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0455 2036-01-31 00:46:20.000000000 +0000 @@ -2,20 +2,6 @@ CS0455 - // CS0455: Type parameter `T' inherits conflicting constraints `Test' and `World' -// Line: 11 - -class Test -{ } - -class World -{ } - -class Foo<T,U> - where T : Test, U - where U : World -{ } - // CS0455: Type parameter `Y' inherits conflicting constraints `class' and `long' // Line: 11 @@ -31,21 +17,6 @@ } } - // CS0455: Type parameter `Y' inherits conflicting constraints `long' and `long?' -// Line: 11 - -abstract class A<T1, T2> -{ - public abstract void Foo<U> () where U : T1, T2; -} - -class B : A<long, long?> -{ - public override void Foo<Y> () - { - } -} - // CS0455: Type parameter `T3' inherits conflicting constraints `X' and `Y' // Line: 15 @@ -64,6 +35,35 @@ where T4 : T2 { } + // CS0455: Type parameter `Y' inherits conflicting constraints `long' and `long?' +// Line: 11 + +abstract class A<T1, T2> +{ + public abstract void Foo<U> () where U : T1, T2; +} + +class B : A<long, long?> +{ + public override void Foo<Y> () + { + } +} + + // CS0455: Type parameter `T' inherits conflicting constraints `Test' and `World' +// Line: 11 + +class Test +{ } + +class World +{ } + +class Foo<T,U> + where T : Test, U + where U : World +{ } + // CS0455: Type parameter `T' inherits conflicting constraints `System.ValueType' and `Test' // Line: 8 /usr/lib/monodoc/sources/cs-errors.zip/CS0457 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0457 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0457 2036-01-31 00:46:20.000000000 +0000 @@ -2,28 +2,6 @@ CS0457 - // CS0457: Ambiguous user defined conversions `A.implicit operator byte(A)' and `A.implicit operator sbyte(A)' when converting from 'A' to 'int' -// Line: 20 - -class A -{ - public static implicit operator ushort (A mask) - { - return 1; - } - - public static implicit operator short (A mask) - { - return 2; - } -} - -class X -{ - static A a = null; - 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 @@ -86,6 +64,28 @@ } // CS0457: Ambiguous user defined conversions `A.implicit operator byte(A)' and `A.implicit operator sbyte(A)' when converting from 'A' to 'int' +// Line: 20 + +class A +{ + public static implicit operator ushort (A mask) + { + return 1; + } + + public static implicit operator short (A mask) + { + return 2; + } +} + +class X +{ + static A a = null; + static object o = -a; +} + + // CS0457: Ambiguous user defined conversions `A.implicit operator byte(A)' and `A.implicit operator sbyte(A)' when converting from 'A' to 'int' // Line: 20 class 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0458 2036-01-31 00:46:20.000000000 +0000 @@ -2,21 +2,29 @@ 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 `int?' +// Line: 8 // Compiler options: -warnaserror -warn:2 -enum E +class C { - V + static void Main () + { + int? i = 2; + i *= null; + } } + + // CS0458: The result of the expression is always `null' of type `int?' +// Line: 10 +// Compiler options: -warnaserror -warn:2 -public class C +class C { public static void Main () { - E e = E.V; - object o = null - e; + int i = 44; + i <<= null; } } @@ -28,49 +36,34 @@ { static void Foo() { - var res = null << 2; + var res = null >> 2; } } - // 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() { - ushort us = 22; - int? r = us << null; + var res = null << 2; } } - // 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 `bool?' +// Line: 8 // 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 () + static void Foo() { - S? s = new S (); - var x = s + (S?)null; + bool? b = false | null; } -} +} + // CS0458: The result of the expression is always `null' of type `int?' // Line: 9 // Compiler options: -warnaserror -warn:2 @@ -83,74 +76,83 @@ } } - // CS0458: The result of the expression is always `null' of type `bool?' + // CS0458: The result of the expression is always `null' of type `int?' // Line: 8 // Compiler options: -warnaserror -warn:2 class C { - static void Foo() + static void Main () { - bool? b = null as bool?; + ushort us = 22; + int? r = us << null; } } - // 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 `E?' +// Line: 15 // Compiler options: -warnaserror -warn:2 -class C +enum E { - static void Foo() - { - var res = null >> 2; - } + V } - - // CS0458: The result of the expression is always `null' of type `ulong?' -// Line: 10 -// Compiler options: -warnaserror -warn:2 -class C +public class C { - static void Foo() + public static void Main () { - ulong a = 100; - var res = a << null; + E e = E.V; + object o = null + e; } } - // CS0458: The result of the expression is always `null' of type `int?' -// Line: 10 + // CS0472: The result of the expression is always `null' of type `MyEnum?' +// Line: 17 // Compiler options: -warnaserror -warn:2 +using System; + +enum MyEnum +{ + Value_1 +} + class C { public static void Main () { - int i = 44; - i <<= null; + var d = MyEnum.Value_1; + var x = d & null; } } - // CS0458: The result of the expression is always `null' of type `E?' -// 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 /usr/lib/monodoc/sources/cs-errors.zip/CS0459 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0459 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0459 2036-01-31 00:46:20.000000000 +0000 @@ -2,43 +2,33 @@ CS0459 - // CS0459: Cannot take the address of `this' because it is read-only -// Line: 11 + // CS0459: Cannot take the address of foreach iteration variable `c' +// Line: 10 // Compiler options: -unsafe -using System; - -class X { - - unsafe void Test () +class C +{ + public static unsafe void Main () { - X x = *&this; - } + foreach (char c in "test") { + char* ch = &c; + } + } } - // CS0459: Cannot take the address of using variable `m' -// Line: 19 + // CS0459: Cannot take the address of `this' because it is read-only +// Line: 11 // Compiler options: -unsafe using System; -struct S : IDisposable -{ - public void Dispose () - { - } -} - class X { - unsafe static void Main () + unsafe void Test () { - using (S m = new S ()){ - S* mm = &m; - } + X x = *&this; } } - // CS0459: Cannot take the address of fixed variable `a' // Line: 10 @@ -70,19 +60,29 @@ } } - // CS0459: Cannot take the address of foreach iteration variable `c' -// Line: 10 + // CS0459: Cannot take the address of using variable `m' +// Line: 19 // Compiler options: -unsafe -class C +using System; + +struct S : IDisposable { - public static unsafe void Main () + public void Dispose () { - foreach (char c in "test") { - char* ch = &c; + } +} + +class X { + + unsafe static void Main () + { + using (S m = new S ()){ + S* mm = &m; } - } + } } + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0460 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0460 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0460 2036-01-31 00:46:20.000000000 +0000 @@ -2,32 +2,32 @@ CS0460 - // CS0460: `C.I.Test<C>()': Cannot specify constraints for overrides and explicit interface implementation methods + // CS0460: `C.Test<T>()': Cannot specify constraints for overrides and explicit interface implementation methods // Line: 11 -interface I +abstract class A { - void Test<T>() where T : new (); + protected abstract int Test<T>() where T : class; } -class C : I +class C : A { - void I.Test<C>() where C : class + protected override int Test<T>() where T : new() { } } - // CS0460: `C.Test<T>()': Cannot specify constraints for overrides and explicit interface implementation methods + // CS0460: `C.I.Test<C>()': Cannot specify constraints for overrides and explicit interface implementation methods // Line: 11 -abstract class A +interface I { - protected abstract int Test<T>() where T : class; + void Test<T>() where T : new (); } -class C : A +class C : I { - protected override int Test<T>() where T : new() + void I.Test<C>() where C : class { } } /usr/lib/monodoc/sources/cs-errors.zip/CS0462 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0462 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0462 2036-01-31 00:46:20.000000000 +0000 @@ -2,32 +2,32 @@ CS0462 - // CS0462: `B.this[int]' cannot override inherited members `A<T>.this[int]' and `A<T>.this[T]' because they have the same signature when used in type `B' + // CS0462: `B.M(int)' cannot override inherited members `A<T>.M(int)' and `A<T>.M(T)' because they have the same signature when used in type `B' // Line: 12 abstract class A<T> { - public abstract int this[T t] { set; } - public virtual bool this [int a] { set { } } + public abstract void M (T t); + public virtual void M (int t) { } } class B : A<int> { - public override int this [int a] { set {} } + public override void M (int t) { } } - // CS0462: `B.M(int)' cannot override inherited members `A<T>.M(int)' and `A<T>.M(T)' because they have the same signature when used in type `B' + // CS0462: `B.this[int]' cannot override inherited members `A<T>.this[int]' and `A<T>.this[T]' because they have the same signature when used in type `B' // Line: 12 abstract class A<T> { - public abstract void M (T t); - public virtual void M (int t) { } + public abstract int this[T t] { set; } + public virtual bool this [int a] { set { } } } class B : A<int> { - public override void M (int t) { } + public override int this [int a] { set {} } } /usr/lib/monodoc/sources/cs-errors.zip/CS0464 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0464 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0464 2036-01-31 00:46:20.000000000 +0000 @@ -15,17 +15,17 @@ } // CS0464: The result of comparing type `int?' with null is always `false' -// Line: 9 +// Line: 10 // Compiler options: -warnaserror -warn:2 -public class X +class C { - public static bool Compute (int? x) + public static void Main () { - return x >= null; + int? k = 1; + var x = k > null; } -} - +} // CS0464: The result of comparing type `E?' with null is always `false' // Line: 14 // Compiler options: -warnaserror @@ -48,23 +48,23 @@ public class X { - public static bool Compute (int x) + public static bool Compute (int? x) { - return x < null; + return x >= null; } } // CS0464: The result of comparing type `int?' with null is always `false' -// Line: 10 +// Line: 9 // Compiler options: -warnaserror -warn:2 -class C +public class X { - public static void Main () + public static bool Compute (int x) { - int? k = 1; - var x = k > null; + return x < null; } -} +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0465 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0465 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0465 2036-01-31 00:46:20.000000000 +0000 @@ -6,20 +6,20 @@ // Line: 7 // Compiler options: -warnaserror -warn:1 -interface I -{ - void Finalize (); +class T +{ + static void Finalize () + { + } } // CS0465: Introducing `Finalize' method can interfere with destructor invocation. Did you intend to declare a destructor? // Line: 7 // Compiler options: -warnaserror -warn:1 -class T -{ - static void Finalize () - { - } +interface I +{ + void Finalize (); } /usr/lib/monodoc/sources/cs-errors.zip/CS0472 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0472 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0472 2036-01-31 00:46:20.000000000 +0000 @@ -2,29 +2,30 @@ CS0472 - // 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; - } -} - - // CS0472: The result of comparing value type `int' with null is always `false' -// Line: 12 + // CS0472: The result of comparing value type `E' with null is always `false' +// Line: 14 // Compiler options: -warnaserror -using System; +enum E +{ +} class X { public static void Main () { - int i = 0; - var x = i == default (byte?); + E u = 0; + var b = u == (E?)null; + } +} + // CS0472: The result of comparing value type `int' with null is always `true' +// Line: 8 +// Compiler options: -warnaserror -warn:2 + +public class X { + public static bool Compute (int x) + { + return x != null; } } @@ -41,57 +42,56 @@ } // CS0472: The result of comparing value type `int' with null is always `true' -// Line: 8 +// 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 `byte' with null is always `false' -// Line: 9 + // CS0472: The result of comparing value type `int' with null is always `false' +// Line: 8 // Compiler options: -warnaserror -warn:2 -class C -{ - public static bool Test (byte value) +public class X { + public static bool Compute (int x) { - if (value == null) - return false; - - return true; + return x == null; } } - // CS0472: The result of comparing value type `E' with null is always `false' -// Line: 14 + // CS0472: The result of comparing value type `int' with null is always `false' +// Line: 12 // Compiler options: -warnaserror -enum E -{ -} +using System; class X { public static void Main () { - E u = 0; - var b = u == (E?)null; + int i = 0; + var x = i == default (byte?); } -} - // CS0472: The result of comparing value type `int' with null is always `true' +} + + // CS0472: The result of comparing value type `byte' with null is always `false' // Line: 9 // Compiler options: -warnaserror -warn:2 -public class X +class C { - public static void Compute (int x) + public static bool Test (byte value) { - if (true && x != null) - return; + if (value == null) + return false; + + return true; } } /usr/lib/monodoc/sources/cs-errors.zip/CS0501 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0501 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0501 2036-01-31 00:46:20.000000000 +0000 @@ -2,14 +2,6 @@ CS0501 - // 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 {} } -} - // CS0501: `C.operator !=(C, C)' must have a body because it is not marked abstract, extern, or partial // Line: 6 @@ -19,13 +11,6 @@ public static bool operator == (C l, C r); } - // 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: `Test.this[string].get' must have a body because it is not marked abstract, extern, or partial // Line: 6 @@ -34,5 +19,20 @@ public string this [string key] { get; set; } } + // 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 {} } +} + + // CS0501: `Class.X()' must have a body because it is not marked abstract, extern, or partial +// Line: 5 + +class Class { + virtual public void X (); +} + \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0505 2036-01-31 00:46:20.000000000 +0000 @@ -5,12 +5,14 @@ // CS0505: `DerivedClass.value()': cannot override because `BaseClass.value' is not a method // Line: 9 +using System; + class BaseClass { - protected int value; + protected EventHandler value; } class DerivedClass: BaseClass { - protected override int value() {} + protected override void value() {} } @@ -31,14 +33,12 @@ // CS0505: `DerivedClass.value()': cannot override because `BaseClass.value' is not a method // Line: 9 -using System; - class BaseClass { - protected EventHandler value; + protected int value; } class DerivedClass: BaseClass { - protected override void value() {} + protected override int 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0506 2036-01-31 00:46:20.000000000 +0000 @@ -13,29 +13,29 @@ } } - // 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; } - // 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0507 2036-01-31 00:46:20.000000000 +0000 @@ -2,18 +2,6 @@ CS0507 - // CS0507: `DerivedClass.Show()': cannot change access modifiers when overriding `protected' inherited member `BaseClass.Show()' -// Line: 9 - -class BaseClass { - protected virtual void Show () {} -} - -class DerivedClass: BaseClass { - public override void Show () {} -} - - // CS0507: `DerivedClass.Message': cannot change access modifiers when overriding `public' inherited member `BaseClass.Message' // Line: 12 @@ -32,20 +20,6 @@ } - // CS0507: `DerivedClass.Test': cannot change access modifiers when overriding `protected' inherited member `BaseClass.Test' -// Line: 11 - -using System; - -class BaseClass { - protected virtual event EventHandler Test; -} - -class DerivedClass: BaseClass { - public override sealed event EventHandler Test; -} - - // CS0507: `DerivedClass.Message.set': cannot change access modifiers when overriding `protected' inherited member `BaseClass.Message.set' // Line: 15 @@ -70,22 +44,29 @@ } - // CS0507: `Bar.X()': cannot change access modifiers when overriding `protected internal' inherited member `Foo.X()' -// Line: 13 + // 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 Foo +public sealed class Class2 : Class1 { - protected internal virtual void X () + protected override string GetString () { + return "Hello2"; } } + + // CS0507: `DerivedClass.Show()': cannot change access modifiers when overriding `protected' inherited member `BaseClass.Show()' +// Line: 9 -class Bar : Foo -{ - protected override void X () - { - } +class BaseClass { + protected virtual void Show () {} } + +class DerivedClass: BaseClass { + public override void Show () {} +} + // CS0507: `Class2.GetString()': cannot change access modifiers when overriding `protected' inherited member `Class1.GetString()' // Line: 7 @@ -99,6 +80,20 @@ } } + // CS0507: `DerivedClass.Test': cannot change access modifiers when overriding `protected' inherited member `BaseClass.Test' +// Line: 11 + +using System; + +class BaseClass { + protected virtual event EventHandler Test; +} + +class DerivedClass: BaseClass { + public override sealed event EventHandler Test; +} + + // CS0507: `DerivedClass.Message.set': cannot change access modifiers when overriding `public' inherited member `BaseClass.Message.set' // Line: 19 @@ -122,15 +117,20 @@ } - // CS0507: `Class2.GetString()': cannot change access modifiers when overriding `protected internal' inherited member `Class1.GetString()' -// Line: 7 -// Compiler options: -r:CS0507-7-lib.dll + // CS0507: `Bar.X()': cannot change access modifiers when overriding `protected internal' inherited member `Foo.X()' +// Line: 13 -public sealed class Class2 : Class1 +class Foo { - protected override string GetString () + protected internal virtual void X () + { + } +} + +class Bar : Foo +{ + protected override void X () { - return "Hello2"; } } /usr/lib/monodoc/sources/cs-errors.zip/CS0508 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0508 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0508 2036-01-31 00:46:20.000000000 +0000 @@ -2,22 +2,6 @@ CS0508 - // CS0508: `A<T>.B<H>.Test()': return type must be `A<T>.B<H>' to match overridden member `A<A<T>.B<H>>.Test()' -// Line: 10 - -abstract class A<T> -{ - public abstract T Test (); - - public class B<H> : A<B<H>> - { - public override B<H> Test () - { - return this; - } - } -} - // CS0508: `DerivedClass.Show()': return type must be `void' to match overridden member `BaseClass.Show()' // Line: 9 @@ -41,7 +25,23 @@ { public override B getT () { - throw new System.Exception ("The method or operation is not implemented."); + return default (B); + } + } +} + + // CS0508: `A<T>.B<H>.Test()': return type must be `A<T>.B<H>' to match overridden member `A<A<T>.B<H>>.Test()' +// Line: 10 + +abstract class A<T> +{ + public abstract T Test (); + + public class B<H> : A<B<H>> + { + public override B<H> Test () + { + return this; } } } @@ -57,7 +57,7 @@ { public override B getT () { - return default (B); + throw new System.Exception ("The method or operation is not implemented."); } } } /usr/lib/monodoc/sources/cs-errors.zip/CS0509 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0509 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0509 2036-01-31 00:46:20.000000000 +0000 @@ -2,20 +2,14 @@ CS0509 - // CS0509: `A': cannot derive from sealed type `D' -// Line: 6 - -delegate void D (); + // CS0509: `X': cannot derive from sealed type `V' +// Line: 8 -class A : D -{ +struct V { + int v; } - - // CS0509: `A': cannot derive from sealed type `System.Action' -// Line: 4 -class A : System.Action -{ +class X : V { } // CS0509: `InstanceClass': cannot derive from sealed type `E' @@ -26,20 +20,26 @@ class InstanceClass: E { } - // CS0509: `X': cannot derive from sealed type `V' -// Line: 8 + // CS0509: `X': cannot derive from sealed type `int' +// Line: 4 -struct V { - int v; +class X : int +{ } + + // CS0509: `A': cannot derive from sealed type `D' +// Line: 6 -class X : V { +delegate void D (); + +class A : D +{ } - // CS0509: `X': cannot derive from sealed type `int' + // CS0509: `A': cannot derive from sealed type `System.Action' // Line: 4 -class X : int +class A : System.Action { } /usr/lib/monodoc/sources/cs-errors.zip/CS0523 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0523 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0523 2036-01-31 00:46:20.000000000 +0000 @@ -2,13 +2,18 @@ CS0523 - // CS0523: Struct member `S<T>.s' of type `S<int>' 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> -{ - S<int> 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 @@ -34,17 +39,12 @@ public readonly Handle<Foo> Handle; } - // CS0523: Struct member `S.value' of type `G<string>' causes a cycle in the struct layout -// Line: 11 - -struct G<T> -{ - public static S s; -} + // CS0523: Struct member `S<T>.s' of type `S<T[]>' causes a cycle in the struct layout +// Line: 6 -struct S +struct S<T> { - private G<string> value; + static S<T[]> s; } // CS0523: Struct member `A.a' of type `A?' causes a cycle in the struct layout @@ -55,25 +55,25 @@ static A? a; } - // CS0523: Struct member `B.a' of type `A' causes a cycle in the struct layout -// Line: 9 + // CS0523: Struct member `S<T>.s' of type `S<int>' causes a cycle in the struct layout +// Line: 6 -struct A { - B b; +struct S<T> +{ + S<int> s; } + + // CS0523: Struct member `S.value' of type `G<string>' causes a cycle in the struct layout +// Line: 11 -struct B { - A a; +struct G<T> +{ + public static S s; } -class Y { static void Main () {} } - - // CS0523: Struct member `S<T>.s' of type `S<T[]>' causes a cycle in the struct layout -// Line: 6 - -struct S<T> +struct S { - static S<T[]> s; + private G<string> value; } /usr/lib/monodoc/sources/cs-errors.zip/CS0524 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0524 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0524 2036-01-31 00:46:20.000000000 +0000 @@ -6,7 +6,8 @@ // Line: 5 interface Interface { - interface I {} + public class C { + } } // CS0524: Interfaces cannot declare classes, structs, interfaces, delegates, or enumerations @@ -23,8 +24,7 @@ // Line: 5 interface Interface { - public class C { - } + delegate void D (); } // CS0524: Interfaces cannot declare classes, structs, interfaces, delegates, or enumerations @@ -39,7 +39,7 @@ // Line: 5 interface Interface { - delegate void D (); + interface I {} } /usr/lib/monodoc/sources/cs-errors.zip/CS0525 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0525 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0525 2036-01-31 00:46:20.000000000 +0000 @@ -3,19 +3,19 @@ CS0525 // CS0525: Interfaces cannot contain fields or constants -// Line: 6 +// Line: 9 interface Interface -{ - bool value = false; +{ + const bool value = false; } // CS0525: Interfaces cannot contain fields or constants -// Line: 9 +// Line: 6 interface Interface -{ - const bool value = false; +{ + bool value = false; } /usr/lib/monodoc/sources/cs-errors.zip/CS0527 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0527 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0527 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,14 @@ CS0527 + // CS0527: Type `X' in interface list is not an interface +// Line: 6 +class X { +} + +interface A : X { +} + // CS0527: Type `B' in interface list is not an interface // Line: 4 @@ -11,13 +19,5 @@ struct B : A { } - // CS0527: Type `X' in interface list is not an interface -// Line: 6 -class X { -} - -interface A : X { -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0528 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0528 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0528 2036-01-31 00:46:20.000000000 +0000 @@ -2,15 +2,6 @@ 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 { @@ -22,5 +13,14 @@ } + // 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0529 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,18 @@ 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 @@ -18,17 +30,5 @@ } - // 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/CS0533 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0533 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0533 2036-01-31 00:46:20.000000000 +0000 @@ -2,29 +2,6 @@ CS0533 - // CS0533: `MyAbstract.Initialize()' hides inherited abstract member `MyAbstractBase.Initialize()' -// Line: 10 -public abstract class MyAbstractBase -{ - public abstract void Initialize(); -} - -public abstract class MyAbstract : MyAbstractBase -{ - public void Initialize() { - } -} - - -public class Program -{ - public static void Main(string[] args) - { - } -} - - - // CS0533: `DerivedClass.Foo()' hides inherited abstract member `BaseClass.Foo()' // Line: 9 @@ -48,21 +25,31 @@ } class B : A { - public new event EventHandler MyEvent; + public event EventHandler MyEvent; } - // CS0533: `B.MyEvent' hides inherited abstract member `A.MyEvent' -// Line: 11 - -using System; + // CS0533: `MyAbstract.Initialize()' hides inherited abstract member `MyAbstractBase.Initialize()' +// Line: 10 +public abstract class MyAbstractBase +{ + public abstract void Initialize(); +} -abstract class A { - public abstract event EventHandler MyEvent; +public abstract class MyAbstract : MyAbstractBase +{ + public void Initialize() { + } } -class B : A { - public event EventHandler MyEvent; + +public class Program +{ + public static void Main(string[] args) + { + } } + + // CS0533: `DerivedClass.Foo' hides inherited abstract member `BaseClass.Foo()' // Line: 11 @@ -78,5 +65,18 @@ } + // 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; +} + \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0534 2036-01-31 00:46:20.000000000 +0000 @@ -2,70 +2,67 @@ CS0534 - // CS0534: `C' does not implement inherited abstract member `B.Foo(string)' -// Line: 13 + // CS0534: `DerivedClass' does not implement inherited abstract member `BaseClass.Value.set' +// Line: 8 -public abstract class A -{ - public abstract int Foo (string s); +abstract class BaseClass { + protected abstract int Value { get; set; } } -public abstract class B : A -{ - public abstract override int Foo (string s); +class DerivedClass: BaseClass { + protected override int Value { get {} } } + + // CS0534: `Y' does not implement inherited abstract member `X.myAbstract()' +// Line: 5 -public class C : B -{ +abstract class X { + public abstract void myAbstract (); } + +class Y : X { +static void Main (){} +} + - // CS0534: `Foo' does not implement inherited abstract member `SomeAbstract.SomeProperty.get' + // CS0534: `B' does not implement inherited abstract member `A<int>.set_Prop(int)' // Line: 13 -public class SomeProperty +abstract class A<T> { -} + public abstract void set_Prop (int value); -public abstract class SomeAbstract -{ - public abstract SomeProperty SomeProperty { get; } + public virtual T Prop { + set { } + } } -public class Foo : SomeAbstract +class B : A<int> { - public static SomeProperty SomeProperty { get { return null; } } + public override int Prop { + set { } + } } - - // CS0534: `DerivedClass' does not implement inherited abstract member `BaseClass.Value.set' -// Line: 8 - -abstract class BaseClass { - protected abstract int Value { get; set; } -} + // CS0534: `C1' does not implement inherited abstract member `A.M(int)' +// Line: 16 -class DerivedClass: BaseClass { - protected override int Value { get {} } +public abstract class A +{ + public abstract void M (int i); } - - // CS0534: `C' does not implement inherited abstract member `B.Foo()' -// Line: 16 -class A +internal class C0 : A { - public virtual void Foo () + public override void M (int i) { } } -abstract class B : A +internal class C1 : A { - public abstract override void Foo (); } - -class C : B -{ -} + // CS0534: `MyTestExtended' does not implement inherited abstract member `MyTestAbstract.GetName()' // Line: 6 // Compiler options: -r:CS0534-4-lib.dll @@ -87,33 +84,6 @@ } - // CS0534: `C1' does not implement inherited abstract member `A.M(int)' -// Line: 16 - -public abstract class A -{ - public abstract void M (int i); -} - -internal class C0 : A -{ - public override void M (int i) - { - } -} - -internal class C1 : A -{ -} - - // CS0534: `M' does not implement inherited abstract member `B.BMethod()' -// Line: 5 -// Compiler options: -r:CS0534-6-lib.dll - -class M : C -{ -} - // CS0534: `MyTestExtended' does not implement inherited abstract member `MyTestAbstract.GetName()' // Line: 6 // Compiler options: -r:CS0534-3-lib.dll @@ -135,6 +105,24 @@ } + // CS0534: `C' does not implement inherited abstract member `B.Foo()' +// Line: 16 + +class A +{ + public virtual void Foo () + { + } +} + +abstract class B : A +{ + public abstract override void Foo (); +} + +class C : B +{ +} // CS0534: `B' does not implement inherited abstract member `A<int>.set_Prop(int)' // Line: 13 @@ -154,36 +142,48 @@ } } - // CS0534: `B' does not implement inherited abstract member `A<int>.set_Prop(int)' + // CS0534: `Foo' does not implement inherited abstract member `SomeAbstract.SomeProperty.get' // Line: 13 -abstract class A<T> +public class SomeProperty { - public abstract void set_Prop (int value); +} - public virtual T Prop { - set { } - } +public abstract class SomeAbstract +{ + public abstract SomeProperty SomeProperty { get; } } -class B : A<int> +public class Foo : SomeAbstract { - public override int Prop { - set { } - } + public static SomeProperty SomeProperty { get { return null; } } } + - // CS0534: `Y' does not implement inherited abstract member `X.myAbstract()' /usr/lib/monodoc/sources/cs-errors.zip/CS0535 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0535 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0535 2036-01-31 00:46:20.000000000 +0000 @@ -2,35 +2,25 @@ CS0535 - // CS0535: `B' does not implement interface member `ITest2.GetName(string)' -// Line: 17 - -public interface ITest1 { - void GetName(string id); -} + // CS0535: `Test' does not implement interface member `X.Hola(ref string)' +// Line: 9 -public interface ITest2 { - void GetName(string id); +using System; +interface X { + void Hola (ref string name); } -public class A : ITest1 { - void ITest1.GetName(string id) { +class Test : X { + static void Main () + { } -} - -public class B : A, ITest2 { -} - // CS0535: `Class' does not implement interface member `Interface.Method()' -// Line: 8 - -interface Interface { - void Method(); -} -class Class: Interface { + public void Hola (out string name) + { + name = null; + } } - // CS0535: `ServerProperty' does not implement interface member `IServerProperty.SetValue(string, uint)' // Line: 10 @@ -49,14 +39,14 @@ } } - // CS0535: `CC' does not implement interface member `IA.Coordinate.set' + // CS0535: `CC' does not implement interface member `IA.this[int].set' // Line: 33 using System; public interface IA { - object Coordinate { + object this[int arg] { get; set; } @@ -64,7 +54,7 @@ public abstract class CA : IA { - public abstract object Coordinate { + public abstract object this[int arg] { get; set; } @@ -72,7 +62,7 @@ public partial class CB : CA { - public override object Coordinate { + public override object this[int arg] { get { throw new NotImplementedException (); } @@ -83,7 +73,7 @@ public class CC : CB, IA { - public new object Coordinate { + public new object this[int arg] { get { throw new NotImplementedException (); } @@ -110,14 +100,14 @@ static void Main () {} } - // CS0535: `CC' does not implement interface member `IA.this[int].set' + // CS0535: `CC' does not implement interface member `IA.Coordinate.set' // Line: 33 using System; public interface IA { - object this[int arg] { + object Coordinate { get; set; } @@ -125,7 +115,7 @@ public abstract class CA : IA { - public abstract object this[int arg] { + public abstract object Coordinate { get; set; } @@ -133,7 +123,7 @@ public partial class CB : CA { - public override object this[int arg] { + public override object Coordinate { get { throw new NotImplementedException (); } @@ -144,13 +134,43 @@ public class CC : CB, IA { - public new object this[int arg] { + public new object Coordinate { get { throw new NotImplementedException (); } } } + // CS0535: `Class' does not implement interface member `Interface.Method()' +// Line: 8 + +interface Interface { + void Method(); +} + +class Class: Interface { +} + + + + // CS0535: `B' does not implement interface member `ITest2.GetName(string)' +// Line: 17 + +public interface ITest1 { + void GetName(string id); +} + +public interface ITest2 { + void GetName(string id); +} + +public class A : ITest1 { + void ITest1.GetName(string id) { + } +} + +public class B : A, ITest2 { +} // CS0535: `CA' does not implement interface member `IA.M()' // Line: 14 @@ -171,25 +191,5 @@ } } - // CS0535: `Test' does not implement interface member `X.Hola(ref string)' -// Line: 9 - -using System; -interface X { - void Hola (ref string name); -} - -class Test : X { - static void Main () - { - } - - public void Hola (out string name) - { - name = null; - } -} - - /usr/lib/monodoc/sources/cs-errors.zip/CS0540 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0540 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0540 2036-01-31 00:46:20.000000000 +0000 @@ -26,18 +26,6 @@ } } - // CS0540: `B.A.B()': containing type does not implement interface `A' -// Line: - -interface A { -} - -class B { - void A.B () {} - - static void Main () {} -} - // CS0540: `Foo.ISomeProp.SomeProperty': containing type does not implement interface `ISomeProp' // Line: 18 @@ -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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0542 2036-01-31 00:46:20.000000000 +0000 @@ -2,25 +2,21 @@ CS0542 - // CS0542: `Program.Program(object)': member names cannot be the same as their enclosing type + // CS0542: `C.C<T>()': member names cannot be the same as their enclosing type // Line: 6 -class Program +class C { - void Program (object sender) + public static void C<T> () { } } - // CS0542: `Item.this[int]': member names cannot be the same as their enclosing type -// Line: 6 - -class Item -{ - public int this[int i] { - set {} - } + // CS0542: `X.X': member names cannot be the same as their enclosing type +// Line: 4 +class X { + int X; } @@ -34,20 +30,24 @@ } } - // CS0542: `X.X': member names cannot be the same as their enclosing type -// Line: 4 -class X { - int X; + // CS0542: `Program.Program(object)': member names cannot be the same as their enclosing type +// Line: 6 + +class Program +{ + void Program (object sender) + { + } } - // CS0542: `C.C<T>()': member names cannot be the same as their enclosing type + // CS0542: `Item.this[int]': member names cannot be the same as their enclosing type // Line: 6 -class C +class Item { - public static void C<T> () - { + public int this[int i] { + set {} } } /usr/lib/monodoc/sources/cs-errors.zip/CS0545 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0545 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0545 2036-01-31 00:46:20.000000000 +0000 @@ -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/CS0548 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0548 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0548 2036-01-31 00:46:20.000000000 +0000 @@ -2,13 +2,20 @@ CS0548 - // CS0548: `PropertyInterface.this[long]': property or indexer must have at least one accessor + // CS0548: `IndexerClass.this[bool]': property or indexer must have at least one accessor // Line: 5 -interface PropertyInterface { - int this [long l] {} +class IndexerClass { + 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 @@ -18,20 +25,13 @@ } - // CS0548: `IndexerClass.this[bool]': property or indexer must have at least one accessor + // CS0548: `PropertyInterface.this[long]': property or indexer must have at least one accessor // Line: 5 -class IndexerClass { - public int this [bool b] { } +interface PropertyInterface { + int this [long l] {} } - - // CS0548: `PropertyClass.Value': property or indexer must have at least one accessor -// Line: 5 -class PropertyClass { - public int Value { - } -} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0551 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0551 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0551 2036-01-31 00:46:20.000000000 +0000 @@ -2,23 +2,6 @@ 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 @@ -37,5 +20,22 @@ } + // 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0553 2036-01-31 00:46:20.000000000 +0000 @@ -2,20 +2,6 @@ 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 @@ -32,5 +18,19 @@ } } + // 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0555 2036-01-31 00:46:20.000000000 +0000 @@ -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/CS0557 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0557 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0557 2036-01-31 00:46:20.000000000 +0000 @@ -2,27 +2,6 @@ CS0557 - // CS0557: Duplicate user-defined conversion in type `Foo' -// Line: 5 - -public enum Bar -{ - ABar -} - - -public class Foo -{ - public static explicit operator Foo(Bar the_bar) - { - return new Foo(); - } - public static implicit operator Foo(Bar the_bar) - { - return new Foo(); - } -} - // CS0557: Duplicate user-defined conversion in type `C' // Line: 9 class C { @@ -63,5 +42,26 @@ } } + // CS0557: Duplicate user-defined conversion in type `Foo' +// Line: 5 + +public enum Bar +{ + ABar +} + + +public class Foo +{ + public static explicit operator Foo(Bar the_bar) + { + return new Foo(); + } + public static implicit operator Foo(Bar the_bar) + { + return new Foo(); + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0568 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0568 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0568 2036-01-31 00:46:20.000000000 +0000 @@ -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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0571 2036-01-31 00:46:20.000000000 +0000 @@ -2,35 +2,6 @@ CS0571 - // 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 - -using System.Runtime.CompilerServices; - -class MainClass { - [IndexerName ("AA")] - int this [int Value, bool Value2, string Value3] { - get { - return 1; - } - } - - public MainClass () { - int i = get_AA (2, false, "aaa"); - } -} - // CS0571: `IFoo.this[int].get': cannot explicitly call operator or accessor // Line: 11 // Compiler options: -r:CS0571-6-lib.dll @@ -45,16 +16,6 @@ } } - // CS0571: `System.Reflection.MemberInfo.Name.get': cannot explicitly call operator or accessor -// Line: 8 -using System; - -public class EntryPoint { - public static void Main () { - Type type = typeof(string); - Console.WriteLine (type.get_Name()); - } -} // CS0571: `Test.C0.foo.get': cannot explicitly call operator or accessor // Line: 12 // Compiler options: -r:CS0571-3-lib.dll @@ -71,6 +32,42 @@ } + // CS0571: `MainClass.Value.get': cannot explicitly call operator or accessor +// Line: 12 + +class MainClass { + static int Value { + get { + return 1; + } + } + + public static void Main() { + int value = get_Value(); + } +} + + // 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: `System.Reflection.MemberInfo.Name.get': cannot explicitly call operator or accessor +// Line: 8 +using System; + +public class EntryPoint { + public static void Main () { + Type type = typeof(string); + Console.WriteLine (type.get_Name()); + } +} // CS0571: `C.Prop.set': cannot explicitly call operator or accessor // Line: 14 @@ -88,19 +85,22 @@ } } - // CS0571: `MainClass.Value.get': cannot explicitly call operator or accessor -// Line: 12 + // CS0571: `MainClass.this[int, bool, string].get': cannot explicitly call operator or accessor +// Line: 15 + +using System.Runtime.CompilerServices; class MainClass { - static int Value { - get { - return 1; - } - } - - public static void Main() { - int value = get_Value(); - } + [IndexerName ("AA")] + int this [int Value, bool Value2, string Value3] { + get { + return 1; + } + } + + public MainClass () { + int i = get_AA (2, false, "aaa"); + } } /usr/lib/monodoc/sources/cs-errors.zip/CS0573 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0573 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0573 2036-01-31 00:46:20.000000000 +0000 @@ -11,6 +11,14 @@ } // CS0573: 'S': Structs cannot have instance property or field initializers +// Line: 6 + +struct S +{ + int v = 0; +} + + // CS0573: 'S': Structs cannot have instance property or field initializers // Line: 8 using System; @@ -19,13 +27,5 @@ { event Action E = null; } - // CS0573: 'S': Structs cannot have instance property or field initializers -// Line: 6 - -struct S -{ - int v = 0; -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0576 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0576 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0576 2036-01-31 00:46:20.000000000 +0000 @@ -2,20 +2,19 @@ CS0576 - // CS0576: Namespace `global::' contains a definition with same name as alias `S' -// Line: 14 - -using S = System; + // CS0576: Namespace `Top' contains a definition with same name as alias `T' +// Line: 12 -public class S +namespace Top { -} + using T = System.Exception; -public class Test -{ - public static void Main() + namespace T { - S s; + class C + { + T t; + } } } @@ -34,19 +33,20 @@ } } } - // CS0576: Namespace `Top' contains a definition with same name as alias `T' -// Line: 12 + // CS0576: Namespace `global::' contains a definition with same name as alias `S' +// Line: 14 -namespace Top +using S = System; + +public class S { - using T = System.Exception; +} - namespace T +public class Test +{ + public static void Main() { - class C - { - T t; - } + S s; } } /usr/lib/monodoc/sources/cs-errors.zip/CS0579 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0579 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0579 2036-01-31 00:46:20.000000000 +0000 @@ -2,95 +2,41 @@ CS0579 - // CS0579: The attribute `ReturnAttribute' cannot be applied multiple times -// Line : 17 - -using System; -using System.Reflection; - -[AttributeUsage (AttributeTargets.ReturnValue)] -public class ReturnAttribute : Attribute -{ - public ReturnAttribute () - { - } -} - -public class Blah { - [return: Return ()] - [return: Return ()] - public static void Main () { } -} - - - // CS0579: The attribute `ConditionalAttributeTesting.SomeAttribute' cannot be applied multiple times -// Line: 12 + // CS0579: The attribute `TestAttributesCollecting.A' cannot be applied multiple times +// Line: 19 using System; -using System.Diagnostics; -namespace ConditionalAttributeTesting +namespace TestAttributesCollecting { - class MainClass + class A : Attribute { - [Some ("Test")] - [Some ("Test2")] - public static void Test () + public A (int a) { } } - [AttributeUsage (AttributeTargets.All)] - [Conditional ("NOT_DEFINED")] - public sealed class SomeAttribute : Attribute + partial class G1<[A (1)]T> { - public SomeAttribute (string someText) - { - } } -} - // CS0579: The attribute `System.ObsoleteAttribute' cannot be applied multiple times -// Line: 14 - -using System; - -partial class C -{ - [Obsolete ("A")] - partial void PartialMethod () + partial class G1<[A (2)]T> { } - - [Obsolete ("A")] - partial void PartialMethod (); } - // CS0579: The attribute `System.ObsoleteAttribute' cannot be applied multiple times -// Line : 8 + // CS0579: The attribute `System.CLSCompliantAttribute' cannot be applied multiple times +// Line : 10 using System; -class MainClass { - [Obsolete] - [Obsolete] - static void Main() - { - } -} - - // CS0579: The attribute `System.Reflection.AssemblyKeyNameAttribute' cannot be applied multiple times -// Line : 7 -// Compiler options: CS0579-4-1.cs - -using System.Reflection; - -[assembly: AssemblyKeyName("")] +[assembly:CLSCompliant(true)] -public class Blah { - public static void Main () { } +namespace DuplicateAttributes { + [CLSCompliant(true)] + [CLSCompliant(true)] + public class ClassA {} } - // CS0579: The attribute `SimpleAttribute' cannot be applied multiple times // Line : 18 @@ -113,18 +59,17 @@ public partial class Blah { } - // CS0579: The attribute `System.Diagnostics.DebuggableAttribute' cannot be applied multiple times -// Line: 7 + // CS0579: The attribute `System.CLSCompliantAttribute' cannot be applied multiple times +// Line : 10 -using System.Diagnostics; +using System; -[module: DebuggableAttribute (false, false)] -[module: DebuggableAttribute (false, false)] +[assembly:CLSCompliant(true)] -class MainClass { - static void Main() - { - } +namespace DuplicateAttributes { + [CLSCompliant(true)] + [type:CLSCompliant(true)] + public class ClassA {} } // CS0579: The attribute `System.Reflection.AssemblyKeyNameAttribute' cannot be applied multiple times @@ -164,70 +109,125 @@ } } - // CS0579: The attribute `System.ObsoleteAttribute' cannot be applied multiple times + // CS0579: The attribute `ConditionalAttributeTesting.SomeAttribute' cannot be applied multiple times // Line: 12 +using System; +using System.Diagnostics; + +namespace ConditionalAttributeTesting +{ + class MainClass + { + [Some ("Test")] + [Some ("Test2")] + public static void Test () + { + } + } + + [AttributeUsage (AttributeTargets.All)] + [Conditional ("NOT_DEFINED")] + public sealed class SomeAttribute : Attribute + { + public SomeAttribute (string someText) + { + } + } +} + // 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 () { } + + [Obsolete ("A")] + partial void PartialMethod (); } - // CS0579: The attribute `System.CLSCompliantAttribute' cannot be applied multiple times -// Line : 10 + // CS0579: The attribute `System.ObsoleteAttribute' cannot be applied multiple times +// Line : 8 using System; -[assembly:CLSCompliant(true)] - -namespace DuplicateAttributes { - [CLSCompliant(true)] /usr/lib/monodoc/sources/cs-errors.zip/CS0591 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0591 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0591 2036-01-31 00:46:20.000000000 +0000 @@ -2,18 +2,39 @@ CS0591 + // CS0591: Invalid value for argument to `System.AttributeUsageAttribute' attribute +// Line: 4 + +[System.AttributeUsage(0)] +class ClassMain { + + public static void Main () { + } +} + + // CS0591: Invalid value for argument to `System.Runtime.CompilerServices.MethodImplAttribute' attribute // Line: 8 using System.Runtime.CompilerServices; -class Test +class Program { - [MethodImplAttribute(445)] - public void test () + [MethodImpl((MethodImplOptions)255)] + void Foo() { } } + // 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.Runtime.InteropServices.DllImportAttribute' attribute // Line: 8 @@ -21,7 +42,7 @@ using System; class X { - [DllImport ("")] + [DllImport (null)] extern static void Blah (); static void Main (string [] args) @@ -30,27 +51,6 @@ } - // CS0591: Invalid value for argument to `System.AttributeUsageAttribute' attribute -// Line: 4 - -[System.AttributeUsage(0)] -class ClassMain { - - public static void Main () { - } -} - - - // 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.Runtime.InteropServices.DllImportAttribute' attribute // Line: 8 @@ -58,7 +58,7 @@ using System; class X { - [DllImport (null)] + [DllImport ("")] extern static void Blah (); static void Main (string [] args) @@ -72,10 +72,10 @@ using System.Runtime.CompilerServices; -class Program +class Test { - [MethodImpl((MethodImplOptions)255)] - void Foo() + [MethodImplAttribute(445)] + public void test () { } } /usr/lib/monodoc/sources/cs-errors.zip/CS0592 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0592 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0592 2036-01-31 00:46:20.000000000 +0000 @@ -2,35 +2,25 @@ CS0592 - // CS0592: The attribute `SimpleAttribute' is not valid on this declaration type. It is valid on `constructor' declarations only -// Line : 22 + // 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, AllowMultiple = true)] - public class SimpleAttribute : Attribute { - - string name = null; - - public string MyNamedArg; - - public SimpleAttribute (string name) - { - this.name = name; - } - - - } +[AttributeUsage(AttributeTargets.Constructor)] +public class TestAttribute: Attribute { +} + // CS0592: The attribute `System.Runtime.CompilerServices.IndexerNameAttribute' is not valid on this declaration type. It is valid on `property, indexer' declarations only +// Line : 6 -[Simple ("Dummy", MyNamedArg = "Dude!")] - public class Blah { +using System.Runtime.CompilerServices; - public static void Main () - { - } - } - - +[IndexerName("XXX")] +class A { + public static void Main () { } + +} // CS0592: The attribute `SAttribute' is not valid on this declaration type. It is valid on `return' declarations only // Line : 12 @@ -49,17 +39,48 @@ } } + // 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: 6 using System; [TestAttribute ()] -delegate void D (); +enum E { +} [AttributeUsage(AttributeTargets.Constructor)] public class TestAttribute: Attribute { } + // 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 () {} +} + // CS0592: The attribute `MyAttributeAttribute' is not valid on this declaration type. It is valid on `interface' declarations only // Line : 8 @@ -85,64 +106,43 @@ - // CS0592: The attribute `TestAttribute' is not valid on this declaration type. It is valid on `constructor' declarations only -// Line: 6 - -using System; - -[TestAttribute ()] -enum E { -} - -[AttributeUsage(AttributeTargets.Constructor)] -public class TestAttribute: Attribute { -} - // CS0592: The attribute `EnumAttribute' is not valid on this declaration type. It is valid on `method' declarations only -// Line: 13 + // CS0592: The attribute `SimpleAttribute' is not valid on this declaration type. It is valid on `constructor' declarations only +// Line : 22 using System; -using System.Reflection; - -[AttributeUsage(AttributeTargets.Method)] -public class EnumAttribute : Attribute {} -public enum E -{ - e_1, - [EnumAttribute] - e_2 -} - - // 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.Constructor, AllowMultiple = true)] + public class SimpleAttribute : Attribute { -using System.Runtime.CompilerServices; + string name = null; -[IndexerName("XXX")] -class A { - public static void Main () { } - -} - - // 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 + public string MyNamedArg; + + public SimpleAttribute (string name) + { + this.name = name; + } + + + } -using System; +[Simple ("Dummy", MyNamedArg = "Dude!")] + public class Blah { -public class C -{ - [return: Obsolete] - public void Test (int a) - { - } - static public void Main () {} -} + public static void Main () + { + } + } + + // CS0592: The attribute `TestAttribute' is not valid on this declaration type. It is valid on `constructor' declarations only -// Line: 5 +// Line: 6 using System; -[assembly:TestAttribute ()] + +[TestAttribute ()] +delegate void D (); [AttributeUsage(AttributeTargets.Constructor)] public class TestAttribute: Attribute { /usr/lib/monodoc/sources/cs-errors.zip/CS0594 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0594 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0594 2036-01-31 00:46:20.000000000 +0000 @@ -11,30 +11,30 @@ } } - // CS0594: Floating-point constant is outside the range of type `decimal' + // CS0594: Floating-point constant is outside the range of type `float' // Line: 6 class X { public static void Main() { - decimal d = 12311111111111111111111111111111111111111111111111m; + float b = 11111111111111111111111111111111111122222222222222222f; } } - // CS0594: Floating-point constant is outside the range of type `double' + // CS0594: Floating-point constant is outside the range of type `decimal' // Line: 6 class X { public static void Main() { - double dbl = 1.0e99999; + decimal d = 12311111111111111111111111111111111111111111111111m; } } - // 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/CS0610 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0610 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0610 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,16 @@ CS0610 + // CS0610: Field or property cannot be of type `System.ArgIterator' +// Line: 5 + +public class Sample { + System.ArgIterator arg; +} + + + + // CS0610: Field or property cannot be of type `System.TypedReference' // Line: 5 @@ -21,16 +31,6 @@ } - - - // CS0610: Field or property cannot be of type `System.ArgIterator' -// Line: 5 - -public class Sample { - System.ArgIterator arg; -} - - /usr/lib/monodoc/sources/cs-errors.zip/CS0611 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0611 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0611 2036-01-31 00:46:20.000000000 +0000 @@ -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.ArgIterator' // 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0612 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,33 @@ 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: `O1' is obsolete // Line: 23 // Compiler options: -warnaserror @@ -29,21 +56,6 @@ } } - // CS0612: `A.Value' is obsolete -// Line: 13 -// Compiler options: -warnaserror - -class A { - [System.Obsolete] - int Value { - set { - } - } - - public A () { - Value = 4; - } -} // CS0612: `Foo.Bar' is obsolete // Line: 8 // Compiler options: -r:CS0612-2-lib.dll -warnaserror @@ -61,7 +73,7 @@ // Compiler options: -warnaserror class A { - [System.Obsolete ("")] + [System.Obsolete] int Value { set { } @@ -71,33 +83,6 @@ 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: `E.GetEnumerator()' is obsolete // Line: 22 // Compiler options: -warnaserror @@ -123,5 +108,20 @@ } } } + // CS0612: `A.Value' is obsolete +// Line: 13 +// Compiler options: -warnaserror + +class A { + [System.Obsolete ("")] + int Value { + set { + } + } + + public A () { + Value = 4; + } +} \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0617 2036-01-31 00:46:20.000000000 +0000 @@ -9,21 +9,6 @@ public sealed class FooAttribute : Attribute { - public short Foo { get; private set; } -} - -[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 - -using System; - -public sealed class FooAttribute : Attribute -{ internal int Foo; } @@ -32,21 +17,6 @@ { } - // 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; - -public sealed class FooAttribute : Attribute -{ - public static int Foo; -} - -[Foo (Foo = 1)] -public class Tests -{ -} - // 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 @@ -73,6 +43,21 @@ } } + // 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; + +public sealed class FooAttribute : Attribute +{ + public short Foo { get; private set; } +} + +[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 // Line: 11 @@ -86,5 +71,20 @@ [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 + +using System; + +public sealed class FooAttribute : Attribute +{ + public static int Foo; +} + +[Foo (Foo = 1)] +public class Tests +{ +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0618 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0618 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0618 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,18 @@ 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 @@ -33,17 +45,5 @@ #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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0619 2036-01-31 00:46:20.000000000 +0000 @@ -2,20 +2,138 @@ CS0619 - // CS0619-47: `A.Field' is obsolete: `!!!' + // CS0619: `ObsoleteException' is obsolete: `' +// Line: 15 + +using System; + +[System.Obsolete("", true)] +class ObsoleteException: Exception { +} + +class MainClass { + public void Method () + { + try { + } + catch (ObsoleteException) { + } + } +} + // CS0619: `I' is obsolete: `Do not use it' +// Line: 12 + +using System; + +[Obsolete("Do not use it", true)] +interface I { +} + +class B { + I i; +} + // CS0619: `Obsolete' is obsolete: `!!!' +// Line: 9 + +[System.Obsolete("!!!", true)] +class Obsolete { +} + +class Class { + public void Method (Obsolete o) + { + } +} + + // CS0619: `A' is obsolete: `stop' // Line: 11 -class A: System.Attribute +using System; + +[Obsolete ("stop", true)] +public class A { - [System.Obsolete("!!!", true)] - public int Field; } -class Obsolete { - [A(Field=2)] - public int Foo; +public class C<T> where T : A +{ } + // CS0619: `Obsolete.MethodError()' is obsolete: `Do not use it.' +// Line: 12 + +class Obsolete { + [System.Obsolete("Do not use it.", true)] + public static void MethodError() { + } +} + +class MainClass { + public static void Main () { + Obsolete.MethodError(); + } +} + // CS0619: `D' is obsolete: `Do not use it' +// Line: 12 + +using System; + +[Obsolete("Do not use it", true)] +delegate void D(); + +class B { + event D e; +} + // CS0619: `Obsolete' is obsolete: `' +// Line: 19 +// Compiler options: -unsafe + +class Box { + public Helper o; +} + +[System.Obsolete("", true)] +unsafe struct Obsolete { +} + +unsafe struct Helper {} + +class MainClass { + unsafe public static void Main () + { + Box b = new Box (); + fixed (Obsolete* p = &b.o) + { + } + } +} + // CS0619: `ObsoleteClass' is obsolete: `Is obsolete' +// Line: 13 + +using System; + +[Obsolete("Is obsolete", true)] +class ObsoleteClass +{ +} + +interface Ex +{ + void Foo (ObsoleteClass o1, ObsoleteClass o2); +} + // CS0619: `ObsoleteIface' is obsolete: `Do not use it.' +// Line: 12 + +using System; + +[Obsolete("Do not use it.", true)] +interface ObsoleteIface { +} + + +interface Ex: ObsoleteIface +{ +} // CS0619-40: `C.ob' is obsolete: `ooo' // Line: 13 @@ -34,62 +152,88 @@ } } - // CS0619-50: `A.B' is obsolete: `yes' -// Line: 12 + // CS0619-36: `Error.member' is obsolete: `Obsolete member' +// Line: 8 +// Compiler options: -reference:CS0619-36-lib.dll -using Z = A.B; +class A { + public A () { + Error e = new Error (); + ++e.member; + } +} + // CS0619: `O' is obsolete: `' +// Line: 12 -class A +[System.Obsolete("", true)] +class O { - [System.Obsolete("yes", true)] - public class B - { - } +} - static void Main () - { - Z z; - } +class MainClass { + public void Method () + { + lock (new O ()) { + } + } } - // CS0619: `Obsolete' is obsolete: `!!!' -// Line: 9 + // CS0619-29: `Obsolete.Error' is obsolete: `Do not use it.' +// Line: 15 -[System.Obsolete("!!!", true)] class Obsolete { + [System.Obsolete("Do not use it.", true)] + public static bool Error { + get { + return false; /usr/lib/monodoc/sources/cs-errors.zip/CS0625 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0625 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0625 2036-01-31 00:46:20.000000000 +0000 @@ -2,20 +2,16 @@ CS0625 - // 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 { @@ -24,16 +20,20 @@ } } - // CS0625: `CS0625.GValue.foo': Instance field types marked with StructLayout(LayoutKind.Explicit) must have a FieldOffset attribute + // 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)] - class GValue { - public int foo; + [StructLayout (LayoutKind.Explicit)] + partial struct GValue + { + } + + partial struct GValue { + public int value; } 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0626 2036-01-31 00:46:20.000000000 +0000 @@ -2,26 +2,20 @@ 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 + // CS0626: `Test.OnFoo' is marked as an external but has no DllImport attribute. Consider adding a DllImport attribute to specify the external implementation +// Line: 9 +// Compiler options: -warnaserror -warn:1 -public sealed class A -{ - extern ~A (); + +using System; + +public delegate void Handler (); + +class Test { + extern event Handler OnFoo; } - - // 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 -class C -{ - public extern char this[int index] - { - 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 @@ -30,6 +24,15 @@ public static extern int ExternMethod { set; } } + // 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.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 @@ -38,20 +41,6 @@ static public extern implicit operator ExternClass(byte value); } - // CS0626: `Test.OnFoo' is marked as an external but has no DllImport attribute. Consider adding a DllImport attribute to specify the external implementation -// Line: 9 -// Compiler options: -warnaserror -warn:1 - - -using System; - -public delegate void Handler (); - -class Test { - extern event Handler OnFoo; -} - - // 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 @@ -61,6 +50,17 @@ 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 + +class C +{ + public extern char this[int index] + { + 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 /usr/lib/monodoc/sources/cs-errors.zip/CS0628 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0628 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0628 2036-01-31 00:46:20.000000000 +0000 @@ -2,22 +2,6 @@ CS0628 - // 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 () {} -} - // CS0628: `Test.print_argv(string[])': new protected member declared in sealed class // Line: 8 // Compiler options: -warn:4 -warnaserror @@ -36,5 +20,21 @@ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0631 2036-01-31 00:46:20.000000000 +0000 @@ -16,17 +16,17 @@ // Line: 5 class X { - public static explicit operator X (ref X[] foo) - { - 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; + } } /usr/lib/monodoc/sources/cs-errors.zip/CS0633 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0633 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0633 2036-01-31 00:46:20.000000000 +0000 @@ -9,41 +9,45 @@ public class C { - [IndexerName (null)] + [IndexerName ("class")] public string this [int i] { set { } } } // CS0633: The argument to the `System.Runtime.CompilerServices.IndexerNameAttribute' attribute must be a valid identifier +// Line: 5 + +public class MonthDays { + [System.Runtime.CompilerServices.IndexerName ("buggypo for you")] + public int this [int a] { + get { + return 0; + } + } + + 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")] + [IndexerName (null)] public string this [int i] { set { } } } // 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.Diagnostics.ConditionalAttribute' attribute must be a valid identifier // Line: 6 using System.Diagnostics; @@ -70,21 +74,17 @@ - // CS0633: The argument to the `System.Runtime.CompilerServices.IndexerNameAttribute' attribute must be a valid identifier -// Line: 5 + // CS0633: The argument to the `System.Diagnostics.ConditionalAttribute' attribute must be a valid identifier +// Line: 8 -public class MonthDays { - [System.Runtime.CompilerServices.IndexerName ("buggypo for you")] - public int this [int a] { - get { - return 0; - } - } +using System; +using System.Diagnostics; - public static void Main () - { - int i = new MonthDays () [1]; - } +class TestClass { + [Conditional ("UNDEFINED CONDITION")] + static void ConditionalMethod () + { + } } /usr/lib/monodoc/sources/cs-errors.zip/CS0642 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0642 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0642 2036-01-31 00:46:20.000000000 +0000 @@ -3,15 +3,20 @@ CS0642 // CS0642: Possible mistaken empty statement -// Line: 7 -// Compiler options: -warnaserror -warn:3 +// Line: 9 +// Compiler options: -warnaserror -warn:3 -unsafe -nowarn:0219 -class X{ - static void Main () - { - if (true); - } +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 @@ -36,26 +41,29 @@ public class C { - public void Test () - { - using (System.IDisposable arg = null); - { } - } + public void Test (System.IDisposable arg) + { + using (arg); + { } + } } + // CS0642: Possible mistaken empty statement -// Line: 9 -// Compiler options: -warnaserror -warn:3 -unsafe -nowarn:0219 - +// Line: 13 +// Compiler options: /warnaserror /warn:3 +using System; public class C { - public unsafe void Test () - { - fixed (char *p = str); - { } - } - - static readonly char [] str = new char [] {'A'}; + public static int p = 0; + public static void Foo () + { + if (p < 5) + Console.WriteLine (); + else + ; + Console.WriteLine (); + } } @@ -65,13 +73,12 @@ public class C { - public void Test (System.Collections.IEnumerable e) - { - foreach (object o in e); - { } - } + public void Test () + { + using (System.IDisposable arg = null); + { } + } } - // CS0642: Possible mistaken empty statement // Line: 10 @@ -89,6 +96,17 @@ // CS0642: Possible mistaken empty statement +// Line: 7 +// Compiler options: -warnaserror -warn:3 + +class X{ + static void Main () + { + if (true); + } +} + + // CS0642: Possible mistaken empty statement // Line: 10 // Compiler options: -warnaserror -warn:3 @@ -103,24 +121,6 @@ // 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 (p < 5) - Console.WriteLine (); - else - ; - Console.WriteLine (); - } -} - - - // CS0642: Possible mistaken empty statement // Line: 9 // Compiler options: -warnaserror -warn:3 @@ -140,9 +140,9 @@ public class C { - public void Test (System.IDisposable arg) + public void Test (System.Collections.IEnumerable e) { - using (arg); + 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0649 2036-01-31 00:46:20.000000000 +0000 @@ -2,19 +2,39 @@ CS0649 - // CS0649: Field `X.s' is never assigned to, and will always have its default value `null' -// Line: 4 + // 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 +using System; class X { - string s; + E e; - string Value { + E Value { get { - return s; + return e; } } } + +enum E +{ + Foo +} // CS0649: Field `X.x' is never assigned to, and will always have its default value `0' // Line: 4 @@ -51,39 +71,19 @@ } } - // 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 + // CS0649: Field `X.s' is never assigned to, and will always have its default value `null' +// Line: 4 // Compiler options: -warnaserror -warn:4 -using System; class X { - E e; + string s; - E Value { + string Value { get { - return e; + return s; } } } - -enum E -{ - Foo -} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0652 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0652 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0652 2036-01-31 00:46:20.000000000 +0000 @@ -2,7 +2,7 @@ CS0652 - // CS0652: A comparison between a constant and a variable is useless. The constant is out of the range of the variable type `short' + // 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 @@ -12,48 +12,48 @@ public static void Main () { - short value = 5; - if (value > char.MaxValue) - return; + byte b = 0; + if (b == -1) + Console.WriteLine (":("); + else + Console.WriteLine (":)"); } } - // 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 + // CS0652: A comparison between a constant and a variable is useless. The constant is out of the range of the variable type `short' +// Line: 11 // Compiler options: /warn:2 /warnaserror - using System; public class CS0652 { public static void Main () { - char value = 'a'; - if (value < SByte.MinValue) - return; + short us = 0; + if (us == -10000000) + Console.WriteLine (":("); + else + Console.WriteLine (":)"); } } // 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 { +// Line: 9 +// Compiler options: -warnaserror -warn:2 - public static void Main () +class X +{ + void b () { - byte b = 0; - if (b == -1) - Console.WriteLine (":("); - else - Console.WriteLine (":)"); + 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 `char' // Line: 12 @@ -72,23 +72,24 @@ } - // 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 + // 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 -class X -{ - void b () +using System; + +public class CS0652 { + + public static void Main () { - byte b = 0; - if (b == 500) - return; + short value = 5; + if (value > char.MaxValue) + 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' + // 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; @@ -97,8 +98,8 @@ public static void Main () { - short us = 0; - if (us == -10000000) + ushort us = 0; + if (us == -1) Console.WriteLine (":("); else Console.WriteLine (":)"); @@ -106,20 +107,19 @@ } - // 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 `char' +// Line: 12 // Compiler options: /warn:2 /warnaserror + using System; public class CS0652 { public static void Main () { - ushort us = 0; - if (us == -1) - Console.WriteLine (":("); - else - Console.WriteLine (":)"); + char value = 'a'; + if (value < SByte.MinValue) + return; } } /usr/lib/monodoc/sources/cs-errors.zip/CS0655 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0655 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0655 2036-01-31 00:46:20.000000000 +0000 @@ -2,17 +2,17 @@ CS0655 - // CS0655: `d' is not a valid named attribute argument because it is not a valid attribute parameter type + // CS0655: `a' is not a valid named attribute argument because it is not a valid attribute parameter type // Line: 11 using System; class TestAttribute : Attribute { - public decimal d; + public int[,] a; } -[Test (d = 44444)] +[Test (a = null)] class C { } @@ -30,17 +30,17 @@ class C { } - // CS0655: `a' is not a valid named attribute argument because it is not a valid attribute parameter type + // CS0655: `d' is not a valid named attribute argument because it is not a valid attribute parameter type // Line: 11 using System; class TestAttribute : Attribute { - public int[,] a; + public decimal d; } -[Test (a = null)] +[Test (d = 44444)] class C { } /usr/lib/monodoc/sources/cs-errors.zip/CS0657 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0657 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0657 2036-01-31 00:46:20.000000000 +0000 @@ -2,7 +2,7 @@ CS0657 - // 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 + // 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: 15 // Compiler options: -warnaserror @@ -16,82 +16,77 @@ class C { int Prop { - [type:Test] - set { + [param:Test] + get { + return 1; } } } - // 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: `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 +// Line: 9 // Compiler options: -warnaserror using System; -[assembly: CLSCompliant (false)] -public class C {} - -[assembly: CLSCompliant (false)] -public class D {} +public class C +{ + [return: CLSCompliant (false)] + public C () + { + } +} - // CS0657: `field' 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 + // 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 -langversion:experimental +// Compiler options: -warnaserror using System; -public class FieldAttribute : System.Attribute -{ -} - -class X ([field:FieldAttribute] int foo) +class C { - int v = foo; + [property: Obsolete] + event ResolveEventHandler field { + add {} + remove {} + } } - // 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 + // 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 -using System; - -interface X { - [field:NonSerialized] - event EventHandler XEvent; -} +[method: Obsolete] +delegate void Delegate (); - // 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 -// Line: 9 + // 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; -public class C +[AttributeUsage(AttributeTargets.All)] +public class TestAttribute: Attribute { - [return: CLSCompliant (false)] - public C () - { - } } - - // 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 + +struct S +{ + void method ( + [type: Test] + int p) {} +} + // 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 using System; -[return: CLSCompliant (false)] - -public enum E {} - - // 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 -// Line: 7 -// Compiler options: -warnaserror - -struct S +[param: CLSCompliant (false)] +public enum E { - [param: Obsolete] - int field; -} + item +} + // 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 // Line: 9 // Compiler options: -warnaserror @@ -106,48 +101,46 @@ } } - // 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 : 7 -// Compiler options: -warnaserror + // CS0657: `field' 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: 9 +// Compiler options: -warnaserror -langversion:experimental using System; -[method: CLSCompliant (false)] +public class FieldAttribute : System.Attribute +{ +} -public class C +class X ([field:FieldAttribute] int foo) { + int v = foo; } - // 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 + // 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 : 7 // Compiler options: -warnaserror using System; -struct S -{ - [param: Obsolete] - void method () {} -} - // 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 +[method: CLSCompliant (false)] -[method: System.CLSCompliant (false)] +public class C +{ +} - // 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 + // 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; -abstract class X +public enum E { - [field:NonSerialized] - public abstract event EventHandler XEvent; + [assembly: CLSCompliant (false)] + item } - // 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 + // 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 /usr/lib/monodoc/sources/cs-errors.zip/CS0658 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0658 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0658 2036-01-31 00:46:20.000000000 +0000 @@ -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: `blah' is invalid attribute target. All attributes in this attribute section will be ignored // Line : 9 // Compiler options: -warnaserror -warn:1 @@ -27,6 +22,11 @@ } } + // 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 /usr/lib/monodoc/sources/cs-errors.zip/CS0659 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0659 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0659 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,20 @@ 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 @@ -22,19 +36,5 @@ } } - // 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/CS0663 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0663 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0663 2036-01-31 00:46:20.000000000 +0000 @@ -2,14 +2,6 @@ CS0663 - // CS0663: Overloaded method `WrongInterface.Test(ref int)' cannot differ on use of parameter modifiers only -// Line: 6 - -public interface WrongInterface { - int Test(out int obj); - int Test(ref int obj); -} - // CS0633: Overloaded method `C.Foo(string)' cannot differ on use of parameter modifiers only // Line: 11 @@ -25,5 +17,13 @@ } } + // CS0663: Overloaded method `WrongInterface.Test(ref int)' cannot differ on use of parameter modifiers only +// Line: 6 + +public interface WrongInterface { + int Test(out int obj); + int Test(ref int obj); +} + \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0664 2036-01-31 00:46:20.000000000 +0000 @@ -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; @@ -37,14 +46,5 @@ } } - // 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; - } -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0672 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0672 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0672 2036-01-31 00:46:20.000000000 +0000 @@ -2,25 +2,6 @@ CS0672 - // CS0672: Member `B.Warning' overrides obsolete member `A.Warning'. Add the Obsolete attribute to `B.Warning' -// Line: 15 -// Compiler options: -warnaserror - -using System; - -public class A { - [Obsolete()] - public virtual string Warning { - get { return ""; } - } -} - -public class B : A { - public override string Warning { - get { return ""; } - } -} - // CS0672: Member `B.Test(string)' overrides obsolete member `A.Test(string)'. Add the Obsolete attribute to `B.Test(string)' // Line: 15 // Compiler options: -warnaserror @@ -69,5 +50,24 @@ public override event EventHandler MyEvent; } + // CS0672: Member `B.Warning' overrides obsolete member `A.Warning'. Add the Obsolete attribute to `B.Warning' +// Line: 15 +// Compiler options: -warnaserror + +using System; + +public class A { + [Obsolete()] + public virtual string Warning { + get { return ""; } + } +} + +public class B : A { + public override string Warning { + get { return ""; } + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0673 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0673 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0673 2036-01-31 00:46:20.000000000 +0000 @@ -5,24 +5,24 @@ // CS0673: System.Void cannot be used from C#. Consider using `void' // Line: 8 -using System; - public class X { public static void Main() { - Void v; + System.Type t = typeof (System.Void); } } // CS0673: System.Void cannot be used from C#. Consider using `void' // Line: 8 +using System; + public class X { public static void Main() { - System.Type t = typeof (System.Void); + Void v; } } /usr/lib/monodoc/sources/cs-errors.zip/CS0675 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0675 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0675 2036-01-31 00:46:20.000000000 +0000 @@ -8,12 +8,13 @@ public class C { - public static void Main() - { - int x = 1; - int y = 1; - long value = (((long)x) << 32) | y; - } + uint extra_flags; + + internal bool BestFitMapping { + set { + extra_flags = (uint) ((extra_flags & ~0x30) | (value ? 0x10 : 0x20)); + } + } } @@ -23,13 +24,12 @@ public class C { - uint extra_flags; - - internal bool BestFitMapping { - set { - extra_flags = (uint) ((extra_flags & ~0x30) | (value ? 0x10 : 0x20)); - } - } + public static void Main() + { + int x = 1; + int y = 1; + long value = (((long)x) << 32) | y; + } } /usr/lib/monodoc/sources/cs-errors.zip/CS0677 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0677 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0677 2036-01-31 00:46:20.000000000 +0000 @@ -10,6 +10,14 @@ volatile T t; } + // CS0677: `X.d': A volatile field cannot be of the type `double' +// Line: 6 + +class X +{ + public volatile double d; +} + // CS0677: `X.a': A volatile field cannot be of the type `A' // Line: 8 using System; @@ -43,13 +51,5 @@ volatile T t; } - // 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0693 2036-01-31 00:46:20.000000000 +0000 @@ -2,27 +2,31 @@ CS0693 - // CS0693: Type parameter `T' has the same name as the type parameter from outer type `C<T>' -// Line: 7 + // CS0693: Type parameter `U' has the same name as the type parameter from outer type `R<U>' +// Line: 9 // Compiler options: -warnaserror -warn:3 -class C<T> +class R<U> { - void Foo<T> (T t) + class A<T> { + struct I<U> + { + } } } - // CS0693: Type parameter `T' has the same name as the type parameter from outer type `A<T>' + // 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 A<T> +class C<T> { - interface I<T> - { - } -} + void Foo<T> (T t) + { + } +} + // 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 @@ -37,19 +41,15 @@ } } - // CS0693: Type parameter `U' has the same name as the type parameter from outer type `R<U>' -// Line: 9 + // CS0693: Type parameter `T' has the same name as the type parameter from outer type `A<T>' +// Line: 7 // Compiler options: -warnaserror -warn:3 -class R<U> +class A<T> { - class A<T> - { - struct I<U> - { - } - } -} - + interface I<T> + { + } +} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0695 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0695 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0695 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,43 @@ 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 + +class A<T> +{ + public interface IB + { + } +} + +class C<T, U> : A<T>.IB, A<U>.IB +{ +} + // 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: `Test<T>.TestN' cannot implement both `C<T>.I' and `C<string>.I' because they may unify for some type parameter substitutions // Line: 17 @@ -23,16 +60,7 @@ } } - // CS0695: `A<X,Y,Z>' cannot implement both `I<X>' and `I<A<Y,Y,Z>>' because they may unify for some type parameter substitutions -// Line: 7 - -interface I<X> -{ } - -class A<X,Y,Z> : I<X>, I<A<Y,Y,Z>> -{ } - - // CS0695: `C<X,Y>' cannot implement both `I<X>' and `I<K<Y>>' because they may unify for some type parameter substitutions + // 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> @@ -41,56 +69,28 @@ interface K<X> { } -class C<X,Y> : I<X>, I<K<Y>> +class C<X,Y> : I<K<Y>>, I<X> { } - // 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<T,U>' cannot implement both `A<T>.IB' and `A<U>.IB' because they may unify for some type parameter substitutions -// Line: 11 - -class A<T> -{ - public interface IB - { - } -} - -class C<T, U> : A<T>.IB, A<U>.IB -{ -} - // 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: `A<X,Y>' cannot implement both `I<X>' and `I<Y>' because they may unify for some type parameter substitutions -// Line: 7 + // CS0695: `C<X,Y>' cannot implement both `I<X>' and `I<K<Y>>' because they may unify for some type parameter substitutions +// Line: 10 interface I<X> { } -class A<X,Y> : I<X>, I<Y> +interface K<X> +{ } + +class C<X,Y> : I<X>, I<K<Y>> { } /usr/lib/monodoc/sources/cs-errors.zip/CS0698 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0698 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0698 2036-01-31 00:46:20.000000000 +0000 @@ -2,30 +2,30 @@ CS0698 - // CS0698: A generic type cannot derive from `System.Attribute' because it is an attribute class + // CS0698: A generic type cannot derive from `X' because it is an attribute class // Line: 6 using System; -class Stack<T> : Attribute +class Stack<T> : X { } -class X +class X : Attribute { - static void Main () - { } } - // CS0698: A generic type cannot derive from `X' because it is an attribute class + // CS0698: A generic type cannot derive from `System.Attribute' because it is an attribute class // Line: 6 using System; -class Stack<T> : X +class Stack<T> : Attribute { } -class X : Attribute +class X { + static void Main () + { } } /usr/lib/monodoc/sources/cs-errors.zip/CS0701 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0701 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0701 2036-01-31 00:46:20.000000000 +0000 @@ -9,6 +9,15 @@ { } + // CS0701: `A' is not a valid constraint. A constraint must be an interface, a non-sealed class or a type parameter +// Line: 6 + +sealed class A { } + +class Foo<T> where T : A +{ +} + // CS0701: `S' is not a valid constraint. A constraint must be an interface, a non-sealed class or a type parameter // Line: 8 @@ -20,14 +29,5 @@ { } - // CS0701: `A' is not a valid constraint. A constraint must be an interface, a non-sealed class or a type parameter -// Line: 6 - -sealed class A { } - -class Foo<T> where T : A -{ -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0702 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0702 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0702 2036-01-31 00:46:20.000000000 +0000 @@ -12,22 +12,22 @@ { } - // 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 { } - // 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 { } /usr/lib/monodoc/sources/cs-errors.zip/CS0703 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0703 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0703 2036-01-31 00:46:20.000000000 +0000 @@ -16,6 +16,16 @@ } } + // CS0703: Inconsistent accessibility: constraint type `I' is less accessible than `C<T>' +// Line: 8 + +interface 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 +39,5 @@ } } - // CS0703: Inconsistent accessibility: constraint type `I' is less accessible than `C<T>' -// Line: 8 - -interface I -{ -} - -public class C<T> where T : I -{ -} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0714 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0714 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0714 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,17 @@ CS0714 + // CS0714: Static class `StaticClass' cannot implement interfaces +// Line: 8 + +static partial class StaticClass +{ +} + +static partial class StaticClass: System.ICloneable +{ +} + // CS0714: Static class `C' cannot implement interfaces // Line: 12 @@ -23,16 +34,5 @@ static class StaticClass: System.IComparable { } - // CS0714: Static class `StaticClass' cannot implement interfaces -// Line: 8 - -static partial class StaticClass -{ -} - -static partial class StaticClass: System.ICloneable -{ -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0717 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0717 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0717 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,14 @@ CS0717 + // CS0717: `System.Console' is not a valid constraint. Static classes cannot be used as constraints +// Line: 6 + +abstract class C +{ + public abstract void Foo<U> () where U : System.Console; +} + // CS0717: `S' is not a valid constraint. Static classes cannot be used as constraints // Line: 8 @@ -13,13 +21,5 @@ { } - // CS0717: `System.Console' is not a valid constraint. Static classes cannot be used as constraints -// Line: 6 - -abstract class C -{ - public abstract void Foo<U> () where U : System.Console; -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0719 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0719 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0719 2036-01-31 00:46:20.000000000 +0000 @@ -3,6 +3,19 @@ CS0719 // CS0719: Array elements cannot be of static type `StaticClass' +// Line: 10 + +static class StaticClass { +} + +class MainClass { + public static object Method () + { + return new StaticClass [3]; + } +} + + // CS0719: Array elements cannot be of static type `StaticClass' // Line: 12 using System; @@ -20,18 +33,5 @@ } } - // CS0719: Array elements cannot be of static type `StaticClass' -// Line: 10 - -static class StaticClass { -} - -class MainClass { - public static object Method () - { - return new StaticClass [3]; - } -} - \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0722 2036-01-31 00:46:20.000000000 +0000 @@ -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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0723 2036-01-31 00:46:20.000000000 +0000 @@ -2,18 +2,6 @@ CS0723 - // CS0723: `MainClass.s': cannot declare variables of static types -// Line: 10 - -static class S -{ -} - -class MainClass -{ - S s; -} - // CS0723: `C<T>.t': cannot declare variables of static types // Line: 10 @@ -38,5 +26,17 @@ } } + // CS0723: `MainClass.s': cannot declare variables of static types +// Line: 10 + +static class S +{ +} + +class MainClass +{ + S s; +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0728 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0728 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0728 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,22 @@ CS0728 + // CS0728: Possibly incorrect assignment to `d' which is the argument to a using or lock statement +// Line: 12 +// Compiler options: -warnaserror + +using System; + +public class Foo +{ + public static void Test (IDisposable d) + { + using (d) { + d = null; + } + } +} + // CS0728: Possibly incorrect assignment to `s' which is the argument to a using or lock statement // Line: 12 // Compiler options: -warnaserror @@ -37,21 +53,5 @@ } } - // CS0728: Possibly incorrect assignment to `d' which is the argument to a using or lock statement -// Line: 12 -// Compiler options: -warnaserror - -using System; - -public class Foo -{ - public static void Test (IDisposable d) - { - using (d) { - d = null; - } - } -} - \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0737 2036-01-31 00:46:20.000000000 +0000 @@ -2,19 +2,28 @@ 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() + int Foo { get; set; } +} + +public class MySubClass : MyTest, I +{ +} + +public class MyTest +{ + public int Foo { - return MemberwiseClone(); + get { return 1; } + protected set { } } } - // CS0737: `MySubClass' does not implement interface member `System.ICloneable.Clone()' and the best implementing candidate `MyTest.Clone()' is not public // Line: 6 @@ -33,28 +42,19 @@ } } - // 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 -{ - int Foo { get; set; } -} - -public class MySubClass : MyTest, I -{ -} - -public class MyTest +public class MyTest : ICloneable { - public int Foo + object Clone() { - get { return 1; } - protected set { } + return MemberwiseClone(); } } + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0738 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0738 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0738 2036-01-31 00:46:20.000000000 +0000 @@ -2,22 +2,6 @@ CS0738 - // CS0738: `B' does not implement interface member `I.Test(int)' and the best implementing candidate `B.Test(int)' return type `int' does not match interface member return type `void' -// Line: 9 - -interface I -{ - void Test (int a); -} - -class B: I -{ - public int Test (int a) - { - return a; - } -} - // 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 @@ -76,5 +60,21 @@ { } + // CS0738: `B' does not implement interface member `I.Test(int)' and the best implementing candidate `B.Test(int)' return type `int' does not match interface member return type `void' +// Line: 9 + +interface I +{ + void Test (int a); +} + +class B: I +{ + public int Test (int a) + { + return a; + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0809 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0809 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0809 2036-01-31 00:46:20.000000000 +0000 @@ -2,26 +2,6 @@ CS0809 - // CS0809: Obsolete member `B.Property' overrides non-obsolete member `A.Property' -// Line: 17 -// Compiler options: -warnaserror -warn:4 - -using System; - -class A -{ - public virtual int Property { - set { } - } -} - -class B : A -{ - [Obsolete ("TEST")] - public override int Property { - set { } - } -} // CS0809: Obsolete member `A.Filename' overrides non-obsolete member `Error.Filename' // Line: 8 // Compiler options: -warnaserror @@ -52,5 +32,25 @@ } } + // CS0809: Obsolete member `B.Property' overrides non-obsolete member `A.Property' +// Line: 17 +// Compiler options: -warnaserror -warn:4 + +using System; + +class A +{ + public virtual int Property { + set { } + } +} + +class B : A +{ + [Obsolete ("TEST")] + public override int Property { + set { } + } +} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0815 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0815 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0815 2036-01-31 00:46:20.000000000 +0000 @@ -2,51 +2,30 @@ CS0815 - // 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 `void' -// Line: 17 + // CS0815: An implicitly typed local variable declaration cannot be initialized with `anonymous method' +// Line: 11 using System; -using System.Collections.Generic; - -class A -{ - static void Test (Action a) - { - } - - public static void Main () - { - Test (() => { - List<string> l = null; - var res = l.ForEach (g => { }); - }); - } -} - - // CS0815: An implicitly typed local variable declaration cannot be initialized with `method group' -// Line: 8 +using System.Threading.Tasks; -public class Tests +class X { public static void Main () { - var d = Main; + Task.Run(async () => { var a = async () => { }; Console.WriteLine(a); }); } -} - +} // CS0815: An implicitly typed local variable declaration cannot be initialized with `default' // Line: 9 // Compiler options: -langversion:latest @@ -59,16 +38,25 @@ } } // CS0815: An implicitly typed local variable declaration cannot be initialized with `anonymous method' -// Line: 11 +// Line: 8 -using System; -using System.Threading.Tasks; +public class Test +{ + static void Main () + { + var l = x => x + 1; + } +} -class X + + // CS0815: An implicitly typed local variable declaration cannot be initialized with `(int, method group)' +// Line: 8 + +class XX { public static void Main () { - Task.Run(async () => { var a = async () => { }; Console.WriteLine(a); }); + var m = (1, Main); } } // CS0815: An implicitly typed local variable declaration cannot be initialized with `null' @@ -85,18 +73,40 @@ // CS0815: An implicitly typed local variable declaration cannot be initialized with `anonymous method' -// Line: 8 +// Line: 9 + public class Test { static void Main () { - var l = x => x + 1; + var d = delegate {}; } } // CS0815: An implicitly typed local variable declaration cannot be initialized with `void' +// Line: 17 + +using System; +using System.Collections.Generic; + +class A +{ + static void Test (Action a) + { + } + + public static void Main () + { + Test (() => { + List<string> l = null; + var res = l.ForEach (g => { }); + }); + } +} + + // CS0815: An implicitly typed local variable declaration cannot be initialized with `void' // Line: 9 @@ -113,15 +123,5 @@ } - // CS0815: An implicitly typed local variable declaration cannot be initialized with `(int, method group)' -// Line: 8 - -class XX -{ - public static void Main () - { - var m = (1, Main); - } -} \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0825 2036-01-31 00:46:20.000000000 +0000 @@ -8,7 +8,7 @@ public class Test { - var v = "a"; + event var v; } @@ -18,7 +18,7 @@ public class Test { - event var v; + var v = "a"; } /usr/lib/monodoc/sources/cs-errors.zip/CS0826 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0826 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0826 2036-01-31 00:46:20.000000000 +0000 @@ -3,26 +3,13 @@ CS0826 // CS0826: The type of an implicitly typed array cannot be inferred from the initializer. Try specifying array type explicitly -// Line: 9 - - -public class Test -{ - static void Main () - { - var e = new[] { delegate {} }; - } -} - - - // CS0826: The type of an implicitly typed array cannot be inferred from the initializer. Try specifying array type explicitly // Line: 8 public class Test { static void Main () { - var e = new[] { 1, null }; + var e = new[] { Main }; } } @@ -45,18 +32,15 @@ // 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 +class C { - static void Main () + public static void Main () { - var e = new[] { }; + 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 @@ -72,11 +56,11 @@ // CS0826: The type of an implicitly typed array cannot be inferred from the initializer. Try specifying array type explicitly // Line: 8 -class C +class XX { public static void Main () { - var array = new[] { null, null }; + var m = new [] { (1, Main) }; } } // CS0826: The type of an implicitly typed array cannot be inferred from the initializer. Try specifying array type explicitly @@ -87,7 +71,20 @@ { static void Main () { - var e = new[] { null }; + var e = new[] { delegate {} }; + } +} + + + // CS0826: The type of an implicitly typed array cannot be inferred from the initializer. Try specifying array type explicitly +// Line: 9 + + +public class Test +{ + static void Main () + { + var e = new[] { }; } } @@ -112,20 +109,23 @@ { static void Main () { - var e = new[] { Main }; + var e = new[] { 1, null }; } } // CS0826: The type of an implicitly typed array cannot be inferred from the initializer. Try specifying array type explicitly -// Line: 8 +// Line: 9 -class XX + +public class Test { - public static void Main () + static void Main () { - var m = new [] { (1, Main) }; + var e = new[] { null }; } -} +} + + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS0828 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0828 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0828 2036-01-31 00:46:20.000000000 +0000 @@ -2,28 +2,43 @@ CS0828 - // CS0828: An anonymous type property `Value' cannot be initialized with `null' + // CS0828: An anonymous type property `Value' cannot be initialized with `int*' // Line: 9 +// Compiler options: -unsafe - -public class Test +public unsafe class Test { + static int* Error () + { + return (int*)0; + } + static void Main () { - int A = 9; - var v1 = new { A, Value = null }; + var v = new { Value = Error () }; } } - // CS0828: An anonymous type property `Value' cannot be initialized with `int*' + // CS0827: An anonymous type property `Prop' cannot be initialized with `(int, method group)' // Line: 9 -// Compiler options: -unsafe -public unsafe class Test +class XX { - static int* Error () + public static void Main () + { + var m = new { + Prop = (1, Main) + }; + } +} + // CS0828: An anonymous type property `Value' cannot be initialized with `void' +// Line: 13 + + +public class Test +{ + static void Error () { - return (int*)0; } static void Main () @@ -47,18 +62,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 @@ -70,19 +73,16 @@ } } - // CS0828: An anonymous type property `Value' cannot be initialized with `void' -// Line: 13 + // CS0828: An anonymous type property `Value' cannot be initialized with `null' +// Line: 9 public class Test { - static void Error () - { - } - static void Main () { - var v = new { Value = Error () }; + int A = 9; + var v1 = new { A, Value = null }; } } /usr/lib/monodoc/sources/cs-errors.zip/CS0834 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0834 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0834 2036-01-31 00:46:20.000000000 +0000 @@ -9,11 +9,11 @@ class C { - delegate void D (); + delegate bool D (); public void Foo () { - Expression<D> e = () => { }; + Expression<D> e = () => { return true; }; } } @@ -24,11 +24,11 @@ class C { - delegate bool D (); + delegate void D (); public void Foo () { - Expression<D> e = () => { return true; }; + Expression<D> e = () => { }; } } /usr/lib/monodoc/sources/cs-errors.zip/CS0837 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0837 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0837 2036-01-31 00:46:20.000000000 +0000 @@ -2,19 +2,6 @@ CS0837 - // 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 @@ -32,6 +19,19 @@ } } + // 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: 10 /usr/lib/monodoc/sources/cs-errors.zip/CS0841 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0841 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0841 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,30 @@ CS0841 + // 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 () + { + int x = y; + int y = 1; + } +} + // CS0841: A local variable `n' cannot be used before it is declared // Line: 17 @@ -22,18 +46,6 @@ }); } } - // 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 `v' cannot be used before it is declared // Line: 9 @@ -66,24 +78,12 @@ // 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 () { - int x = y; - int y = 1; + const int x = y; + const int y = 1; } } /usr/lib/monodoc/sources/cs-errors.zip/CS0844 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS0844 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0844 2036-01-31 00:46:20.000000000 +0000 @@ -7,7 +7,7 @@ class C { - const string s = "s"; + string s; public void Test () { @@ -37,6 +37,18 @@ } } + // CS0844: A local variable `y' cannot be used before it is declared. Consider renaming the local variable when it hides the member `X.y' +// Line: 8 + +class X +{ + static int y; + static void Main () { + y = 10; + int y = 5; + } +} + // 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 @@ -53,24 +65,12 @@ } } - // CS0844: A local variable `y' cannot be used before it is declared. Consider renaming the local variable when it hides the member `X.y' -// Line: 8 - -class X -{ - static int y; - static void Main () { - y = 10; - int y = 5; - } -} - // 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 C { - string s; + const string s = "s"; 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS0847 2036-01-31 00:46:20.000000000 +0000 @@ -2,18 +2,6 @@ CS0847 - // CS0847: An array initializer of length `3' was expected -// Line: 9 - -class M -{ - public static void Main () - { - int[,,] i = { { { 0, 0, 0 }, { 1, 1, 1 } }, - { { 2 }, { 3, 3, 3 } } }; - } -} - // CS0847: An array initializer of length `1' was expected // Line: 8 @@ -49,5 +37,17 @@ } } + // CS0847: An array initializer of length `3' was expected +// Line: 9 + +class M +{ + public static void Main () + { + int[,,] i = { { { 0, 0, 0 }, { 1, 1, 1 } }, + { { 2 }, { 3, 3, 3 } } }; + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1001 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1001 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1001 2036-01-31 00:46:20.000000000 +0000 @@ -10,15 +10,15 @@ 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: 8 @@ -30,21 +30,22 @@ } } - // CS1001: Unexpected symbol `)', expecting identifier -// Line: 6 + // CS1001: Unexpected symbol `,', expecting identifier +// Line: 8 -class C +static class Converter { - public void Foo (params System.Action) + static Dictionary<Options, string> options = new Dictionary<Options, string> () { - } + { Options., "I am completed!" }, + }; } // CS1001: Unexpected symbol `)', expecting identifier // Line: 6 -class B<T> -{ - T Foo (T) +class T { + // Change (args) to (string args) to fix it + public static int Main (args) { } } @@ -52,13 +53,12 @@ // CS1001: Unexpected symbol `)', expecting identifier // Line: 6 -class T { - // Change (args) to (string args) to fix it - public static int Main (args) +class C +{ + public void Foo (params System.Action) { } -} - +} // CS1001: Missing identifier to pre-processor directive // Line: 5 @@ -66,12 +66,12 @@ #define #endif - // CS1001: Unexpected symbol `,', expecting identifier + // CS1001: Unexpected symbol `)', expecting identifier // Line: 6 -public class MonoRuntime +class B<T> { - public static void Main (A, B) + T Foo (T) { } } /usr/lib/monodoc/sources/cs-errors.zip/CS1010 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1010 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1010 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,16 @@ CS1010 + // CS1010: Newline in constant +// Line: 6 + +class Foo +{ + static char c =' +'; +} + + // CS1010 : Newline in constant // Line: 8 @@ -22,15 +32,5 @@ world!"; } - // 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1013 2036-01-31 00:46:20.000000000 +0000 @@ -7,64 +7,64 @@ class X { - static int i = 0x0_; + static int i = 0b; + static void Main () {} } // CS1013: Invalid number // Line : 6 class X { - static int i = 0b_1; + static float i = 1_f; } // CS1013: Invalid number // Line : 6 class X { - static int i = 1_; + static int i = 0x_1; } // CS1013: Invalid number // Line : 6 class X { - static int i = 0b; - static void Main () {} + static int i = 0x; } // CS1013: Invalid number // Line : 6 class X { - static int i = 0x_1; + static double i = 1_.2; } // CS1013: Invalid number // Line : 6 class X { - static float i = 1_f; + static int i = 1_; } // CS1013: Invalid number // Line : 6 class X { - static int i = 0x; + static int i = 1_e1; } // CS1013: Invalid number // Line : 6 class X { - static double i = 1_.2; + static int i = 0x0_; } // CS1013: Invalid number // Line : 6 class X { - static int i = 1_e1; + static int i = 0b_1; } \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1021 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1021 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1021 2036-01-31 00:46:20.000000000 +0000 @@ -7,16 +7,11 @@ class X { public static void Main() { - int h = 0xffffffffffffffffffffffffff; + int h = 0b11111111111111111111111111111111111111111111111111111111111111111; } } // CS1021: Integral constant is too large -// Line: 4 - -#line 1238217387921783271985 - - // CS1021: Integral constant is too large // Line: 6 class X { @@ -30,9 +25,14 @@ class X { public static void Main() { - int h = 0b11111111111111111111111111111111111111111111111111111111111111111; + int h = 0xffffffffffffffffffffffffff; } } + // CS1021: Integral constant is too large +// Line: 4 + +#line 1238217387921783271985 + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1024 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1024 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1024 2036-01-31 00:46:20.000000000 +0000 @@ -3,15 +3,6 @@ CS1024 // CS1024: Wrong preprocessor directive -// Line: 7 - -class C -{ - #region - #end\x0072egion -} - - // CS1024: Wrong preprocessor directive // Line: 12 using System; @@ -29,6 +20,15 @@ } // CS1024: Wrong preprocessor directive +// Line: 7 + +class C +{ + #region + #end\x0072egion +} + + // CS1024: Wrong preprocessor directive // Line: 4 #wrong_directive /usr/lib/monodoc/sources/cs-errors.zip/CS1025 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1025 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1025 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,17 @@ CS1025 + // CS1025: Single-line comment or end-of-line expected +// Line: 4 + +#if RELEASE #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: 6 @@ -11,8 +22,8 @@ // CS1025 : Single-line comment or end-of-line expected // Line: 6 -#if DEBUG DEBUG -// ... +#if RELEASE +#else DEBUG #endif // CS1525: Single-line comment or end-of-line expected // Line: 4 @@ -20,21 +31,10 @@ #line 100 "a" default // CS1025: Single-line comment or end-of-line expected -// Line: 4 - -#if RELEASE #endif - - // CS1025: Single-line comment or end-of-line expected // Line: 6 #if DEBUG // ... #endif DEBUG - // CS1025 : Single-line comment or end-of-line expected -// Line: 6 - -#if RELEASE -#else DEBUG -#endif \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1027 2036-01-31 00:46:20.000000000 +0000 @@ -3,27 +3,27 @@ CS1027 // CS1027: Expected `#endif' directive -// Line: 6 +// Line: 11 +// Compiler options: -d:NET_2_0 -#if false +#if NET_2_0 + +class Test +{ +} // CS1027: Expected `#endif' directive // Line: 6 #if false -/* hey */ #endif + // CS1027: Expected `#endif' directive -// Line: 11 -// Compiler options: -d:NET_2_0 - -#if NET_2_0 - -class Test -{ -} +// Line: 6 +#if false +/* hey */ #endif \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1031 2036-01-31 00:46:20.000000000 +0000 @@ -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: 16 public class B<Y> where Y: B<Y> @@ -35,20 +49,6 @@ } } // 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 /usr/lib/monodoc/sources/cs-errors.zip/CS1040 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1040 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1040 2036-01-31 00:46:20.000000000 +0000 @@ -3,17 +3,17 @@ CS1040 // CS1040: Preprocessor directives must appear as the first non-whitespace character on a line -// Line: 2 -// Compiler Options: -t:library - -/* hey */ #define a - - // CS1040: Preprocessor directives must appear as the first non-whitespace character on a line // Line: 5 // Compiler options: -t:library /* */ #define AA + // CS1040: Preprocessor directives must appear as the first non-whitespace character on a line +// Line: 2 +// Compiler Options: -t:library + +/* hey */ #define a + \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1056 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,12 @@ CS1056 + // CS1056: Unexpected character `\0001' +// Line: 4 + +na\u0001espace Test +{ +} // CS1056: Unexpected character `$' // Line: 8 @@ -16,12 +22,6 @@ // CS1056: Unexpected character `\0001' // Line: 4 -na\u0001espace Test -{ -} - // CS1056: Unexpected character `\0001' -// Line: 4 - \u0001namespace Test { } /usr/lib/monodoc/sources/cs-errors.zip/CS1058 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1058 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1058 2036-01-31 00:46:20.000000000 +0000 @@ -3,13 +3,9 @@ CS1058 // 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() @@ -19,11 +15,16 @@ catch {} } } + // 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() @@ -33,7 +34,6 @@ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1059 2036-01-31 00:46:20.000000000 +0000 @@ -3,6 +3,17 @@ CS1059 // CS1059: The operand of an increment or decrement operator must be a variable, property or indexer +// Line: 9 + +static class C +{ + static void Foo() + { + const int uu = 1; + uu++; + } +} + // CS1059: The operand of an increment or decrement operator must be a variable, property or indexer // Line: 11 using System; @@ -27,16 +38,5 @@ } } - // CS1059: The operand of an increment or decrement operator must be a variable, property or indexer -// Line: 9 - -static class C -{ - static void Foo() - { - const int uu = 1; - uu++; - } -} \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1060 2036-01-31 00:46:20.000000000 +0000 @@ -2,8 +2,8 @@ CS1060 - // CS1060: Use of possibly unassigned field `c' -// Line: 19 + // CS1060: Use of possibly unassigned field `x' +// Line: 30 // Compiler options: -warnaserror public class C @@ -16,17 +16,27 @@ public C c; } +class X +{ + public S s; +} + +struct S2 +{ + public X x; +} + public class Test { static void Main () { - S s; - s.c.v = 5; + S2 s2; + s2.x.s.c.v = 5; } } - // CS1060: Use of possibly unassigned field `x' -// Line: 30 + // CS1060: Use of possibly unassigned field `c' +// Line: 19 // Compiler options: -warnaserror public class C @@ -39,22 +49,12 @@ 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; } } @@ -62,11 +62,9 @@ // Line: 25 // Compiler options: -warnaserror -using System; - public class C { - public EventHandler v; + public int v; } public struct S2 @@ -84,7 +82,7 @@ static void Main () { S s; - s.s2.c.v = null; + s.s2.c.v = 9; } } @@ -92,9 +90,11 @@ // Line: 25 // Compiler options: -warnaserror +using System; + public class C { - public int v; + public EventHandler v; } public struct S2 @@ -112,7 +112,7 @@ static void Main () { S s; - s.s2.c.v = 9; + s.s2.c.v = null; } } /usr/lib/monodoc/sources/cs-errors.zip/CS1061 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1061 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1061 2036-01-31 00:46:20.000000000 +0000 @@ -12,6 +12,18 @@ int c = 0.__0; } } + // CS1061: Type `int' does not contain a definition for `Foo' and no extension method `Foo' of type `int' could be found. Are you missing an assembly reference? +// Line: 9 + + +public class M +{ + public static void Main () + { + 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: 16 @@ -36,32 +48,6 @@ } } - // CS1061: Type `T' does not contain a definition for `Name' and no extension method `Name' of type `T' could be found. Are you missing an assembly reference? -// Line: 11 - -using System; -using System.Collections.Generic; - -public class C<T, U> -{ - public C (IEnumerable<T> t) - { - new List<T>(t).ConvertAll(p => p.Name); - } -} - - // 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 - - -public class M -{ - public static void Main () - { - 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 @@ -87,34 +73,45 @@ } } - // 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 + // CS1061: Type `string' does not contain a definition for `Name' and no extension method `Name' of type `string' could be found. Are you missing an assembly reference? +// Line: 18 using System; -namespace TestEnum +static class X { - public enum E + public static void Main () + { + } + + static void Foo () + { + var fileName = ""; + string[] all = null; + + all.Each (x => { + var name = fileName.Name; + }); + } + + static void Each<T> (this T[] s, Action<T> a) { - A = 0, - B = 1. - C = 2 } } - // 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? + // CS1061: Type `object' does not contain a definition for `Foo' and no extension method `Foo' of type `object' could be found. Are you missing an assembly reference? // Line: 12 +using System.Collections.Generic; -using System.Linq; - -public class M +public class C { - public static void Main () + void M (IEnumerable<KeyValuePair<string, dynamic>> arg) { - var e = from values in new [] { "value" } - let length = values.Length2 - select length; + foreach (KeyValuePair<string, object> o in arg) + { + o.Value.Foo (); + } } } @@ -155,72 +152,67 @@ { } } - // 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 `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 -class T { - public static int Main (string [] args ) + +using System.Linq; + +public class M +{ + public static void Main () { - int x = 1.E; - return 0; + var e = from values in new [] { "value" } + let length = values.Length2 + select length; } } - // 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? -// Line: 9 + // 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 -class C +class A<X> { - static void Main () + // + // This is to test the lookup rules for SimpleNames: + // `X' is the type parameter, not the class. + // + public void Test (X x) { - int? i = 4; - var m = i?.GetValueOrDefault (); + x.Test (); } -} - // CS1061: Type `object' does not contain a definition for `Foo' and no extension method `Foo' of type `object' could be found. Are you missing an assembly reference? -// Line: 12 - -using System.Collections.Generic; +} -public class C +class X { - void M (IEnumerable<KeyValuePair<string, dynamic>> arg) - { - foreach (KeyValuePair<string, object> o in arg) - { - o.Value.Foo (); - } - } + public void Test () + { } + + public static void Main () + { } } - // 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? -// Line: 24 - -using System; -using System.Collections.Generic; -using System.Linq; + // 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 -namespace Test -{ - static class Ex +class T { + public static int Main (string [] args ) { - public static IEnumerable<TR> Foo<T, TR> (this IEnumerable<T> t, Func<T, TR> f) /usr/lib/monodoc/sources/cs-errors.zip/CS1066 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1066 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1066 2036-01-31 00:46:20.000000000 +0000 @@ -2,27 +2,19 @@ CS1066 - // CS1066: The default value specified for optional parameter `s' will never be used -// Line: 9 + // CS1066: The default value specified for optional parameter `x' will never be used +// Line: 12 // Compiler options: -warnaserror -public partial class C +interface I { - partial void Test (int u, string s); - - partial void Test (int u, string s = "optional") - { - } + void Method (int i); } - - // CS1066: The default value specified for optional parameter `i' will never be used -// Line: 6 -// Compiler options: -warnaserror -public class C +class C : I { - public int this [int i = 1] { - set {} + void I.Method (int x = 9) + { } } @@ -38,19 +30,27 @@ } } - // CS1066: The default value specified for optional parameter `x' will never be used -// Line: 12 + // CS1066: The default value specified for optional parameter `s' will never be used +// Line: 9 // Compiler options: -warnaserror -interface I +public partial class C { - void Method (int i); + partial void Test (int u, string s); + + partial void Test (int u, string s = "optional") + { + } } + + // CS1066: The default value specified for optional parameter `i' will never be used +// Line: 6 +// Compiler options: -warnaserror -class C : I +public class C { - void I.Method (int x = 9) - { + public int this [int i = 1] { + set {} } } /usr/lib/monodoc/sources/cs-errors.zip/CS1070 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1070 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1070 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,13 @@ CS1070 + // 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 @@ -16,13 +23,6 @@ } // 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 `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 /usr/lib/monodoc/sources/cs-errors.zip/CS1103 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1103 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1103 2036-01-31 00:46:20.000000000 +0000 @@ -2,23 +2,23 @@ CS1103 - // CS1103: The extension method cannot be of type `dynamic' -// Line: 6 + // CS1103: The extension method cannot be of type `int*' +// Line: 7 +// Compiler options: -unsafe static class S { - static void Foo (this dynamic d) + unsafe static void Foo (this int* iptr) { } } - // CS1103: The extension method cannot be of type `int*' -// Line: 7 -// Compiler options: -unsafe + // CS1103: The extension method cannot be of type `dynamic' +// Line: 6 static class S { - unsafe static void Foo (this int* iptr) + static void Foo (this dynamic d) { } } /usr/lib/monodoc/sources/cs-errors.zip/CS1107 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1107 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1107 2036-01-31 00:46:20.000000000 +0000 @@ -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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1113 2036-01-31 00:46:20.000000000 +0000 @@ -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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1501 2036-01-31 00:46:20.000000000 +0000 @@ -2,140 +2,105 @@ CS1501 - // 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) + protected virtual void Foo<U> (U u) { - this.value = value; - } - - public string Select (int i, Func<TestA, TestA> f) - { - 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 `XCreateIC' takes `1' arguments -// Line: 16 - -using System; -using System.Runtime.InteropServices; + // CS1501: No overload for method `Foo' takes `0' arguments +// Line: 12 -namespace System.Windows.Forms +class C { - internal class X11Xim - { - [DllImport ("libX11", EntryPoint="XCreateIC")] - internal extern static IntPtr XCreateIC(IntPtr xim, __arglist); - - public static void Main () - { - XCreateIC (IntPtr.Zero); - } - } -} - + static void Foo (string foo, params object [] moreFoo) + { + } - - // CS1501: No overload for method `this' takes `1' arguments -// Line: 13 + static void Main () + { + Foo (); + } +} + // CS1501: No overload for method `Foo' takes `0' arguments +// Line: 20 -public class Blah +class A { - int this [short id, string v] { - set {} - } - - public void Test () + protected virtual void Foo (object[] arr) { - dynamic d = 1; - this [d] = 1; } } - - // CS1501: No overload for method `Foo' takes `2' arguments -// Line: 17 - -static class Extensions +class B : A { - public static string Foo (this string s) + protected override void Foo (params object[] arr) { - return s; } -} -public class M -{ - public static void Main () + static void Bar() { - 1.Foo ("foo"); + B b = new B (); + b.Foo (); } } - // CS1501: No overload for method `Foo' takes `1' arguments -// Line: 12 + // CS1501: No overload for method `this' takes `2' arguments +// Line : 10 -public class Test +class C { - static void Foo (int a, int b = 1, int c = 2) - { - } + public bool this [int i] { get { return false; } set {} } - public static void Main () - { - Foo (c : -1); + void Foo () + { C c = new C (); + c [0, 0] = null; } } - - // CS1501: No overload for method `LogFileLine' takes `1' arguments -// Line: 12 + // CS1501: No overload for method `Test' takes `2' arguments +// Line: 16 -class C +static class S { - static void LogFileLine (string file, string msg, params object [] args) + public static int Test (this int value) { + return value; } - +} + +class M +{ public static void Main () { - LogFileLine ("aaa"); + 1.Test (value: 1); } } - // CS1501: No overload for method `Foo' takes `0' arguments -// Line: 15 - -using System; -using System.Runtime.InteropServices; + // CS1501: No overload for method `Foo' takes `3' arguments +// Line: 12 -public class C +class Test { - public static void Foo ([DefaultParameterValue(null)] string s) + public static void Foo (string s = null, int value = 2) { } - public static void Main () + static void Main () { - Foo (); + Foo ("a", 2, 6); } } @@ -166,18 +131,53 @@ void Call (bool arg, int arg2); } - // CS1501: No overload for method `Foo' takes `3' arguments /usr/lib/monodoc/sources/cs-errors.zip/CS1502 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1502 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1502 2036-01-31 00:46:20.000000000 +0000 @@ -2,20 +2,6 @@ CS1502 - // CS1502: The best overloaded method match for `Global.Test1(int?)' has some invalid arguments -// Line: 8 - -using System; - -class Global { - static void Main() { - Console.Write(Test1((decimal?)2)); - } - static string Test1(int? value) { - return "ok"; - } -} - // CS1502: The best overloaded method match for `T.Blah(out int)' has some invalid arguments // Line: 11 @@ -31,24 +17,54 @@ } } - // CS1502: The best overloaded method match for `X.Add(params object[])' has some invalid arguments -// Line: 8 + // CS1502: The best overloaded method match for `Foo.Test(int, string)' has some invalid arguments +// Line: 14 -class X +using System.Runtime.CompilerServices; + +public class Foo { - public static void Main () + public void Test (int arg, [CallerMemberName] string s = null) { - Add (Foo (), Foo ()); } - public static void Add (params object[] args) + void X () { + Test (""); } +} + // CS1502: The best overloaded method match for `X.M(string)' has some invalid arguments +// Line: 23 - static void Foo () +delegate void D1 (object o); +delegate void D2 (); + +class C +{ + public C (D1 d) { } -} + + public C (D2 d) + { + } +} + +class X +{ + void Foo () + { + new C (delegate (object state) { + M (1); + }); + } + + void M (string s) + { + } +} + + // CS1502: The best overloaded method match for `A.A(System.Collections.Generic.IList<int>[])' has some invalid arguments // Line: 40 using System; @@ -93,78 +109,52 @@ } } - // CS1502: The best overloaded method match for `Foo.Test(int, string)' has some invalid arguments -// Line: 14 - -using System.Runtime.CompilerServices; - -public class Foo -{ - public void Test (int arg, [CallerMemberName] string s = null) - { - } - - void X () - { - Test (""); - } -} - // CS1502: The best overloaded method match for `X.M(string)' has some invalid arguments -// Line: 23 + // CS1502: The best overloaded method match for `C.Test_C(System.Type, params int[])' has some invalid arguments +// Line: 10 -delegate void D1 (object o); -delegate void D2 (); +using System; -class C +public class C { - public C (D1 d) + public static int Main () { + return Test_C (typeof (C), null, null); } - public C (D2 d) + static int Test_C (Type t, params int[] a) { + return 1; } } + + // CS1502: The best overloaded method match for `Test.Test(TestMethod2)' has some invalid arguments +// Line: 8 -class X +public class Test { void Foo () { - new C (delegate (object state) { - M (1); - }); + new Test (new TestMethod (Foo)); } - void M (string s) - { - } + public Test (TestMethod2 test) {} } - - // CS1502: The best overloaded method match for `foo.p(string, object, object)' has some invalid arguments -// Line: 24 - -using System; +public delegate void TestMethod (); +public delegate void TestMethod2 (object o); + // CS1502: The best overloaded method match for `C.TestCall(int, string)' has some invalid arguments +// Line: 13 -public class foo +class C { - static int intval = 3; - - public static void voidfunc() - { - } - - static void p (string s, object o1, object o2) + static void TestCall (int i, string s) { } - static void p (string s, params object[] o) - { - } - - public static void Main() + public static void Main () { - p ("Whoops: {0} {1}", intval, voidfunc()); + dynamic d = 0; + TestCall (d, 1); } } @@ -197,77 +187,61 @@ } - // 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 `C.Foo(dynamic)' has some invalid arguments +// Line: 13 -public class MainClass +static class C /usr/lib/monodoc/sources/cs-errors.zip/CS1503 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1503 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1503 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,29 @@ CS1503 + // CS1503: Argument `#2' cannot convert `method group' expression to type `System.Collections.Generic.Comparer<int>' +// Line: 20 + +using System; +using System.Collections.Generic; + +public class C +{ + static void Foo<T>(T t, Comparer<T> tc) + { + } + + static int Compare (int a, int b) + { + return -1; + } + + public static void Main () + { + Foo (1, Compare); + } +} + // CS1503: Argument `#1' cannot convert `int' expression to type `bool' // Line: 15 @@ -20,20 +43,66 @@ } } - // CS1503: Argument `#1' cannot convert `__arglist' expression to type `object' -// Line: 14 + // CS1503: Argument `#1' cannot convert `long' expression to type `ulong' +// Line: 17 + +class A +{ + public static long Prop { + get { + return 1; + } + } +} + +class Test +{ + static void Main () + { + Foo (A.Prop); + } + + static void Foo (ulong l) + { + } +} + + // CS1503: Argument `#1' cannot convert `System.RuntimeArgumentHandle' expression to type `__arglist' +// Line: 10 using System; -class Program +class C { - static void Foo (object o) + void Foo (__arglist) { + InstanceArgList (__arglist); } + + int InstanceArgList (__arglist) + { + return 54; + } +} + + // CS1503: Argument `#2' cannot convert `IFoo<object>' expression to type `IFoo<int>' +// Line: 18 - static void Main () +interface IFoo<in T> +{ +} + +class C +{ + public static void Foo<T> (IFoo<T> e1, IFoo<T> e2) { - Foo (__arglist (null)); + } + + public static void Main () + { + IFoo<int> a = null; + IFoo<object> b = null; + Foo (a, b); } } @@ -69,41 +138,6 @@ } } - // CS1503: Argument `#1' cannot convert `object' expression to type `int' -// Line: 16 - -using System; - -class T -{ - public void M1 (int i, params object[] args) {} -} - -class MainClass -{ - static void Main () - { - T t = new T (); - t.M1 (new object ()); - } -} - - // CS1503: Argument `#1' cannot convert `null' expression to type `__arglist' -// Line: 8 - -class C -{ - void Foo () - { - InstanceArgList (null); - } - - int InstanceArgList (__arglist) - { - return 54; - } -} - // CS1503: Argument `#1' cannot convert `method group' expression to type `IInterface' // Line: 15 @@ -138,121 +172,107 @@ } } - // CS1503: Argument `#2' cannot convert `IFoo<object>' expression to type `IFoo<int>' -// Line: 18 + // CS1503: Argument `#1' cannot convert `out A' expression to type `out B' +// Line: 17 -interface IFoo<in T> -{ -} +class A { } +class B : A { } -class C +class Test { - public static void Foo<T> (IFoo<T> e1, IFoo<T> e2) + static void Foo (out B b) { + b = new B (); } - - public static void Main () + + static void Main () { - IFoo<int> a = null; - IFoo<object> b = null; - Foo (a, b); + A a; + Foo (out a); } } - // CS1503: Argument `#1' cannot convert `bool' expression to type `int[]' -// Line: 13 + // CS1503: Argument `#1' cannot convert `int[]' expression to type `int' +// Line: 12 -public class X +class C { - public static void Test (params int[] a) + static void Foo (params int[] i) { } - - public static void Main() + + public static void Main () { /usr/lib/monodoc/sources/cs-errors.zip/CS1508 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1508 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1508 2036-01-31 00:46:20.000000000 +0000 @@ -4,12 +4,12 @@ // CS1508: The resource identifier `A' has already been used in this assembly // Line: 0 -// Compiler options: -res:1,A -res:2,A +// Compiler options: -res:1,A -linkres:1,A // CS1508: The resource identifier `A' has already been used in this assembly // Line: 0 -// Compiler options: -res:1,A -linkres:1,A +// Compiler options: -res:1,A -res:2,A /usr/lib/monodoc/sources/cs-errors.zip/CS1510 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1510 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1510 2036-01-31 00:46:20.000000000 +0000 @@ -3,22 +3,6 @@ CS1510 // 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) - { - } -} - - // CS1510: A ref or out argument must be an assignable variable // Line: 19 // this is bug #70402 @@ -41,20 +25,6 @@ } // 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: 13 class M @@ -70,6 +40,36 @@ } } + // 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) + { + } +} + + // 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: 14 // this is bug #56016 /usr/lib/monodoc/sources/cs-errors.zip/CS1512 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1512 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1512 2036-01-31 00:46:20.000000000 +0000 @@ -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/CS1517 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1517 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1517 2036-01-31 00:46:20.000000000 +0000 @@ -3,13 +3,6 @@ CS1517 // CS1517: Invalid preprocessor directive -// Line: 4 - -#if 8 -#endif - - - // CS1517: Invalid preprocessor directive // Line: 5 #if false @@ -17,5 +10,12 @@ #endif #endif + // CS1517: Invalid preprocessor directive +// Line: 4 + +#if 8 +#endif + + \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1519 2036-01-31 00:46:20.000000000 +0000 @@ -2,20 +2,11 @@ CS1519 - // CS1519: Unexpected symbol `}' in class, struct, or interface member declaration -// Line: 7 - -public class Foo -{ - public f -} - // CS1519: Unexpected symbol `unchecked' in class, struct, or interface member declaration -// Line: 6 + // CS1519: Unexpected symbol `using' in class, struct, or interface member declaration +// Line: 5 -class C -{ - unchecked const decimal d = 79m; -} +class X { } +using System; // CS1519: Unexpected symbol `;' in class, struct, or interface member declaration // Line: 8 @@ -27,17 +18,26 @@ }; } - // CS1519: Unexpected symbol `using' in class, struct, or interface member declaration -// Line: 5 + // CS1519: Unexpected symbol `}' in class, struct, or interface member declaration +// Line: 7 -class X { } -using System; - +public class Foo +{ + public f +} // CS1519: Unexpected symbol `extern' in class, struct, or interface member declaration // Line: 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1521 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,13 @@ CS1521 + // CS1521: Invalid base type `object[]' +// Line: 4 + +class C2: object[] +{ +} + // CS1521: Invalid base type `C?' // Line: 8 @@ -14,12 +21,17 @@ } - // CS1521: Invalid base type `object[]' -// Line: 4 + // CS1521: Invalid base type `C[]' +// Line: 8 -class C2: object[] +class C +{ +} + +class C2: C[] { } + // CS1521: Invalid base type `C*' // Line: 9 @@ -33,17 +45,5 @@ { } - // CS1521: Invalid base type `C[]' -// Line: 8 - -class C -{ -} - -class C2: C[] -{ -} - - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1525 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1525 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1525 2036-01-31 00:46:20.000000000 +0000 @@ -2,98 +2,109 @@ CS1525 - // CS1525: Unexpected symbol `{', expecting `base' or `this' -// Line: 5 + // CS1525: Unexpected symbol `=' +// Line: 10 -class X { - X () : { +public class Test +{ + private string name; + + public string Name + { + get { return name ?? name = string.Empty; } } +} + + // CS1525: Unexpected symbol `super', expecting `base' or `this' +// Line: 7 - static void Main () {} +class Bar +{ + Bar(int a) + :super() + { + } } - // CS1525: Unexpected symbol `/' -// Line: 10 + // CS1525: Unexpected symbol `)' +// Line: 12 -namespace Test674 +class Test { - class MainClass + static void Foo (int a, bool b) { - public static void Main(string[] args) - { - var a = new A(another: something, sth: /without/quotes); - } } - public class A + static void Main () { - public A(string sth, string another) - { - } + Foo (1, ); } } - // CS1525: Unexpected symbol `(', expecting `,', `;', or `=' -// Line: 13 + // CS1525: Unexpected symbol `=', expecting `.' or `[' +// Line: 8 -class X { - X (int a) +class DerivedClass +{ + public DerivedClass () { + base = null; } } -class Y { - static void Main () + + // CS1525: Unexpected symbol `public', expecting `:', `;', `{', or `=>' +// Line: 5 + +class TorrentEditor { + TorrentEditor () + + public TorrentEditor () { - X x (4); } } - // CS1525: Unexpected symbol `)' -// Line: 6 + // CS1525: Unexpected symbol `1', expecting `(' or `type' +// Line: 4 -class TestClass +class M : 1 { - TestClass ([attr]) - { - } } - // CS1525: Unexpected symbol `)', expecting `(', `,', `.', or `]' + // CS1525: Unexpected symbol `ref' // Line: 8 -namespace CompilerCrashWithAttributes +public class Test { - public class Main + static void Main () { - [MyAttribute1, MyAttribute1)] - public Main () - { - } + string ref = "abc"; } +} + + // CS1525: Unexpected symbol `}' +// Line: 8 - public class MyAttribute1 : Attribute +class MainClass +{ + public string Test () { + return true ? "Hello" : } -} - // CS1525: Unexpected symbol `}', expecting `)' or `,' -// Line: 7 +} + + // CS1525: Unexpected symbol `i', expecting `}', `case', or `default:' +// Line: 11 class X { + static void Main () { - Console.WriteLine ("Hola" - } -} - - // CS1525: Unexpected symbol `out' -// Line: 8 + int i = 0; -public class Test -{ - public static void Main () - { - object[] x = new object[] { 0, out i}; + switch (i){ + i = 4; + } } } @@ -110,88 +121,74 @@ } catch (Exception) } } - // CS1525: Unexpected symbol `)', expecting `.' or `[' -// Line: 10 - -using System.Collections; + // CS1525: Unexpected symbol `int' +// Line: 8 -class Collection : CollectionBase -{ - public int Add (int x) +class T { + void member () { - return ((IList) base).Add (x); + int a = 1 | 2 + int b; } } - - - // CS1525: Unexpected symbol `returnValue' -// Line: 11 + // CS1525: Unexpected symbol `(', expecting `)', `,', or `=' +// Line: 8 -public class C +class A { - public void Foo () + public static void Main () { /usr/lib/monodoc/sources/cs-errors.zip/CS1527 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1527 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1527 2036-01-31 00:46:20.000000000 +0000 @@ -5,19 +5,19 @@ // CS1527: Namespace elements cannot be explicitly declared as private, protected, protected internal, or private protected // Line: 4 -protected internal enum E { +private class X { } // CS1527: Namespace elements cannot be explicitly declared as private, protected, protected internal, or private protected // Line: 4 -private class X { +protected interface IFoo { } // CS1527: Namespace elements cannot be explicitly declared as private, protected, protected internal, or private protected // Line: 4 -protected interface IFoo { +protected internal enum E { } /usr/lib/monodoc/sources/cs-errors.zip/CS1530 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1530 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1530 2036-01-31 00:46:20.000000000 +0000 @@ -3,17 +3,6 @@ CS1530 // CS1530: Keyword `new' is not allowed on namespace elements -// Line: 8 - -class Base -{ -} - -new class X: Base { -} - - - // CS1530: Keyword `new' is not allowed on namespace elements // Line: 5 namespace A { @@ -29,5 +18,16 @@ } + // CS1530: Keyword `new' is not allowed on namespace elements +// Line: 8 + +class Base +{ +} + +new class X: Base { +} + + \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1534 2036-01-31 00:46:20.000000000 +0000 @@ -13,23 +13,23 @@ } } - // 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 c, C d) + public static C operator +() { 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; } /usr/lib/monodoc/sources/cs-errors.zip/CS1535 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1535 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1535 2036-01-31 00:46:20.000000000 +0000 @@ -2,26 +2,26 @@ CS1535 - // CS1535: Overloaded unary operator `implicit' takes one parameter + // CS1535: Overloaded unary operator `--' takes one parameter // Line: 6 -public class Test +class C { - public static implicit operator string () + public static C operator -- () { return null; } -} - // CS1535: Overloaded unary operator `--' takes one parameter +} + + // CS1535: Overloaded unary operator `implicit' takes one parameter // Line: 6 -class C +public class Test { - public static C operator -- () + public static implicit operator string () { return null; } -} - +} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1537 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1537 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1537 2036-01-31 00:46:20.000000000 +0000 @@ -7,22 +7,22 @@ // 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 -// Line: 7 +// Line: 6 +// Compiler options: -r:CSExternAlias-lib.dll -using A = System; +extern alias A; using A = System; // CS1537: The using alias `A' appeared previously in this namespace -// Line: 6 -// Compiler options: -r:CSExternAlias-lib.dll +// Line: 7 -extern alias A; -extern alias A; +using A = System; +using A = System; /usr/lib/monodoc/sources/cs-errors.zip/CS1540 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1540 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1540 2036-01-31 00:46:20.000000000 +0000 @@ -14,6 +14,29 @@ } + // 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 +{ + protected A (int a) + { + } +} + +public class B : A +{ + public B () + : base (1) + { + } + + public static void Main () + { + A a = new A (1); + } +} + // CS1540: Cannot access protected member `A.Foo()' via a qualifier of type `D2'. The qualifier must be of type `D' or derived from it // Line: 8 // Compiler options: -r:CS1540-17-lib.dll @@ -42,81 +65,92 @@ } } - // 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 + // 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 + using System; -public abstract class A +class A { - protected virtual void Test (int a) - { } + protected event EventHandler member; +} - public void Test () - { } +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.get' via a qualifier of type `B'. The qualifier must be of type `C' or derived from it +// Line: 17 -public class B : A +class A { - protected override void Test (int a) - { - base.Test (a); + public object[] Test { + set { } + protected get { return null; } } } -public class C : A +class B : A { - private B B; - - protected override void Test (int a) - { - B.Test (a); - base.Test (a); - } } -class X +class C : A { - static void Main () - { } + public void Test2 (B b) + { + foreach (object o in b.Test) { + } + } } - // CS1540: Cannot access protected member `A.X()' via a qualifier of type `B'. The qualifier must be of type `C' or derived from it -// Line: 21 + // 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 -class A +namespace Test { - protected virtual void X () - { + public class A + { + protected int Property { + get { return 0; } } -} - -class B : A -{ -} - -class C : A -{ - static B b = new B (); + } - static void M () + public class B : A + { + private sealed class C { - b.X (); + public C (A a) + { + int test = a.Property; + test++; + } } + } } - // CS1540: Cannot access protected member `A.this[int]' via a qualifier of type `B'. The qualifier must be of type `C' or derived from it -// Line: 14 + // CS1540: Cannot access protected member `A.del' via a qualifier of type `A'. The qualifier must be of type `B' or derived from it +// Line: 16 -class A { - protected int this [int i] { get { return i; } } -} +delegate int D (); -class B : A { } +class A +{ + protected D del; +} -class C : A { - static int Main () +class B : A +{ + public static void Main () { - B b = new B (); - return b [0]; + A b = new A (); + var v = b.del (); } } @@ -132,20 +166,59 @@ } } - // 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 + // 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; -class A +public abstract class A { - protected int n; + protected virtual void Test (int a) + { } + + public void Test () + { } } -class B : A +public class B : A { - public static void Main () + protected override void Test (int a) { /usr/lib/monodoc/sources/cs-errors.zip/CS1547 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1547 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1547 2036-01-31 00:46:20.000000000 +0000 @@ -3,28 +3,37 @@ CS1547 // CS1547: Keyword `void' cannot be used in this context -// Line: 11 +// Line: 6 -namespace OtherTest +interface IA { - public static class Program - { - static void MainD (object p) - { - if (p is String) - (void)((string) p).ToString (); - } - } + ref void Foo (); } // CS1547: Keyword `void' cannot be used in this context // Line: 8 + class X { static void Main () { - object o = default(void); + var e = from void v in new int [] { 0 } select i; + } +} + + // CS1547: Keyword `void' cannot be used in this context +// Line: 11 + +namespace OtherTest +{ + public static class Program + { + static void MainD (object p) + { + if (p is String) + (void)((string) p).ToString (); + } } } @@ -62,31 +71,16 @@ // Line: 6 class C { - const string s = "3"; - public object o = (void)s; -} - // CS1547: Keyword `void' cannot be used in this context -// Line: 10 -class Foo<T> -{ } - -class X -{ - static void Main () - { - Foo<void> foo; + static void Main () { + int i = sizeof (void); } -} - +} // 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 { + const string s = "3"; + public object o = (void)s; } // CS1547: Keyword `void' cannot be used in this context // Line: 6 @@ -103,12 +97,11 @@ // CS1547: Keyword `void' cannot be used in this context // Line: 8 - class X { static void Main () { - var e = from void v in new int [] { 0 } select i; + object o = default(void); } } @@ -119,20 +112,27 @@ public const void val = null; } // 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: 6 +// Line: 10 +class Foo<T> +{ } -class C { - static void Main () { - int i = sizeof (void); +class X +{ + static void Main () + { + Foo<void> foo; } -} +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1548 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1548 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1548 2036-01-31 00:46:20.000000000 +0000 @@ -2,20 +2,6 @@ CS1548 - // CS1548: Error during assembly signing. The specified key file `cs1548-2.cs' has incorrect format -// Line: 0 - -using System.Reflection; - -[assembly: AssemblyKeyFile ("cs1548-2.cs")] - -class MyClass { - - public static void Main (string [] args) - { - } -} - // CS1548: Error during assembly signing. The specified key file does not have a private key // Line: 0 @@ -34,12 +20,12 @@ } } - // CS1548: Error during assembly signing. The specified key file `file_not_found.snk' does not exist + // CS1548: Error during assembly signing. The specified key file `cs1548-2.cs' has incorrect format // Line: 0 using System.Reflection; -[assembly: AssemblyKeyFile ("file_not_found.snk")] +[assembly: AssemblyKeyFile ("cs1548-2.cs")] class MyClass { @@ -58,6 +44,20 @@ { } } + + // CS1548: Error during assembly signing. The specified key file `file_not_found.snk' does not exist +// Line: 0 + +using System.Reflection; + +[assembly: AssemblyKeyFile ("file_not_found.snk")] + +class MyClass { + + public static void Main (string [] args) + { + } +} \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1570 2036-01-31 00:46:20.000000000 +0000 @@ -2,36 +2,6 @@ CS1570 - // 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 - -namespace Testing -{ - ///<summary> - /// incorrect markup comment for struct - ///</incorrect> - public struct StructTest2 - { - } -} - - - // CS1570: XML documentation comment on `Testing.Test2' is not well-formed XML markup (Name cannot begin with the '6' character, hexadecimal value 0x36. Line 1, position 3.) -// Line: 9 -// Compiler options: -doc:dummy.xml -warn:1 -warnaserror - -using System; - -namespace Testing -{ - /// <6roken> broken markup - public class Test2 - { - } -} - - // 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 @@ -52,7 +22,7 @@ } - // 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.) + // 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 @@ -61,10 +31,12 @@ namespace Testing { ///<summary> - /// Incorrect comment markup. + /// comment for enum type ///</incorrect> - public class Test2 + enum EnumTest2 { + Foo, + Bar, } } @@ -103,37 +75,66 @@ } - // 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.) + // 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 -warnaserror -warn:1 +// Compiler options: -doc:dummy.xml -warn:1 -warnaserror using System; namespace Testing { - /// <summary> + ///<summary> /// Incorrect comment markup. + ///</incorrect> + public class Test2 + { + } +} + + + // CS1570: XML documentation comment on `Testing.MyDelegate2' 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 -warn:1 -warnaserror + +using System; + +namespace Testing +{ + /// <summary> + /// comment for delegate type /// </incorrect> + public delegate void MyDelegate2 (object o, EventArgs e); +} + + + // CS1570: XML documentation comment on `Testing.Test2' is not well-formed XML markup (Name cannot begin with the '6' character, hexadecimal value 0x36. Line 1, position 3.) +// Line: 9 +// Compiler options: -doc:dummy.xml -warn:1 -warnaserror + +using System; + +namespace Testing +{ + /// <6roken> broken markup public class Test2 { } } - // 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 + // CS1570: XML documentation comment on `Testing.InterfaceTest2' 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 { - public class Test + ///<summary> + /// incorrect markup comment for interface + ///</incorrect> + public interface InterfaceTest2 { - /// <summary> - /// invalid comment for const declaration - /// </invalid> - const string Constant2 = "CONSTANT STRING"; } } @@ -196,71 +197,70 @@ } - // 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.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 -using System; - namespace Testing { - public class Test + ///<summary> + /// incorrect markup comment for struct + ///</incorrect> + public struct StructTest2 { - /// <summary> - /// comment for public field - /// </invalid> - public string PublicField2; } } - // CS1570: XML documentation comment on `Testing.InterfaceTest2' 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 + // 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 // Compiler options: -doc:dummy.xml -warn:1 -warnaserror using System; namespace Testing { - ///<summary> - /// incorrect markup comment for interface - ///</incorrect> - public interface InterfaceTest2 + public class Test { + /// <summary> + /// comment for public field + /// </invalid> + public string PublicField2; } } - // CS1570: XML documentation comment on `Testing.MyDelegate2' 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.) + // 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 -warn:1 -warnaserror +// Compiler options: -doc:dummy.xml -warnaserror -warn:1 using System; /usr/lib/monodoc/sources/cs-errors.zip/CS1572 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1572 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1572 2036-01-31 00:46:20.000000000 +0000 @@ -2,20 +2,20 @@ CS1572 - // CS1572: XML comment on `Testing.Test.D' has a param tag for `mismatch', but there is no parameter by that name + // CS1572: XML comment on `Testing.Test.Baz(int)' has a param tag for `mismatch', but there is no parameter by that name // Line: 10 // Compiler options: -doc:dummy.xml -warn:2 -warnaserror namespace Testing { - class Test + public class Test { /// <param name='mismatch'>mismatch</param> - public delegate void D (int i); + public void Baz (int i) {} } } - // CS1572: XML comment on `Testing.Test.this[int]' has a param tag for `mismatch', but there is no parameter by that name + // CS1572: XML comment on `Testing.Test.D' has a param tag for `mismatch', but there is no parameter by that name // Line: 10 // Compiler options: -doc:dummy.xml -warn:2 -warnaserror @@ -24,22 +24,22 @@ class Test { /// <param name='mismatch'>mismatch</param> - public int this[int i] { - set {} - } + public delegate void D (int i); } } - // CS1572: XML comment on `Testing.Test.Baz(int)' has a param tag for `mismatch', but there is no parameter by that name + // CS1572: XML comment on `Testing.Test.this[int]' has a param tag for `mismatch', but there is no parameter by that name // Line: 10 // Compiler options: -doc:dummy.xml -warn:2 -warnaserror namespace Testing { - public class Test + class Test { /// <param name='mismatch'>mismatch</param> - public void Baz (int i) {} + public int this[int i] { + set {} + } } } /usr/lib/monodoc/sources/cs-errors.zip/CS1574 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1574 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1574 2036-01-31 00:46:20.000000000 +0000 @@ -2,50 +2,57 @@ CS1574 - // 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 + // CS1574: XML comment on `C.MM()' has cref attribute `int(int)' that could not be resolved +// Line: 8 +// Compiler options: -doc:dummy.xml -warnaserror -using System; -/// <see cref="Method(x,y)"/> -public class Test +class C { + /// <returns>A <see cref="int(int)" />.</returns> + void MM () + { + } } + - // CS1574: XML comment on `Test' has cref attribute `MyDelegate(int)' that could not be resolved + // CS1574: XML comment on `Foo' has cref attribute `Dispatch()' that could not be resolved // Line: 8 -// Compiler options: -doc:dummy.xml -warnaserror -warn:1 +// Compiler options: -doc:dummy.xml -warnaserror -/// <summary> -/// <see cref="MyDelegate(int)" /> -/// </summary> -public class Test { - /// <summary> - /// whatever - /// </summary> - public delegate void MyDelegate(int i); -} +/// I am delegate, without parens +public delegate void Dispatch (); +/// <see cref="Dispatch()" /> +public class Foo +{ +} - // CS1574: XML comment on `C.MM()' has cref attribute `int(int)' that could not be resolved + // CS1574: XML comment on `Test' has cref attribute `Goo' that could not be resolved // Line: 8 -// Compiler options: -doc:dummy.xml -warnaserror +// Compiler options: -doc:dummy.xml -warnaserror -warn:1 -class C +using System; + +/// <see cref="Goo"/> ... does not exist +public class Test { - /// <returns>A <see cref="int(int)" />.</returns> - void MM () - { + string Foo { + get { return null; } } } +class X +{ + static void Main () + { } +} - // 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 { } @@ -72,40 +79,14 @@ } - // CS1574: XML comment on `Test' has cref attribute `Format()' that could not be resolved -// Line: 5 -// Compiler options: -doc:dummy.xml -warnaserror -/// <summary> -/// <see cref="Format()" /> -/// <see cref="Test()" /> -/// </summary> -public class Test { - static void Main () { - } - - /// <summary /> - public Test (string a) { - } - - /// <summary /> - public static void Format (object a) - { - } -} - - - // CS1574: XML comment on `Test' has cref attribute `Test.Foo(int)' that could not be resolved -// Line: 8 + // 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; - -/// <see cref="Test.Foo(int)"/> Test has Foo, but is property that has no args. +/// <seealso cref="explicit operator int (bool)"/> public class Test { - string Foo { - get { return null; } - } } // CS1574: XML comment on `Test' has cref attribute `Method(System.String)' that could not be resolved @@ -120,37 +101,34 @@ } - // CS1574: XML comment on `Foo' has cref attribute `Dispatch()' that could not be resolved + // CS1574: XML comment on `Test' has cref attribute `MyDelegate(int)' that could not be resolved // Line: 8 -// Compiler options: -doc:dummy.xml -warnaserror - -/// I am delegate, without parens -public delegate void Dispatch (); +// Compiler options: -doc:dummy.xml -warnaserror -warn:1 -/// <see cref="Dispatch()" /> -public class Foo -{ +/// <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 + // 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 using System; -/// <see cref="Goo"/> ... does not exist +/// <see cref="Test.Foo(int)"/> Test has Foo, but is property that has no args. public class Test { string Foo { get { return null; } } } - -class X -{ - static void Main () - { } -} // CS1574: XML comment on `Test' has cref attribute `System.Xml.XmlDocument' that could not be resolved // Line: 9 @@ -164,5 +142,27 @@ { } + // CS1574: XML comment on `Test' has cref attribute `Format()' that could not be resolved +// Line: 5 +// Compiler options: -doc:dummy.xml -warnaserror +/// <summary> +/// <see cref="Format()" /> +/// <see cref="Test()" /> +/// </summary> +public class Test { + static void Main () { + } + + /// <summary /> + public Test (string a) { + } + + /// <summary /> /usr/lib/monodoc/sources/cs-errors.zip/CS1576 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1576 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1576 2036-01-31 00:46:20.000000000 +0000 @@ -3,6 +3,11 @@ CS1576 // CS1576: The line number specified for #line directive is missing or invalid +// Line: 4 + +#line + + // CS1576: The line number specified for #line directive is missing or invalid // Line: 8 public struct S @@ -15,11 +20,6 @@ // CS1576: The line number specified for #line directive is missing or invalid // Line: 4 - -#line - - // CS1576: The line number specified for #line directive is missing or invalid -// Line: 4 #line -9 /usr/lib/monodoc/sources/cs-errors.zip/CS1579 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1579 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1579 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,27 @@ CS1579 + // CS1579: foreach statement cannot operate on variables of type `Foo' because it does not contain a definition for `GetEnumerator' or is inaccessible +// Line: 12 + +using System; +using System.Collections; + +public class Test +{ + public static void Main () + { + Foo f = new Foo (); + foreach (object o in f) + Console.WriteLine (o); + } +} + +public class Foo +{ + public Func<IEnumerator> GetEnumerator; +} + // CS1579: foreach statement cannot operate on variables of type `C' because it does not contain a definition for `GetEnumerator' or is inaccessible // Line: 37 @@ -67,27 +88,6 @@ } } - // CS1579: foreach statement cannot operate on variables of type `Foo' because it does not contain a definition for `GetEnumerator' or is inaccessible -// Line: 12 - -using System; -using System.Collections; - -public class Test -{ - public static void Main () - { - Foo f = new Foo (); - foreach (object o in f) - Console.WriteLine (o); - } -} - -public class Foo -{ - public Func<IEnumerator> GetEnumerator; -} - // CS1579: foreach statement cannot operate on variables of type `X' because it does not contain a definition for `GetEnumerator' or is inaccessible // Line: 11 /usr/lib/monodoc/sources/cs-errors.zip/CS1581 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1581 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1581 2036-01-31 00:46:20.000000000 +0000 @@ -2,34 +2,34 @@ CS1581 - // CS1581: Invalid return type in XML comment cref attribute `explicit operator intp (Test)' + // CS1581: Invalid return type in XML comment cref attribute `explicit operator int (Test)' // Line: 7 // Compiler options: -doc:dummy.xml -warnaserror -warn:1 using System; -/// <seealso cref="explicit operator intp (Test)"/> +/// <seealso cref="explicit operator int (Test)"/> public class Test { /// operator. - public static explicit operator int (Test t) + public static explicit operator int [] (Test t) { - return 0; + return new int [0]; } } - // CS1581: Invalid return type in XML comment cref attribute `explicit operator int (Test)' + // CS1581: Invalid return type in XML comment cref attribute `explicit operator intp (Test)' // Line: 7 // Compiler options: -doc:dummy.xml -warnaserror -warn:1 using System; -/// <seealso cref="explicit operator int (Test)"/> +/// <seealso cref="explicit operator intp (Test)"/> public class Test { /// operator. - public static explicit operator int [] (Test t) + public static explicit operator int (Test t) { - return new int [0]; + return 0; } } /usr/lib/monodoc/sources/cs-errors.zip/CS1584 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1584 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1584 2036-01-31 00:46:20.000000000 +0000 @@ -13,22 +13,13 @@ { } - // 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)"/> -public class Test -{ -} - - // 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="Mai()n" /> +/// <see cref="." /> public class Test { } @@ -53,13 +44,22 @@ { } - // 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="Mai()n" /> +public class Test +{ +} + + // CS1584: XML comment on `Test' has syntactically incorrect cref attribute `operator foo(int,Test)' +// Line: 7 +// Compiler options: -doc:dummy.xml -warnaserror -warn:1 -/// <see cref="." /> +using System; +/// <seealso cref="operator foo(int,Test)"/> 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1587 2036-01-31 00:46:20.000000000 +0000 @@ -3,17 +3,27 @@ CS1587 // CS1587: XML comment is not placed on a valid language element -// Line: 13 +// Line: 7 +// Compiler options: -doc:dummy.xml -warnaserror -warn:2 + +using System; +[Flags] +/// invalid comment between attributes and type declaration. +enum Foo { +} + + // CS1587: XML comment is not placed on a valid language element +// Line: 11 // Compiler options: -doc:dummy.xml -warnaserror -warn:2 using System; namespace TopNS { - class Foo - { - Foo (/** incorrect doccomment*/ string foo) - { + namespace ChildNS { + [Flags] + /// comment after attribute + enum Enum2 { } } } @@ -28,23 +38,13 @@ { class Foo { - Foo (string foo) + Foo (/** incorrect doccomment*/ string foo) { - /** incorrect doccomment*/ } } } // CS1587: XML comment is not placed on a valid language element -// Line: 6 -// Compiler options: -doc:dummy.xml -warnaserror -warn:2 - -/// invalid comment placed on namespace. -using System; -enum Foo { -} - - // CS1587: XML comment is not placed on a valid language element // Line: 11 // Compiler options: -doc:dummy.xml -warnaserror -warn:2 @@ -54,8 +54,8 @@ { class Foo { - void /// incorrect - FooBar (string foo) + static /// incorrect + Foo () { } } @@ -70,48 +70,46 @@ namespace TopNS { - [Flags/** here is also incorrect comment */] - enum Enum2 { + internal /** comment */ /** comment2 */ class Hoge + { } } // CS1587: XML comment is not placed on a valid language element -// Line: 8 +// Line: 10 // Compiler options: -doc:dummy.xml -warnaserror -warn:2 using System; -/// invalid comment placed on namespace. namespace TopNS { - class Foo - { +/// 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: 16 +// Line: 11 // Compiler options: -doc:dummy.xml -warnaserror -warn:2 using System; namespace TopNS { - abstract class AFoo - { - internal abstract int Prop { get; } - } - - class Foo : AFoo + class Foo { - sealed /** is "sealed" checked? */ internal override int Prop { - get { return 0; } + public /// incorrect + void FooBar (string foo) + { } } + } // CS1587: XML comment is not placed on a valid language element -// Line: 12 +// Line: 15 // Compiler options: -doc:dummy.xml -warnaserror -warn:2 using System; @@ -121,60 +119,71 @@ class Foo { string this [string bar] { - get { /** incorrect */ return ""; } + /// incorrect + get { return ""; } set { } } } } // CS1587: XML comment is not placed on a valid language element -// Line: 6 +// Line: 10 // Compiler options: -doc:dummy.xml -warnaserror -warn:2 -/// invalid comment on global attributes. -[assembly:System.CLSCompliant (true)] +using System; + +namespace TopNS +{ + /// more invalid comment on namespace; inside namespace + namespace ChildNS { + class Test { + } + } -enum Foo { } // CS1587: XML comment is not placed on a valid language element -// Line: 13 +// Line: 12 // Compiler options: -doc:dummy.xml -warnaserror -warn:2 using System; namespace TopNS { - class Foo + internal class Hoge { - string this [string bar] { - get { return ""; } - set { /** incorrect */ } - } + /// invalid comment } + } // CS1587: XML comment is not placed on a valid language element -// Line: 7 +// Line: 9 // Compiler options: -doc:dummy.xml -warnaserror -warn:2 using System; -[Flags] -/// invalid comment between attributes and type declaration. -enum Foo { + +namespace TopNS +{ + [Flags/** here is also incorrect comment */] /usr/lib/monodoc/sources/cs-errors.zip/CS1589 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1589 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1589 2036-01-31 00:46:20.000000000 +0000 @@ -2,39 +2,39 @@ CS1589 - // 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; } } - // 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; } } /usr/lib/monodoc/sources/cs-errors.zip/CS1590 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1590 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1590 2036-01-31 00:46:20.000000000 +0000 @@ -3,23 +3,14 @@ CS1590 // 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) - { - } } } @@ -42,14 +33,23 @@ // CS1590: Invalid XML `include' element. Missing `file' attribute -// Line: 8 +// Line: 16 // Compiler options: -doc:dummy.xml -warn:1 -warnaserror namespace Testing { - /// <include/> + /// comment 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1591 2036-01-31 00:46:20.000000000 +0000 @@ -2,8 +2,8 @@ CS1591 - // CS1591: Missing XML comment for publicly visible type or member `Testing.Test.~Test()' -// Line: 16 + // CS1591: Missing XML comment for publicly visible type or member `Testing.Test.InternalClass' +// Line: 14 // Compiler options: -doc:dummy.xml -warnaserror -warn:4 using System; @@ -15,12 +15,25 @@ /// </summary> public class Test { - ~Test () + protected class InternalClass { } } } + // 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 +{ + public interface InterfaceTest + { + } +} + // CS1591: Missing XML comment for publicly visible type or member `EntryPoint.Create(bool)' // Line: 6 // Compiler options: -doc:dummy.xml -warnaserror -warn:4 @@ -33,7 +46,7 @@ } } - // CS1591: Missing XML comment for publicly visible type or member `Testing.Test.Foo()' + // CS1591: Missing XML comment for publicly visible type or member `Testing.Test.PublicField' // Line: 14 // Compiler options: -doc:dummy.xml -warnaserror -warn:4 @@ -46,47 +59,39 @@ /// </summary> public class Test { - public static void Foo () - { - } + public string PublicField; } } - // CS1591: Missing XML comment for publicly visible type or member `Testing.IFoo.Foo()' -// Line: 14 + // CS1591: Missing XML comment for publicly visible type or member `Testing.Foo.Foo' +// Line: 12 // Compiler options: -doc:dummy.xml -warnaserror -warn:4 using System; namespace Testing { - /// <summary> - /// description for interface IFoo - /// </summary> - public interface IFoo + /// comment is here. + public enum Foo { - void Foo (); + Foo, + /// required for all enum members + Bar } } - // CS1591: Missing XML comment for publicly visible type or member `Testing.Test.MyEvent' -// Line: 14 + // CS1591: Missing XML comment for publicly visible type or member `Testing.MyDelegate' +// Line: 9 // Compiler options: -doc:dummy.xml -warnaserror -warn:4 using System; namespace Testing { - /// <summary> - /// description for class Test - /// </summary> - public class Test - { - public event EventHandler MyEvent; - } + public delegate void MyDelegate (object o, EventArgs e); } - // 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.IFoo.Foo' // Line: 14 // Compiler options: -doc:dummy.xml -warnaserror -warn:4 @@ -95,34 +100,28 @@ namespace Testing { /// <summary> - /// description for class Test + /// description for interface IFoo /// </summary> - public class Test + public interface IFoo { - public string this [int i] { - get { return null; } - } + string Foo { get; } } } - // CS1591: Missing XML comment for publicly visible type or member `Testing.IFoo.Foo' -// Line: 14 + // CS1591: Missing XML comment for publicly visible type or member `Testing.Foo' +// Line: 12 // Compiler options: -doc:dummy.xml -warnaserror -warn:4 using System; namespace Testing { - /// <summary> - /// description for interface IFoo - /// </summary> - public interface IFoo + public enum Foo { - string Foo { get; } } } - // 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.PublicProperty' // Line: 14 // Compiler options: -doc:dummy.xml -warnaserror -warn:4 @@ -135,13 +134,13 @@ /// </summary> public class Test { - public struct InternalStruct - { + public string PublicProperty { + get { return null; } } } } - // CS1591: Missing XML comment for publicly visible type or member `Testing.Test.PublicField' + // CS1591: Missing XML comment for publicly visible type or member `Testing.Test.Constant' // Line: 14 // Compiler options: -doc:dummy.xml -warnaserror -warn:4 @@ -154,24 +153,28 @@ /// </summary> public class Test { - public string PublicField; + public const string Constant = "CONSTANT STRING"; } } - // CS1591: Missing XML comment for publicly visible type or member `Testing.Foo' -// Line: 12 + // CS1591: Missing XML comment for publicly visible type or member `Testing.IFoo.Foo()' +// Line: 14 // Compiler options: -doc:dummy.xml -warnaserror -warn:4 using System; namespace Testing { - public enum Foo + /// <summary> + /// description for interface IFoo + /// </summary> + public interface IFoo { + void Foo (); } } - // 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.InternalStruct' // Line: 14 /usr/lib/monodoc/sources/cs-errors.zip/CS1593 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1593 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1593 2036-01-31 00:46:20.000000000 +0000 @@ -2,48 +2,36 @@ CS1593 - // 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); + // CS1593: Delegate `Blah.MyDelegate' does not take `1' arguments +// Line : 21 -class X { - static void Main () +using System; + +public class Blah { + + public delegate int MyDelegate (int i, int j); + + public int Foo (int i, int j) { - D d2 = delegate () {}; + return i+j; } -} - - // CS1593: Delegate `System.Action<System.Threading.Tasks.Task>' does not take `0' arguments -// Line: 17 -using System; -using System.Threading.Tasks; -using System.Collections.Generic; + public static int Main () + { + Blah i = new Blah (); -namespace CrashRepro.Core -{ - public class X - { - async void Foo () - { - var pushes = await Run ().ContinueWith (l => - { - for (int i = 0; i < 1; ++i) - Run ().ContinueWith(() => { }); - }); - } + MyDelegate del = new MyDelegate (i.Foo); + + int number = del (2); + + if (number == 5) + return 0; + else + return 1; - Task Run () - { - return null; - } } -} +} // CS1593: Delegate `System.Action<int>' does not take `2' arguments // Line: 13 @@ -61,24 +49,6 @@ } } - // 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.Exception,object>' does not take `1' arguments // Line: 16 @@ -104,36 +74,66 @@ } } - // CS1593: Delegate `Blah.MyDelegate' does not take `1' arguments -// Line : 21 + // CS1593: Delegate `System.Func<int,int>' does not take `2' arguments +// Line: 11 -using System; -public class Blah { +using System; - public delegate int MyDelegate (int i, int j); - - public int Foo (int i, int j) +class C +{ + static void Main (string [] args) { - return i+j; + M ((x, y) => 2); } - public static int Main () + static void M (Func<int, int> a) { - Blah i = new Blah (); + } +} + + // 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); - MyDelegate del = new MyDelegate (i.Foo); +class X { + static void Main () + { + D d2 = delegate () {}; + } +} + + // CS1593: Delegate `System.Action<System.Threading.Tasks.Task>' does not take `0' arguments +// Line: 17 - int number = del (2); +using System; +using System.Threading.Tasks; +using System.Collections.Generic; - if (number == 5) - return 0; - else - return 1; +namespace CrashRepro.Core +{ + public class X + { + async void Foo () + { + var pushes = await Run ().ContinueWith (l => + { + for (int i = 0; i < 1; ++i) + Run ().ContinueWith(() => { }); + }); + } + Task Run () + { + return null; + } } - } + \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1594 2036-01-31 00:46:20.000000000 +0000 @@ -30,20 +30,6 @@ } } - // CS1594: Delegate `Test.Foo' has some invalid arguments -// Line: 10 - -namespace Test { - delegate void Foo (string x, params string [] args); - class Testee { - static void Bar (string x, params string [] args) {} - static void Main () { - Foo bar = new Foo (Bar); - bar ("x' = ", new object [] {"Foo", 5, 3.6 }); - } - } -} - // CS1594: Delegate `Blah.MyDelegate' has some invalid arguments // Line : 21 @@ -75,5 +61,19 @@ } + // CS1594: Delegate `Test.Foo' has some invalid arguments +// Line: 10 + +namespace Test { + delegate void Foo (string x, params string [] args); + class Testee { + static void Bar (string x, params string [] args) {} + static void Main () { + Foo bar = new Foo (Bar); + bar ("x' = ", new object [] {"Foo", 5, 3.6 }); + } + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1599 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1599 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1599 2036-01-31 00:46:20.000000000 +0000 @@ -2,28 +2,28 @@ CS1599 - // 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 () - { - return null; - } -} - // CS1599: The return type of `System.ArgIterator' is not allowed + delegate ArgIterator Test (int arg); +} + + // CS1599: The return type of `System.TypedReference' is not allowed // Line: 8 using System; -class C +public class Program { - delegate ArgIterator Test (int arg); -} - + public static TypedReference operator + (int a, Program b) + { + throw new ApplicationException (); + } +} // CS1599: The return type of `System.ArgIterator' is not allowed // Line: 8 @@ -41,11 +41,11 @@ using System; -public class Program +class C { - public static TypedReference operator + (int a, Program b) + public TypedReference Method () { - throw new ApplicationException (); + return null; } } /usr/lib/monodoc/sources/cs-errors.zip/CS1605 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1605 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1605 2036-01-31 00:46:20.000000000 +0000 @@ -3,13 +3,14 @@ CS1605 // 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 () @@ -19,14 +20,13 @@ } // 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 () /usr/lib/monodoc/sources/cs-errors.zip/CS1611 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1611 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1611 2036-01-31 00:46:20.000000000 +0000 @@ -4,18 +4,18 @@ // CS1611: The params parameter cannot be declared as ref, out or in // Line: 6 -// Compiler options: -langversion:latest class Test { - public static void Error (params in int args) {} + public static void Error (params ref int args) {} } // CS1611: The params parameter cannot be declared as ref, out or in // Line: 6 +// Compiler options: -langversion:latest class Test { - public static void Error (params ref int args) {} + public static void Error (params in int args) {} } \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1612 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1612 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1612 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,51 @@ CS1612 + // CS1612: Cannot modify a value type return value of `bar.this[int]'. Consider storing the value in a temporary variable +// Line: 19 + +struct foo { + public int x; +} + +class bar { + public foo this [int x] { + get { return new foo (); } + set { } + } +} + +class main { + static void baz (out int x) { x = 5; } + static void Main () + { + bar b = new bar (); + baz (out b [0].x); + } +} + + // CS1612: Cannot modify a value type return value of `R.Size'. Consider storing the value in a temporary variable +// Line: 19 + +struct R +{ + public S Size { get; set; } +} + +struct S +{ + public float Height { get; set; } +} + +public class Test +{ + public static void Main () + { + var r = new R (); + r.Size.Height = 3; + } +} + // CS1612: Cannot modify a value type return value of `X.P'. Consider storing the value in a temporary variable // Line: 9 @@ -28,38 +73,57 @@ } - // 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 `bar.this[int]'. Consider storing the value in a temporary variable +// Line: 19 -public struct V -{ - public int this [int i] { - set { - } - } - +struct foo { public int x; } -class Test -{ - V m_value; - - public static V v(bool b) { return new V (); } +class bar { + public foo this [int x] { + get { return new foo (); } + set { } + } +} - public Test () +class main { + static void Main () { - m_value = new V (); + bar b = new bar (); + b [0].x = 5; } +} + + // CS1612: Cannot modify a value type return value of `X.P'. Consider storing the value in a temporary variable +// Line: 9 - public static void Main () +using System; +class X { + static void Main () { - Test t = new Test (); - Test.v(true).x = 9; + + bar (out P.x); + Console.WriteLine ("Got: " + P.x); + } + + static void bar (out int x) { x = 10; } + + static G P { + get { + return g; + } + } + + static G g = new G (); + + struct G { + public int x; } } + - // CS1612: Cannot modify a value type return value of `Test.v'. Consider storing the value in a temporary variable + // CS1612: Cannot modify a value type return value of `Test.v()'. Consider storing the value in a temporary variable // Line: 28 public struct V @@ -76,7 +140,7 @@ { V m_value; - public V v { get { return m_value; } } + public V v() { return m_value; } public Test () { @@ -86,33 +150,11 @@ 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 - -struct foo { - public int x; -} - -class bar { - public foo this [int x] { - get { return new foo (); } - set { } - } -} - -class main { - static void Main () - { - bar b = new bar (); - b [0].x = 5; + t.v() [0] = 9; } } - // CS1612: Cannot modify a value type return value of `Test.v()'. Consider storing the value in a temporary variable + // 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 @@ -129,7 +171,7 @@ { V m_value; - public V v() { return m_value; } + public static V v(bool b) { return new V (); } public Test () { @@ -139,7 +181,7 @@ public static void Main () { Test t = new Test (); - t.v() [0] = 9; + Test.v(true).x = 9; } } @@ -169,76 +211,34 @@ } - // CS1612: Cannot modify a value type return value of `R.Size'. Consider storing the value in a temporary variable /usr/lib/monodoc/sources/cs-errors.zip/CS1615 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1615 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1615 2036-01-31 00:46:20.000000000 +0000 @@ -2,19 +2,17 @@ CS1615 - // CS1615: Argument `#2' does not require `out' modifier. Consider removing `out' modifier -// Line: 13 + // CS1615: Argument `#1' does not require `ref' modifier. Consider removing `ref' modifier +// Line: 11 -public class X +class C { - public static void Test (params int[] a) - { - } + public static void test (int i) {} public static void Main() { - int i; - Test (1, out i); + int i = 1; + test (ref i); } } @@ -37,17 +35,19 @@ { } } - // CS1615: Argument `#1' does not require `ref' modifier. Consider removing `ref' modifier -// Line: 11 + // CS1615: Argument `#2' does not require `out' modifier. Consider removing `out' modifier +// Line: 13 -class C +public class X { - public static void test (int i) {} + public static void Test (params int[] a) + { + } public static void Main() { - int i = 1; - test (ref i); + int i; + Test (1, out i); } } /usr/lib/monodoc/sources/cs-errors.zip/CS1616 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1616 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1616 2036-01-31 00:46:20.000000000 +0000 @@ -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/CS1618 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1618 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1618 2036-01-31 00:46:20.000000000 +0000 @@ -2,23 +2,6 @@ CS1618 - // CS1618: Cannot create delegate with `TestClass.Show(int)' because it has a Conditional attribute -// Line: 13 - -class TestClass -{ - delegate void test_delegate (int arg); - - [System.Diagnostics.Conditional("DEBUG")] - public void Show (int arg) {} - - public TestClass () - { - test_delegate D = new test_delegate (Show); - } -} - - // CS1618: Cannot create delegate with `System.Diagnostics.Debug.Assert(bool)' because it has a Conditional attribute // Line: 8 @@ -43,5 +26,22 @@ } } + // CS1618: Cannot create delegate with `TestClass.Show(int)' because it has a Conditional attribute +// Line: 13 + +class TestClass +{ + delegate void test_delegate (int arg); + + [System.Diagnostics.Conditional("DEBUG")] + public void Show (int arg) {} + + public TestClass () + { + test_delegate D = new test_delegate (Show); + } +} + + \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1620 2036-01-31 00:46:20.000000000 +0000 @@ -2,26 +2,30 @@ CS1620 - // CS1620: Argument `#1' is missing `out' modifier + // CS1620: Argument `#1' is missing `ref' modifier // Line: 24 -using System; - -namespace TestNamespace +public class X { - public class Test + public void Foo (string[] b) { - public Test () - { - int os; - TestMethod (os); - Console.WriteLine (os); - } + } + + public void Foo (ref string i) + { + } + + public void Foo (int i) + { + } +} - public void TestMethod (out int os) - { - os = 3; - } +class D +{ + static void Main () + { + X x = null; + x.Foo ("hola"); } } @@ -43,48 +47,44 @@ } // CS1620: Argument `#1' is missing `out' modifier -// Line: 13 +// Line: 24 -class C +using System; + +namespace TestNamespace { - public static void test (out int i) + public class Test { - i = 5; - } + public Test () + { + int os; + TestMethod (os); + Console.WriteLine (os); + } - public static void Main() { - int i = 1; - test (ref i); + public void TestMethod (out int os) + { + os = 3; + } } } + - // 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1621 2036-01-31 00:46:20.000000000 +0000 @@ -2,23 +2,6 @@ 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 @@ -40,5 +23,22 @@ { } } + // 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1622 2036-01-31 00:46:20.000000000 +0000 @@ -3,6 +3,32 @@ 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: 21 + +using System.Collections.Generic; + +namespace McsDiff +{ + class MyObj + { + } + + class MainClass + { + protected static IEnumerable<MyObj> GetStuff () + { + yield return null; + + try { + } + catch { + return; + } + } + } +} + + // CS1622: Cannot return a value from iterators. Use the yield return statement to return a value, or yield break to end the iteration // Line: 11 using System.Collections; @@ -21,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; } } } @@ -71,25 +90,6 @@ } } } - - // 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 - -using System.Collections; - -public class C -{ - internal static IEnumerable PrivateBinPath - { - get - { - string a = "a"; - if (a == null) - return false; - yield return a; - } - } -} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1624 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1624 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1624 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,17 @@ CS1624 + // CS1624: The body of `Program.Program()' cannot be an iterator block because `void' is not an iterator interface type +// Line: 6 + +class Program { + public Program() { + yield break; + } + static public void Main() { + } +} + // 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; @@ -21,31 +32,6 @@ } } - // CS1624: The body of `Program.Program()' cannot be an iterator block because `void' is not an iterator interface type -// Line: 6 - -class Program { - public Program() { - yield break; - } - static public void Main() { - } -} - - // 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.this[int].set' cannot be an iterator block because `void' is not an iterator interface type // Line: 15 using System; @@ -67,5 +53,19 @@ } } + // 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; + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1626 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1626 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1626 2036-01-31 00:46:20.000000000 +0000 @@ -12,12 +12,9 @@ public IEnumerator GetEnumerator () { try { - try { yield return this; - } - finally {} } - catch (System.Exception) { + catch { } } } @@ -32,9 +29,12 @@ public IEnumerator GetEnumerator () { try { + try { yield return this; + } + finally {} } - catch { + catch (System.Exception) { } } } /usr/lib/monodoc/sources/cs-errors.zip/CS1628 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1628 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1628 2036-01-31 00:46:20.000000000 +0000 @@ -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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1629 2036-01-31 00:46:20.000000000 +0000 @@ -18,6 +18,19 @@ } // CS1629: Unsafe code may not appear in iterators +// Line: 8 +// Compiler options: -unsafe + +using System.Collections; + +class X { + static unsafe IEnumerator GetIt () + { + yield return 1; + } + +} + // CS1629: Unsafe code may not appear in iterators // Line: 17 // Compiler options: -unsafe @@ -36,18 +49,5 @@ yield return *current; } } - // CS1629: Unsafe code may not appear in iterators -// Line: 8 -// Compiler options: -unsafe - -using System.Collections; - -class X { - static unsafe IEnumerator GetIt () - { - 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1632 2036-01-31 00:46:20.000000000 +0000 @@ -3,6 +3,29 @@ CS1632 // CS1632: Control cannot leave the body of an anonymous method +// Line: 14 + +using System; + +class X +{ + public static void Main () + { + int b = 0; + switch (b) { + case 1: + Action a = () => { + goto case 2; + }; + + break; + case 2: + break; + } + } +} + + // CS1632: Control cannot leave the body of an anonymous method // Line: 12 using System; @@ -35,14 +58,12 @@ { int b = 0; switch (b) { - case 1: + case 1: Action a = () => { - goto case 2; + break; }; break; - case 2: - break; } } } @@ -63,27 +84,6 @@ } } } - - // CS1632: Control cannot leave the body of an anonymous method -// Line: 14 - -using System; - -class X -{ - public static void Main () - { - int b = 0; - switch (b) { - case 1: - Action a = () => { - break; - }; - - break; - } - } -} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1644 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1644 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1644 2036-01-31 00:46:20.000000000 +0000 @@ -2,137 +2,58 @@ CS1644 - // 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 - -class C -{ - private protected enum E - { - } -} - // 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 `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 Program -{ - static global::System.Void Main () - { - } -} - // 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 class C { - int this [long arg] => -9; + int Prop => 3; } - // CS1644: Feature `exception filter' cannot be used because it is not part of the C# 5.0 language specification -// Line: 14 -// Compiler options: -langversion:5 - -using System; + // CS1644: Feature `tuples' cannot be used because it is not part of the C# 6.0 language specification +// Line: 9 +// Compiler options: -langversion:6 -class X +class Class { - public static void Main () - { - int x = 4; - try { - throw null; - } catch (Exception) when (x > 0) { - } - } -} - - // CS1644: Feature `switch expression of boolean type' cannot be used because it is not part of the C# 1.0 language specification -// Line: 8 -// Compiler options: -langversion:ISO-1 - -class Class { - public void Foo (bool b) + static void Main () { - switch (b) - { - case true: - break; - case false: - break; - } - } + var t = (a: 1, b: 2); + } } - // 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 + // 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 -class C -{ - int M () => 0; -} - // CS1644: Feature `out variable declaration' cannot be used because it is not part of the C# 5.0 language specification -// Line: 9 -// Compiler options: -langversion:5 +using System; class C { - public static void Main () + public int Integer { - int.TryParse ("0", out var v); + get => 0; } } - // CS1644: Feature `tuples' cannot be used because it is not part of the C# 6.0 language specification -// Line: 7 -// Compiler options: -langversion:6 - -class Class -{ - static (int, bool) Foo () - { - return; - } -} - - // CS1644: Feature `asynchronous functions' cannot be used because it is not part of the C# 4.0 language specification + // CS1644: Feature `nullable types' cannot be used because it is not part of the C# 1.0 language specification // Line: 9 -// Compiler options: -langversion:4 - -using System; +// Compiler options: -langversion:ISO-1 -class C +public class Test { - public async void Foo () + static void Main () { + bool? testbool; } } - - // CS1644: Feature `access modifiers on properties' cannot be used because it is not part of the C# 1.0 language specification -// Line: 13 -// Compiler options: -langversion:ISO-1 - -class Class { - - public int Count { - - get { - return 0; - } + // CS1644: Feature `partial methods' cannot be used because it is not part of the C# 2.0 language specification +// Line: 7 +// Compiler options: -langversion:ISO-2 - protected set { - } - } +partial class P +{ + partial void Foo (); } // CS1644: Feature `null coalescing operator' cannot be used because it is not part of the C# 1.0 language specification @@ -147,24 +68,25 @@ get { return program ?? string.Empty; } } } - // CS1644: Feature `digit separators' cannot be used because it is not part of the C# 6.0 language specification -// Line: 9 -// Compiler options: -langversion:6 + // CS1644: Feature `ref structs' cannot be used because it is not part of the C# 7.0 language specification +// Line: 5 +// Compiler options: -langversion:7 -class X +ref struct S { - int Test () - { - var i = 1_0; - } -} - - // CS1644: Feature `generics' cannot be used because it is not part of the C# 1.0 language specification -// Line: 5 -// Compiler options: -langversion:ISO-1 +} + // CS1644: Feature `lambda expressions' cannot be used because it is not part of the C# 2.0 language specification +// Line: 11 +// Compiler options: -langversion:ISO-2 -class Stack < type > +using System; + +class C { + public void Foo () + { /usr/lib/monodoc/sources/cs-errors.zip/CS1648 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1648 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1648 2036-01-31 00:46:20.000000000 +0000 @@ -27,17 +27,14 @@ { 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 () @@ -53,14 +50,17 @@ { 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 () /usr/lib/monodoc/sources/cs-errors.zip/CS1650 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1650 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1650 2036-01-31 00:46:20.000000000 +0000 @@ -23,39 +23,39 @@ } // CS1650: Fields of static readonly field `C.s' cannot be assigned to (except in a static constructor or a variable initializer) -// Line: 15 +// Line: 14 -struct S -{ - public int x { get; set; } +using System; + +struct S { + public int x; } -class C -{ +class C { static readonly S s; - public static void Main (string[] args) - { + public static void Main(String[] args) { s.x = 42; + Console.WriteLine(s.x); } } // 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; +// Line: 15 -struct S { - public int x; +struct S +{ + public int x { get; set; } } -class C { +class C +{ static readonly S s; - public static void Main(String[] args) { + public static void Main (string[] args) + { s.x = 42; - Console.WriteLine(s.x); } } /usr/lib/monodoc/sources/cs-errors.zip/CS1654 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1654 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1654 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,23 @@ CS1654 + // 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 @@ -73,23 +90,6 @@ } } - // 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 /usr/lib/monodoc/sources/cs-errors.zip/CS1656 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1656 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1656 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,21 @@ CS1656 + // CS1656: Cannot assign to `p' because it is a `fixed variable' +// Line: 10 +// Compiler options: -unsafe + +unsafe class X { + + static int x = 0; + static void Main () { + fixed (int* p = &x) { + p = (int*)22; + } + } +} + + // CS1656: Cannot assign to `Method_1' because it is a `method group' // Line: 14 @@ -31,22 +46,20 @@ } } - // CS1656: Cannot assign to `i' because it is a `foreach iteration variable' -// Line: 14 - -using System.Collections; + // CS1656: Cannot assign to `m' because it is a `using variable' +// Line: 10 +using System.IO; -class Test { - static IEnumerable foo () { return null; } +class X { static void Main () { - IEnumerable f = foo (); - if (f != null) - foreach (int i in f) - i = 0; + using (MemoryStream m = new MemoryStream ()){ + m = null; + } } } + // CS1656: Cannot assign to `i' because it is a `foreach iteration variable' // Line: 9 @@ -62,35 +75,22 @@ } - // CS1656: Cannot assign to `p' because it is a `fixed variable' -// Line: 10 -// Compiler options: -unsafe - -unsafe class X { + // CS1656: Cannot assign to `i' because it is a `foreach iteration variable' +// Line: 14 - static int x = 0; - static void Main () { - fixed (int* p = &x) { - p = (int*)22; - } - } -} - - - // CS1656: Cannot assign to `m' because it is a `using variable' -// Line: 10 -using System.IO; +using System.Collections; -class X { +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; } } - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1657 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1657 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1657 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,21 @@ CS1657 + // CS1657: Cannot pass `i' as a ref or out argument because it is a `foreach iteration variable' +// Line: 9 + +class E +{ + public E (int[] args) + { + foreach (int i in args) + Init (ref i); + } + + void Init (ref int val) {} + +} + // CS1657: Cannot pass `m' as a ref or out argument because it is a `using variable' // Line: 11 @@ -22,20 +37,5 @@ } } - // CS1657: Cannot pass `i' as a ref or out argument because it is a `foreach iteration variable' -// Line: 9 - -class E -{ - public E (int[] args) - { - foreach (int i in args) - Init (ref i); - } - - void Init (ref int val) {} - -} - \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1660 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,18 @@ CS1660 + // CS1660: Cannot convert `lambda expression' to non-delegate type `object' +// Line: 9 + +using System; + +class X { + static void Main () + { + object o = () => true; + } +} + // CS1660: Cannot convert `anonymous method' to non-delegate type `object' // Line: 9 @@ -37,17 +49,5 @@ } } - // CS1660: Cannot convert `lambda expression' to non-delegate type `object' -// Line: 9 - -using System; - -class X { - static void Main () - { - object o = () => true; - } -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1661 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1661 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1661 2036-01-31 00:46:20.000000000 +0000 @@ -2,18 +2,6 @@ CS1661 - // CS1661: Cannot convert `anonymous method' to delegate type `D' since there is a parameter mismatch -// Line: 9 - -delegate void D (int x); - -class X { - static void Main () - { - D d2 = delegate (ref int x) {}; - } -} - // CS1661: Cannot convert `anonymous method' to delegate type `System.Predicate<T>' since there is a parameter mismatch // Line: 8 @@ -27,6 +15,18 @@ } } + // CS1661: Cannot convert `anonymous method' to delegate type `D' since there is a parameter mismatch +// Line: 9 + +delegate void D (int x); + +class X { + static void Main () + { + D d2 = delegate (ref int x) {}; + } +} + // CS1661: Cannot convert `lambda expression' to delegate type `C.WithOutParam' since there is a parameter mismatch // Line: 10 /usr/lib/monodoc/sources/cs-errors.zip/CS1667 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1667 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1667 2036-01-31 00:46:20.000000000 +0000 @@ -2,34 +2,6 @@ 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 -// 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 {} - } -} - - // 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 @@ -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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1669 2036-01-31 00:46:20.000000000 +0000 @@ -3,10 +3,6 @@ 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 public class E @@ -15,16 +11,9 @@ } // CS1669: __arglist is not valid in this context -// Line: 6 +// Line: 4 -class C -{ - public static explicit operator X (__arglist) - { - return null; - } -} - +delegate void F (__arglist); // CS1669: __arglist is not valid in this context // Line: 10 @@ -40,5 +29,16 @@ } } + // CS1669: __arglist is not valid in this context +// Line: 6 + +class C +{ + public static explicit operator X (__arglist) + { + return null; + } +} + \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1670 2036-01-31 00:46:20.000000000 +0000 @@ -3,6 +3,17 @@ 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); @@ -17,16 +28,5 @@ } } - // 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1671 2036-01-31 00:46:20.000000000 +0000 @@ -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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1674 2036-01-31 00:46:20.000000000 +0000 @@ -2,7 +2,7 @@ CS1674 - // CS1674: `int': type used in a using statement must be implicitly convertible to `System.IDisposable' + // CS1674: `object': type used in a using statement must be implicitly convertible to `System.IDisposable' // Line: 10 using System; @@ -11,12 +11,11 @@ { void Method (IDisposable i) { - using (int o = 1, b = 2) + using (object o = i) { } - } -} - + } +} // CS1674: `NoIDispose': type used in a using statement must be implicitly convertible to `System.IDisposable' // Line: 27 @@ -60,18 +59,6 @@ // 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; @@ -80,9 +67,22 @@ { void Method (IDisposable i) { - using (object o = 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) + { + } } } /usr/lib/monodoc/sources/cs-errors.zip/CS1677 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1677 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1677 2036-01-31 00:46:20.000000000 +0000 @@ -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/CS1678 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1678 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1678 2036-01-31 00:46:20.000000000 +0000 @@ -2,18 +2,6 @@ CS1678 - // CS1678: Parameter `1' is declared as type `long' but should be `int' -// Line: 9 - -delegate void D (int x); - -class X { - static void Main () - { - D d2 = delegate (long x) {}; - } -} - // CS1678: Parameter `1' is declared as type `T' but should be `IStream<T>' // Line: 14 @@ -31,5 +19,17 @@ } } + // CS1678: Parameter `1' is declared as type `long' but should be `int' +// Line: 9 + +delegate void D (int x); + +class X { + static void Main () + { + D d2 = delegate (long x) {}; + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1685 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1685 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1685 2036-01-31 00:46:20.000000000 +0000 @@ -2,11 +2,6 @@ CS1685 - // CS1685: The predefined type `System.Runtime.CompilerServices.ExtensionAttribute' is defined multiple times. Using definition from `mscorlib.dll' -// Line: 0 -// Compiler options: -warn:1 -warnaserror -r:System.Core.dll -r:CS1685-2-lib.dll - - // CS1685: The predefined type `System.Int32' is defined multiple times. Using definition from `mscorlib.dll' // Line: 0 // Compiler options: -warn:1 -warnaserror @@ -16,5 +11,10 @@ } } + // CS1685: The predefined type `System.Runtime.CompilerServices.ExtensionAttribute' is defined multiple times. Using definition from `mscorlib.dll' +// Line: 0 +// Compiler options: -warn:1 -warnaserror -r:System.Core.dll -r:CS1685-2-lib.dll + + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1686 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1686 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1686 2036-01-31 00:46:20.000000000 +0000 @@ -2,24 +2,42 @@ CS1686 - // CS1686: Local variable or parameter `str' cannot have their address taken and be used inside an anonymous method, lambda expression or query expression + // 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 -using System; +delegate void D (); + +unsafe class X { + public D T (int a) + { + return delegate { + int *x = &a; + }; + } + + static void Main () + { } +} + + // CS1686: Local variable or parameter `i' cannot have their address taken and be used inside an anonymous method, lambda expression or query expression +// Line: 18 +// Compiler options: -unsafe unsafe struct S { - public fixed int i [10]; + public int i; } class C { + unsafe delegate int* D (); + static void Main () { unsafe { - S str; - Func<int> e = () => str.i [3]; + S str = new S (); + D d = delegate { return &str.i; }; } } } @@ -33,30 +51,33 @@ 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 -// Line: 11 + // 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 -delegate void D (); +class X { + delegate void S (); -unsafe class X { - public D T (int a) + unsafe void M () { - int *y = &a; - - return delegate { - int x = a; + 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 @@ -76,48 +97,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: 18 + // 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 +using System; + unsafe struct S { - public int i; + public fixed int i [10]; } class C { - unsafe delegate int* D (); - static void Main () { unsafe { - S str = new S (); - D d = delegate { return &str.i; }; + S str; + Func<int> e = () => str.i [3]; } } } - // 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 () {} -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1690 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1690 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1690 2036-01-31 00:46:20.000000000 +0000 @@ -3,19 +3,14 @@ CS1690 // 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 @@ -28,7 +23,7 @@ public static void Main () { A a = new A (); - a.point.x.val = 0; + a.point.Error (); } } @@ -70,7 +65,7 @@ public struct Point { - public bool Error { get { return true; } } + public bool this [int i] { set { } } } public class A : MarshalByRefObject @@ -83,7 +78,7 @@ public static void Main () { A a = new A (); - bool b = a.point.Error; + a.point [3] = false; } } @@ -143,7 +138,7 @@ public static void Main () { A a = new A (); - Console.WriteLine (a.point.x.val); + a.point.x.val = 0; } } @@ -155,7 +150,7 @@ public struct Point { - public bool this [int i] { set { } } + public bool Error { get { return true; } } } public class A : MarshalByRefObject @@ -168,19 +163,24 @@ public static void Main () { A a = new A (); - a.point [3] = false; + bool b = 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: 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 @@ -193,7 +193,7 @@ public static void Main () { A a = new A (); - a.point.Error (); + Console.WriteLine (a.point.x.val); } } /usr/lib/monodoc/sources/cs-errors.zip/CS1695 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1695 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1695 2036-01-31 00:46:20.000000000 +0000 @@ -6,7 +6,7 @@ // Line: 5 // Compiler options: -warnaserror -#pragma checksum "" ID +#pragma checksum "foo.txt" "{00000000-0000-0000-0000-000000000000}" "M" // CS1695: Invalid #pragma checksum syntax. Expected "filename" "{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}" "XXXX..." // Line: 5 @@ -18,7 +18,7 @@ // Line: 5 // Compiler options: -warnaserror -#pragma checksum "foo.txt" "{00000000-0000-0000-0000-000000000000}" "M" +#pragma checksum "" ID \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1699 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1699 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1699 2036-01-31 00:46:20.000000000 +0000 @@ -2,13 +2,13 @@ CS1699 - // CS1699: Use compiler option `keycontainer' or appropriate project settings instead of `AssemblyKeyNameAttribute' 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:AssemblyKeyNameAttribute ("container")] +[assembly:AssemblyKeyFile ("key.snk")] // CS1699: Use compiler option `delaysign' or appropriate project settings instead of `AssemblyDelaySign' attribute // Line: 7 @@ -18,13 +18,13 @@ [assembly:AssemblyDelaySign (true)] - // CS1699: Use compiler option `keyfile' or appropriate project settings instead of `AssemblyKeyFile' attribute + // CS1699: Use compiler option `keycontainer' or appropriate project settings instead of `AssemblyKeyNameAttribute' attribute // Line: 7 // Compiler options: -warnaserror -warn:4 using System.Reflection; -[assembly:AssemblyKeyFile ("key.snk")] +[assembly:AssemblyKeyNameAttribute ("container")] \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1705 2036-01-31 00:46:20.000000000 +0000 @@ -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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1706 2036-01-31 00:46:20.000000000 +0000 @@ -3,35 +3,6 @@ CS1706 // CS1706: Anonymous methods and lambda expressions cannot be used in the current context -// Line: 8 - -delegate void D (); - -class C -{ - const object c = new D (delegate {}); -} - - // CS1706: Anonymous methods and lambda expressions cannot be used in the current context -// Line: 14 - -public delegate void Proc(); - -public class AAttribute : System.Attribute -{ - public AAttribute(Proc p) - { } -} - -public class Class -{ - [A((object)delegate { return; })] - public void Foo() - { - } -} - - // CS1706: Anonymous methods and lambda expressions cannot be used in the current context // Line: 13 using System; @@ -67,5 +38,34 @@ } + // CS1706: Anonymous methods and lambda expressions cannot be used in the current context +// Line: 8 + +delegate void D (); + +class C +{ + const object c = new D (delegate {}); +} + + // CS1706: Anonymous methods and lambda expressions cannot be used in the current context +// Line: 14 + +public delegate void Proc(); + +public class AAttribute : System.Attribute +{ + public AAttribute(Proc p) + { } +} + +public class Class +{ + [A((object)delegate { return; })] + public void Foo() + { + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1709 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1709 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1709 2036-01-31 00:46:20.000000000 +0000 @@ -6,13 +6,13 @@ // Line: 5 // Compiler options: -warnaserror -#line 5 "" +#pragma checksum "" "{ee1816fc-aa5e-4d10-8ff7-6f4963833f60}" "" // CS1709: Filename specified for preprocessor directive is empty // Line: 5 // Compiler options: -warnaserror -#pragma checksum "" "{ee1816fc-aa5e-4d10-8ff7-6f4963833f60}" "" +#line 5 "" \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1715 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1715 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1715 2036-01-31 00:46:20.000000000 +0000 @@ -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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1717 2036-01-31 00:46:20.000000000 +0000 @@ -8,9 +8,10 @@ class A { - public A (int a) + void B () { - a = a; + int l = 3; + l = l; } } // CS1717: Assignment made to same variable; did you mean to assign something else? @@ -19,11 +20,11 @@ class A { - static int Value; + int i; - void D () + void C () { - A.Value = Value; + i = i; } } // CS1717: Assignment made to same variable; did you mean to assign something else? @@ -31,24 +32,22 @@ // Compiler options: -warnaserror -warn:3 class A -{ - public A () - { - int a = a = 5; - } +{ + public A (int a) + { + a = a; + } } // CS1717: Assignment made to same variable; did you mean to assign something else? // Line: 9 // Compiler options: -warnaserror -warn:3 class A -{ - int i; - - void C () - { - i = i; - } +{ + public A () + { + int a = a = 5; + } } // CS1717: Assignment made to same variable; did you mean to assign something else? // Line: 9 @@ -56,10 +55,11 @@ class A { - void B () + static int Value; + + void D () { - int l = 3; - l = l; + A.Value = Value; } } /usr/lib/monodoc/sources/cs-errors.zip/CS1718 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1718 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1718 2036-01-31 00:46:20.000000000 +0000 @@ -3,6 +3,20 @@ 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 @@ -34,19 +48,5 @@ } - // 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/CS1720 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1720 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1720 2036-01-31 00:46:20.000000000 +0000 @@ -16,27 +16,27 @@ } } // CS1720: Expression will always cause a `System.NullReferenceException' -// Line: 9 +// Line: 11 // Compiler options: -warnaserror -warn:1 +using System; + public class Tester { - public static void GenericClass<T>(T t) where T : class + public static void Main() { - string s = default(T).ToString(); + Console.WriteLine(((object)null).ToString()); } } // CS1720: Expression will always cause a `System.NullReferenceException' -// Line: 11 +// Line: 9 // Compiler options: -warnaserror -warn:1 -using System; - public class Tester { - public static void Main() + public static void GenericClass<T>(T t) where T : class { - Console.WriteLine(((object)null).ToString()); + string s = default(T).ToString(); } } /usr/lib/monodoc/sources/cs-errors.zip/CS1725 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1725 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1725 2036-01-31 00:46:20.000000000 +0000 @@ -2,12 +2,12 @@ CS1725 - // CS1725: Friend assembly reference `main, processorArchitecture=MSIL' is invalid. InternalsVisibleTo declarations cannot have a version, culture or processor architecture specified + // CS1725: Friend assembly reference `main, Version=1.1.1.1' is invalid. InternalsVisibleTo declarations cannot have a version, culture or processor architecture specified // Line: 6 using System.Runtime.CompilerServices; -[assembly: InternalsVisibleTo ("main, processorArchitecture=MSIL")] +[assembly: InternalsVisibleTo ("main, Version=1.1.1.1")] class A { @@ -16,12 +16,12 @@ } } - // CS1725: Friend assembly reference `main, Culture=neutral' is invalid. InternalsVisibleTo declarations cannot have a version, culture or processor architecture specified + // CS1725: Friend assembly reference `main, processorArchitecture=MSIL' is invalid. InternalsVisibleTo declarations cannot have a version, culture or processor architecture specified // Line: 6 using System.Runtime.CompilerServices; -[assembly: InternalsVisibleTo ("main, Culture=neutral")] +[assembly: InternalsVisibleTo ("main, processorArchitecture=MSIL")] class A { @@ -30,12 +30,12 @@ } } - // CS1725: Friend assembly reference `main, Version=1.1.1.1' is invalid. InternalsVisibleTo declarations cannot have a version, culture or processor architecture specified + // CS1725: Friend assembly reference `main, Culture=neutral' is invalid. InternalsVisibleTo declarations cannot have a version, culture or processor architecture specified // Line: 6 using System.Runtime.CompilerServices; -[assembly: InternalsVisibleTo ("main, Version=1.1.1.1")] +[assembly: InternalsVisibleTo ("main, Culture=neutral")] class A { /usr/lib/monodoc/sources/cs-errors.zip/CS1728 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1728 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1728 2036-01-31 00:46:20.000000000 +0000 @@ -2,33 +2,33 @@ CS1728 - // CS1728: Cannot create delegate from method `int?.GetValueOrDefault()' because it is a member of System.Nullable<T> type -// Line: 14 + // CS1728: Cannot create delegate from method `long?.GetValueOrDefault()' because it is a member of System.Nullable<T> type +// Line: 10 using System; class C { - delegate int Test (); - event Test MyEvent; - - void Error () + public static void Main () { - int? i = 0; - MyEvent += new Test (i.GetValueOrDefault); + Func<long> a = new long?().GetValueOrDefault; } } - // CS1728: Cannot create delegate from method `long?.GetValueOrDefault()' because it is a member of System.Nullable<T> type -// Line: 10 + // CS1728: Cannot create delegate from method `int?.GetValueOrDefault()' because it is a member of System.Nullable<T> type +// Line: 14 using System; class C { - public static void Main () + delegate int Test (); + event Test MyEvent; + + void Error () { - Func<long> a = new long?().GetValueOrDefault; + int? i = 0; + MyEvent += new Test (i.GetValueOrDefault); } } /usr/lib/monodoc/sources/cs-errors.zip/CS1729 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1729 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1729 2036-01-31 00:46:20.000000000 +0000 @@ -2,56 +2,6 @@ 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 `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 - -class C -{ - static void Main () - { - int i = new int(1); - } -} - - - // CS1729: The type `IgnoreAttribute' does not contain a constructor that takes `0' arguments -// Line: 14 - -using System; - -public class IgnoreAttribute : Attribute { - - public IgnoreAttribute (String name) { } -} - -class C { - - [Ignore] - public void Method () - { - } -} - // CS1729: The type `System.CLSCompliantAttribute' does not contain a constructor that takes `0' arguments // Line: 6 @@ -60,25 +10,6 @@ [assembly:CLSCompliant()] - // CS1729: The type `C.S' does not contain a constructor that takes `3' arguments -// Line: 15 - -class C -{ - struct S - { - public S (int i) - { - } - } - - static void Main () - { - S i = new S (1,1,1); - } -} - - // CS1729: The type `A.Foo' does not contain a constructor that takes `1' arguments // Line: 15 @@ -97,6 +28,20 @@ } } + // 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 `CS0143Test.A' does not contain a constructor that takes `2' arguments // Line: 13 @@ -114,19 +59,25 @@ } } - // CS1729: The type `System.Runtime.CompilerServices.IndexerNameAttribute' does not contain a constructor that takes `4' arguments -// Line: 5 + // CS1729: The type `object' does not contain a constructor that takes `1' arguments +// Line: 8 -class MainClass { - [System.Runtime.CompilerServices.IndexerName("A", "", "", "")] - int this [int index] { - get { - return 0; - } - } - -} +using System; +class C +{ + int a = "a"; + + public C (string s) + : base (1) + { + } + + public C (int i) + : base (i) + { + } +} // CS1729: The type `Base' does not contain a constructor that takes `0' arguments // Line: 12 @@ -144,25 +95,93 @@ } } - // CS1729: The type `object' does not contain a constructor that takes `1' arguments + // CS1729: The type `int' does not contain a constructor that takes `1' arguments // Line: 8 +class C +{ + static void Main () + { + int i = new int(1); + } +} + + + // CS1729: The type `IgnoreAttribute' does not contain a constructor that takes `0' arguments +// Line: 14 + using System; +public class IgnoreAttribute : Attribute { + + public IgnoreAttribute (String name) { } +} + +class C { + + [Ignore] + public void Method () + { + } +} + + // CS1729: The type `C.S' does not contain a constructor that takes `3' arguments +// Line: 15 + class C { - int a = "a"; - - public C (string s) - : base (1) + struct S { + public S (int i) + { + } } + static void Main () + { + S i = new S (1,1,1); + } +} + /usr/lib/monodoc/sources/cs-errors.zip/CS1735 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1735 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1735 2036-01-31 00:46:20.000000000 +0000 @@ -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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1738 2036-01-31 00:46:20.000000000 +0000 @@ -3,6 +3,21 @@ 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; @@ -20,21 +35,6 @@ } // 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: 14 class C /usr/lib/monodoc/sources/cs-errors.zip/CS1739 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1739 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1739 2036-01-31 00:46:20.000000000 +0000 @@ -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); } } @@ -37,39 +43,33 @@ } } - // 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 `C.Foo(int, int)' does not contain a parameter named `b' +// Line: 12 class C { - delegate int IntDelegate (int a); - - static int TestInt (int u) + static void Foo (int x, int y) { - return 29; } public static void Main () { - var del = new IntDelegate (TestInt); - del.DynamicInvoke (b : 7); + Foo (1, b : 2); } } - // CS1739: The best overloaded method match for `C.Foo(int, int)' does not contain a parameter named `b' -// Line: 12 + // 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 { - static void Foo (int x, int y) + public static void Main () { + M (z: 1, whatever: 0); } - - public static void Main () + + void M (int x = 0, int y = 0, int z = 0) { - Foo (1, b : 2); } } /usr/lib/monodoc/sources/cs-errors.zip/CS1741 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1741 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1741 2036-01-31 00:46:20.000000000 +0000 @@ -2,15 +2,6 @@ CS1741 - // CS1741: Cannot specify a default value for the `out' parameter -// Line: 6 - -interface I -{ - void Test (out bool a = true); -} - - // CS1741: Cannot specify a default value for the `ref' parameter // Line: 6 @@ -21,5 +12,14 @@ } } + // CS1741: Cannot specify a default value for the `out' parameter +// Line: 6 + +interface I +{ + void Test (out 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1742 2036-01-31 00:46:20.000000000 +0000 @@ -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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1744 2036-01-31 00:46:20.000000000 +0000 @@ -18,21 +18,6 @@ } } - // CS1744: Named argument `a' cannot be used for a parameter which has positional argument specified -// Line: 12 - -static class C -{ - public static void Test (int a, int b) - { - } - - public static void Main () - { - Test (1, a : 2); - } -} - // CS1744: Named argument `p1' cannot be used for a parameter which has positional argument specified // Line: 8 @@ -52,5 +37,20 @@ } } + // CS1744: Named argument `a' cannot be used for a parameter which has positional argument specified +// Line: 12 + +static class C +{ + public static void Test (int a, int b) + { + } + + public static void Main () + { + Test (1, a : 2); + } +} + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1750 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1750 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1750 2036-01-31 00:46:20.000000000 +0000 @@ -2,30 +2,6 @@ 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 @@ -50,6 +26,30 @@ } } + // 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 `decimal' cannot be converted to parameter type `int?' // Line: 6 /usr/lib/monodoc/sources/cs-errors.zip/CS1763 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1763 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1763 2036-01-31 00:46:20.000000000 +0000 @@ -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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1908 2036-01-31 00:46:20.000000000 +0000 @@ -3,10 +3,10 @@ CS1908 // 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) +class Test<T> where T : class { + internal void f ([System.Runtime.InteropServices.DefaultParameterValue (null)] T x) { } } @@ -14,17 +14,17 @@ // CS1908: The type of the default value should match the type of the parameter // Line: -class Test<T> where T : class { - internal void f ([System.Runtime.InteropServices.DefaultParameterValue (null)] T x) +class Test { + internal void f ([System.Runtime.InteropServices.DefaultParameterValue (null)] short x) { } } // 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) { } } @@ -33,7 +33,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) { } } /usr/lib/monodoc/sources/cs-errors.zip/CS1909 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1909 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1909 2036-01-31 00:46:20.000000000 +0000 @@ -2,24 +2,24 @@ CS1909 - // CS1909: The DefaultParameterValue attribute is not applicable on parameters of type `System.Type' + // CS1909: The DefaultParameterValue attribute is not applicable on parameters of type `int[]' // Line: 7 using System.Runtime.InteropServices; -interface ITest { - void f ([DefaultParameterValue (typeof (ITest))] System.Type x); +class Test { + void f ([DefaultParameterValue (new int[0])] int[] x) + { + } } - // CS1909: The DefaultParameterValue attribute is not applicable on parameters of type `int[]' + // CS1909: The DefaultParameterValue attribute is not applicable on parameters of type `System.Type' // Line: 7 using System.Runtime.InteropServices; -class Test { - void f ([DefaultParameterValue (new int[0])] int[] x) - { - } +interface ITest { + void f ([DefaultParameterValue (typeof (ITest))] System.Type x); } /usr/lib/monodoc/sources/cs-errors.zip/CS1910 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1910 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1910 2036-01-31 00:46:20.000000000 +0000 @@ -2,25 +2,25 @@ CS1910 - // CS1910: Argument of type `int[]' is not applicable for the DefaultParameterValue attribute + // CS1910: Argument of type `System.Type' is not applicable for the DefaultParameterValue attribute // Line: 7 using System.Runtime.InteropServices; -using System; class Test { - void f ([DefaultParameterValue (new int[0])] object x) + void f ([DefaultParameterValue (typeof (object))] object x) { } } - // CS1910: Argument of type `System.Type' is not applicable for the DefaultParameterValue attribute + // CS1910: Argument of type `int[]' is not applicable for the DefaultParameterValue attribute // Line: 7 using System.Runtime.InteropServices; +using System; class Test { - void f ([DefaultParameterValue (typeof (object))] object x) + void f ([DefaultParameterValue (new int[0])] object 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1913 2036-01-31 00:46:20.000000000 +0000 @@ -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/CS1922 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1922 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1922 2036-01-31 00:46:20.000000000 +0000 @@ -2,23 +2,17 @@ CS1922 - // CS1922: A field or property `Data.Value' cannot be initialized with a collection object initializer because type `int' does not implement `System.Collections.IEnumerable' interface -// Line: 16 - + // CS1922: A field or property `GCEventTypeMatcher' cannot be initialized with a collection object initializer because type `GCEventTypeMatcher' does not implement `System.Collections.IEnumerable' interface +// Line: 11 using System; -class Data -{ - public int Value; +public enum GCEventType { + NURSERY_START } -public class Test -{ - static void Main () - { - var c = new Data { Value = { 0, 1, 2 } }; - } +public class GCEventTypeMatcher { + private static GCEventTypeMatcher[] matcher = { new GCEventTypeMatcher () { NURSERY_START, s => TRUE } }; } // CS1922: A field or property `System.Type' cannot be initialized with a collection object initializer because type `System.Type' does not implement `System.Collections.IEnumerable' interface @@ -39,17 +33,23 @@ } - // CS1922: A field or property `GCEventTypeMatcher' cannot be initialized with a collection object initializer because type `GCEventTypeMatcher' does not implement `System.Collections.IEnumerable' interface -// Line: 11 + // CS1922: A field or property `Data.Value' cannot be initialized with a collection object initializer because type `int' does not implement `System.Collections.IEnumerable' interface +// Line: 16 + using System; -public enum GCEventType { - NURSERY_START +class Data +{ + public int Value; } -public class GCEventTypeMatcher { - private static GCEventTypeMatcher[] matcher = { new GCEventTypeMatcher () { NURSERY_START, s => TRUE } }; +public class Test +{ + static void Main () + { + var c = new Data { Value = { 0, 1, 2 } }; + } } /usr/lib/monodoc/sources/cs-errors.zip/CS1929 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1929 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1929 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,29 @@ CS1929 + // CS1929: Type `System.Collections.IList' does not contain a member `Frobnicate' and the best extension method overload `Extensions.Frobnicate<Test>(this Test)' requires an instance of type `Test' +// Line: 20 + +using System; +using System.Collections; + +static class Extensions +{ + public static void Frobnicate<T> (this T foo) where T : IList + { + } +} + +public class Test +{ + IList mFoo; + + void Frobnicate () + { + mFoo.Frobnicate<Test> (); + } +} + // 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 @@ -35,28 +58,5 @@ } } - // CS1929: Type `System.Collections.IList' does not contain a member `Frobnicate' and the best extension method overload `Extensions.Frobnicate<Test>(this Test)' requires an instance of type `Test' -// Line: 20 - -using System; -using System.Collections; - -static class Extensions -{ - public static void Frobnicate<T> (this T foo) where T : IList - { - } -} - -public class Test -{ - IList mFoo; - - void Frobnicate () - { - mFoo.Frobnicate<Test> (); - } -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS1930 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1930 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1930 2036-01-31 00:46:20.000000000 +0000 @@ -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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1931 2036-01-31 00:46:20.000000000 +0000 @@ -38,7 +38,8 @@ } // CS1931: A range variable `i' conflicts with a previous declaration of `i' -// Line: 12 +// Line: 14 + using System; using System.Linq; @@ -48,14 +49,14 @@ public static void Main () { int i = 9; - var e = from i in "a" - select 1; + var e = from v in "a" + let i = 2 + select v; } } // CS1931: A range variable `i' conflicts with a previous declaration of `i' -// Line: 14 - +// Line: 12 using System; using System.Linq; @@ -65,9 +66,8 @@ public static void Main () { int i = 9; - var e = from v in "a" - let i = 2 - select v; + var e = from i in "a" + select 1; } } /usr/lib/monodoc/sources/cs-errors.zip/CS1935 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1935 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1935 2036-01-31 00:46:20.000000000 +0000 @@ -2,31 +2,31 @@ CS1935 - // 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; } } - // 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; } } /usr/lib/monodoc/sources/cs-errors.zip/CS1944 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1944 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1944 2036-01-31 00:46:20.000000000 +0000 @@ -3,7 +3,7 @@ CS1944 // CS1944: An expression tree cannot contain an unsafe pointer operation -// Line: 14 +// Line: 15 // Compiler options: -unsafe using System; @@ -11,17 +11,18 @@ class C { + unsafe delegate int* D (int i); + public static void Main () { unsafe { - int*[] p = null; - Expression<Func<int>> e6 = () => (int)p [10]; + Expression<D> e = (int p) => &p; } } } // CS1944: An expression tree cannot contain an unsafe pointer operation -// Line: 15 +// Line: 14 // Compiler options: -unsafe using System; @@ -29,18 +30,17 @@ class C { - unsafe delegate int* D (int* i); - public static void Main () { unsafe { - Expression<D> e = p => p + 1; + int*[] p = null; + Expression<Func<int>> e6 = () => (int)p [10]; } } } // CS1944: An expression tree cannot contain an unsafe pointer operation -// Line: 13 +// Line: 15 // Compiler options: -unsafe using System; @@ -48,10 +48,12 @@ class C { + unsafe delegate int D (int* i); + public static void Main () { unsafe { - Expression<Func<int>> e = () => sizeof (long*); + Expression<D> e = p => *p; } } } @@ -76,7 +78,7 @@ } // CS1944: An expression tree cannot contain an unsafe pointer operation -// Line: 15 +// Line: 13 // Compiler options: -unsafe using System; @@ -84,12 +86,10 @@ class C { - unsafe delegate int* D (int i); - public static void Main () { unsafe { - Expression<D> e = (int p) => &p; + Expression<Func<int>> e = () => sizeof (long*); } } } @@ -121,12 +121,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; } } } /usr/lib/monodoc/sources/cs-errors.zip/CS1951 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1951 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1951 2036-01-31 00:46:20.000000000 +0000 @@ -10,11 +10,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; } } @@ -26,11 +26,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; } } /usr/lib/monodoc/sources/cs-errors.zip/CS1959 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1959 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1959 2036-01-31 00:46:20.000000000 +0000 @@ -3,6 +3,17 @@ 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 @@ -14,16 +25,5 @@ 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/CS1960 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1960 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1960 2036-01-31 00:46:20.000000000 +0000 @@ -5,14 +5,14 @@ // CS1960: Variant type parameters can only be used with interfaces and delegates // Line: 4 -class A<out T> +class A<in T> { } // CS1960: Variant type parameters can only be used with interfaces and delegates // Line: 4 -class A<in T> +class A<out T> { } /usr/lib/monodoc/sources/cs-errors.zip/CS1961 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1961 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1961 2036-01-31 00:46:20.000000000 +0000 @@ -2,43 +2,65 @@ CS1961 - // CS1961: The covariant type parameter `T' must be contravariantly valid on `A<T>.B(T)' + // CS1961: The contravariant type parameter `T' must be invariantly valid on `A<T>.B(ref T)' +// Line: 4 + +interface A<in T> +{ + void B(ref T t); +} + + // CS1961: The covariant type parameter `V' must be contravariantly valid on `I<V>.Foo<T>(T)' // Line: 6 -interface A<out T> +interface I<out V> { - void B(T t); + void Foo<T> (T t) where T : V; } - // CS1961: The contravariant type parameter `T' must be invariantly valid on `A<T>.B(out T)' -// Line: 5 + // CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>()' +// Line: 8 -interface A<in T> +interface A<T> { - void B(out T t); } + +delegate A<A<T>> B<out T> (); - // CS1961: The covariant type parameter `T' must be contravariantly valid on `B<T>.A' + // CS1923: The covariant type parameter `T' must be invariantly valid on `B<T>.C(A<A<T>>)' // Line: 8 -interface A<in T> +interface A<T> { } interface B<out T> { - A<T> A { get; } + void C(A<A<T>> a); } - // CS1961: The covariant type parameter `T' must be invariantly valid on `A<T>.B(out T)' -// Line: 6 + // 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> { - void B(out T t); +} + +interface B<in T> +{ + void C(A<T> a); } - // CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>.C(A<A<T>>)' + // CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>()' +// Line: 8 + +interface A<T> +{ +} + +delegate A<T> B<out T> (); + + // CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>.A' // Line: 8 interface A<T> @@ -47,7 +69,7 @@ interface B<in T> { - void C(A<A<T>> a); + A<A<T>> A { get; } } // CS1961: The covariant type parameter `U' must be contravariantly valid on `D<U>()' @@ -59,59 +81,50 @@ delegate I<U[]> D<out U> (); - // CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>.A' + // CS1961: The covariant type parameter `T' must be contravariantly valid on `B<T>.A' // Line: 8 -interface A<T> +interface A<in T> { } interface B<out T> { - A<A<T>> A { get; } + A<T> A { get; } } - // CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>.C(A<T>)' + // CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>.C()' // Line: 8 interface A<T> { } -interface B<in T> +interface B<out T> { - void C(A<T> a); + A<T> C(); } - // CS1961: The covariant type parameter `T' must be invariantly valid on `A<T>.B(ref T)' -// Line: 4 + // CS1961: The contravariant type parameter `T' must be covariantly valid on `A<T>.B()' +// Line: 6 -interface A<out T> +interface A<in T> { - void B(ref T t); + T B(); } - // CS1923: The covariant 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(A<A<T>>)' // Line: 8 interface A<T> { } -interface B<out T> +interface B<in T> { void C(A<A<T>> a); } - // CS1961: The covariant type parameter `V' must be invariantly valid on `Both<U,V>(Covariant<None<Contra<V>>>)' -// Line: 8 - -delegate T Covariant<out T> (); -delegate void Contra<in T> (T t); -delegate void None<T> (T t); - -delegate void Both<in U, out V> (Covariant<None<Contra<V>>> b); - // CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>.A' // Line: 8 @@ -124,18 +137,26 @@ A<T> A { get; } } - // CS1961: The contravariant type parameter `T' must be covariantly valid on `B<T>' + // CS1961: The covariant 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> +interface B<out T> { + void C(A<T> a); } - // CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>.C()' + // 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>.C(A<T>)' // Line: 8 interface A<T> @@ -144,7 +165,7 @@ interface B<out T> { - A<T> C(); /usr/lib/monodoc/sources/cs-errors.zip/CS1966 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1966 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1966 2036-01-31 00:46:20.000000000 +0000 @@ -2,14 +2,14 @@ CS1966 - // 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>> { } @@ -24,14 +24,14 @@ { } - // 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> { } /usr/lib/monodoc/sources/cs-errors.zip/CS1982 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1982 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1982 2036-01-31 00:46:20.000000000 +0000 @@ -3,19 +3,6 @@ CS1982 // CS1982: An attribute argument cannot be dynamic expression -// Line: 6 - -using System; - -[A(typeof (dynamic[]))] -public class A : Attribute -{ - public A (object arg) - { - } -} - - // CS1982: An attribute argument cannot be dynamic expression // Line: 13 using System; @@ -42,10 +29,10 @@ using System; -[A((dynamic) null)] +[A(typeof (dynamic[]))] public class A : Attribute { - public A (Type arg) + public A (object arg) { } } @@ -72,6 +59,19 @@ public class A : Attribute { public A (Type arg) + { + } +} + + // CS1982: An attribute argument cannot be dynamic expression +// Line: 6 + +using System; + +[A((dynamic) null)] +public class A : Attribute +{ + public A (Type arg) { } } /usr/lib/monodoc/sources/cs-errors.zip/CS1986 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1986 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1986 2036-01-31 00:46:20.000000000 +0000 @@ -3,13 +3,12 @@ CS1986 // CS1986: The `await' operand type `int' must have suitable GetAwaiter method -// Line: 16 +// Line: 15 static class S { - public static int GetAwaiter<T> (this int i) + public static void GetAwaiter (this int i) { - return 1; } } @@ -17,16 +16,17 @@ { static async void Test () { - await 9; + await 1; } } // CS1986: The `await' operand type `int' must have suitable GetAwaiter method -// Line: 15 +// Line: 16 static class S { - public static void GetAwaiter (this int i) + public static int GetAwaiter<T> (this int i) { + return 1; } } @@ -34,7 +34,7 @@ { static async void Test () { - await 1; + await 9; } } // CS1986: The `await' operand type `A' must have suitable GetAwaiter method /usr/lib/monodoc/sources/cs-errors.zip/CS1989 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS1989 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS1989 2036-01-31 00:46:20.000000000 +0000 @@ -18,7 +18,7 @@ public static void Main () { - Expression<Action<int>> a = async l => Method (); + Expression<Action<int>> a = async l => await Method (); } } @@ -38,7 +38,7 @@ public static void Main () { - Expression<Action<int>> a = async l => await Method (); + Expression<Action<int>> a = async l => Method (); } } /usr/lib/monodoc/sources/cs-errors.zip/CS2006 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS2006 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS2006 2036-01-31 00:46:20.000000000 +0000 @@ -2,13 +2,13 @@ CS2006 - // CS2006: Missing argument for `/d:' option -// Line: 0 -// Compiler options: -d: - // CS2006: Missing argument for `/debug:' option // Line: 0 // Compiler options: -debug: + // CS2006: Missing argument for `/d:' option +// Line: 0 +// Compiler options: -d: + \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS2021 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS2021 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS2021 2036-01-31 00:46:20.000000000 +0000 @@ -4,11 +4,11 @@ // CS2021: Output file name is not valid // Line: 0 -// Compiler options: -out:/ +// Compiler options: -out:.dll // CS2021: Output file name is not valid // Line: 0 -// Compiler options: -out:.dll +// Compiler options: -out:/ \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS3001 2036-01-31 00:46:20.000000000 +0000 @@ -13,31 +13,16 @@ protected internal void Foo (string text, sbyte value) { } } - // 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)] +[assembly:CLSCompliant (true)] -public class A +public static class CLSClass { - public const bool f = true; -} - -public interface I { - void Test (ulong arg); -} - - // CS3001: Argument type `int*' is not CLS-compliant -// Line: 9 -// Compiler options: -unsafe -warnaserror -warn:1 - -using System; -[assembly:CLSCompliant(true)] - -unsafe public abstract class CLSClass { - public void Method (int* param) {} + public static void Foo (this sbyte value) { } } // CS3001: Argument type `ulong' is not CLS-compliant @@ -55,60 +40,72 @@ } } - // CS3001: Argument type `sbyte' is not CLS-compliant -// Line: 9 + // CS3001: Argument type `ulong' is not CLS-compliant +// Line: 8 // Compiler options: -warnaserror -warn:1 using System; [assembly:CLSCompliant (true)] -public static class CLSClass -{ - public static void Foo (this sbyte value) { } -} +public delegate long MyDelegate (ulong arg); // CS3001: Argument type `ulong' is not CLS-compliant -// Line: 10 +// Line: 14 // Compiler options: -warnaserror -warn:1 using System; -[assembly:CLSCompliant (true)] +[assembly:CLSCompliant (A.f)] -public class CLSClass { - public CLSClass (long a) {} - public CLSClass (ref ulong a) {} +public class A +{ + public const bool f = true; +} + +public interface I { + void Test (ulong arg); } - // CS3001: Argument type `ulong' 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)] +[CLSCompliant(false)] +public interface IError{ +} + public interface I { - long this[ulong indexA] { set; } + void Error(out IError arg); +} + +public class c { + public void Error (out IError arg) { arg = null; } } - // CS3001: Argument type `sbyte' is not CLS-compliant + // CS3001: Argument type `ulong' is not CLS-compliant // Line: 9 // Compiler options: -warnaserror -warn:1 using System; [assembly:CLSCompliant(true)] -public class CLSClass { - public delegate int MyDelegate(sbyte i); +public interface I { + long this[ulong indexA] { set; } } // CS3001: Argument type `ulong' is not CLS-compliant -// Line: 8 +// Line: 10 // Compiler options: -warnaserror -warn:1 using System; [assembly:CLSCompliant (true)] -public delegate long MyDelegate (ulong arg); +public class CLSClass { + public CLSClass (long a) {} + public CLSClass (ref ulong a) {} +} // CS3001: Argument type `sbyte' is not CLS-compliant // Line: 9 @@ -127,23 +124,26 @@ } } - // CS3001: Argument type `IError' is not CLS-compliant -// Line: 13 + // CS3001: Argument type `sbyte' is not CLS-compliant +// Line: 9 // Compiler options: -warnaserror -warn:1 using System; [assembly:CLSCompliant(true)] -[CLSCompliant(false)] -public interface IError{ +public class CLSClass { + public delegate int MyDelegate(sbyte i); } + + // CS3001: Argument type `int*' is not CLS-compliant +// Line: 9 +// Compiler options: -unsafe -warnaserror -warn:1 -public interface I { - void Error(out IError arg); -} +using System; +[assembly:CLSCompliant(true)] -public class c { - public void Error (out IError arg) { arg = null; } +unsafe public abstract class CLSClass { + public void Method (int* param) {} } /usr/lib/monodoc/sources/cs-errors.zip/CS3002 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS3002 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS3002 2036-01-31 00:46:20.000000000 +0000 @@ -2,6 +2,32 @@ CS3002 + // CS3002: Return type of `CLSClass.Foo()' is not CLS-compliant +// Line: 10 +// Compiler options: -warnaserror -warn:1 + +using System; +[assembly:CLSCompliant(true)] + +public class CLSClass +{ + protected ulong? Foo() + { + return 5; + } +} + + // 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 `Delegate' is not CLS-compliant // Line: 8 // Compiler options: -warnaserror -warn:1 @@ -16,6 +42,17 @@ public class CLSDelegate { } + // 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: 14 // Compiler options: -warnaserror -warn:1 @@ -36,23 +73,6 @@ static void Main() {} } - // CS3002: Return type of `CLSClass.Test1()' is not CLS-compliant -// Line: 14 -// Compiler options: -warnaserror -warn:1 - -using System; -[assembly:CLSCompliant(true)] - -[CLSCompliant(false)] -public interface I {} - -public class C {} - -public class CLSClass { - public I Test1() { return null; } - public C Test2() { return null; } -} - // CS3002: Return type of `CLSClass.Foo()' is not CLS-compliant // Line: 13 // Compiler options: -warnaserror -warn:1 @@ -72,19 +92,21 @@ static void Main() {} } - // CS3002: Return type of `CLSClass.Foo()' is not CLS-compliant -// Line: 10 + // CS3002: Return type of `CLSClass.Test1()' is not CLS-compliant +// Line: 14 // Compiler options: -warnaserror -warn:1 using System; [assembly:CLSCompliant(true)] -public class CLSClass -{ - protected ulong[] Foo() - { - return null; - } +[CLSCompliant(false)] +public interface I {} + +public class C {} + +public class CLSClass { + public I Test1() { return null; } + public C Test2() { return null; } } // CS3002: Return type of `CLSClass.Foo()' is not CLS-compliant @@ -96,23 +118,12 @@ public class CLSClass { - protected ulong? Foo() + protected ulong[] Foo() { - return 5; + return null; } } - // 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 // Compiler options: -warnaserror -warn:1 @@ -130,16 +141,5 @@ } } - // 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(); -} - \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS3003 2036-01-31 00:46:20.000000000 +0000 @@ -2,42 +2,15 @@ CS3003 - // CS3003: Type of `I.Foo' is not CLS-compliant -// Line: 10 -// Compiler options: -warnaserror -warn:1 - -using System; -[assembly:CLSCompliant (true)] - -[CLSCompliant (true)] -public interface I { - uint Foo { set; } -} - - - // 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 + // CS3003: Type of `CLSClass.value' is not CLS-compliant // Line: 9 // Compiler options: -warnaserror -warn:1 using System; [assembly:CLSCompliant(true)] -public interface I { - UIntPtr Error { get; } +public class CLSClass { + protected uint value; } // CS3003: Type of `CLSClass.Index' is not CLS-compliant @@ -55,15 +28,28 @@ } } - // CS3003: Type of `CLSClass.value' is not CLS-compliant + // CS3003: Type of `I.this[bool]' is not CLS-compliant // Line: 9 // Compiler options: -warnaserror -warn:1 using System; [assembly:CLSCompliant(true)] +public interface I { + ulong this[bool index] { get; } +} + + // CS3003: Type of `CLSClass.MyEvent' is not CLS-compliant +// Line: 8 +// Compiler options: -warnaserror -warn:1 + +[assembly:System.CLSCompliant (true)] + +[System.CLSCompliant (false)] +public delegate void MyDelegate (); + public class CLSClass { - protected uint value; + public event MyDelegate MyEvent; } // CS3003: Type of `S.test2' is not CLS-compliant @@ -79,28 +65,42 @@ public fixed bool test2 [4]; } - // CS3003: Type of `I.this[bool]' is not CLS-compliant -// Line: 9 + // 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.Foo' is not CLS-compliant +// Line: 10 // Compiler options: -warnaserror -warn:1 using System; -[assembly:CLSCompliant(true)] +[assembly:CLSCompliant (true)] +[CLSCompliant (true)] public interface I { - ulong this[bool index] { get; } + uint Foo { set; } } + - // CS3003: Type of `CLSClass.MyEvent' is not CLS-compliant -// Line: 8 + // CS3003: Type of `I.Error' is not CLS-compliant +// Line: 9 // Compiler options: -warnaserror -warn:1 -[assembly:System.CLSCompliant (true)] - -[System.CLSCompliant (false)] -public delegate void MyDelegate (); +using System; +[assembly:CLSCompliant(true)] -public class CLSClass { - public event MyDelegate MyEvent; +public interface I { + UIntPtr Error { 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS3005 2036-01-31 00:46:20.000000000 +0000 @@ -2,77 +2,59 @@ CS3005 - // CS3005: Identifier `CLSClass.a.get' differing only in case is not CLS-compliant -// Line: 8 -// Compiler options: -warnaserror - -[assembly:System.CLSCompliant(true)] - -public class CLSClass { - public int get_A () { return 3; } - public int a { get { return 2; } } -} - - // CS3005: Identifier `I.BLAH.get' differing only in case is not CLS-compliant -// Line: 16 -// Compiler options: -warnaserror + // CS3005: Identifier `II.compareto()' differing only in case is not CLS-compliant +// Line: 11 +// Compiler options: -t:library -warnaserror -using System.Runtime.CompilerServices; -using System; -[assembly: CLSCompliant (true)] +[assembly:System.CLSCompliant(true)] public interface I { - [IndexerName ("blah")] - int this [int a] { - get; - } +} - int BLAH { get; } +public interface II: I, System.IComparable { + bool compareto(); } - // CS3005: Identifier `CLSClass.value' differing only in case is not CLS-compliant -// Line: 15 + // CS3005: Identifier `CLSClass.NameAbC' differing only in case is not CLS-compliant +// Line: 12 // 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 class CLSClass { + [CLSCompliant (false)] + public int NameABC; + + public int NameAbc; + public int NameAbC; } - // CS3005: Identifier `c1' differing only in case is not CLS-compliant -// Line: 9 + // CS3005: Identifier `a' differing only in case is not CLS-compliant +// Line: 10 // Compiler options: -warnaserror -[assembly:System.CLSCompliant(true)] +using System; +[assembly:CLSCompliant (true)] -public class C1 { +public enum A { } -public class c1 { +public interface a { } - // CS3005: Identifier `CLSClass.Method(int)' differing only in case is not CLS-compliant -// Line: 8 + // CS3005: Identifier `clsInterface' differing only in case is not CLS-compliant +// Line: 10 // Compiler options: -warnaserror -[assembly:System.CLSCompliant (true)] +using System; +[assembly:CLSCompliant (true)] -public class BaseClass { - public int method; +public interface CLSInterface { } -public class CLSClass : BaseClass { - public static void Method(int arg) {} +public class clsInterface: CLSInterface { } // CS3005: Identifier `i1' differing only in case is not CLS-compliant @@ -87,79 +69,77 @@ public interface i1 { } - // CS3005: Identifier `II.compareto()' differing only in case is not CLS-compliant -// Line: 11 -// Compiler options: -t:library -warnaserror - - -[assembly:System.CLSCompliant(true)] - -public interface I { -} - -public interface II: I, System.IComparable { - bool compareto(); -} - - // CS3005: Identifier `B.TEST()' differing only in case is not CLS-compliant -// Line: 15 + // CS3005: Identifier `Foo.main()' differing only in case is not CLS-compliant +// Line: 9 // Compiler options: -warnaserror using System; +[assembly: CLSCompliant(false)] -[assembly: CLSCompliantAttribute (true)] +[CLSCompliant(true)] +public class Foo { + public static void Main () {} + public static void main () {} +} + // CS3005: Identifier `CLSClass.Index.get' differing only in case is not CLS-compliant +// Line: 14 +// Compiler options: -warnaserror -public class A -{ - [CLSCompliant (false)] - public void Test () {} - - public void test () {} +[assembly:System.CLSCompliant(true)] + +public class X { + public int index { get { return 0; } } } -public class B: A -{ - public void TEST () {} +public class Y: X { +} + +public class CLSClass: Y { + public long Index { get { return 3; } } } - // CS3005: Identifier `CLSClass.this[int].set' differing only in case is not CLS-compliant -// Line: 8 + // CS3005: Identifier `CLSClass.op_implicit()' differing only in case is not CLS-compliant +// Line: 12 // Compiler options: -warnaserror -[assembly:System.CLSCompliant(true)] +using System; +[assembly:CLSCompliant(true)] public class CLSClass { - protected int SET_item; - public int this[int index] { set {} } + static public implicit operator CLSClass(byte value) { + return new CLSClass(); + } + + public void op_implicit () {} } - // CS3005: Identifier `X.Index' differing only in case is not CLS-compliant + // CS3005: Identifier `CLSClass.constant' differing only in case is not CLS-compliant // Line: 8 // Compiler options: -warnaserror [assembly:System.CLSCompliant(true)] -public class X { - public int index { get { return 0; } } - public int Index { set {} } - +public class CLSClass { /usr/lib/monodoc/sources/cs-errors.zip/CS3006 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS3006 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS3006 2036-01-31 00:46:20.000000000 +0000 @@ -2,48 +2,42 @@ 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(out bool)' 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 a); - void Test(ref int b); +public abstract class CLSClass { + public void Test(bool a) { + } + + public abstract void Test(out bool b); } - // CS3006: Overloaded method `CLSClass.Test(ref int)' differing only in ref or out, or in array rank, is not CLS-compliant -// Line: 15 + // 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 Base -{ - public void Test(int a) { - } -} - -public class CLSClass: Base { - public void Test(ref int b) { - } +public interface CLSInterface { + void Test(bool a); + void Test(out bool b); } - // CS3006: Overloaded method `CLSClass.Test(out bool)' 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 abstract class CLSClass { - public void Test(bool a) { - } - - public abstract void Test(out bool b); +public interface CLSInterface { + void Test(int[,,] b); + void Test(int[,] b); } // CS3006: Overloaded method `Base<T>.Test(ref int)' differing only in ref or out, or in array rank, is not CLS-compliant @@ -70,6 +64,18 @@ } } + // 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 + +using System; +[assembly: CLSCompliant(true)] + +public interface CLSInterface { + void Test(int a); + 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 // Line: 12 // Compiler options: -warnaserror -warn:1 @@ -85,6 +91,24 @@ } } + // 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 class Base +{ + public void Test(int a) { + } +} + +public class CLSClass: Base { + public void Test(ref int b) { + } +} + // 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 @@ -101,18 +125,6 @@ } - // 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 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: 12 // Compiler options: -warnaserror -warn:1 @@ -128,17 +140,5 @@ } } - // 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 interface CLSInterface { - void Test(bool a); - void Test(out bool b); -} - \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS3008 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS3008 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS3008 2036-01-31 00:46:20.000000000 +0000 @@ -2,54 +2,26 @@ CS3008 - // CS3008: Identifier `CLSClass._value' is not CLS-compliant + // CS3008: Identifier `E2.__VALUE' is not CLS-compliant // Line: 9 // Compiler options: -warnaserror -warn:1 using System; -[assembly: CLSCompliant(true)] +[assembly:CLSCompliant (true)] -public class CLSClass { - public static int _value = 3; +public enum E2 { + __VALUE } - // 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; -} - - // CS3008: Identifier `System.Error.__ComObject' 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 `I._()' is not CLS-compliant -// Line: 9 -// Compiler options: -warnaserror -warn:1 - -using System; -[assembly:CLSCompliant(true)] - -public interface I { - void _(); + public const string _value = ""; } // CS3008: Identifier `__N' is not CLS-compliant @@ -73,15 +45,32 @@ public void _() {} } - // CS3008: Identifier `CLSClass._value' 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)] + +namespace System.Error { + public class __ComObject : MarshalByRefObject { + private __ComObject () + { + } + } +} + + // 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 const string _value = ""; + public event MyDelegate _myEvent; } // CS3008: Identifier `_A' is not CLS-compliant @@ -104,15 +93,26 @@ public interface _I { } - // CS3008: Identifier `E2.__VALUE' is not CLS-compliant + // CS3008: Identifier `CLSClass._value' is not CLS-compliant // Line: 9 // Compiler options: -warnaserror -warn:1 using System; -[assembly:CLSCompliant (true)] +[assembly: CLSCompliant(true)] -public enum E2 { - __VALUE +public class CLSClass { + public static int _value = 3; +} + + // CS3008: Identifier `I._()' is not CLS-compliant +// Line: 9 +// Compiler options: -warnaserror -warn:1 + +using System; +[assembly:CLSCompliant(true)] + +public interface I { + void _(); } /usr/lib/monodoc/sources/cs-errors.zip/CS3009 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS3009 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS3009 2036-01-31 00:46:20.000000000 +0000 @@ -2,18 +2,16 @@ CS3009 - // CS3009: `CLSClass': base type `BaseClass' is not CLS-compliant -// Line: 12 + // CS3009: `CLSClass': base type `System.Runtime.Serialization.Formatter' is not CLS-compliant +// Line: 10 // Compiler options: -warnaserror -warn:1 using System; -[assembly:CLSCompliant (true)] +using System.Runtime.Serialization; -[CLSCompliant (false)] -public class BaseClass { -} +[assembly:CLSCompliant (true)] -public class CLSClass: BaseClass { +public abstract class CLSClass: Formatter { } // CS3009: `C': base type `C<ulong>' is not CLS-compliant @@ -31,28 +29,18 @@ { } - // CS3009: `AttributesForm': base type `BaseClass' is not CLS-compliant -// Line: 17 + // CS3009: `CLSClass': base type `BaseClass' is not CLS-compliant +// Line: 12 // Compiler options: -warnaserror -warn:1 - -// The error is reported intentionally twice. - using System; +[assembly:CLSCompliant (true)] -[assembly:CLSCompliant(true)] - -[CLSCompliant(false)] -public class BaseClass -{ -} - -public class AttributesForm : BaseClass -{ +[CLSCompliant (false)] +public class BaseClass { } -public class AttributesForm_2 : BaseClass -{ +public class CLSClass: BaseClass { } // CS3009: `Days': base type `uint' is not CLS-compliant @@ -64,16 +52,28 @@ public enum Days: uint {Sat=1, Sun, Mon, Tue, Wed, Thu, Fri}; - // CS3009: `CLSClass': base type `System.Runtime.Serialization.Formatter' is not CLS-compliant -// Line: 10 + // CS3009: `AttributesForm': base type `BaseClass' is not CLS-compliant +// Line: 17 // Compiler options: -warnaserror -warn:1 + +// The error is reported intentionally twice. + using System; -using System.Runtime.Serialization; -[assembly:CLSCompliant (true)] +[assembly:CLSCompliant(true)] -public abstract class CLSClass: Formatter { +[CLSCompliant(false)] +public class BaseClass +{ +} + +public class AttributesForm : BaseClass +{ +} + +public class AttributesForm_2 : BaseClass +{ } /usr/lib/monodoc/sources/cs-errors.zip/CS3011 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS3011 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS3011 2036-01-31 00:46:20.000000000 +0000 @@ -2,7 +2,7 @@ CS3011 - // 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 @@ -11,11 +11,11 @@ public abstract class CLSClass { [CLSCompliant (false)] - public abstract int this[long index] { set; } + protected abstract void Error (IComparable arg); } - // 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 @@ -24,7 +24,7 @@ public abstract class CLSClass { [CLSCompliant (false)] - protected abstract void Error (IComparable arg); + public abstract int this[long index] { set; } } /usr/lib/monodoc/sources/cs-errors.zip/CS3014 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS3014 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS3014 2036-01-31 00:46:20.000000000 +0000 @@ -2,25 +2,37 @@ CS3014 - // CS3014: `I' cannot be marked as CLS-compliant because the assembly is not marked as CLS-compliant + // CS3014: `CLSClass.implicit operator CLSClass(byte)' 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 abstract class CLSClass { + [CLSCompliant (true)] + public static implicit operator CLSClass(byte value) { + return null; + } +} + + // 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; [CLSCompliant (true)] -public interface I { +public class C { } - // CS3014: `I.Valid(bool)' cannot be marked as CLS-compliant because the assembly is not marked as CLS-compliant -// Line: 9 + // 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 interface I { - [CLSCompliant (true)] - void Valid (bool arg); } // CS3014: `E2.Foo' cannot be marked as CLS-compliant because the assembly is not marked as CLS-compliant @@ -34,46 +46,34 @@ Foo } - // CS3014: `D' 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; -[CLSCompliant (true)] -public delegate void D (); +public interface I { + [CLSCompliant (true)] + void Valid (bool arg); +} - // CS3014: `E' cannot be marked as CLS-compliant because the assembly is not marked as CLS-compliant + // CS3014: `D' 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 delegate void D (); - // CS3014: `C' 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 class C { -} - - // CS3014: `CLSClass.implicit operator CLSClass(byte)' 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 abstract class CLSClass { - [CLSCompliant (true)] - public static implicit operator CLSClass(byte value) { - return null; - } +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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS3015 2036-01-31 00:46:20.000000000 +0000 @@ -23,8 +23,8 @@ [assembly:CLSCompliant (true)] public class CLSAttribute: Attribute { - public CLSAttribute(string[] array) { - } + private CLSAttribute(int arg) { + } } // CS3015: `CLSAttribute' has no accessible constructors which use only CLS-compliant types @@ -35,8 +35,8 @@ [assembly:CLSCompliant (true)] public class CLSAttribute: Attribute { - private CLSAttribute(int arg) { - } + 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS3016 2036-01-31 00:46:20.000000000 +0000 @@ -3,19 +3,22 @@ CS3016 // CS3016: Arrays as attribute arguments are not CLS-compliant -// Line: 13 +// Line: 8 // Compiler options: -warnaserror -warn:1 using System; -[assembly:CLSCompliant(true)] +[assembly: System.CLSCompliant (true)] -public class CLSAttribute: Attribute { - public CLSAttribute() {} - public CLSAttribute(string[] array) {} +[CLSAttribute (new bool [] {true, false})] +public enum E { } -[CLSAttribute(new string[] { "", "" })] -public interface ITest { +public class CLSAttribute: System.Attribute { + public CLSAttribute () { + } + + public CLSAttribute(bool[] array) { + } } // CS3016: Arrays as attribute arguments are not CLS-compliant @@ -23,10 +26,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 () { } @@ -35,13 +41,13 @@ } // CS3016: Arrays as attribute arguments are not CLS-compliant -// Line: 6 +// Line: 8 // Compiler options: -warnaserror -warn:1 using System; -[assembly:CLSAttribute (new bool [] {true, false})] [assembly:CLSCompliant (true)] +[CLSAttribute (new bool [] {true, false})] public class CLSAttribute: Attribute { public CLSAttribute () { } @@ -51,17 +57,14 @@ } // CS3016: Arrays as attribute arguments are not CLS-compliant -// Line: 8 +// Line: 6 // Compiler options: -warnaserror -warn:1 using System; -[assembly: System.CLSCompliant (true)] - -[CLSAttribute (new bool [] {true, false})] -public enum E { -} +[assembly:CLSAttribute (new bool [] {true, false})] +[assembly:CLSCompliant (true)] -public class CLSAttribute: System.Attribute { +public class CLSAttribute: Attribute { public CLSAttribute () { } @@ -70,22 +73,19 @@ } // CS3016: Arrays as attribute arguments are not CLS-compliant -// Line: 8 +// Line: 13 // Compiler options: -warnaserror -warn:1 using System; -[assembly: System.CLSCompliant (true)] +[assembly:CLSCompliant(true)] -[CLSAttribute (new bool [] {true, false})] -public enum E { +public class CLSAttribute: Attribute { + public CLSAttribute() {} + public CLSAttribute(string[] array) {} } -public partial class CLSAttribute: System.Attribute { - public CLSAttribute () { - } - - public CLSAttribute(bool[] 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS3018 2036-01-31 00:46:20.000000000 +0000 @@ -2,30 +2,7 @@ CS3018 - // 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 - -using System; -[assembly:CLSCompliant (false)] - -public class C { - [CLSCompliant (true)] - protected void Error (bool arg) {} -} - // CS3018: `I.Error()' cannot be marked as CLS-compliant because it is a member of non CLS-compliant type `I' -// Line: 11 -// Compiler options: -warnaserror -warn:1 - -using System; -[assembly:CLSCompliant(true)] - -[CLSCompliant(false)] -public interface I { - [CLSCompliant(true)] - ulong[] Error(); -} - // CS3018: `C1.I2' cannot be marked as CLS-compliant because it is a member of non CLS-compliant type `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 @@ -33,10 +10,12 @@ [assembly: CLSCompliant (true)] [CLSCompliant (false)] -public class C1 +public class NotCompliant { - [CLSCompliant (true)] - public interface I2 {} + [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' @@ -50,7 +29,7 @@ [CLSCompliant (true)] public long field; } - // 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 @@ -58,14 +37,24 @@ [assembly: CLSCompliant (true)] [CLSCompliant (false)] -public class NotCompliant +public class C1 { - [CLSCompliant (true)] - public class Compliant - { - } + [CLSCompliant (true)] + public interface I2 {} } + // CS3018: `I.Error()' cannot be marked as CLS-compliant because it is a member of non CLS-compliant type `I' +// Line: 11 +// Compiler options: -warnaserror -warn:1 + +using System; +[assembly:CLSCompliant(true)] + +[CLSCompliant(false)] +public interface I { + [CLSCompliant(true)] + ulong[] Error(); +} // CS3018: `C1.I2' cannot be marked as CLS-compliant because it is a member of non CLS-compliant type `C1' // Line: 10 // Compiler options: -warnaserror -warn:1 @@ -83,5 +72,16 @@ public partial class C1 { } + // 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 + +using System; +[assembly:CLSCompliant (false)] + +public class C { + [CLSCompliant (true)] + protected void Error (bool arg) {} +} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS3019 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS3019 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS3019 2036-01-31 00:46:20.000000000 +0000 @@ -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 (true)] +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 @@ -29,16 +39,6 @@ [CLSCompliant (false)] class CLSClass { } - // 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 (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 /usr/lib/monodoc/sources/cs-errors.zip/CS4001 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS4001 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS4001 2036-01-31 00:46:20.000000000 +0000 @@ -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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS4003 2036-01-31 00:46:20.000000000 +0000 @@ -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/CS4004 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS4004 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS4004 2036-01-31 00:46:20.000000000 +0000 @@ -9,13 +9,11 @@ using System; using System.Threading.Tasks; -class C +unsafe class C { public async Task Test () { - unsafe { - await Call (); - } + await Call (); } static Task Call () @@ -31,11 +29,13 @@ using System; using System.Threading.Tasks; -unsafe class C +class C { public async Task Test () { - await Call (); + unsafe { + await Call (); + } } static Task Call () /usr/lib/monodoc/sources/cs-errors.zip/CS4011 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS4011 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS4011 2036-01-31 00:46:20.000000000 +0000 @@ -2,48 +2,48 @@ CS4011 - // 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS4012 2036-01-31 00:46:20.000000000 +0000 @@ -2,23 +2,25 @@ CS4012 - // CS4012: Parameters or local variables of type `System.TypedReference' cannot be declared in async methods or iterators -// Line: 13 + // CS4012: Parameters or local variables of type `S' cannot be declared in async methods or iterators +// Line: 16 +// Compiler options: -langversion:latest using System; -using System.Collections; using System.Threading.Tasks; +public ref struct S +{ +} + class C { public async void Test () { - int i = 2; - TypedReference tr = __makeref (i); + var tr = new S (); await Task.Factory.StartNew (() => 6); } -} - +} // CS4012: Parameters or local variables of type `System.TypedReference' cannot be declared in async methods or iterators // Line: 9 @@ -35,24 +37,22 @@ } } - // CS4012: Parameters or local variables of type `S' cannot be declared in async methods or iterators -// Line: 16 -// Compiler options: -langversion:latest + // CS4012: Parameters or local variables of type `System.TypedReference' cannot be declared in async methods or iterators +// Line: 13 using System; +using System.Collections; using System.Threading.Tasks; -public ref struct S -{ -} - class C { public async void Test () { - var tr = new S (); + int i = 2; + TypedReference tr = __makeref (i); await Task.Factory.StartNew (() => 6); } -} +} + \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS4014 2036-01-31 00:46:20.000000000 +0000 @@ -23,28 +23,8 @@ } } - // 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 - -using System; -using System.Threading.Tasks; - -class C -{ - public static async Task<T> Test<T> () - { - return await Task.FromResult (default (T)); - } - - static void Main () - { - Test<object> (); - } -} - // CS4014: The statement is not awaited and execution of current method continues before the call is completed. Consider using `await' operator -// Line: 12 +// Line: 17 // Compiler options: -warnaserror using System; @@ -52,10 +32,17 @@ class C { - static async Task<int> TestAsync () + static Task Method () { - new Task (() => {}); - return await Task.FromResult (2); + return Task.FromResult (1); + } + + static void TestAsync () + { + Func<Task> a = async () => { + await Method (); + Method (); + }; } } @@ -110,7 +97,7 @@ } } // CS4014: The statement is not awaited and execution of current method continues before the call is completed. Consider using `await' operator -// Line: 17 +// Line: 18 // Compiler options: -warnaserror using System; @@ -118,22 +105,36 @@ class C { - static Task Method () - { - return Task.FromResult (1); - } - - static void TestAsync () + static async Task<int> TestAsync () { - Func<Task> a = async () => { - await Method (); - Method (); - }; + 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 + +using System; +using System.Threading.Tasks; + +class C +{ + public static async Task<T> Test<T> () + { + return await Task.FromResult (default (T)); + } + + static void Main () + { + Test<object> (); + } +} + // CS4014: The statement is not awaited and execution of current method continues before the call is completed. Consider using `await' operator -// Line: 18 +// Line: 12 // Compiler options: -warnaserror using System; @@ -143,8 +144,7 @@ { static async Task<int> TestAsync () { - Func<Task> f = null; - f (); + new Task (() => {}); return await Task.FromResult (2); } } /usr/lib/monodoc/sources/cs-errors.zip/CS7003 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS7003 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS7003 2036-01-31 00:46:20.000000000 +0000 @@ -3,19 +3,14 @@ CS7003 // CS7003: Unbound generic name is not valid in this context -// Line: 4 - -using SCGL = System.Collections.Generic.List<>; - // CS7003: Unbound generic name is not valid in this context -// Line: 10 - -class G<T> -{ -} +// Line: 8 class C { - G<> field; + static void Main () + { + System.Action<>.Combine (); + } } // CS7003: Unbound generic name is not valid in this context // Line: 14 @@ -34,27 +29,6 @@ } // 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: 10 - -class G<T> -{ -} - -class C -{ - const string f = nameof (G<>); -} - // CS7003: Unbound generic name is not valid in this context // Line: 12 static class C @@ -88,6 +62,32 @@ } } // 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: 10 + +class G<T> +{ +} + +class C +{ + const string f = nameof (G<>); +} + // CS7003: Unbound generic name is not valid in this context +// Line: 4 + +using SCGL = System.Collections.Generic.List<>; + // CS7003: Unbound generic name is not valid in this context // Line: 12 static class C /usr/lib/monodoc/sources/cs-errors.zip/CS7023 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS7023 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS7023 2036-01-31 00:46:20.000000000 +0000 @@ -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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS7034 2036-01-31 00:46:20.000000000 +0000 @@ -9,13 +9,6 @@ [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.*.*")] - // CS7034: The specified version string `0.0.0.80420' does not conform to the required format - major[.minor[.build[.revision]]] // Line: 7 @@ -32,5 +25,12 @@ } } + // 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/CS7042 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS7042 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS7042 2036-01-31 00:46:20.000000000 +0000 @@ -7,20 +7,20 @@ using System.Runtime.InteropServices; -public class C +public class C<T> { [DllImport ("my.dll")] - static extern void Foo<T> (); + static extern void Foo (); } // CS7042: The DllImport attribute cannot be applied to a method that is generic or contained in a generic type // Line: 9 using System.Runtime.InteropServices; -public class C<T> +public class C { [DllImport ("my.dll")] - static extern void Foo (); + static extern void Foo<T> (); } \ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS7070 2036-01-31 00:46:20.000000000 +0000 @@ -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: 10 +// Line: 11 using System; using System.Security; @@ -11,8 +11,13 @@ public class Program { - [DebugPermission (SecurityAction.RequestMinimum)] - public int i; + [DebugPermission (SecurityAction.LinkDemand)] + public int Show + { + get { + return 2; + } + } } [AttributeUsage (AttributeTargets.All, AllowMultiple = true, Inherited = false)] @@ -31,7 +36,7 @@ } // 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; @@ -39,11 +44,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)] @@ -99,12 +101,10 @@ public class Program { - [DebugPermission (SecurityAction.LinkDemand)] - public int Show + [return: DebugPermission (SecurityAction.LinkDemand)] + public int Show (string message) { - get { return 2; - } } } /usr/lib/monodoc/sources/cs-errors.zip/CS7083 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS7083 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS7083 2036-01-31 00:46:20.000000000 +0000 @@ -2,24 +2,24 @@ CS7083 - // 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; } } - // 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; } } /usr/lib/monodoc/sources/cs-errors.zip/CS8030 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS8030 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS8030 2036-01-31 00:46:20.000000000 +0000 @@ -3,33 +3,33 @@ CS8030 // CS8030: Anonymous function or lambda expression converted to a void returning delegate cannot return a value -// Line: 11 +// Line: 10 using System; -using System.Threading.Tasks; class C { - public async void GetValue() + public void Test () + { + Action a = () => { return Skip (); }; + } + + void Skip () { - return await Task.FromResult(100); } } // CS8030: Anonymous function or lambda expression converted to a void returning delegate cannot return a value -// Line: 10 +// Line: 11 using System; +using System.Threading.Tasks; class C { - public void Test () - { - Action a = () => { return Skip (); }; - } - - void Skip () + public async void GetValue() { + return await Task.FromResult(100); } } /usr/lib/monodoc/sources/cs-errors.zip/CS8081 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS8081 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS8081 2036-01-31 00:46:20.000000000 +0000 @@ -7,9 +7,9 @@ class C { - static void Main () + void Foo () { - string s = nameof (Main ()); + string s = nameof (this); } } // CS8081: Expression does not have a name @@ -17,9 +17,9 @@ class C { - void Foo () + static void Main () { - string s = nameof (this); + string s = nameof (Main ()); } } /usr/lib/monodoc/sources/cs-errors.zip/CS8082 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS8082 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS8082 2036-01-31 00:46:20.000000000 +0000 @@ -13,27 +13,27 @@ } } // 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 +// Line: 9 class C { void Foo () { - var v = nameof (this?.Equals); + object o = null; + var s = nameof (o.ToString ().Equals); } -} - +} // CS8082: An argument to nameof operator cannot include sub-expression // Line: 9 @@ -41,7 +41,7 @@ { void Foo () { - object o = null; + dynamic o = null; var s = nameof (o.ToString ().Equals); } } /usr/lib/monodoc/sources/cs-errors.zip/CS8087 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS8087 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS8087 2036-01-31 00:46:20.000000000 +0000 @@ -2,24 +2,24 @@ CS8087 - // CS8087: A `}' character may only be escaped by doubling `}}' in an interpolated string + // CS8087: A `{' character may only be escaped by doubling `{{' in an interpolated string // Line: 8 public class Test { public static int Main () { - var x = $" \u007D "; + var x = $" \u007B "; } } - // CS8087: A `{' character may only be escaped by doubling `{{' in an interpolated string + // CS8087: A `}' character may only be escaped by doubling `}}' in an interpolated string // Line: 8 public class Test { public static int Main () { - var x = $" \u007B "; + var x = $" \u007D "; } } /usr/lib/monodoc/sources/cs-errors.zip/CS8123 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS8123 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS8123 2036-01-31 00:46:20.000000000 +0000 @@ -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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS8139 2036-01-31 00:46:20.000000000 +0000 @@ -38,6 +38,22 @@ throw null; } } + // CS8139: `D.M((int, int))': cannot change tuple element names when overriding inherited member `C.M((int, int))' +// Line: 13 + +class C +{ + public virtual void M ((int, int) arg) + { + } +} + +class D : C +{ + public override void M ((int c, int d) arg) + { + } +} // CS8139: `D.Prop': cannot change return type tuple element names when overriding inherited member `C.Prop' // Line: 14 @@ -58,21 +74,5 @@ } } } - // CS8139: `D.M((int, int))': cannot change tuple element names when overriding inherited member `C.M((int, int))' -// Line: 13 - -class C -{ - public virtual void M ((int, int) arg) - { - } -} - -class D : C -{ - public override void M ((int c, int d) arg) - { - } -} \ No newline at end of file /usr/lib/monodoc/sources/cs-errors.zip/CS8141 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS8141 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS8141 2036-01-31 00:46:20.000000000 +0000 @@ -3,38 +3,38 @@ CS8141 // CS8141: -// Line: 9 +// Line: 11 public interface I<T> { - T Test (); + int this[T arg] { get; set; } } public class C : I<(int a, int b)> { - public (int c, int d) Test () - { - return (1, 2); + public int this[(int c, int d) arg] { + get { + return 1; + } + set { + + } } } // CS8141: -// Line: 11 +// Line: 9 public interface I<T> { - int this[T arg] { get; set; } + T Test (); } public class C : I<(int a, int b)> { - public int this[(int c, int d) arg] { - get { - return 1; - } - set { - - } + public (int c, int d) Test () + { + return (1, 2); } } /usr/lib/monodoc/sources/cs-errors.zip/CS8147 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS8147 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS8147 2036-01-31 00:46:20.000000000 +0000 @@ -2,12 +2,12 @@ CS8147 - // CS8147: `X.TestProp': property and indexer which return by reference cannot have set accessors + // CS8147: `X.this[int]': property and indexer which return by reference cannot have set accessors // Line: 6 public class X { - ref string TestProp { + ref string this [int arg] { set { } @@ -16,12 +16,12 @@ } } } - // CS8147: `X.this[int]': property and indexer which return by reference cannot have set accessors + // CS8147: `X.TestProp': property and indexer which return by reference cannot have set accessors // Line: 6 public class X { - ref string this [int arg] { + ref string TestProp { set { } /usr/lib/monodoc/sources/cs-errors.zip/CS8175 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS8175 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS8175 2036-01-31 00:46:20.000000000 +0000 @@ -2,23 +2,6 @@ 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 @@ -38,5 +21,22 @@ 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS8178 2036-01-31 00:46:20.000000000 +0000 @@ -2,7 +2,7 @@ CS8178 - // 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; @@ -13,16 +13,20 @@ 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; } } - // 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; @@ -33,17 +37,13 @@ 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; } } /usr/lib/monodoc/sources/cs-errors.zip/CS8200 differs (XML 1.0 document, ASCII text) --- old//usr/lib/monodoc/sources/cs-errors.zip/CS8200 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS8200 2036-01-31 00:46:20.000000000 +0000 @@ -3,11 +3,11 @@ CS8200 // 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 { - bool Prop { get; } = Foo (out int arg); + bool res = Foo (out int arg); static bool Foo (out int arg) { @@ -32,14 +32,7 @@ public class C { - public C (bool value) - { - } - - public C () - : this (Foo (out int arg)) - { - } + bool Prop { get; } = Foo (out int arg); static bool Foo (out int arg) { @@ -48,45 +41,52 @@ } } // 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 public class C { - bool res = 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 -// 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 2020-12-28 11:27:12.000000000 +0000 +++ new//usr/lib/monodoc/sources/cs-errors.zip/CS8345 2036-01-31 00:46:20.000000000 +0000 @@ -10,9 +10,9 @@ { } -ref struct Test +struct Test { - static S field; + 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 @@ { } -struct Test +ref struct Test { - S field; + static S field; } \ No newline at end of file /usr/lib/monodoc/sources/netdocs.zip/mastersummary.xml differs (UTF-8 Unicode text, with very long lines) --- old//usr/lib/monodoc/sources/netdocs.zip/mastersummary.xml 2020-12-28 11:27:26.000000000 +0000 +++ new//usr/lib/monodoc/sources/netdocs.zip/mastersummary.xml 2036-01-31 00:46:34.000000000 +0000 @@ -1,81 +1,65 @@ - - - The System namespace contains the fundamental types of the runtime, including the Object, Int32, and String types. - - - The System namespace contains the fundamental types of the runtime. - - - - - To be added. - - + + To be added. + To be added. - + - The namespace provides the underlying structure of the common language runtime security system, including base classes for permissions. + The namespace defines a principal object that represents the security context under which code is running. For more information, see Role-Based Security. - - - This namespace contains classes for interacting with system resources like event logs, processes, and performance counters. - - - - + - The namespace contains classes used to create and transmit messages. The remoting infrastructure uses messages to communicate with remote objects. Messages are used to transmit remote method calls, to activate remote objects, and to communicate information. A message object carries a set of named properties, including action identifiers, envoy information, and parameters. Some of the most important classes of the namespace are the class, the class, and the class. + The namespace provides classes and interfaces that allow developers to create and configure distributed applications. Some of the more important classes of the namespace are the class, the class, and the class. - The class stores and returns the results of an asynchronous method call. instances contain the return value, call status, the delegate used for the call, and the other information about the asynchronous method call. - The class can be used to control serialization of objects that extend . A selects the surrogate used in serialization and deserialization of such objects. A surrogate is an object that can control serialization or deserialization of an object. - The class holds information returned after a remote method call. A holds the return value and any out or ref parameters that resulted from the remote method call. + The class contains static methods for interfacing with configuration settings. The method allows developers to configure the remoting infrastructure through the use of XML formatted configuration files. The class also contains several methods for client-end and server-end registration of client and server activated objects that reside on the server. + The class provides a number of methods to help in using and publishing remoted objects. The method provides the functionality for storing all the relevant information required to activate and communicate with a remote object in an instance of the class for later serialization and transmission to a remote location. The method reverses this process, creating a proxy for a remote object that can be used by an application without regard for any remoting subdivisions. + The class holds all the relevant information required to activate and communicate with a remote object. This class is a serializable representation of an object that is transmitted to a remote location using a channel, where it is unmarshaled (see ) and can be used to create a local proxy of the remoted object. + + Marshal-by-reference objects (MBRs) do not reside in memory forever. Instead, unless the type overrides to control its own lifetime policies, each MBR has a finite lifetime before the .NET Framework remoting system begins the process of deleting it and reclaiming the memory. For more information, see Lifetime Leases. + - + + To be added. + To be added. + + To be added. - - - - 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. - - - + - 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. @@ -85,19 +69,39 @@ - + - The namespace contains the XML Schema Definition (XSD) that was defined by the World Wide Web Consortium (W3C) in 2001. The XML Schema Part 2: Datatypes specification from W3C identifies format and behavior of various data types. This namespace contains wrapper classes for the data types that conform to the W3C specification. All date and time types conform to the ISO standards specification. + The namespace provides classes that allow you to read and write debug symbol information, such as source line to Microsoft intermediate language (MSIL) maps. Compilers targeting the.NET Framework can store the debug symbol information into programmer's database (PDB) files. Debuggers and code profiler tools can read the debug symbol information at run time. + + + + + + To be added. + + + + + + + The namespace contains types that allow the creation and use of isolated stores. With these stores, you can read and write data that less trusted code cannot access and prevent the exposure of sensitive information that can be saved elsewhere on the file system. Data is stored in compartments that are isolated by the current user and by the assembly in which the code exists. Additionally, data can be isolated by domain. Roaming profiles can be used in conjunction with isolated storage so isolated stores will travel with the user's profile. The enumeration indicates different types of isolation. For more information about when to use isolated storage, see Isolated Storage. - For more information on the XML Schema Part 2: Datatypes specification, see http://www.w3.org/TR/xmlschema-2/. + The class provides most of the necessary functionality for isolated storage. Use this class to obtain, delete and manage isolated storage. The class handles reading and writing files to a store. This is similar to reading and writing in standard File I/O classes. For more information about I/O, see the namespace. + For examples using isolated storage, see Isolated Storage - - To be added. - To be added. + + + + 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. + @@ -109,156 +113,162 @@ One of the most important classes of the namespace is the class, which provides the base functionality for all remoting proxies, and can be used to create custom proxies. - + To be added. - + - The namespace contains interfaces and classes that define various collections of objects, such as lists, queues, bit arrays, hash tables and dictionaries. + The namespace provides common enumerations, interfaces, and classes that are used by serialization formatters. - + - To be added. + + The namespace contains the XML Schema Definition (XSD) that was defined by the World Wide Web Consortium (W3C) in 2001. The XML Schema Part 2: Datatypes specification from W3C identifies format and behavior of various data types. This namespace contains wrapper classes for the data types that conform to the W3C specification. All date and time types conform to the ISO standards specification. - + + + For more information on the XML Schema Part 2: Datatypes specification, see http://www.w3.org/TR/xmlschema-2/. + - + - - The namespace defines a principal object that represents the security context under which code is running. For more information, see Role-Based Security. + To be added. overalldiffered=3 (not bit-by-bit identical) overall=1