| Offset 1, 7 lines modified | Offset 1, 7 lines modified | ||
| 1 | ·2bae53838aeb2bb95cb98e71ebfdefe3·20771456·debug·optional·mono-devel-dbgsym_6.14.1+ds2-1_amd64.deb | 1 | ·2bae53838aeb2bb95cb98e71ebfdefe3·20771456·debug·optional·mono-devel-dbgsym_6.14.1+ds2-1_amd64.deb |
| 2 | ·6eb1da75750c0db73282a0627d96b14a·49883132·cli-mono·optional·mono-devel_6.14.1+ds2-1_amd64.deb | ||
| 3 | ·1f6f595a640509c1f6b9ef1e54622527·5619476·debug·optional·mono-libraries-debug_6.14.1+ds2-1_all.deb | ||
| 4 | · | 2 | ·e4ed241afb627374448bdb2a491b510f·49877944·cli-mono·optional·mono-devel_6.14.1+ds2-1_amd64.deb |
| 3 | ·b64e3b5bf6b89fcd09adbb083b2faa84·5619600·debug·optional·mono-libraries-debug_6.14.1+ds2-1_all.deb | ||
| 4 | ·d51cd3fb6508a3e5d15b0b70614f24e2·11600212·cli-mono·optional·mono-libraries_6.14.1+ds2-1_all.deb | ||
| 5 | ·ec036e6a4c77acc7600c2f4d5edfc6d5·13601344·debug·optional·mono-runtime-dbgsym_6.14.1+ds2-1_amd64.deb | 5 | ·ec036e6a4c77acc7600c2f4d5edfc6d5·13601344·debug·optional·mono-runtime-dbgsym_6.14.1+ds2-1_amd64.deb |
| 6 | ·a14ff8f545369324fe454a23c98d23f6·2827644·cli-mono·optional·mono-runtime_6.14.1+ds2-1_amd64.deb | 6 | ·a14ff8f545369324fe454a23c98d23f6·2827644·cli-mono·optional·mono-runtime_6.14.1+ds2-1_amd64.deb |
| Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
| 1 | -rw-r--r--···0········0········0········4·2025-09-01·13:00:08.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2025-09-01·13:00:08.000000·debian-binary |
| 2 | -rw-r--r--···0········0········0····435 | 2 | -rw-r--r--···0········0········0····43576·2025-09-01·13:00:08.000000·control.tar.xz |
| 3 | -rw-r--r--···0········0········0·4983 | 3 | -rw-r--r--···0········0········0·49834176·2025-09-01·13:00:08.000000·data.tar.xz |
| Offset 1, 13 lines modified | Offset 1, 13 lines modified | ||
| 1 | Package:·mono-devel | 1 | Package:·mono-devel |
| 2 | Source:·mono | 2 | Source:·mono |
| 3 | Version:·6.14.1+ds2-1 | 3 | Version:·6.14.1+ds2-1 |
| 4 | Architecture:·amd64 | 4 | Architecture:·amd64 |
| 5 | Maintainer:·Antoine·Le·Gonidec·<vv221@debian.org> | 5 | Maintainer:·Antoine·Le·Gonidec·<vv221@debian.org> |
| 6 | Installed-Size:·16994 | 6 | Installed-Size:·169942 |
| 7 | Depends:·pkgconf,·mono-libraries·(=·6.14.1+ds2-1),·mono-runtime·(=·6.14.1+ds2-1),·python3:any,·libc6·(>=·2.38),·libgcc-s1·(>=·3.3),·zlib1g·(>=·1:1.1.4) | 7 | Depends:·pkgconf,·mono-libraries·(=·6.14.1+ds2-1),·mono-runtime·(=·6.14.1+ds2-1),·python3:any,·libc6·(>=·2.38),·libgcc-s1·(>=·3.3),·zlib1g·(>=·1:1.1.4) |
| 8 | Breaks:·libmono-2.0-1·(<<·6.14.1+ds-3),·libmono-2.0-dev·(<<·6.14.1+ds-3),·libmono-cil-dev·(<<·6.14.1+ds-3),·libmono-profiler·(<<·6.14.1+ds-3),·libmonoboehm-2.0-1·(<<·6.14.1+ds-3),·libmonoboehm-2.0-dev·(<<·6.14.1+ds-3),·libmonosgen-2.0-1·(<<·6.14.1+ds-3),·libmonosgen-2.0-dev·(<<·6.14.1+ds-3),·mono-4.0-service·(<<·6.14.1+ds-3),·mono-complete·(<<·6.14.1+ds-3),·mono-csharp-shell·(<<·6.14.1+ds-3),·mono-dbg·(<<·6.14.1+ds-3),·mono-mcs·(<<·6.14.1+ds-3),·mono-utils·(<<·6.14.1+ds-3),·mono-xbuild·(<<·6.14.1+ds-3),·monodoc-base·(<<·6.14.1+ds-3),·monodoc-manual·(<<·6.14.1+ds-3) | 8 | Breaks:·libmono-2.0-1·(<<·6.14.1+ds-3),·libmono-2.0-dev·(<<·6.14.1+ds-3),·libmono-cil-dev·(<<·6.14.1+ds-3),·libmono-profiler·(<<·6.14.1+ds-3),·libmonoboehm-2.0-1·(<<·6.14.1+ds-3),·libmonoboehm-2.0-dev·(<<·6.14.1+ds-3),·libmonosgen-2.0-1·(<<·6.14.1+ds-3),·libmonosgen-2.0-dev·(<<·6.14.1+ds-3),·mono-4.0-service·(<<·6.14.1+ds-3),·mono-complete·(<<·6.14.1+ds-3),·mono-csharp-shell·(<<·6.14.1+ds-3),·mono-dbg·(<<·6.14.1+ds-3),·mono-mcs·(<<·6.14.1+ds-3),·mono-utils·(<<·6.14.1+ds-3),·mono-xbuild·(<<·6.14.1+ds-3),·monodoc-base·(<<·6.14.1+ds-3),·monodoc-manual·(<<·6.14.1+ds-3) |
| 9 | Replaces:·cli-common-dev,·libmono-2.0-1·(<<·6.14.1+ds-3),·libmono-2.0-dev·(<<·6.14.1+ds-3),·libmono-cil-dev·(<<·6.14.1+ds-3),·libmono-profiler·(<<·6.14.1+ds-3),·libmonoboehm-2.0-1·(<<·6.14.1+ds-3),·libmonoboehm-2.0-dev·(<<·6.14.1+ds-3),·libmonosgen-2.0-1·(<<·6.14.1+ds-3),·libmonosgen-2.0-dev·(<<·6.14.1+ds-3),·mono-4.0-service·(<<·6.14.1+ds-3),·mono-complete·(<<·6.14.1+ds-3),·mono-csharp-shell·(<<·6.14.1+ds-3),·mono-dbg·(<<·6.14.1+ds-3),·mono-mcs·(<<·6.14.1+ds-3),·mono-utils·(<<·6.14.1+ds-3),·mono-xbuild·(<<·6.14.1+ds-3),·monodoc-base·(<<·6.14.1+ds-3),·monodoc-manual·(<<·6.14.1+ds-3) | 9 | Replaces:·cli-common-dev,·libmono-2.0-1·(<<·6.14.1+ds-3),·libmono-2.0-dev·(<<·6.14.1+ds-3),·libmono-cil-dev·(<<·6.14.1+ds-3),·libmono-profiler·(<<·6.14.1+ds-3),·libmonoboehm-2.0-1·(<<·6.14.1+ds-3),·libmonoboehm-2.0-dev·(<<·6.14.1+ds-3),·libmonosgen-2.0-1·(<<·6.14.1+ds-3),·libmonosgen-2.0-dev·(<<·6.14.1+ds-3),·mono-4.0-service·(<<·6.14.1+ds-3),·mono-complete·(<<·6.14.1+ds-3),·mono-csharp-shell·(<<·6.14.1+ds-3),·mono-dbg·(<<·6.14.1+ds-3),·mono-mcs·(<<·6.14.1+ds-3),·mono-utils·(<<·6.14.1+ds-3),·mono-xbuild·(<<·6.14.1+ds-3),·monodoc-base·(<<·6.14.1+ds-3),·monodoc-manual·(<<·6.14.1+ds-3) |
| 10 | Provides:·assembly-linker,·c-sharp-2.0-compiler,·c-sharp-3.0-compiler,·c-sharp-4.0-compiler,·c-sharp-4.5-compiler,·c-sharp-compiler,·cil-disassembler,·libmono-2.0-1·(=·6.14.1+ds2-1),·libmono-2.0-dev·(=·6.14.1+ds2-1),·libmono-cil-dev·(=·6.14.1+ds2-1),·libmono-profiler·(=·6.14.1+ds2-1),·libmonoboehm-2.0-1·(=·6.14.1+ds2-1),·libmonoboehm-2.0-dev·(=·6.14.1+ds2-1),·libmonosgen-2.0-1·(=·6.14.1+ds2-1),·libmonosgen-2.0-dev·(=·6.14.1+ds2-1),·mono-4.0-service·(=·6.14.1+ds2-1),·mono-complete·(=·6.14.1+ds2-1),·mono-csharp-shell·(=·6.14.1+ds2-1),·mono-mcs·(=·6.14.1+ds2-1),·mono-utils·(=·6.14.1+ds2-1),·mono-xbuild·(=·6.14.1+ds2-1),·monodoc-base·(=·6.14.1+ds2-1),·monodoc-manual·(=·6.14.1+ds2-1),·resource-file-generator,·strong-name-tool | 10 | Provides:·assembly-linker,·c-sharp-2.0-compiler,·c-sharp-3.0-compiler,·c-sharp-4.0-compiler,·c-sharp-4.5-compiler,·c-sharp-compiler,·cil-disassembler,·libmono-2.0-1·(=·6.14.1+ds2-1),·libmono-2.0-dev·(=·6.14.1+ds2-1),·libmono-cil-dev·(=·6.14.1+ds2-1),·libmono-profiler·(=·6.14.1+ds2-1),·libmonoboehm-2.0-1·(=·6.14.1+ds2-1),·libmonoboehm-2.0-dev·(=·6.14.1+ds2-1),·libmonosgen-2.0-1·(=·6.14.1+ds2-1),·libmonosgen-2.0-dev·(=·6.14.1+ds2-1),·mono-4.0-service·(=·6.14.1+ds2-1),·mono-complete·(=·6.14.1+ds2-1),·mono-csharp-shell·(=·6.14.1+ds2-1),·mono-mcs·(=·6.14.1+ds2-1),·mono-utils·(=·6.14.1+ds2-1),·mono-xbuild·(=·6.14.1+ds2-1),·monodoc-base·(=·6.14.1+ds2-1),·monodoc-manual·(=·6.14.1+ds2-1),·resource-file-generator,·strong-name-tool |
| 11 | Section:·cli-mono | 11 | Section:·cli-mono |
| 12 | Priority:·optional | 12 | Priority:·optional |
| 13 | Homepage:·http://www.mono-project.com/ | 13 | Homepage:·http://www.mono-project.com/ |
| Offset 524, 15 lines modified | Offset 524, 15 lines modified | ||
| 524 | -rw-r--r--···0·root·········(0)·root·········(0)·····6312·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/Microsoft.CSharp.targets | 524 | -rw-r--r--···0·root·········(0)·root·········(0)·····6312·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/Microsoft.CSharp.targets |
| 525 | -rw-r--r--···0·root·········(0)·root·········(0)····43377·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/Microsoft.Common.targets | 525 | -rw-r--r--···0·root·········(0)·root·········(0)····43377·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/Microsoft.Common.targets |
| 526 | -rw-r--r--···0·root·········(0)·root·········(0)·····6596·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/Microsoft.Common.tasks | 526 | -rw-r--r--···0·root·········(0)·root·········(0)·····6596·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/Microsoft.Common.tasks |
| 527 | -rw-r--r--···0·root·········(0)·root·········(0)·····5178·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/Microsoft.VisualBasic.targets | 527 | -rw-r--r--···0·root·········(0)·root·········(0)·····5178·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/Microsoft.VisualBasic.targets |
| 528 | -rwxr-xr-x···0·root·········(0)·root·········(0)····55808·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/RabbitMQ.Client.Apigen.exe | 528 | -rwxr-xr-x···0·root·········(0)·root·········(0)····55808·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/RabbitMQ.Client.Apigen.exe |
| 529 | -rw-r--r--···0·root·········(0)·root·········(0)····11583·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/RabbitMQ.Client.Apigen.exe.mdb | 529 | -rw-r--r--···0·root·········(0)·root·········(0)····11583·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/RabbitMQ.Client.Apigen.exe.mdb |
| 530 | -rwxr-xr-x···0·root·········(0)·root·········(0)···501760·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/al.exe | 530 | -rwxr-xr-x···0·root·········(0)·root·········(0)···501760·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/al.exe |
| 531 | -rw-r--r--···0·root·········(0)·root·········(0)···210 | 531 | -rw-r--r--···0·root·········(0)·root·········(0)···210613·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/al.exe.mdb |
| 532 | -rwxr-xr-x···0·root·········(0)·root·········(0)····50176·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/aprofutil.exe | 532 | -rwxr-xr-x···0·root·········(0)·root·········(0)····50176·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/aprofutil.exe |
| 533 | -rw-r--r--···0·root·········(0)·root·········(0)····13843·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/aprofutil.exe.mdb | 533 | -rw-r--r--···0·root·········(0)·root·········(0)····13843·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/aprofutil.exe.mdb |
| 534 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····7168·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/browsercaps-updater.exe | 534 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····7168·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/browsercaps-updater.exe |
| 535 | -rw-r--r--···0·root·········(0)·root·········(0)·····1028·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/browsercaps-updater.exe.mdb | 535 | -rw-r--r--···0·root·········(0)·root·········(0)·····1028·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/browsercaps-updater.exe.mdb |
| 536 | -rwxr-xr-x···0·root·········(0)·root·········(0)····30208·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/caspol.exe | 536 | -rwxr-xr-x···0·root·········(0)·root·········(0)····30208·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/caspol.exe |
| 537 | -rw-r--r--···0·root·········(0)·root·········(0)·····5011·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/caspol.exe.mdb | 537 | -rw-r--r--···0·root·········(0)·root·········(0)·····5011·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/caspol.exe.mdb |
| 538 | -rwxr-xr-x···0·root·········(0)·root·········(0)····48128·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/cccheck.exe | 538 | -rwxr-xr-x···0·root·········(0)·root·········(0)····48128·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/cccheck.exe |
| Offset 559, 15 lines modified | Offset 559, 15 lines modified | ||
| 559 | -rw-r--r--···0·root·········(0)·root·········(0)······531·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/dtd2xsd.exe.mdb | 559 | -rw-r--r--···0·root·········(0)·root·········(0)······531·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/dtd2xsd.exe.mdb |
| 560 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····4096·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/genxs.exe | 560 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····4096·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/genxs.exe |
| 561 | -rw-r--r--···0·root·········(0)·root·········(0)······355·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/genxs.exe.mdb | 561 | -rw-r--r--···0·root·········(0)·root·········(0)······355·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/genxs.exe.mdb |
| 562 | -rwxr-xr-x···0·root·········(0)·root·········(0)····17920·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/httpcfg.exe | 562 | -rwxr-xr-x···0·root·········(0)·root·········(0)····17920·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/httpcfg.exe |
| 563 | -rw-r--r--···0·root·········(0)·root·········(0)·····1883·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/httpcfg.exe.mdb | 563 | -rw-r--r--···0·root·········(0)·root·········(0)·····1883·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/httpcfg.exe.mdb |
| 564 | -rwxr-xr-x···0·root·········(0)·root·········(0)····15872·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/ictool.exe | 564 | -rwxr-xr-x···0·root·········(0)·root·········(0)····15872·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/ictool.exe |
| 565 | -rw-r--r--···0·root·········(0)·root·········(0)·····3920·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/ictool.exe.mdb | 565 | -rw-r--r--···0·root·········(0)·root·········(0)·····3920·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/ictool.exe.mdb |
| 566 | -rwxr-xr-x···0·root·········(0)·root·········(0)···57 | 566 | -rwxr-xr-x···0·root·········(0)·root·········(0)···574976·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/ikdasm.exe |
| 567 | -rw-r--r--···0·root·········(0)·root·········(0)···236175·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/ikdasm.exe.mdb | 567 | -rw-r--r--···0·root·········(0)·root·········(0)···236175·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/ikdasm.exe.mdb |
| 568 | -rwxr-xr-x···0·root·········(0)·root·········(0)···327680·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/ilasm.exe | 568 | -rwxr-xr-x···0·root·········(0)·root·········(0)···327680·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/ilasm.exe |
| 569 | -rw-r--r--···0·root·········(0)·root·········(0)····79588·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/ilasm.exe.mdb | 569 | -rw-r--r--···0·root·········(0)·root·········(0)····79588·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/ilasm.exe.mdb |
| 570 | -rwxr-xr-x···0·root·········(0)·root·········(0)····54272·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/illinkanalyzer.exe | 570 | -rwxr-xr-x···0·root·········(0)·root·········(0)····54272·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/illinkanalyzer.exe |
| 571 | -rw-r--r--···0·root·········(0)·root·········(0)····15153·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/illinkanalyzer.exe.mdb | 571 | -rw-r--r--···0·root·········(0)·root·········(0)····15153·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/illinkanalyzer.exe.mdb |
| 572 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····7680·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/installutil.exe | 572 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····7680·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/installutil.exe |
| 573 | -rw-r--r--···0·root·········(0)·root·········(0)·····1078·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/installutil.exe.mdb | 573 | -rw-r--r--···0·root·········(0)·root·········(0)·····1078·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/installutil.exe.mdb |
| Offset 578, 15 lines modified | Offset 578, 15 lines modified | ||
| 578 | -rwxr-xr-x···0·root·········(0)·root·········(0)····19456·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/macpack.exe | 578 | -rwxr-xr-x···0·root·········(0)·root·········(0)····19456·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/macpack.exe |
| 579 | -rw-r--r--···0·root·········(0)·root·········(0)·····1412·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/macpack.exe.mdb | 579 | -rw-r--r--···0·root·········(0)·root·········(0)·····1412·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/macpack.exe.mdb |
| 580 | -rwxr-xr-x···0·root·········(0)·root·········(0)····24064·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/makecert.exe | 580 | -rwxr-xr-x···0·root·········(0)·root·········(0)····24064·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/makecert.exe |
| 581 | -rw-r--r--···0·root·········(0)·root·········(0)·····2103·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/makecert.exe.mdb | 581 | -rw-r--r--···0·root·········(0)·root·········(0)·····2103·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/makecert.exe.mdb |
| 582 | -rwxr-xr-x···0·root·········(0)·root·········(0)····37888·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mconfig.exe | 582 | -rwxr-xr-x···0·root·········(0)·root·········(0)····37888·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mconfig.exe |
| 583 | -rw-r--r--···0·root·········(0)·root·········(0)····11945·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mconfig.exe.mdb | 583 | -rw-r--r--···0·root·········(0)·root·········(0)····11945·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mconfig.exe.mdb |
| 584 | -rwxr-xr-x···0·root·········(0)·root·········(0)··1913344·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mcs.exe | 584 | -rwxr-xr-x···0·root·········(0)·root·········(0)··1913344·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mcs.exe |
| 585 | -rw-r--r--···0·root·········(0)·root·········(0)···658 | 585 | -rw-r--r--···0·root·········(0)·root·········(0)···658420·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mcs.exe.mdb |
| 586 | -rwxr-xr-x···0·root·········(0)·root·········(0)····44544·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mdbrebase.exe | 586 | -rwxr-xr-x···0·root·········(0)·root·········(0)····44544·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mdbrebase.exe |
| 587 | -rw-r--r--···0·root·········(0)·root·········(0)····12862·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mdbrebase.exe.mdb | 587 | -rw-r--r--···0·root·········(0)·root·········(0)····12862·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mdbrebase.exe.mdb |
| 588 | -rwxr-xr-x···0·root·········(0)·root·········(0)···611840·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mdoc.exe | 588 | -rwxr-xr-x···0·root·········(0)·root·········(0)···611840·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mdoc.exe |
| 589 | -rw-r--r--···0·root·········(0)·root·········(0)···141315·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mdoc.exe.mdb | 589 | -rw-r--r--···0·root·········(0)·root·········(0)···141315·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mdoc.exe.mdb |
| 590 | -rwxr-xr-x···0·root·········(0)·root·········(0)···525312·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mkbundle.exe | 590 | -rwxr-xr-x···0·root·········(0)·root·········(0)···525312·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mkbundle.exe |
| 591 | -rw-r--r--···0·root·········(0)·root·········(0)···212580·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mkbundle.exe.mdb | 591 | -rw-r--r--···0·root·········(0)·root·········(0)···212580·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mkbundle.exe.mdb |
| 592 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····3584·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mod.exe | 592 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····3584·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mod.exe |
| Offset 601, 15 lines modified | Offset 601, 15 lines modified | ||
| 601 | -rw-r--r--···0·root·········(0)·root·········(0)···211211·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mono-cil-strip.exe.mdb | 601 | -rw-r--r--···0·root·········(0)·root·········(0)···211211·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mono-cil-strip.exe.mdb |
| 602 | -rwxr-xr-x···0·root·········(0)·root·········(0)····18432·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mono-service.exe | 602 | -rwxr-xr-x···0·root·········(0)·root·········(0)····18432·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mono-service.exe |
| 603 | -rw-r--r--···0·root·········(0)·root·········(0)·····1615·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mono-service.exe.mdb | 603 | -rw-r--r--···0·root·········(0)·root·········(0)·····1615·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mono-service.exe.mdb |
| 604 | -rwxr-xr-x···0·root·········(0)·root·········(0)····48128·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mono-shlib-cop.exe | 604 | -rwxr-xr-x···0·root·········(0)·root·········(0)····48128·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mono-shlib-cop.exe |
| 605 | -rw-r--r--···0·root·········(0)·root·········(0)······155·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mono-shlib-cop.exe.config | 605 | -rw-r--r--···0·root·········(0)·root·········(0)······155·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mono-shlib-cop.exe.config |
| 606 | -rw-r--r--···0·root·········(0)·root·········(0)····13927·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mono-shlib-cop.exe.mdb | 606 | -rw-r--r--···0·root·········(0)·root·········(0)····13927·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mono-shlib-cop.exe.mdb |
| 607 | -rwxr-xr-x···0·root·········(0)·root·········(0)···559616·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mono-symbolicate.exe | 607 | -rwxr-xr-x···0·root·········(0)·root·········(0)···559616·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mono-symbolicate.exe |
| 608 | -rw-r--r--···0·root·········(0)·root·········(0)···233 | 608 | -rw-r--r--···0·root·········(0)·root·········(0)···233959·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mono-symbolicate.exe.mdb |
| 609 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····9216·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mono-xmltool.exe | 609 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····9216·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mono-xmltool.exe |
| 610 | -rw-r--r--···0·root·········(0)·root·········(0)·····1272·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mono-xmltool.exe.mdb | 610 | -rw-r--r--···0·root·········(0)·root·········(0)·····1272·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mono-xmltool.exe.mdb |
| 611 | -rwxr-xr-x···0·root·········(0)·root·········(0)···509952·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/monop.exe | 611 | -rwxr-xr-x···0·root·········(0)·root·········(0)···509952·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/monop.exe |
| 612 | -rw-r--r--···0·root·········(0)·root·········(0)···217388·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/monop.exe.mdb | 612 | -rw-r--r--···0·root·········(0)·root·········(0)···217388·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/monop.exe.mdb |
| 613 | -rwxr-xr-x···0·root·········(0)·root·········(0)····22016·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mozroots.exe | 613 | -rwxr-xr-x···0·root·········(0)·root·········(0)····22016·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mozroots.exe |
| 614 | -rw-r--r--···0·root·········(0)·root·········(0)·····2100·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mozroots.exe.mdb | 614 | -rw-r--r--···0·root·········(0)·root·········(0)·····2100·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mozroots.exe.mdb |
| 615 | -rwxr-xr-x···0·root·········(0)·root·········(0)····61952·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/pdb2mdb.exe | 615 | -rwxr-xr-x···0·root·········(0)·root·········(0)····61952·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/pdb2mdb.exe |
| Offset 2924, 15 lines modified | Offset 2924, 15 lines modified | ||
| 2924 | -rw-r--r--···0·root·········(0)·root·········(0)······182·2025-09-01·13:00:08.000000·./usr/lib/monodoc/sources/Mono.source | 2924 | -rw-r--r--···0·root·········(0)·root·········(0)······182·2025-09-01·13:00:08.000000·./usr/lib/monodoc/sources/Mono.source |
| 2925 | -rw-r--r--···0·root·········(0)·root·········(0)···184115·2025-09-01·13:00:08.000000·./usr/lib/monodoc/sources/Mono.tree | 2925 | -rw-r--r--···0·root·········(0)·root·········(0)···184115·2025-09-01·13:00:08.000000·./usr/lib/monodoc/sources/Mono.tree |
| 2926 | -rw-r--r--···0·root·········(0)·root·········(0)···706737·2025-09-01·13:00:08.000000·./usr/lib/monodoc/sources/Mono.zip | 2926 | -rw-r--r--···0·root·········(0)·root·········(0)···706737·2025-09-01·13:00:08.000000·./usr/lib/monodoc/sources/Mono.zip |
| 2927 | -rw-r--r--···0·root·········(0)·root·········(0)······190·2025-09-01·13:00:08.000000·./usr/lib/monodoc/sources/Novell.source | 2927 | -rw-r--r--···0·root·········(0)·root·········(0)······190·2025-09-01·13:00:08.000000·./usr/lib/monodoc/sources/Novell.source |
| 2928 | -rw-r--r--···0·root·········(0)·root·········(0)····62108·2025-09-01·13:00:08.000000·./usr/lib/monodoc/sources/Novell.tree | 2928 | -rw-r--r--···0·root·········(0)·root·········(0)····62108·2025-09-01·13:00:08.000000·./usr/lib/monodoc/sources/Novell.tree |
| 2929 | -rw-r--r--···0·root·········(0)·root·········(0)···160782·2025-09-01·13:00:08.000000·./usr/lib/monodoc/sources/Novell.zip | 2929 | -rw-r--r--···0·root·········(0)·root·········(0)···160782·2025-09-01·13:00:08.000000·./usr/lib/monodoc/sources/Novell.zip |
| 2930 | -rw-r--r--···0·root·········(0)·root·········(0)····22806·2025-09-01·13:00:08.000000·./usr/lib/monodoc/sources/cs-errors.tree | 2930 | -rw-r--r--···0·root·········(0)·root·········(0)····22806·2025-09-01·13:00:08.000000·./usr/lib/monodoc/sources/cs-errors.tree |
| 2931 | -rw-r--r--···0·root·········(0)·root·········(0)···474 | 2931 | -rw-r--r--···0·root·········(0)·root·········(0)···474699·2025-09-01·13:00:08.000000·./usr/lib/monodoc/sources/cs-errors.zip |
| 2932 | -rw-r--r--···0·root·········(0)·root·········(0)····21854·2025-09-01·13:00:08.000000·./usr/lib/monodoc/sources/ecma334.tree | 2932 | -rw-r--r--···0·root·········(0)·root·········(0)····21854·2025-09-01·13:00:08.000000·./usr/lib/monodoc/sources/ecma334.tree |
| 2933 | -rw-r--r--···0·root·········(0)·root·········(0)···392664·2025-09-01·13:00:08.000000·./usr/lib/monodoc/sources/ecma334.zip | 2933 | -rw-r--r--···0·root·········(0)·root·········(0)···392664·2025-09-01·13:00:08.000000·./usr/lib/monodoc/sources/ecma334.zip |
| 2934 | -rw-r--r--···0·root·········(0)·root·········(0)······338·2025-09-01·13:00:08.000000·./usr/lib/monodoc/sources/lang-csharp.source | 2934 | -rw-r--r--···0·root·········(0)·root·········(0)······338·2025-09-01·13:00:08.000000·./usr/lib/monodoc/sources/lang-csharp.source |
| 2935 | -rw-r--r--···0·root·········(0)·root·········(0)······110·2025-09-01·13:00:08.000000·./usr/lib/monodoc/sources/mono-file-formats.source | 2935 | -rw-r--r--···0·root·········(0)·root·········(0)······110·2025-09-01·13:00:08.000000·./usr/lib/monodoc/sources/mono-file-formats.source |
| 2936 | -rw-r--r--···0·root·········(0)·root·········(0)·······81·2025-09-01·13:00:08.000000·./usr/lib/monodoc/sources/mono-file-formats.tree | 2936 | -rw-r--r--···0·root·········(0)·root·········(0)·······81·2025-09-01·13:00:08.000000·./usr/lib/monodoc/sources/mono-file-formats.tree |
| 2937 | -rw-r--r--···0·root·········(0)·root·········(0)·····9044·2025-09-01·13:00:08.000000·./usr/lib/monodoc/sources/mono-file-formats.zip | 2937 | -rw-r--r--···0·root·········(0)·root·········(0)·····9044·2025-09-01·13:00:08.000000·./usr/lib/monodoc/sources/mono-file-formats.zip |
| 2938 | -rw-r--r--···0·root·········(0)·root·········(0)······103·2025-09-01·13:00:08.000000·./usr/lib/monodoc/sources/mono-tools.source | 2938 | -rw-r--r--···0·root·········(0)·root·········(0)······103·2025-09-01·13:00:08.000000·./usr/lib/monodoc/sources/mono-tools.source |
| Offset 11, 15 lines modified | Offset 11, 15 lines modified | ||
| 11 | PE·Header: | 11 | PE·Header: |
| 12 | » ·········Magic·(0x010b):·0x010b | 12 | » ·········Magic·(0x010b):·0x010b |
| 13 | » ·············LMajor·(6):·0x08 | 13 | » ·············LMajor·(6):·0x08 |
| 14 | » ·············LMinor·(0):·0x00 | 14 | » ·············LMinor·(0):·0x00 |
| 15 | » ··············Code·Size:·0x00079c00 | 15 | » ··············Code·Size:·0x00079c00 |
| 16 | » ··Initialized·Data·Size:·0x00000800 | 16 | » ··Initialized·Data·Size:·0x00000800 |
| 17 | » Uninitialized·Data·Size:·0x00000000 | 17 | » Uninitialized·Data·Size:·0x00000000 |
| 18 | » ········Entry·Point·RVA:·0x0007ba | 18 | » ········Entry·Point·RVA:·0x0007ba7e |
| 19 | » ·» ··Code·Base·RVA:·0x00002000 | 19 | » ·» ··Code·Base·RVA:·0x00002000 |
| 20 | » » ··Data·Base·RVA:·0x0007c000 | 20 | » » ··Data·Base·RVA:·0x0007c000 |
| 21 | NT·Header: | 21 | NT·Header: |
| 22 | » ···Image·Base·(0x400000):·0x00400000 | 22 | » ···Image·Base·(0x400000):·0x00400000 |
| 23 | » Section·Alignment·(8192):·0x00002000 | 23 | » Section·Alignment·(8192):·0x00002000 |
| Offset 41, 15 lines modified | Offset 41, 15 lines modified | ||
| 41 | » ··Heap·Reserve·Size·(1M):·0x00100000 | 41 | » ··Heap·Reserve·Size·(1M):·0x00100000 |
| 42 | » ·Heap·Commit·Size·(4096):·0x00001000 | 42 | » ·Heap·Commit·Size·(4096):·0x00001000 |
| 43 | » ······Loader·flags·(0x1):·0x00000000 | 43 | » ······Loader·flags·(0x1):·0x00000000 |
| 44 | » ···Data·Directories·(16):·0x00000010 | 44 | » ···Data·Directories·(16):·0x00000010 |
| 45 | Data·directories: | 45 | Data·directories: |
| 46 | » ·····Export·Table:·0x00000000·[0x00000000] | 46 | » ·····Export·Table:·0x00000000·[0x00000000] |
| 47 | » ·····Import·Table:·0x0007ba | 47 | » ·····Import·Table:·0x0007ba30·[0x0000004b] |
| 48 | » ···Resource·Table:·0x0007e000·[0x00000358] | 48 | » ···Resource·Table:·0x0007e000·[0x00000358] |
| 49 | » ··Exception·Table:·0x00000000·[0x00000000] | 49 | » ··Exception·Table:·0x00000000·[0x00000000] |
| 50 | » Certificate·Table:·0x00000000·[0x00000000] | 50 | » Certificate·Table:·0x00000000·[0x00000000] |
| 51 | » ······Reloc·Table:·0x00080000·[0x0000000c] | 51 | » ······Reloc·Table:·0x00080000·[0x0000000c] |
| 52 | » ············Debug:·0x00000000·[0x00000000] | 52 | » ············Debug:·0x00000000·[0x00000000] |
| 53 | » ········Copyright:·0x00000000·[0x00000000] | 53 | » ········Copyright:·0x00000000·[0x00000000] |
| 54 | » ·······Global·Ptr:·0x00000000·[0x00000000] | 54 | » ·······Global·Ptr:·0x00000000·[0x00000000] |
| Offset 57, 26 lines modified | Offset 57, 26 lines modified | ||
| 57 | » Load·Config·Table:·0x00000000·[0x00000000] | 57 | » Load·Config·Table:·0x00000000·[0x00000000] |
| 58 | » ·····Bound·Import:·0x00000000·[0x00000000] | 58 | » ·····Bound·Import:·0x00000000·[0x00000000] |
| 59 | » ··············IAT:·0x00002000·[0x00000008] | 59 | » ··············IAT:·0x00002000·[0x00000008] |
| 60 | » Delay·Import·Desc:·0x00000000·[0x00000000] | 60 | » Delay·Import·Desc:·0x00000000·[0x00000000] |
| 61 | » ·······CLI·Header:·0x00002008·[0x00000048] | 61 | » ·······CLI·Header:·0x00002008·[0x00000048] |
| 62 | » Name:·.text | 62 | » Name:·.text |
| 63 | » ···Virtual·Size:·0x00079a | 63 | » ···Virtual·Size:·0x00079a84 |
| 64 | » Virtual·Address:·0x00002000 | 64 | » Virtual·Address:·0x00002000 |
| 65 | » ··Raw·Data·Size:·0x00079c00 | 65 | » ··Raw·Data·Size:·0x00079c00 |
| 66 | » ···Raw·Data·Ptr:·0x00000400 | 66 | » ···Raw·Data·Ptr:·0x00000400 |
| 67 | » ······Reloc·Ptr:·0x00000000 | 67 | » ······Reloc·Ptr:·0x00000000 |
| 68 | » ·····LineNo·Ptr:·0x00000000 | 68 | » ·····LineNo·Ptr:·0x00000000 |
| 69 | » ····Reloc·Count:·0x0000 | 69 | » ····Reloc·Count:·0x0000 |
| 70 | » ·····Line·Count:·0x0000 | 70 | » ·····Line·Count:·0x0000 |
| 71 | » Flags:·code,·exec,·read,· | 71 | » Flags:·code,·exec,·read,· |
| 72 | » Name:·.sdata | 72 | » Name:·.sdata |
| 73 | » ···Virtual·Size:·0x000001e | 73 | » ···Virtual·Size:·0x000001e4 |
| 74 | » Virtual·Address:·0x0007c000 | 74 | » Virtual·Address:·0x0007c000 |
| 75 | » ··Raw·Data·Size:·0x00000200 | 75 | » ··Raw·Data·Size:·0x00000200 |
| 76 | » ···Raw·Data·Ptr:·0x0007a000 | 76 | » ···Raw·Data·Ptr:·0x0007a000 |
| 77 | » ······Reloc·Ptr:·0x00000000 | 77 | » ······Reloc·Ptr:·0x00000000 |
| 78 | » ·····LineNo·Ptr:·0x00000000 | 78 | » ·····LineNo·Ptr:·0x00000000 |
| 79 | » ····Reloc·Count:·0x0000 | 79 | » ····Reloc·Count:·0x0000 |
| 80 | » ·····Line·Count:·0x0000 | 80 | » ·····Line·Count:·0x0000 |
| Offset 103, 15 lines modified | Offset 103, 15 lines modified | ||
| 103 | » ····Reloc·Count:·0x0000 | 103 | » ····Reloc·Count:·0x0000 |
| 104 | » ·····Line·Count:·0x0000 | 104 | » ·····Line·Count:·0x0000 |
| 105 | » Flags:·data,·discard,·read,· | 105 | » Flags:·data,·discard,·read,· |
| 106 | ··········CLI·header·size:·72 | 106 | ··········CLI·header·size:·72 |
| 107 | ·········Runtime·required:·2.5 | 107 | ·········Runtime·required:·2.5 |
| 108 | ····················Flags:·ilonly,·32/64,·no-trackdebug,·notsigned | 108 | ····················Flags:·ilonly,·32/64,·no-trackdebug,·notsigned |
| 109 | » ·········Metadata:·0x00036f | 109 | » ·········Metadata:·0x00036f78·[0x00044aac] |
| 110 | » Entry·Point·Token:·0x06000004 | 110 | » Entry·Point·Token:·0x06000004 |
| 111 | » ·····Resources·at:·0x00000000·[0x00000000] | 111 | » ·····Resources·at:·0x00000000·[0x00000000] |
| 112 | » ···Strong·Name·at:·0x00000000·[0x00000000] | 112 | » ···Strong·Name·at:·0x00000000·[0x00000000] |
| 113 | » ··Code·Manager·at:·0x00000000·[0x00000000] | 113 | » ··Code·Manager·at:·0x00000000·[0x00000000] |
| 114 | » ··VTableFixups·at:·0x00000000·[0x00000000] | 114 | » ··VTableFixups·at:·0x00000000·[0x00000000] |
| 115 | » ·····EAT·jumps·at:·0x00000000·[0x00000000] | 115 | » ·····EAT·jumps·at:·0x00000000·[0x00000000] |
| Offset 122, 42 lines modified | Offset 122, 42 lines modified | ||
| 122 | Metadata·header: | 122 | Metadata·header: |
| 123 | ···········Version:·1.1 | 123 | ···········Version:·1.1 |
| 124 | ····Version·string:·v4.0.30319 | 124 | ····Version·string:·v4.0.30319 |
| 125 | Metadata·pointers: | 125 | Metadata·pointers: |
| 126 | » Tables·(#~):·0x0000006c·-·0x00024228·[147900·==·0x000241bc] | 126 | » Tables·(#~):·0x0000006c·-·0x00024228·[147900·==·0x000241bc] |
| 127 | » ····Strings:·0x00024228·-·0x00035cb2·[72330·==·0x00011a8a] | 127 | » ····Strings:·0x00024228·-·0x00035cb2·[72330·==·0x00011a8a] |
| 128 | » ·······Blob:·0x0003cfc8·-·0x00044a | 128 | » ·······Blob:·0x0003cfc8·-·0x00044aac·[31460·==·0x00007ae4] |
| 129 | » User·string:·0x00035cb4·-·0x0003cfb8·[29444·==·0x00007304] | 129 | » User·string:·0x00035cb4·-·0x0003cfb8·[29444·==·0x00007304] |
| 130 | » ·······GUID:·0x0003cfb8·-·0x0003cfc8·[16·==·0x00000010] | 130 | » ·······GUID:·0x0003cfb8·-·0x0003cfc8·[16·==·0x00000010] |
| 131 | Rows: | 131 | Rows: |
| 132 | Table·Module:·1·records·(12·bytes,·at·354 | 132 | Table·Module:·1·records·(12·bytes,·at·35474) |
| 133 | Table·TypeRef:·204·records·(10·bytes,·at·354 | 133 | Table·TypeRef:·204·records·(10·bytes,·at·35480) |
| 134 | Table·TypeDef:·379·records·(18·bytes,·at·35c | 134 | Table·TypeDef:·379·records·(18·bytes,·at·35c78) |
| 135 | Table·Field:·1993·records·(8·bytes,·at·377 | 135 | Table·Field:·1993·records·(8·bytes,·at·3771e) |
| 136 | Table·Method:·3884·records·(16·bytes,·at·3b5 | 136 | Table·Method:·3884·records·(16·bytes,·at·3b566) |
| 137 | Table·Param:·3559·records·(8·bytes,·at·4a8 | 137 | Table·Param:·3559·records·(8·bytes,·at·4a826) |
| 138 | Table·InterfaceImpl:·61·records·(4·bytes,·at·517 | 138 | Table·InterfaceImpl:·61·records·(4·bytes,·at·5175e) |
| 139 | Table·MemberRef:·1146·records·(8·bytes,·at·518 | 139 | Table·MemberRef:·1146·records·(8·bytes,·at·51852) |
| 140 | Table·Constant:·554·records·(6·bytes,·at·53c | 140 | Table·Constant:·554·records·(6·bytes,·at·53c22) |
| 141 | Table·CustomAttribute:·106·records·(8·bytes,·at·549 | 141 | Table·CustomAttribute:·106·records·(8·bytes,·at·5491e) |
| 142 | Table·FieldMarshal:·9·records·(4·bytes,·at·54c | 142 | Table·FieldMarshal:·9·records·(4·bytes,·at·54c6e) |
| 143 | Table·ClassLayout:·9·records·(8·bytes,·at·54c | 143 | Table·ClassLayout:·9·records·(8·bytes,·at·54c92) |
| 144 | Table·FieldLayoutt:·2·records·(6·bytes,·at·54c | 144 | Table·FieldLayoutt:·2·records·(6·bytes,·at·54cda) |
| 145 | Table·StandaloneSig:·517·records·(2·bytes,·at·54c | 145 | Table·StandaloneSig:·517·records·(2·bytes,·at·54ce6) |
| 146 | Table·EventMap:·2·records·(4·bytes,·at·550 | 146 | Table·EventMap:·2·records·(4·bytes,·at·550f0) |
| 147 | Table·Event:·4·records·(8·bytes,·at·550 | 147 | Table·Event:·4·records·(8·bytes,·at·550f8) |
| 148 | Table·PropertyMap:·153·records·(4·bytes,·at·551 | 148 | Table·PropertyMap:·153·records·(4·bytes,·at·55118) |
| 149 | Table·Property:·1041·records·(8·bytes,·at·553 | 149 | Table·Property:·1041·records·(8·bytes,·at·5537c) |
| 150 | Table·MethodSemantics:·1077·records·(6·bytes,·at·57 | 150 | Table·MethodSemantics:·1077·records·(6·bytes,·at·57404) |
| 151 | Table·MethodImpl:·53·records·(6·bytes,·at·58d | 151 | Table·MethodImpl:·53·records·(6·bytes,·at·58d42) |
| 152 | Table·Moduleref:·1·records·(4·bytes,·at·58e | 152 | Table·Moduleref:·1·records·(4·bytes,·at·58e80) |
| 153 | Table·TypeSpec:·345·records·(2·bytes,·at·58e | 153 | Table·TypeSpec:·345·records·(2·bytes,·at·58e84) |
| 154 | Table·ImplMap:·1·records·(10·bytes,·at·591 | 154 | Table·ImplMap:·1·records·(10·bytes,·at·59136) |
| 155 | Table·FieldRVA:·10·records·(6·bytes,·at·591 | 155 | Table·FieldRVA:·10·records·(6·bytes,·at·59140) |
| 156 | Table·Assembly:·1·records·(26·bytes,·at·591 | 156 | Table·Assembly:·1·records·(26·bytes,·at·5917c) |
| 157 | Table·AssemblyRef:·6·records·(24·bytes,·at·591 | 157 | Table·AssemblyRef:·6·records·(24·bytes,·at·59196) |
| 158 | Table·NestedClass:·104·records·(4·bytes,·at·592 | 158 | Table·NestedClass:·104·records·(4·bytes,·at·59226) |
| 159 | Table·GenericParam:·21·records·(10·bytes,·at·593 | 159 | Table·GenericParam:·21·records·(10·bytes,·at·593c6) |
| 160 | Table·MethodSpec:·52·records·(4·bytes,·at·594 | 160 | Table·MethodSpec:·52·records·(4·bytes,·at·59498) |
| 161 | Table·GenericParamConstraint:·13·records·(4·bytes,·at·595 | 161 | Table·GenericParamConstraint:·13·records·(4·bytes,·at·59568) |
| 162 | RVA·for·Entry·Point:·0x00002224 | 162 | RVA·for·Entry·Point:·0x00002224 |
| Offset 1, 677 lines modified | Offset 1, 677 lines modified | ||
| 00000000:·14a6·7ffd·2326·e845·3200·0000·0000·0000··....#&.E2....... | 00000000:·14a6·7ffd·2326·e845·3200·0000·0000·0000··....#&.E2....... | ||
| 00000010:· | 00000010:·20a1·34aa·42ff·c34f·b50a·9650·173e·4c9d···.4.B..O...P.>L. | ||
| 00000020:· | 00000020:·b536·0300·7000·0000·5d88·0200·5d00·0000··.6..p...]...]... | ||
| 00000030:· | 00000030:·cd33·0300·e802·0000·5d00·0000·e530·0300··.3......]....0.. | ||
| 00000040:·e802·0000·020e·0000· | 00000040:·e802·0000·020e·0000·cd88·0200·18a8·0000··................ | ||
| 00000050:·0000·0000·0000·0000· | 00000050:·0000·0000·0000·0000·b536·0300·0000·0000··.........6...... | ||
| 00000060:·ffff·ffff·0800·0000·0900·0000·0000·0000··................ | 00000060:·ffff·ffff·0800·0000·0900·0000·0000·0000··................ | ||
| 00000070:·3b2f·6275·696c·642f·7265·7072·6f64·7563··;/build/reproduc | 00000070:·3b2f·6275·696c·642f·7265·7072·6f64·7563··;/build/reproduc | ||
| 00000080:·6962·6c65·2d70·6174·682f·6d6f·6e6f·2d36··ible-path/mono-6 | 00000080:·6962·6c65·2d70·6174·682f·6d6f·6e6f·2d36··ible-path/mono-6 | ||
| 00000090:·2e31·342e·312b·6473·322f·6d63·732f·746f··.14.1+ds2/mcs/to | 00000090:·2e31·342e·312b·6473·322f·6d63·732f·746f··.14.1+ds2/mcs/to | ||
| 000000a0:·6f6c·732f·616c·2f41·6c2e·6373·60a6·6e40··ols/al/Al.cs`.n@ | 000000a0:·6f6c·732f·616c·2f41·6c2e·6373·60a6·6e40··ols/al/Al.cs`.n@ | ||
| 000000b0:·cf64·824c·b6f0·42d4·8172·a799·c8ea·3d50··.d.L..B..r....=P | 000000b0:·cf64·824c·b6f0·42d4·8172·a799·c8ea·3d50··.d.L..B..r....=P | ||
| 000000c0:·5f45·ce17·9ac4·4183·8592·ae2c·0043·2f62··_E....A....,.C/b | 000000c0:·5f45·ce17·9ac4·4183·8592·ae2c·0043·2f62··_E....A....,.C/b | ||
| 000000d0:·7569·6c64·2f72·6570·726f·6475·6369·626c··uild/reproducibl | 000000d0:·7569·6c64·2f72·6570·726f·6475·6369·626c··uild/reproducibl | ||
| 000000e0:·652d·7061·7468·2f6d·6f6e·6f2d·362e·3134··e-path/mono-6.14 | 000000e0:·652d·7061·7468·2f6d·6f6e·6f2d·362e·3134··e-path/mono-6.14 | ||
| 000000f0:·2e31·2b64·7332·2f6d·6373·2f62·7569·6c64··.1+ds2/mcs/build | 000000f0:·2e31·2b64·7332·2f6d·6373·2f62·7569·6c64··.1+ds2/mcs/build | ||
| 00000100:·2f63·6f6d·6d6f·6e2f·436f·6e73·7473·2e63··/common/Consts.c | 00000100:·2f63·6f6d·6d6f·6e2f·436f·6e73·7473·2e63··/common/Consts.c | ||
| 00000110:·7360·a66e·40cf·6482·4cb6·f042·d481·72a7··s`.n@.d.L..B..r. | 00000110:·7360·a66e·40cf·6482·4cb6·f042·d481·72a7··s`.n@.d.L..B..r. | ||
| 00000120:·996e·11b8·5507·38c8·3b51·7fc9·1a29·df0b··.n..U.8.;Q...).. | 00000120:·996e·11b8·5507·38c8·3b51·7fc9·1a29·df0b··.n..U.8.;Q...).. | ||
| 00000130:·c700· | 00000130:·c700·592f·6275·696c·642f·7265·7072·6f64··..Y/build/reprod | ||
| 00000140:·7563·6962·6c65·2d70·6174·682f·6d6f·6e6f··ucible-path/mono | 00000140:·7563·6962·6c65·2d70·6174·682f·6d6f·6e6f··ucible-path/mono | ||
| 00000150:·2d36·2e31·342e·312b·6473·322f·6578·7465··-6.14.1+ds2/exte | 00000150:·2d36·2e31·342e·312b·6473·322f·6578·7465··-6.14.1+ds2/exte | ||
| 00000160:·726e·616c·2f69·6b76·6d2f·7265·666c·6563··rnal/ikvm/reflec | 00000160:·726e·616c·2f69·6b76·6d2f·7265·666c·6563··rnal/ikvm/reflec | ||
| 00000170:·742f·416d·6269·6775·6f75·734d·6174·6368··t/AmbiguousMatch | |||
| 00000180:·4578·6365·7074·696f·6e2e·6373·60a6·6e40··Exception.cs`.n@ | |||
| 00000170:·742f·4173·7365·6d62·6c79·4e61·6d65·2e63··t/AssemblyName.c | |||
| 00000180:·7360·a66e·40cf·6482·4cb6·f042·d481·72a7··s`.n@.d.L..B..r. | |||
| 00000190:·9988·d82a·120f·7abf·cfec·1cca·7143·1560··...*..z.....qC.` | |||
| 000001a0:·6200·4c2f·6275·696c·642f·7265·7072·6f64··b.L/build/reprod | |||
| 000001b0:·7563·6962·6c65·2d70·6174·682f·6d6f·6e6f··ucible-path/mono | |||
| 000001c0:·2d36·2e31·342e·312b·6473·322f·6578·7465··-6.14.1+ds2/exte | |||
| 000001d0:·726e·616c·2f69·6b76·6d2f·7265·666c·6563··rnal/ikvm/reflec | |||
| 000001e0:·742f·5072·6f6a·6563·7469·6f6e·2e63·7360··t/Projection.cs` | |||
| 000001f0:·a66e·40cf·6482·4cb6·f042·d481·72a7·992c··.n@.d.L..B..r.., | |||
| 00000200:·d344·6a2e·8d4c·7306·ac59·2308·8da6·ec00··.Dj..Ls..Y#..... | |||
| 00000210:·4e2f·6275·696c·642f·7265·7072·6f64·7563··N/build/reproduc | |||
| 00000220:·6962·6c65·2d70·6174·682f·6d6f·6e6f·2d36··ible-path/mono-6 | |||
| 00000230:·2e31·342e·312b·6473·322f·6578·7465·726e··.14.1+ds2/extern | |||
| 00000240:·616c·2f69·6b76·6d2f·7265·666c·6563·742f··al/ikvm/reflect/ | |||
| 00000250:·5072·6f70·6572·7479·496e·666f·2e63·7360··PropertyInfo.cs` | |||
| 00000260:·a66e·40cf·6482·4cb6·f042·d481·72a7·9973··.n@.d.L..B..r..s | |||
| 00000270:·5dce·cf77·8f21·000a·0175·ce96·b67a·8b00··]..w.!...u...z.. | |||
| 00000280:·532f·6275·696c·642f·7265·7072·6f64·7563··S/build/reproduc | |||
| 00000290:·6962·6c65·2d70·6174·682f·6d6f·6e6f·2d36··ible-path/mono-6 | |||
| 000002a0:·2e31·342e·312b·6473·322f·6578·7465·726e··.14.1+ds2/extern | |||
| 000002b0:·616c·2f69·6b76·6d2f·7265·666c·6563·742f··al/ikvm/reflect/ | |||
| 000002c0:·5061·7261·6d65·7465·724d·6f64·6966·6965··ParameterModifie | |||
| 000002d0:·722e·6373·60a6·6e40·cf64·824c·b6f0·42d4··r.cs`.n@.d.L..B. | |||
| 000002e0:·8172·a799·a9de·b83c·b084·2378·b0f5·28ea··.r.....<..#x..(. | |||
| 000002f0:·2fd7·d213·0047·2f62·7569·6c64·2f72·6570··/....G/build/rep | |||
| 00000300:·726f·6475·6369·626c·652d·7061·7468·2f6d··roducible-path/m | |||
| 00000310:·6f6e·6f2d·362e·3134·2e31·2b64·7332·2f65··ono-6.14.1+ds2/e | |||
| 00000320:·7874·6572·6e61·6c2f·696b·766d·2f72·6566··xternal/ikvm/ref | |||
| 00000330:·6c65·6374·2f45·6e75·6d73·2e63·7360·a66e··lect/Enums.cs`.n | |||
| 00000340:·40cf·6482·4cb6·f042·d481·72a7·99bd·4446··@.d.L..B..r...DF | |||
| 00000350:·cfb4·4438·e1f6·032b·a2f9·c9bc·9f00·562f··..D8...+......V/ | |||
| 00000360:·6275·696c·642f·7265·7072·6f64·7563·6962··build/reproducib | |||
| 00000370:·6c65·2d70·6174·682f·6d6f·6e6f·2d36·2e31··le-path/mono-6.1 | |||
| 00000380:·342e·312b·6473·322f·6578·7465·726e·616c··4.1+ds2/external | |||
| 00000390:·2f69·6b76·6d2f·7265·666c·6563·742f·4d61··/ikvm/reflect/Ma | |||
| 000003a0:·6e69·6665·7374·5265·736f·7572·6365·496e··nifestResourceIn | |||
| 000003b0:·666f·2e63·7360·a66e·40cf·6482·4cb6·f042··fo.cs`.n@.d.L..B | |||
| 000003c0:·d481·72a7·9948·2cc4·69b0·4fa6·0fc6·474d··..r..H,.i.O...GM | |||
| 000003d0:·dfff·bdd6·ae00·462f·6275·696c·642f·7265··......F/build/re | |||
| 000003e0:·7072·6f64·7563·6962·6c65·2d70·6174·682f··producible-path/ | |||
| 000003f0:·6d6f·6e6f·2d36·2e31·342e·312b·6473·322f··mono-6.14.1+ds2/ | |||
| 00000400:·6578·7465·726e·616c·2f69·6b76·6d2f·7265··external/ikvm/re | |||
| 00000410:·666c·6563·742f·5479·7065·2e63·7360·a66e··flect/Type.cs`.n | |||
| 00000420:·40cf·6482·4cb6·f042·d481·72a7·99c8·1fe4··@.d.L..B..r..... | |||
| 00000430:·f733·e77d·8374·2100·c351·f7ed·7d00·4c2f··.3.}.t!..Q..}.L/ | |||
| 00000440:·6275·696c·642f·7265·7072·6f64·7563·6962··build/reproducib | |||
| 00000450:·6c65·2d70·6174·682f·6d6f·6e6f·2d36·2e31··le-path/mono-6.1 | |||
| 00000460:·342e·312b·6473·322f·6578·7465·726e·616c··4.1+ds2/external | |||
| 00000470:·2f69·6b76·6d2f·7265·666c·6563·742f·4d65··/ikvm/reflect/Me | |||
| 00000480:·7468·6f64·426f·6479·2e63·7360·a66e·40cf··thodBody.cs`.n@. | |||
| 00000490:·6482·4cb6·f042·d481·72a7·9970·0ab5·24d4··d.L..B..r..p..$. | |||
| 000004a0:·647c·9642·fa1f·2f24·bf52·a700·592f·6275··d|.B../$.R..Y/bu | |||
| 000004b0:·696c·642f·7265·7072·6f64·7563·6962·6c65··ild/reproducible | |||
| 000004c0:·2d70·6174·682f·6d6f·6e6f·2d36·2e31·342e··-path/mono-6.14. | |||
| 000004d0:·312b·6473·322f·6578·7465·726e·616c·2f69··1+ds2/external/i | |||
| 000004e0:·6b76·6d2f·7265·666c·6563·742f·416d·6269··kvm/reflect/Ambi | |||
| 000004f0:·6775·6f75·734d·6174·6368·4578·6365·7074··guousMatchExcept | |||
| 00000500:·696f·6e2e·6373·60a6·6e40·cf64·824c·b6f0··ion.cs`.n@.d.L.. | |||
| 00000510:·42d4·8172·a799·b4c8·2dba·6855·a9d1·6a1f··B..r....-.hU..j. | |||
| 00000520:·1588·3a87·4ec1·0049·2f62·7569·6c64·2f72··..:.N..I/build/r | |||
| 00000530:·6570·726f·6475·6369·626c·652d·7061·7468··eproducible-path | |||
| 00000540:·2f6d·6f6e·6f2d·362e·3134·2e31·2b64·7332··/mono-6.14.1+ds2 | |||
| 00000550:·2f65·7874·6572·6e61·6c2f·696b·766d·2f72··/external/ikvm/r | |||
| 00000560:·6566·6c65·6374·2f4d·6973·7369·6e67·2e63··eflect/Missing.c | |||
| 00000570:·7360·a66e·40cf·6482·4cb6·f042·d481·72a7··s`.n@.d.L..B..r. | |||
| 00000580:·995c·aad3·92ba·92e7·b46a·215f·6c2f·b60a··.\.......j!_l/.. | |||
| 00000590:·b700·512f·6275·696c·642f·7265·7072·6f64··..Q/build/reprod | |||
| 000005a0:·7563·6962·6c65·2d70·6174·682f·6d6f·6e6f··ucible-path/mono | |||
| 000005b0:·2d36·2e31·342e·312b·6473·322f·6578·7465··-6.14.1+ds2/exte | |||
| 000005c0:·726e·616c·2f69·6b76·6d2f·7265·666c·6563··rnal/ikvm/reflec | |||
| 000005d0:·742f·4d65·7468·6f64·5369·676e·6174·7572··t/MethodSignatur | |||
| 000005e0:·652e·6373·60a6·6e40·cf64·824c·b6f0·42d4··e.cs`.n@.d.L..B. | |||
| 000005f0:·8172·a799·71ab·19f7·c2a9·8a8e·5cb5·292e··.r..q.......\.). | |||
| 00000600:·522f·3bce·0046·2f62·7569·6c64·2f72·6570··R/;..F/build/rep | |||
| 00000610:·726f·6475·6369·626c·652d·7061·7468·2f6d··roducible-path/m | |||
| 00000620:·6f6e·6f2d·362e·3134·2e31·2b64·7332·2f65··ono-6.14.1+ds2/e | |||
| 00000630:·7874·6572·6e61·6c2f·696b·766d·2f72·6566··xternal/ikvm/ref | |||
| 00000640:·6c65·6374·2f55·7469·6c2e·6373·60a6·6e40··lect/Util.cs`.n@ | |||
| 00000 | 00000190:·cf64·824c·b6f0·42d4·8172·a799·b4c8·2dba··.d.L..B..r....-. | ||
| 00000 | 000001a0:·6855·a9d1·6a1f·1588·3a87·4ec1·0048·2f62··hU..j...:.N..H/b | ||
| 00000 | 000001b0:·7569·6c64·2f72·6570·726f·6475·6369·626c··uild/reproducibl | ||
| 00000680:·652d·7061·7468·2f6d·6f6e·6f2d·362e·3134··e-path/mono-6.14 | |||
| 00000690:·2e31·2b64·7332·2f65·7874·6572·6e61·6c2f··.1+ds2/external/ | |||
| 000006a0:·696b·766d·2f72·6566·6c65·6374·2f53·7472··ikvm/reflect/Str | |||
| 000006b0:·6f6e·674e·616d·654b·6579·5061·6972·2e63··ongNameKeyPair.c | |||
| 000006c0:·7360·a66e·40cf·6482·4cb6·f042·d481·72a7··s`.n@.d.L..B..r. | |||
| 000006d0:·990d·2851·a6a5·5504·791e·464a·8108·37d5··..(Q..U.y.FJ..7. | |||
| 000006e0:·0b00·532f·6275·696c·642f·7265·7072·6f64··..S/build/reprod | |||
| 000006f0:·7563·6962·6c65·2d70·6174·682f·6d6f·6e6f··ucible-path/mono | |||
| 00000700:·2d36·2e31·342e·312b·6473·322f·6578·7465··-6.14.1+ds2/exte | |||
| 00000710:·726e·616c·2f69·6b76·6d2f·7265·666c·6563··rnal/ikvm/reflec | |||
| 00000720:·742f·5072·6f70·6572·7479·5369·676e·6174··t/PropertySignat | |||
| 00000730:·7572·652e·6373·60a6·6e40·cf64·824c·b6f0··ure.cs`.n@.d.L.. | |||
| 00000740:·42d4·8172·a799·26c4·b675·bbf8·0bb2·e9fc··B..r..&..u...... | |||
| 00000750:·cad4·bcbb·757c·0051·2f62·7569·6c64·2f72··....u|.Q/build/r | |||
| 00000760:·6570·726f·6475·6369·626c·652d·7061·7468··eproducible-path | |||
| 00000770:·2f6d·6f6e·6f2d·362e·3134·2e31·2b64·7332··/mono-6.14.1+ds2 | |||
| 00000780:·2f65·7874·6572·6e61·6c2f·696b·766d·2f72··/external/ikvm/r | |||
| 00000790:·6566·6c65·6374·2f43·6f6e·7374·7275·6374··eflect/Construct | |||
| 000007a0:·6f72·496e·666f·2e63·7360·a66e·40cf·6482··orInfo.cs`.n@.d. | |||
| 000007b0:·4cb6·f042·d481·72a7·996c·58f7·cc07·23c2··L..B..r..lX...#. | |||
| 000007c0:·91b7·cb4a·adbd·3508·af00·4c2f·6275·696c··...J..5...L/buil | |||
| Max diff block lines reached; 1743011/1783603 bytes (97.72%) of diff not shown. | |||
| Offset 8, 18 lines modified | Offset 8, 18 lines modified | ||
| 8 | » ···Optional·Header·Size:·0x00e0 | 8 | » ···Optional·Header·Size:·0x00e0 |
| 9 | » ···» Characteristics:·0x0102 | 9 | » ···» Characteristics:·0x0102 |
| 10 | PE·Header: | 10 | PE·Header: |
| 11 | » ·········Magic·(0x010b):·0x010b | 11 | » ·········Magic·(0x010b):·0x010b |
| 12 | » ·············LMajor·(6):·0x08 | 12 | » ·············LMajor·(6):·0x08 |
| 13 | » ·············LMinor·(0):·0x00 | 13 | » ·············LMinor·(0):·0x00 |
| 14 | » ··············Code·Size:·0x0008b | 14 | » ··············Code·Size:·0x0008ba00 |
| 15 | » ··Initialized·Data·Size:·0x00000800 | 15 | » ··Initialized·Data·Size:·0x00000800 |
| 16 | » Uninitialized·Data·Size:·0x00000000 | 16 | » Uninitialized·Data·Size:·0x00000000 |
| 17 | » ········Entry·Point·RVA:·0x0008d | 17 | » ········Entry·Point·RVA:·0x0008d9de |
| 18 | » ·» ··Code·Base·RVA:·0x00002000 | 18 | » ·» ··Code·Base·RVA:·0x00002000 |
| 19 | » » ··Data·Base·RVA:·0x0008e000 | 19 | » » ··Data·Base·RVA:·0x0008e000 |
| 20 | NT·Header: | 20 | NT·Header: |
| 21 | » ···Image·Base·(0x400000):·0x00400000 | 21 | » ···Image·Base·(0x400000):·0x00400000 |
| 22 | » Section·Alignment·(8192):·0x00002000 | 22 | » Section·Alignment·(8192):·0x00002000 |
| Offset 41, 15 lines modified | Offset 41, 15 lines modified | ||
| 41 | » ··Heap·Reserve·Size·(1M):·0x00100000 | 41 | » ··Heap·Reserve·Size·(1M):·0x00100000 |
| 42 | » ·Heap·Commit·Size·(4096):·0x00001000 | 42 | » ·Heap·Commit·Size·(4096):·0x00001000 |
| 43 | » ······Loader·flags·(0x1):·0x00000000 | 43 | » ······Loader·flags·(0x1):·0x00000000 |
| 44 | » ···Data·Directories·(16):·0x00000010 | 44 | » ···Data·Directories·(16):·0x00000010 |
| 45 | Data·directories: | 45 | Data·directories: |
| 46 | » ·····Export·Table:·0x00000000·[0x00000000] | 46 | » ·····Export·Table:·0x00000000·[0x00000000] |
| 47 | » ·····Import·Table:·0x0008d9 | 47 | » ·····Import·Table:·0x0008d990·[0x0000004b] |
| 48 | » ···Resource·Table:·0x00090000·[0x000002e0] | 48 | » ···Resource·Table:·0x00090000·[0x000002e0] |
| 49 | » ··Exception·Table:·0x00000000·[0x00000000] | 49 | » ··Exception·Table:·0x00000000·[0x00000000] |
| 50 | » Certificate·Table:·0x00000000·[0x00000000] | 50 | » Certificate·Table:·0x00000000·[0x00000000] |
| 51 | » ······Reloc·Table:·0x00092000·[0x0000000c] | 51 | » ······Reloc·Table:·0x00092000·[0x0000000c] |
| 52 | » ············Debug:·0x00000000·[0x00000000] | 52 | » ············Debug:·0x00000000·[0x00000000] |
| 53 | » ········Copyright:·0x00000000·[0x00000000] | 53 | » ········Copyright:·0x00000000·[0x00000000] |
| 54 | » ·······Global·Ptr:·0x00000000·[0x00000000] | 54 | » ·······Global·Ptr:·0x00000000·[0x00000000] |
| Offset 57, 61 lines modified | Offset 57, 61 lines modified | ||
| 57 | » Load·Config·Table:·0x00000000·[0x00000000] | 57 | » Load·Config·Table:·0x00000000·[0x00000000] |
| 58 | » ·····Bound·Import:·0x00000000·[0x00000000] | 58 | » ·····Bound·Import:·0x00000000·[0x00000000] |
| 59 | » ··············IAT:·0x00002000·[0x00000008] | 59 | » ··············IAT:·0x00002000·[0x00000008] |
| 60 | » Delay·Import·Desc:·0x00000000·[0x00000000] | 60 | » Delay·Import·Desc:·0x00000000·[0x00000000] |
| 61 | » ·······CLI·Header:·0x00002008·[0x00000048] | 61 | » ·······CLI·Header:·0x00002008·[0x00000048] |
| 62 | » Name:·.text | 62 | » Name:·.text |
| 63 | » ···Virtual·Size:·0x0008b | 63 | » ···Virtual·Size:·0x0008b9e4 |
| 64 | » Virtual·Address:·0x00002000 | 64 | » Virtual·Address:·0x00002000 |
| 65 | » ··Raw·Data·Size:·0x0008b | 65 | » ··Raw·Data·Size:·0x0008ba00 |
| 66 | » ···Raw·Data·Ptr:·0x00000400 | 66 | » ···Raw·Data·Ptr:·0x00000400 |
| 67 | » ······Reloc·Ptr:·0x00000000 | 67 | » ······Reloc·Ptr:·0x00000000 |
| 68 | » ·····LineNo·Ptr:·0x00000000 | 68 | » ·····LineNo·Ptr:·0x00000000 |
| 69 | » ····Reloc·Count:·0x0000 | 69 | » ····Reloc·Count:·0x0000 |
| 70 | » ·····Line·Count:·0x0000 | 70 | » ·····Line·Count:·0x0000 |
| 71 | » Flags:·code,·exec,·read,· | 71 | » Flags:·code,·exec,·read,· |
| 72 | » Name:·.sdata | 72 | » Name:·.sdata |
| 73 | » ···Virtual·Size:·0x000001d | 73 | » ···Virtual·Size:·0x000001d4 |
| 74 | » Virtual·Address:·0x0008e000 | 74 | » Virtual·Address:·0x0008e000 |
| 75 | » ··Raw·Data·Size:·0x00000200 | 75 | » ··Raw·Data·Size:·0x00000200 |
| 76 | » ···Raw·Data·Ptr:·0x0008 | 76 | » ···Raw·Data·Ptr:·0x0008be00 |
| 77 | » ······Reloc·Ptr:·0x00000000 | 77 | » ······Reloc·Ptr:·0x00000000 |
| 78 | » ·····LineNo·Ptr:·0x00000000 | 78 | » ·····LineNo·Ptr:·0x00000000 |
| 79 | » ····Reloc·Count:·0x0000 | 79 | » ····Reloc·Count:·0x0000 |
| 80 | » ·····Line·Count:·0x0000 | 80 | » ·····Line·Count:·0x0000 |
| 81 | » Flags:·data,·read,·write | 81 | » Flags:·data,·read,·write |
| 82 | » Name:·.rsrc | 82 | » Name:·.rsrc |
| 83 | » ···Virtual·Size:·0x000002e0 | 83 | » ···Virtual·Size:·0x000002e0 |
| 84 | » Virtual·Address:·0x00090000 | 84 | » Virtual·Address:·0x00090000 |
| 85 | » ··Raw·Data·Size:·0x00000400 | 85 | » ··Raw·Data·Size:·0x00000400 |
| 86 | » ···Raw·Data·Ptr:·0x0008c | 86 | » ···Raw·Data·Ptr:·0x0008c000 |
| 87 | » ······Reloc·Ptr:·0x00000000 | 87 | » ······Reloc·Ptr:·0x00000000 |
| 88 | » ·····LineNo·Ptr:·0x00000000 | 88 | » ·····LineNo·Ptr:·0x00000000 |
| 89 | » ····Reloc·Count:·0x0000 | 89 | » ····Reloc·Count:·0x0000 |
| 90 | » ·····Line·Count:·0x0000 | 90 | » ·····Line·Count:·0x0000 |
| 91 | » Flags:·data,·read,· | 91 | » Flags:·data,·read,· |
| 92 | » Name:·.reloc | 92 | » Name:·.reloc |
| 93 | » ···Virtual·Size:·0x0000000c | 93 | » ···Virtual·Size:·0x0000000c |
| 94 | » Virtual·Address:·0x00092000 | 94 | » Virtual·Address:·0x00092000 |
| 95 | » ··Raw·Data·Size:·0x00000200 | 95 | » ··Raw·Data·Size:·0x00000200 |
| 96 | » ···Raw·Data·Ptr:·0x0008c | 96 | » ···Raw·Data·Ptr:·0x0008c400 |
| 97 | » ······Reloc·Ptr:·0x00000000 | 97 | » ······Reloc·Ptr:·0x00000000 |
| 98 | » ·····LineNo·Ptr:·0x00000000 | 98 | » ·····LineNo·Ptr:·0x00000000 |
| 99 | » ····Reloc·Count:·0x0000 | 99 | » ····Reloc·Count:·0x0000 |
| 100 | » ·····Line·Count:·0x0000 | 100 | » ·····Line·Count:·0x0000 |
| 101 | » Flags:·data,·discard,·read,· | 101 | » Flags:·data,·discard,·read,· |
| 102 | ··········CLI·header·size:·72 | 102 | ··········CLI·header·size:·72 |
| 103 | ·········Runtime·required:·2.5 | 103 | ·········Runtime·required:·2.5 |
| 104 | ····················Flags:·ilonly,·32/64,·no-trackdebug,·notsigned | 104 | ····················Flags:·ilonly,·32/64,·no-trackdebug,·notsigned |
| 105 | » ·········Metadata:·0x000437 | 105 | » ·········Metadata:·0x00043754·[0x0004a23c] |
| 106 | » Entry·Point·Token:·0x06000099 | 106 | » Entry·Point·Token:·0x06000099 |
| 107 | » ·····Resources·at:·0x00000000·[0x00000000] | 107 | » ·····Resources·at:·0x00000000·[0x00000000] |
| 108 | » ···Strong·Name·at:·0x00000000·[0x00000000] | 108 | » ···Strong·Name·at:·0x00000000·[0x00000000] |
| 109 | » ··Code·Manager·at:·0x00000000·[0x00000000] | 109 | » ··Code·Manager·at:·0x00000000·[0x00000000] |
| 110 | » ··VTableFixups·at:·0x00000000·[0x00000000] | 110 | » ··VTableFixups·at:·0x00000000·[0x00000000] |
| 111 | » ·····EAT·jumps·at:·0x00000000·[0x00000000] | 111 | » ·····EAT·jumps·at:·0x00000000·[0x00000000] |
| Offset 122, 42 lines modified | Offset 122, 42 lines modified | ||
| 122 | Metadata·header: | 122 | Metadata·header: |
| 123 | ···········Version:·1.1 | 123 | ···········Version:·1.1 |
| 124 | ····Version·string:·v4.0.30319 | 124 | ····Version·string:·v4.0.30319 |
| 125 | Metadata·pointers: | 125 | Metadata·pointers: |
| 126 | » Tables·(#~):·0x0000006c·-·0x000262b4·[156232·==·0x00026248] | 126 | » Tables·(#~):·0x0000006c·-·0x000262b4·[156232·==·0x00026248] |
| 127 | » ····Strings:·0x000262b4·-·0x00038259·[73637·==·0x00011fa5] | 127 | » ····Strings:·0x000262b4·-·0x00038259·[73637·==·0x00011fa5] |
| 128 | » ·······Blob:·0x00042b7c·-·0x0004a2 | 128 | » ·······Blob:·0x00042b7c·-·0x0004a23c·[30400·==·0x000076c0] |
| 129 | » User·string:·0x0003825c·-·0x00042b6c·[43280·==·0x0000a910] | 129 | » User·string:·0x0003825c·-·0x00042b6c·[43280·==·0x0000a910] |
| 130 | » ·······GUID:·0x00042b6c·-·0x00042b7c·[16·==·0x00000010] | 130 | » ·······GUID:·0x00042b6c·-·0x00042b7c·[16·==·0x00000010] |
| 131 | Rows: | 131 | Rows: |
| 132 | Table·Module:·1·records·(12·bytes,·at·41c | 132 | Table·Module:·1·records·(12·bytes,·at·41c50) |
| 133 | Table·TypeRef:·199·records·(10·bytes,·at·41c | 133 | Table·TypeRef:·199·records·(10·bytes,·at·41c5c) |
| 134 | Table·TypeDef:·404·records·(18·bytes,·at·424 | 134 | Table·TypeDef:·404·records·(18·bytes,·at·42422) |
| 135 | Table·Field:·2074·records·(8·bytes,·at·440 | 135 | Table·Field:·2074·records·(8·bytes,·at·4408a) |
| 136 | Table·Method:·3973·records·(16·bytes,·at·481 | 136 | Table·Method:·3973·records·(16·bytes,·at·4815a) |
| 137 | Table·Param:·3881·records·(8·bytes,·at·579 | 137 | Table·Param:·3881·records·(8·bytes,·at·579aa) |
| 138 | Table·InterfaceImpl:·81·records·(4·bytes,·at·5f2 | 138 | Table·InterfaceImpl:·81·records·(4·bytes,·at·5f2f2) |
| 139 | Table·MemberRef:·1288·records·(8·bytes,·at·5f4 | 139 | Table·MemberRef:·1288·records·(8·bytes,·at·5f436) |
| 140 | Table·Constant:·564·records·(6·bytes,·at·61c | 140 | Table·Constant:·564·records·(6·bytes,·at·61c76) |
| 141 | Table·CustomAttribute:·185·records·(8·bytes,·at·629 | 141 | Table·CustomAttribute:·185·records·(8·bytes,·at·629ae) |
| 142 | Table·DeclSecurity:·1·records·(6·bytes,·at·62f | 142 | Table·DeclSecurity:·1·records·(6·bytes,·at·62f76) |
| 143 | Table·ClassLayout:·10·records·(8·bytes,·at·62f | 143 | Table·ClassLayout:·10·records·(8·bytes,·at·62f7c) |
| 144 | Table·FieldLayoutt:·4·records·(6·bytes,·at·62f | 144 | Table·FieldLayoutt:·4·records·(6·bytes,·at·62fcc) |
| 145 | Table·StandaloneSig:·611·records·(2·bytes,·at·62f | 145 | Table·StandaloneSig:·611·records·(2·bytes,·at·62fe4) |
| 146 | Table·EventMap:·2·records·(4·bytes,·at·634 | 146 | Table·EventMap:·2·records·(4·bytes,·at·634aa) |
| 147 | Table·Event:·4·records·(8·bytes,·at·634 | 147 | Table·Event:·4·records·(8·bytes,·at·634b2) |
| 148 | Table·PropertyMap:·164·records·(4·bytes,·at·634 | 148 | Table·PropertyMap:·164·records·(4·bytes,·at·634d2) |
| 149 | Table·Property:·1082·records·(8·bytes,·at·637 | 149 | Table·Property:·1082·records·(8·bytes,·at·63762) |
| 150 | Table·MethodSemantics:·1127·records·(6·bytes,·at·659 | 150 | Table·MethodSemantics:·1127·records·(6·bytes,·at·65932) |
| Max diff block lines reached; 0/6778 bytes (0.00%) of diff not shown. | |||
| Offset 1, 9 lines modified | Offset 1, 9 lines modified | ||
| 00000000:·14a6·7ffd·2326·e845·3200·0000·0000·0000··....#&.E2....... | 00000000:·14a6·7ffd·2326·e845·3200·0000·0000·0000··....#&.E2....... | ||
| 00000010:· | 00000010:·36d7·07cb·98c7·6245·a717·3da5·7333·1919··6.....bE..=.s3.. | ||
| 00000020:·8f9a·0300·7000·0000·93e1·0200·6300·0000··....p.......c... | 00000020:·8f9a·0300·7000·0000·93e1·0200·6300·0000··....p.......c... | ||
| 00000030:·7797·0300·1803·0000·6300·0000·5f94·0300··w.......c..._... | 00000030:·7797·0300·1803·0000·6300·0000·5f94·0300··w.......c..._... | ||
| 00000040:·1803·0000·dd0e·0000·03e2·0200·5cb2·0000··............\... | 00000040:·1803·0000·dd0e·0000·03e2·0200·5cb2·0000··............\... | ||
| 00000050:·0000·0000·0000·0000·8f9a·0300·0000·0000··................ | 00000050:·0000·0000·0000·0000·8f9a·0300·0000·0000··................ | ||
| 00000060:·ffff·ffff·0800·0000·0900·0000·0000·0000··................ | 00000060:·ffff·ffff·0800·0000·0900·0000·0000·0000··................ | ||
| 00000070:·422f·6275·696c·642f·7265·7072·6f64·7563··B/build/reproduc | 00000070:·422f·6275·696c·642f·7265·7072·6f64·7563··B/build/reproduc | ||
| 00000080:·6962·6c65·2d70·6174·682f·6d6f·6e6f·2d36··ible-path/mono-6 | 00000080:·6962·6c65·2d70·6174·682f·6d6f·6e6f·2d36··ible-path/mono-6 | ||
| Offset 65, 636 lines modified | Offset 65, 636 lines modified | ||
| 00000400:·5ae3·39fd·18cf·21a1·7000·472f·6275·696c··Z.9...!.p.G/buil | 00000400:·5ae3·39fd·18cf·21a1·7000·472f·6275·696c··Z.9...!.p.G/buil | ||
| 00000410:·642f·7265·7072·6f64·7563·6962·6c65·2d70··d/reproducible-p | 00000410:·642f·7265·7072·6f64·7563·6962·6c65·2d70··d/reproducible-p | ||
| 00000420:·6174·682f·6d6f·6e6f·2d36·2e31·342e·312b··ath/mono-6.14.1+ | 00000420:·6174·682f·6d6f·6e6f·2d36·2e31·342e·312b··ath/mono-6.14.1+ | ||
| 00000430:·6473·322f·6578·7465·726e·616c·2f69·6b64··ds2/external/ikd | 00000430:·6473·322f·6578·7465·726e·616c·2f69·6b64··ds2/external/ikd | ||
| 00000440:·6173·6d2f·5461·626c·6544·756d·7065·722e··asm/TableDumper. | 00000440:·6173·6d2f·5461·626c·6544·756d·7065·722e··asm/TableDumper. | ||
| 00000450:·6373·60a6·6e40·cf64·824c·b6f0·42d4·8172··cs`.n@.d.L..B..r | 00000450:·6373·60a6·6e40·cf64·824c·b6f0·42d4·8172··cs`.n@.d.L..B..r | ||
| 00000460:·a799·006c·5e77·0891·288d·3015·b442·d4f1··...l^w..(.0..B.. | 00000460:·a799·006c·5e77·0891·288d·3015·b442·d4f1··...l^w..(.0..B.. | ||
| 00000470:·a244·00 | 00000470:·a244·0059·2f62·7569·6c64·2f72·6570·726f··.D.Y/build/repro | ||
| 00000480:·6475·6369·626c·652d·7061·7468·2f6d·6f6e··ducible-path/mon | 00000480:·6475·6369·626c·652d·7061·7468·2f6d·6f6e··ducible-path/mon | ||
| 00000490:·6f2d·362e·3134·2e31·2b64·7332·2f65·7874··o-6.14.1+ds2/ext | 00000490:·6f2d·362e·3134·2e31·2b64·7332·2f65·7874··o-6.14.1+ds2/ext | ||
| 000004a0:·6572·6e61·6c2f·696b·766d·2f72·6566·6c65··ernal/ikvm/refle | 000004a0:·6572·6e61·6c2f·696b·766d·2f72·6566·6c65··ernal/ikvm/refle | ||
| 000004b0:·6374·2f41·6d62·6967·756f·7573·4d61·7463··ct/AmbiguousMatc | |||
| 000004c0:·6845·7863·6570·7469·6f6e·2e63·7360·a66e··hException.cs`.n | |||
| 000004b0:·6374·2f41·7373·656d·626c·794e·616d·652e··ct/AssemblyName. | |||
| 000004c0:·6373·60a6·6e40·cf64·824c·b6f0·42d4·8172··cs`.n@.d.L..B..r | |||
| 000004d0:·a799·88d8·2a12·0f7a·bfcf·ec1c·ca71·4315··....*..z.....qC. | |||
| 000004e0:·6062·004c·2f62·7569·6c64·2f72·6570·726f··`b.L/build/repro | |||
| 000004f0:·6475·6369·626c·652d·7061·7468·2f6d·6f6e··ducible-path/mon | |||
| 00000500:·6f2d·362e·3134·2e31·2b64·7332·2f65·7874··o-6.14.1+ds2/ext | |||
| 00000510:·6572·6e61·6c2f·696b·766d·2f72·6566·6c65··ernal/ikvm/refle | |||
| 00000520:·6374·2f50·726f·6a65·6374·696f·6e2e·6373··ct/Projection.cs | |||
| 00000530:·60a6·6e40·cf64·824c·b6f0·42d4·8172·a799··`.n@.d.L..B..r.. | |||
| 00000540:·2cd3·446a·2e8d·4c73·06ac·5923·088d·a6ec··,.Dj..Ls..Y#.... | |||
| 00000550:·004e·2f62·7569·6c64·2f72·6570·726f·6475··.N/build/reprodu | |||
| 00000560:·6369·626c·652d·7061·7468·2f6d·6f6e·6f2d··cible-path/mono- | |||
| 00000570:·362e·3134·2e31·2b64·7332·2f65·7874·6572··6.14.1+ds2/exter | |||
| 00000580:·6e61·6c2f·696b·766d·2f72·6566·6c65·6374··nal/ikvm/reflect | |||
| 00000590:·2f50·726f·7065·7274·7949·6e66·6f2e·6373··/PropertyInfo.cs | |||
| 000005a0:·60a6·6e40·cf64·824c·b6f0·42d4·8172·a799··`.n@.d.L..B..r.. | |||
| 000005b0:·735d·cecf·778f·2100·0a01·75ce·96b6·7a8b··s]..w.!...u...z. | |||
| 000005c0:·0053·2f62·7569·6c64·2f72·6570·726f·6475··.S/build/reprodu | |||
| 000005d0:·6369·626c·652d·7061·7468·2f6d·6f6e·6f2d··cible-path/mono- | |||
| 000005e0:·362e·3134·2e31·2b64·7332·2f65·7874·6572··6.14.1+ds2/exter | |||
| 000005f0:·6e61·6c2f·696b·766d·2f72·6566·6c65·6374··nal/ikvm/reflect | |||
| 00000600:·2f50·6172·616d·6574·6572·4d6f·6469·6669··/ParameterModifi | |||
| 00000610:·6572·2e63·7360·a66e·40cf·6482·4cb6·f042··er.cs`.n@.d.L..B | |||
| 00000620:·d481·72a7·99a9·deb8·3cb0·8423·78b0·f528··..r.....<..#x..( | |||
| 00000630:·ea2f·d7d2·1300·472f·6275·696c·642f·7265··./....G/build/re | |||
| 00000640:·7072·6f64·7563·6962·6c65·2d70·6174·682f··producible-path/ | |||
| 00000650:·6d6f·6e6f·2d36·2e31·342e·312b·6473·322f··mono-6.14.1+ds2/ | |||
| 00000660:·6578·7465·726e·616c·2f69·6b76·6d2f·7265··external/ikvm/re | |||
| 00000670:·666c·6563·742f·456e·756d·732e·6373·60a6··flect/Enums.cs`. | |||
| 00000680:·6e40·cf64·824c·b6f0·42d4·8172·a799·bd44··n@.d.L..B..r...D | |||
| 00000690:·46cf·b444·38e1·f603·2ba2·f9c9·bc9f·0056··F..D8...+......V | |||
| 000006a0:·2f62·7569·6c64·2f72·6570·726f·6475·6369··/build/reproduci | |||
| 000006b0:·626c·652d·7061·7468·2f6d·6f6e·6f2d·362e··ble-path/mono-6. | |||
| 000006c0:·3134·2e31·2b64·7332·2f65·7874·6572·6e61··14.1+ds2/externa | |||
| 000006d0:·6c2f·696b·766d·2f72·6566·6c65·6374·2f4d··l/ikvm/reflect/M | |||
| 000006e0:·616e·6966·6573·7452·6573·6f75·7263·6549··anifestResourceI | |||
| 000006f0:·6e66·6f2e·6373·60a6·6e40·cf64·824c·b6f0··nfo.cs`.n@.d.L.. | |||
| 00000700:·42d4·8172·a799·482c·c469·b04f·a60f·c647··B..r..H,.i.O...G | |||
| 00000710:·4ddf·ffbd·d6ae·0046·2f62·7569·6c64·2f72··M......F/build/r | |||
| 00000720:·6570·726f·6475·6369·626c·652d·7061·7468··eproducible-path | |||
| 00000730:·2f6d·6f6e·6f2d·362e·3134·2e31·2b64·7332··/mono-6.14.1+ds2 | |||
| 00000740:·2f65·7874·6572·6e61·6c2f·696b·766d·2f72··/external/ikvm/r | |||
| 00000750:·6566·6c65·6374·2f54·7970·652e·6373·60a6··eflect/Type.cs`. | |||
| 00000760:·6e40·cf64·824c·b6f0·42d4·8172·a799·c81f··n@.d.L..B..r.... | |||
| 00000770:·e4f7·33e7·7d83·7421·00c3·51f7·ed7d·004c··..3.}.t!..Q..}.L | |||
| 00000780:·2f62·7569·6c64·2f72·6570·726f·6475·6369··/build/reproduci | |||
| 00000790:·626c·652d·7061·7468·2f6d·6f6e·6f2d·362e··ble-path/mono-6. | |||
| 000007a0:·3134·2e31·2b64·7332·2f65·7874·6572·6e61··14.1+ds2/externa | |||
| 000007b0:·6c2f·696b·766d·2f72·6566·6c65·6374·2f4d··l/ikvm/reflect/M | |||
| 000007c0:·6574·686f·6442·6f64·792e·6373·60a6·6e40··ethodBody.cs`.n@ | |||
| 000007d0:·cf64·824c·b6f0·42d4·8172·a799·700a·b524··.d.L..B..r..p..$ | |||
| 000007e0:·d464·7c96·42fa·1f2f·24bf·52a7·0059·2f62··.d|.B../$.R..Y/b | |||
| 000007f0:·7569·6c64·2f72·6570·726f·6475·6369·626c··uild/reproducibl | |||
| 00000800:·652d·7061·7468·2f6d·6f6e·6f2d·362e·3134··e-path/mono-6.14 | |||
| 00000810:·2e31·2b64·7332·2f65·7874·6572·6e61·6c2f··.1+ds2/external/ | |||
| 00000820:·696b·766d·2f72·6566·6c65·6374·2f41·6d62··ikvm/reflect/Amb | |||
| 00000830:·6967·756f·7573·4d61·7463·6845·7863·6570··iguousMatchExcep | |||
| 00000840:·7469·6f6e·2e63·7360·a66e·40cf·6482·4cb6··tion.cs`.n@.d.L. | |||
| 00000850:·f042·d481·72a7·99b4·c82d·ba68·55a9·d16a··.B..r....-.hU..j | |||
| 00000860:·1f15·883a·874e·c100·492f·6275·696c·642f··...:.N..I/build/ | |||
| 00000870:·7265·7072·6f64·7563·6962·6c65·2d70·6174··reproducible-pat | |||
| 00000880:·682f·6d6f·6e6f·2d36·2e31·342e·312b·6473··h/mono-6.14.1+ds | |||
| 00000890:·322f·6578·7465·726e·616c·2f69·6b76·6d2f··2/external/ikvm/ | |||
| 000008a0:·7265·666c·6563·742f·4d69·7373·696e·672e··reflect/Missing. | |||
| 000008b0:·6373·60a6·6e40·cf64·824c·b6f0·42d4·8172··cs`.n@.d.L..B..r | |||
| 000008c0:·a799·5caa·d392·ba92·e7b4·6a21·5f6c·2fb6··..\.......j!_l/. | |||
| 000008d0:·0ab7·0051·2f62·7569·6c64·2f72·6570·726f··...Q/build/repro | |||
| 000008e0:·6475·6369·626c·652d·7061·7468·2f6d·6f6e··ducible-path/mon | |||
| 000008f0:·6f2d·362e·3134·2e31·2b64·7332·2f65·7874··o-6.14.1+ds2/ext | |||
| 00000900:·6572·6e61·6c2f·696b·766d·2f72·6566·6c65··ernal/ikvm/refle | |||
| 00000910:·6374·2f4d·6574·686f·6453·6967·6e61·7475··ct/MethodSignatu | |||
| 00000920:·7265·2e63·7360·a66e·40cf·6482·4cb6·f042··re.cs`.n@.d.L..B | |||
| 00000930:·d481·72a7·9971·ab19·f7c2·a98a·8e5c·b529··..r..q.......\.) | |||
| 00000940:·2e52·2f3b·ce00·462f·6275·696c·642f·7265··.R/;..F/build/re | |||
| 00000950:·7072·6f64·7563·6962·6c65·2d70·6174·682f··producible-path/ | |||
| 00000960:·6d6f·6e6f·2d36·2e31·342e·312b·6473·322f··mono-6.14.1+ds2/ | |||
| 00000970:·6578·7465·726e·616c·2f69·6b76·6d2f·7265··external/ikvm/re | |||
| 00000980:·666c·6563·742f·5574·696c·2e63·7360·a66e··flect/Util.cs`.n | |||
| 00000 | 000004d0:·40cf·6482·4cb6·f042·d481·72a7·99b4·c82d··@.d.L..B..r....- | ||
| 000004e0:·ba68·55a9·d16a·1f15·883a·874e·c100·482f··.hU..j...:.N..H/ | |||
| 000009a0:·4021·780d·8ad9·7073·9e98·5049·0800·532f··@!x...ps..PI..S/ | |||
| 000009b0:·6275·696c·642f·7265·7072·6f64·7563·6962··build/reproducib | |||
| 000009c0:·6c65·2d70·6174·682f·6d6f·6e6f·2d36·2e31··le-path/mono-6.1 | |||
| 000009d0:·342e·312b·6473·322f·6578·7465·726e·616c··4.1+ds2/external | |||
| 000009e0:·2f69·6b76·6d2f·7265·666c·6563·742f·5374··/ikvm/reflect/St | |||
| 000009f0:·726f·6e67·4e61·6d65·4b65·7950·6169·722e··rongNameKeyPair. | |||
| 00000a00:·6373·60a6·6e40·cf64·824c·b6f0·42d4·8172··cs`.n@.d.L..B..r | |||
| 00000a10:·a799·0d28·51a6·a555·0479·1e46·4a81·0837··...(Q..U.y.FJ..7 | |||
| 00000a20:·d50b·0053·2f62·7569·6c64·2f72·6570·726f··...S/build/repro | |||
| 00000a30:·6475·6369·626c·652d·7061·7468·2f6d·6f6e··ducible-path/mon | |||
| 00000a40:·6f2d·362e·3134·2e31·2b64·7332·2f65·7874··o-6.14.1+ds2/ext | |||
| 00000a50:·6572·6e61·6c2f·696b·766d·2f72·6566·6c65··ernal/ikvm/refle | |||
| 00000a60:·6374·2f50·726f·7065·7274·7953·6967·6e61··ct/PropertySigna | |||
| 00000a70:·7475·7265·2e63·7360·a66e·40cf·6482·4cb6··ture.cs`.n@.d.L. | |||
| 00000a80:·f042·d481·72a7·9926·c4b6·75bb·f80b·b2e9··.B..r..&..u..... | |||
| 00000a90:·fcca·d4bc·bb75·7c00·512f·6275·696c·642f··.....u|.Q/build/ | |||
| 00000aa0:·7265·7072·6f64·7563·6962·6c65·2d70·6174··reproducible-pat | |||
| 00000ab0:·682f·6d6f·6e6f·2d36·2e31·342e·312b·6473··h/mono-6.14.1+ds | |||
| 00000ac0:·322f·6578·7465·726e·616c·2f69·6b76·6d2f··2/external/ikvm/ | |||
| 00000ad0:·7265·666c·6563·742f·436f·6e73·7472·7563··reflect/Construc | |||
| 00000ae0:·746f·7249·6e66·6f2e·6373·60a6·6e40·cf64··torInfo.cs`.n@.d | |||
| 00000af0:·824c·b6f0·42d4·8172·a799·6c58·f7cc·0723··.L..B..r..lX...# | |||
| 00000b00:·c291·b7cb·4aad·bd35·08af·004c·2f62·7569··....J..5...L/bui | |||
| 00000b10:·6c64·2f72·6570·726f·6475·6369·626c·652d··ld/reproducible- | |||
| Max diff block lines reached; 1657270/1697397 bytes (97.64%) of diff not shown. | |||
| Offset 92, 15 lines modified | Offset 92, 15 lines modified | ||
| 92 | » ····Reloc·Count:·0x0000 | 92 | » ····Reloc·Count:·0x0000 |
| 93 | » ·····Line·Count:·0x0000 | 93 | » ·····Line·Count:·0x0000 |
| 94 | » Flags:·data,·discard,·read,· | 94 | » Flags:·data,·discard,·read,· |
| 95 | ··········CLI·header·size:·72 | 95 | ··········CLI·header·size:·72 |
| 96 | ·········Runtime·required:·2.5 | 96 | ·········Runtime·required:·2.5 |
| 97 | ····················Flags:·ilonly,·32/64,·no-trackdebug,·notsigned | 97 | ····················Flags:·ilonly,·32/64,·no-trackdebug,·notsigned |
| 98 | » ·········Metadata:·0x00006f | 98 | » ·········Metadata:·0x00006f70·[0x00007a90] |
| 99 | » Entry·Point·Token:·0x060000de | 99 | » Entry·Point·Token:·0x060000de |
| 100 | » ·····Resources·at:·0x00000000·[0x00000000] | 100 | » ·····Resources·at:·0x00000000·[0x00000000] |
| 101 | » ···Strong·Name·at:·0x00000000·[0x00000000] | 101 | » ···Strong·Name·at:·0x00000000·[0x00000000] |
| 102 | » ··Code·Manager·at:·0x00000000·[0x00000000] | 102 | » ··Code·Manager·at:·0x00000000·[0x00000000] |
| 103 | » ··VTableFixups·at:·0x00000000·[0x00000000] | 103 | » ··VTableFixups·at:·0x00000000·[0x00000000] |
| 104 | » ·····EAT·jumps·at:·0x00000000·[0x00000000] | 104 | » ·····EAT·jumps·at:·0x00000000·[0x00000000] |
| Offset 115, 30 lines modified | Offset 115, 30 lines modified | ||
| 115 | Metadata·pointers: | 115 | Metadata·pointers: |
| 116 | » Tables·(#~):·0x0000006c·-·0x00003050·[12260·==·0x00002fe4] | 116 | » Tables·(#~):·0x0000006c·-·0x00003050·[12260·==·0x00002fe4] |
| 117 | » ····Strings:·0x00003050·-·0x000051e2·[8594·==·0x00002192] | 117 | » ····Strings:·0x00003050·-·0x000051e2·[8594·==·0x00002192] |
| 118 | » ·······Blob:·0x00006a78·-·0x00007a90·[4120·==·0x00001018] | 118 | » ·······Blob:·0x00006a78·-·0x00007a90·[4120·==·0x00001018] |
| 119 | » User·string:·0x000051e4·-·0x00006a68·[6276·==·0x00001884] | 119 | » User·string:·0x000051e4·-·0x00006a68·[6276·==·0x00001884] |
| 120 | » ·······GUID:·0x00006a68·-·0x00006a78·[16·==·0x00000010] | 120 | » ·······GUID:·0x00006a68·-·0x00006a78·[16·==·0x00000010] |
| 121 | Rows: | 121 | Rows: |
| 122 | Table·Module:·1·records·(10·bytes,·at·524 | 122 | Table·Module:·1·records·(10·bytes,·at·524c) |
| 123 | Table·TypeRef:·107·records·(6·bytes,·at·525 | 123 | Table·TypeRef:·107·records·(6·bytes,·at·5256) |
| 124 | Table·TypeDef:·36·records·(14·bytes,·at·54d | 124 | Table·TypeDef:·36·records·(14·bytes,·at·54d8) |
| 125 | Table·Field:·137·records·(6·bytes,·at·56 | 125 | Table·Field:·137·records·(6·bytes,·at·56d0) |
| 126 | Table·Method:·299·records·(14·bytes,·at·5a0 | 126 | Table·Method:·299·records·(14·bytes,·at·5a06) |
| 127 | Table·Param:·326·records·(6·bytes,·at·6a | 127 | Table·Param:·326·records·(6·bytes,·at·6a60) |
| 128 | Table·InterfaceImpl:·31·records·(4·bytes,·at·720 | 128 | Table·InterfaceImpl:·31·records·(4·bytes,·at·7204) |
| 129 | Table·MemberRef:·295·records·(6·bytes,·at·72 | 129 | Table·MemberRef:·295·records·(6·bytes,·at·7280) |
| 130 | Table·Constant:·15·records·(6·bytes,·at·796 | 130 | Table·Constant:·15·records·(6·bytes,·at·796a) |
| 131 | Table·CustomAttribute:·91·records·(6·bytes,·at·79c | 131 | Table·CustomAttribute:·91·records·(6·bytes,·at·79c4) |
| 132 | Table·DeclSecurity:·1·records·(6·bytes,·at·7be | 132 | Table·DeclSecurity:·1·records·(6·bytes,·at·7be6) |
| 133 | Table·StandaloneSig:·59·records·(2·bytes,·at·7be | 133 | Table·StandaloneSig:·59·records·(2·bytes,·at·7bec) |
| 134 | Table·PropertyMap:·17·records·(4·bytes,·at·7c | 134 | Table·PropertyMap:·17·records·(4·bytes,·at·7c62) |
| 135 | Table·Property:·48·records·(6·bytes,·at·7ca | 135 | Table·Property:·48·records·(6·bytes,·at·7ca6) |
| 136 | Table·MethodSemantics:·58·records·(6·bytes,·at·7dc | 136 | Table·MethodSemantics:·58·records·(6·bytes,·at·7dc6) |
| 137 | Table·MethodImpl:·32·records·(6·bytes,·at·7f | 137 | Table·MethodImpl:·32·records·(6·bytes,·at·7f22) |
| 138 | Table·TypeSpec:·63·records·(2·bytes,·at·7f | 138 | Table·TypeSpec:·63·records·(2·bytes,·at·7fe2) |
| 139 | Table·Assembly:·1·records·(22·bytes,·at·80 | 139 | Table·Assembly:·1·records·(22·bytes,·at·8060) |
| 140 | Table·AssemblyRef:·5·records·(20·bytes,·at·807 | 140 | Table·AssemblyRef:·5·records·(20·bytes,·at·8076) |
| 141 | Table·NestedClass:·14·records·(4·bytes,·at·80d | 141 | Table·NestedClass:·14·records·(4·bytes,·at·80da) |
| 142 | Table·GenericParam:·18·records·(8·bytes,·at·81 | 142 | Table·GenericParam:·18·records·(8·bytes,·at·8112) |
| 143 | Table·MethodSpec:·7·records·(4·bytes,·at·81 | 143 | Table·MethodSpec:·7·records·(4·bytes,·at·81a2) |
| 144 | RVA·for·Entry·Point:·0x000066f8 | 144 | RVA·for·Entry·Point:·0x000066f8 |
| Offset 1, 9 lines modified | Offset 1, 9 lines modified | ||
| 00000000:·14a6·7ffd·2326·e845·3200·0000·0000·0000··....#&.E2....... | 00000000:·14a6·7ffd·2326·e845·3200·0000·0000·0000··....#&.E2....... | ||
| 00000010:·e | 00000010:·e695·7389·2555·b643·be13·ec3c·4d81·eacc··..s.%U.C...<M... | ||
| 00000020:·313b·0000·7000·0000·cd2c·0000·0500·0000··1;..p....,...... | 00000020:·313b·0000·7000·0000·cd2c·0000·0500·0000··1;..p....,...... | ||
| 00000030:·093b·0000·2800·0000·0500·0000·e13a·0000··.;..(........:.. | 00000030:·093b·0000·2800·0000·0500·0000·e13a·0000··.;..(........:.. | ||
| 00000040:·2800·0000·2301·0000·3d2d·0000·a40d·0000··(...#...=-...... | 00000040:·2800·0000·2301·0000·3d2d·0000·a40d·0000··(...#...=-...... | ||
| 00000050:·0000·0000·0000·0000·313b·0000·0000·0000··........1;...... | 00000050:·0000·0000·0000·0000·313b·0000·0000·0000··........1;...... | ||
| 00000060:·ffff·ffff·0800·0000·0900·0000·0000·0000··................ | 00000060:·ffff·ffff·0800·0000·0900·0000·0000·0000··................ | ||
| 00000070:·572f·6275·696c·642f·7265·7072·6f64·7563··W/build/reproduc | 00000070:·572f·6275·696c·642f·7265·7072·6f64·7563··W/build/reproduc | ||
| 00000080:·6962·6c65·2d70·6174·682f·6d6f·6e6f·2d36··ible-path/mono-6 | 00000080:·6962·6c65·2d70·6174·682f·6d6f·6e6f·2d36··ible-path/mono-6 | ||
| Offset 23, 32 lines modified | Offset 23, 32 lines modified | ||
| 00000160:·45c8·c784·76bb·5946·b400·4d2f·6275·696c··E...v.YF..M/buil | 00000160:·45c8·c784·76bb·5946·b400·4d2f·6275·696c··E...v.YF..M/buil | ||
| 00000170:·642f·7265·7072·6f64·7563·6962·6c65·2d70··d/reproducible-p | 00000170:·642f·7265·7072·6f64·7563·6962·6c65·2d70··d/reproducible-p | ||
| 00000180:·6174·682f·6d6f·6e6f·2d36·2e31·342e·312b··ath/mono-6.14.1+ | 00000180:·6174·682f·6d6f·6e6f·2d36·2e31·342e·312b··ath/mono-6.14.1+ | ||
| 00000190:·6473·322f·6578·7465·726e·616c·2f6c·696e··ds2/external/lin | 00000190:·6473·322f·6578·7465·726e·616c·2f6c·696e··ds2/external/lin | ||
| 000001a0:·6b65·722f·7372·632f·616e·616c·797a·6572··ker/src/analyzer | 000001a0:·6b65·722f·7372·632f·616e·616c·797a·6572··ker/src/analyzer | ||
| 000001b0:·2f4d·6169·6e2e·6373·60a6·6e40·cf64·824c··/Main.cs`.n@.d.L | 000001b0:·2f4d·6169·6e2e·6373·60a6·6e40·cf64·824c··/Main.cs`.n@.d.L | ||
| 000001c0:·b6f0·42d4·8172·a799·20e2·9a10·3a97·6f8a··..B..r..·...:.o. | 000001c0:·b6f0·42d4·8172·a799·20e2·9a10·3a97·6f8a··..B..r..·...:.o. | ||
| 000001d0:·bcd2·22af·3348·a343·006 | 000001d0:·bcd2·22af·3348·a343·0069·2f62·7569·6c64··..".3H.C.i/build | ||
| 000001e0:·2f72·6570·726f·6475·6369·626c·652d·7061··/reproducible-pa | 000001e0:·2f72·6570·726f·6475·6369·626c·652d·7061··/reproducible-pa | ||
| 000001f0:·7468·2f6d·6f6e·6f2d·362e·3134·2e31·2b64··th/mono-6.14.1+d | 000001f0:·7468·2f6d·6f6e·6f2d·362e·3134·2e31·2b64··th/mono-6.14.1+d | ||
| 00000200:·7332·2f65·7874·6572·6e61·6c2f·6c69·6e6b··s2/external/link | 00000200:·7332·2f65·7874·6572·6e61·6c2f·6c69·6e6b··s2/external/link | ||
| 00000210:·6572·2f73·7263·2f61·6e61·6c79·7a65·722f··er/src/analyzer/ | 00000210:·6572·2f73·7263·2f61·6e61·6c79·7a65·722f··er/src/analyzer/ | ||
| 00000220:·4c69·6e6b·6572·416e·616c·797a·6572·436f··LinkerAnalyzerCo | 00000220:·4c69·6e6b·6572·416e·616c·797a·6572·436f··LinkerAnalyzerCo | ||
| 00000230:·7265·2f | 00000230:·7265·2f53·7061·6365·416e·616c·797a·6572··re/SpaceAnalyzer | ||
| 00000240:· | 00000240:·2e63·7360·a66e·40cf·6482·4cb6·f042·d481··.cs`.n@.d.L..B.. | ||
| 00000250:· | 00000250:·72a7·99e6·9f7f·13ce·077b·599a·664d·c54f··r........{Y.fM.O | ||
| 00000260:· | 00000260:·112d·2100·6b2f·6275·696c·642f·7265·7072··.-!.k/build/repr | ||
| 00000270:· | 00000270:·6f64·7563·6962·6c65·2d70·6174·682f·6d6f··oducible-path/mo | ||
| 00000280:·6 | 00000280:·6e6f·2d36·2e31·342e·312b·6473·322f·6578··no-6.14.1+ds2/ex | ||
| 00000290:· | 00000290:·7465·726e·616c·2f6c·696e·6b65·722f·7372··ternal/linker/sr | ||
| 000002a0:· | 000002a0:·632f·616e·616c·797a·6572·2f4c·696e·6b65··c/analyzer/Linke | ||
| 000002b0:· | 000002b0:·7241·6e61·6c79·7a65·7243·6f72·652f·4465··rAnalyzerCore/De | ||
| 000002c0:· | 000002c0:·7065·6e64·656e·6379·4772·6170·682e·6373··pendencyGraph.cs | ||
| 000002d0:·60a6·6e40·cf64·824c·b6f0·42d4·8172·a799··`.n@.d.L..B..r.. | 000002d0:·60a6·6e40·cf64·824c·b6f0·42d4·8172·a799··`.n@.d.L..B..r.. | ||
| 000002e0:· | 000002e0:·942d·1ac1·8c94·6efd·a36b·8f5c·5e67·2dc9··.-....n..k.\^g-. | ||
| 000002f0:·0001·0000·0200·0003·0000·0400·0005·0000··................ | 000002f0:·0001·0000·0200·0003·0000·0400·0005·0000··................ | ||
| 00000300:·0100·0177·0000·0003·c501·011b·0001·0104··...w............ | 00000300:·0100·0177·0000·0003·c501·011b·0001·0104··...w............ | ||
| 00000310:·0401·8006·0085·0686·0600·0200·0000·03cb··................ | 00000310:·0401·8006·0085·0686·0600·0200·0000·03cb··................ | ||
| 00000320:·0101·3b63·0001·0104·0504·019b·0600·9c06··..;c............ | 00000320:·0101·3b63·0001·0104·0504·019b·0600·9c06··..;c............ | ||
| 00000330:·9d06·0002·0000·0000·0101·01b4·0600·b506··................ | 00000330:·9d06·0002·0000·0000·0101·01b4·0600·b506··................ | ||
| 00000340:·b606·0002·0001·01ff·ffff·ff0f·218c·0100··............!... | 00000340:·b606·0002·0001·01ff·ffff·ff0f·218c·0100··............!... | ||
| 00000350:·03f5·0101·0823·0895·8b08·6c1d·0001·0104··.....#....l..... | 00000350:·03f5·0101·0823·0895·8b08·6c1d·0001·0104··.....#....l..... | ||
| Offset 552, 82 lines modified | Offset 552, 82 lines modified | ||
| 00002270:·443b·f3f3·f3f3·f3f3·f3f3·f3f3·0815·5343··D;............SC | 00002270:·443b·f3f3·f3f3·f3f3·f3f3·f3f3·0815·5343··D;............SC | ||
| 00002280:·4d63·5b63·3315·4c42·7293·4c63·9b9d·6343··Mc[c3.LBr.Lc..cC | 00002280:·4d63·5b63·3315·4c42·7293·4c63·9b9d·6343··Mc[c3.LBr.Lc..cC | ||
| 00002290:·4563·7363·4363·7363·7363·6b63·0001·0104··EcscCcscsckc.... | 00002290:·4563·7363·4363·7363·7363·6b63·0001·0104··EcscCcscsckc.... | ||
| 000022a0:·0404·0404·0404·0404·0404·0404·0405·0505··................ | 000022a0:·0404·0404·0404·0404·0404·0404·0405·0505··................ | ||
| 000022b0:·0505·0505·0505·0505·0405·0504·0505·0505··................ | 000022b0:·0505·0505·0505·0505·0405·0504·0505·0505··................ | ||
| 000022c0:·0404·4257·0404·0505·0405·0504·0504·0504··..BW............ | 000022c0:·0404·4257·0404·0505·0405·0504·0504·0504··..BW............ | ||
| 000022d0:·0504·0504·0509·0503·ff43·00b3·44dc·4400··.........C..D.D. | 000022d0:·0504·0504·0509·0503·ff43·00b3·44dc·4400··.........C..D.D. | ||
| 000022e0:·0200·0000·0001·0104·e145·00e2·45e3·4500··.........E..E.E. | |||
| 000022 | 000022e0:·0200·0000·0404·0324·0163·643c·0001·0103··.......$.cd<.... | ||
| 00002 | 000022f0:·0c0a·0404·e145·00e2·45e3·4500·0200·0101··.....E..E.E..... | ||
| 00002310:·0320·0163·6363·0001·010d·0a03·0d04·8b46··.·.ccc.........F | |||
| 00002320:·008c·468d·4600·0200·0000·0404·0324·0100··..F.F........$.. | |||
| 00002330:·0101·2a04·a746·00a8·46a9·4600·0200·0000··..*..F..F.F..... | |||
| 00002340:·0404·0324·0100·0101·2f04·bd46·00be·46bf··...$..../..F..F. | |||
| 00002350:·4600·0202·000a·6669·6c65·5374·7265·616d··F.....fileStream | |||
| 00002360:·0201·097a·6970·5374·7265·616d·0305·01ff··...zipStream.... | |||
| 00002370:·ffff·ff0f·0b45·0101·0b45·0102·1233·0103··.....E...E...3.. | |||
| 00002380:·1a21·01ff·ffff·ff0f·4b5b·0004·0403·2801··.!......K[....(. | |||
| 00002390:·6543·4b08·743b·5b00·0101·040c·0c06·0605··eCK.t;[......... | |||
| 000023a0:·0504·d346·00ed·468a·4700·0205·0006·7265··...F..F.G.....re | |||
| 000023b0:·6164·6572·0102·0162·0503·0165·0504·0562··ader...b...e...b | |||
| 000023c0:·6567·696e·0605·0365·6e64·0607·01ff·ffff··egin...end...... | |||
| 000023d0:·ff0f·00e1·0101·0107·cf01·0102·0cc4·0101··................ | |||
| 000023e0:·0313·c401·0104·3fba·0101·0563·ba01·0106··......?....c.... | |||
| 000023f0:·a701·ba01·0004·0403·3601·4333·426d·081b··........6.C3Bm.. | |||
| 00002400:·6b6d·6b5b·5c6b·6bcb·a735·03e8·ffff·ff0f··kmk[\kk..5...... | |||
| 00002410:·0205·0100·0101·0b05·061f·0708·0808·0909··................ | |||
| 00002420:·090a·090a·0707·0504·ab47·00cb·47f4·4700··.........G..G.G. | |||
| 00002430:·0203·0006·7665·7274·6578·0001·0569·6e64··....vertex...ind | |||
| 00002440:·6578·0303·0670·7265·6669·7803·0401·ffff··ex...prefix..... | |||
| 00002450:·ffff·0f00·1801·ffff·ffff·0f1e·d801·0102··................ | |||
| 00002460:·24cb·0101·03bf·01cb·0100·0404·035a·01cb··$............Z.. | |||
| 00002470:·3b3b·6b3a·4253·6b73·8b93·082c·748b·9575··;;k:BSks...,t..u | |||
| 00002480:·0001·0105·0605·0606·2337·0606·0606·0e07··........#7...... | |||
| 00002490:·0607·0604·04b1·4800·cc48·e948·0002·0000··......H..H.H.... | |||
| 000024a0:·0004·0403·7301·0001·0104·049e·4900·9f49··....s.......I..I | |||
| 000024b0:·a049·0002·0000·0000·0101·04b4·4900·b549··.I..........I..I | |||
| 000024c0:·b649·0002·0000·0004·0403·8a01·0100·0101··.I.............. | |||
| 000024d0:·0404·c449·00c5·49c6·4900·0200·0000·0405··...I..I.I....... | |||
| 000024e0:·0324·0163·643c·0001·0103·0c0a·0405·db49··.$.cd<.........I | |||
| 000024f0:·00dc·49dd·4900·0200·0101·ffff·ffff·0f00··..I.I........... | |||
| 00002500:·2b00·0405·032f·0108·231c·4b3c·0001·0105··+..../..#.K<.... | |||
| 00002510:·0605·0604·05f7·4900·f849·814a·0002·0200··......I..I.J.... | |||
| 00002520:·0b61·6464·4173·7365·6d62·6c79·0001·0861··.addAssembly...a | |||
| 00002530:·6464·6974·696f·6e00·0000·0405·033a·013b··ddition......:.; | |||
| 00002 | 00002300:·ffff·ffff·0f00·2b00·0404·032f·0108·231c··......+..../..#. | ||
| 00002310:·4b3c·0001·0105·0605·0604·04fd·4500·fe45··K<..........E..E | |||
| 00002320:·8746·0002·0200·0b61·6464·4173·7365·6d62··.F.....addAssemb | |||
| 00002330:·6c79·0001·0861·6464·6974·696f·6e00·0000··ly...addition... | |||
| 00002340:·0404·033a·013b·3cb4·0823·0001·0104·0504··...:.;<..#...... | |||
| 00002350:·0404·04a4·4600·be46·bf46·0002·0000·0004··....F..F.F...... | |||
| 00002360:·0403·4501·0001·0104·04dc·4600·dd46·de46··..E.......F..F.F | |||
| 00002370:·0002·0200·036b·6579·0001·056d·7369·7a65··.....key...msize | |||
| 00002380:·0000·0004·0403·4a01·4c93·746b·7c74·0001··......J.L.tk|t.. | |||
| 00002390:·0104·0405·0404·0404·04f2·4600·8147·8247··..........F..G.G | |||
| 000023a0:·0002·0500·0473·697a·6500·0105·6669·656c··.....size...fiel | |||
| 000023b0:·6401·0306·6d65·7468·6f64·0205·0c72·6573··d...method...res | |||
| 000023c0:·6f6c·7665·6454·7970·6500·0601·6505·0502··olvedType...e... | |||
| 000023d0:·ffff·ffff·0f0c·5202·ffff·ffff·0f52·a701··......R......R.. | |||
| 000023e0:·0102·6c88·0101·ffff·ffff·0faf·01c2·0101··..l............. | |||
| 000023f0:·ffff·ffff·0fc7·01e1·0100·0404·0359·016c··.............Y.l | |||
| 00002400:·924b·0884·9a4b·4363·0865·4ca3·43f4·0001··.K...KCc.eL.C... | |||
| 00002410:·0104·1f0d·0520·0d05·0506·0405·0605·0404··.....·.......... | |||
| 00002420:·a247·00ce·47f9·4700·0208·0008·7265·736f··.G..G.G.....reso | |||
| 00002430:·6c76·6572·0001·0974·6f74·616c·5369·7a65··lver...totalSize | |||
| 00002440:·0002·0466·696c·6502·050a·7061·7261·6d65··...file...parame | |||
| 00002450:·7465·7273·0307·0861·7373·656d·626c·7903··ters...assembly. | |||
| 00002460:·0806·6d6f·6475·6c65·040a·0474·7970·6506··..module...type. | |||
| 00002470:·0c05·6368·696c·6408·0801·ffff·ffff·0f06··..child......... | |||
| 00002480:·2502·ffff·ffff·0f48·9403·0102·6684·0302··%......H....f... | |||
| 00002490:·03bd·0184·0301·04d9·01e5·0202·05d9·01e5··................ | |||
| 000024a0:·0201·06f5·01c6·0202·0780·02c6·0200·0404··................ | |||
| 000024b0:·036f·013b·83b4·5c3b·6c1b·d233·3bb4·5c42··.o.;..\;l..3;.\B | |||
| 000024c0:·4a6b·5b73·a253·a253·63a2·5302·6803·f3ff··Jk[s.S.Sc.S.h... | |||
| 000024d0:·ffff·0f01·0312·0210·013b·b400·0101·0405··.........;...... | |||
| 000024e0:·0505·0404·042d·0d05·0606·053d·6205·0525··.....-.....=b..% | |||
| 000024f0:·0e22·0f07·2210·082d·0405·0504·a948·00f8··.".."..-.....H.. | |||
| 00002500:·48ad·4900·0200·0000·0404·0393·0101·bb9b··H.I............. | |||
| 00002510:·0001·0104·0504·0485·4a00·864a·874a·0002··........J..J.J.. | |||
| 00002520:·0000·0000·0101·05a0·4a00·a14a·a24a·0002··........J..J.J.. | |||
| 00002530:·0000·0004·0503·1701·eb3b·0001·0105·0605··.........;...... | |||
| 00002540:·05b0·4a00·b14a·b24a·0002·0000·0004·0503··..J..J.J........ | |||
| 00002550:·2001·6363·6300·0101·0d0a·030d·05ca·4a00···.ccc.........J. | |||
| 000025 | 00002560:·cb4a·cc4a·0002·0000·0004·0503·2401·0001··.J.J........$... | ||
| Max diff block lines reached; 6744/20464 bytes (32.96%) of diff not shown. | |||
| Offset 11, 15 lines modified | Offset 11, 15 lines modified | ||
| 11 | PE·Header: | 11 | PE·Header: |
| 12 | » ·········Magic·(0x010b):·0x010b | 12 | » ·········Magic·(0x010b):·0x010b |
| 13 | » ·············LMajor·(6):·0x08 | 13 | » ·············LMajor·(6):·0x08 |
| 14 | » ·············LMinor·(0):·0x00 | 14 | » ·············LMinor·(0):·0x00 |
| 15 | » ··············Code·Size:·0x001b7e00 | 15 | » ··············Code·Size:·0x001b7e00 |
| 16 | » ··Initialized·Data·Size:·0x0001b000 | 16 | » ··Initialized·Data·Size:·0x0001b000 |
| 17 | » Uninitialized·Data·Size:·0x00000000 | 17 | » Uninitialized·Data·Size:·0x00000000 |
| 18 | » ········Entry·Point·RVA:·0x001b9d | 18 | » ········Entry·Point·RVA:·0x001b9d7e |
| 19 | » ·» ··Code·Base·RVA:·0x00002000 | 19 | » ·» ··Code·Base·RVA:·0x00002000 |
| 20 | » » ··Data·Base·RVA:·0x001ba000 | 20 | » » ··Data·Base·RVA:·0x001ba000 |
| 21 | NT·Header: | 21 | NT·Header: |
| 22 | » ···Image·Base·(0x400000):·0x00400000 | 22 | » ···Image·Base·(0x400000):·0x00400000 |
| 23 | » Section·Alignment·(8192):·0x00002000 | 23 | » Section·Alignment·(8192):·0x00002000 |
| Offset 41, 15 lines modified | Offset 41, 15 lines modified | ||
| 41 | » ··Heap·Reserve·Size·(1M):·0x00100000 | 41 | » ··Heap·Reserve·Size·(1M):·0x00100000 |
| 42 | » ·Heap·Commit·Size·(4096):·0x00001000 | 42 | » ·Heap·Commit·Size·(4096):·0x00001000 |
| 43 | » ······Loader·flags·(0x1):·0x00000000 | 43 | » ······Loader·flags·(0x1):·0x00000000 |
| 44 | » ···Data·Directories·(16):·0x00000010 | 44 | » ···Data·Directories·(16):·0x00000010 |
| 45 | Data·directories: | 45 | Data·directories: |
| 46 | » ·····Export·Table:·0x00000000·[0x00000000] | 46 | » ·····Export·Table:·0x00000000·[0x00000000] |
| 47 | » ·····Import·Table:·0x001b9d | 47 | » ·····Import·Table:·0x001b9d30·[0x0000004b] |
| 48 | » ···Resource·Table:·0x001d6000·[0x0000038c] | 48 | » ···Resource·Table:·0x001d6000·[0x0000038c] |
| 49 | » ··Exception·Table:·0x00000000·[0x00000000] | 49 | » ··Exception·Table:·0x00000000·[0x00000000] |
| 50 | » Certificate·Table:·0x00000000·[0x00000000] | 50 | » Certificate·Table:·0x00000000·[0x00000000] |
| 51 | » ······Reloc·Table:·0x001d8000·[0x0000000c] | 51 | » ······Reloc·Table:·0x001d8000·[0x0000000c] |
| 52 | » ············Debug:·0x00000000·[0x00000000] | 52 | » ············Debug:·0x00000000·[0x00000000] |
| 53 | » ········Copyright:·0x00000000·[0x00000000] | 53 | » ········Copyright:·0x00000000·[0x00000000] |
| 54 | » ·······Global·Ptr:·0x00000000·[0x00000000] | 54 | » ·······Global·Ptr:·0x00000000·[0x00000000] |
| Offset 57, 26 lines modified | Offset 57, 26 lines modified | ||
| 57 | » Load·Config·Table:·0x00000000·[0x00000000] | 57 | » Load·Config·Table:·0x00000000·[0x00000000] |
| 58 | » ·····Bound·Import:·0x00000000·[0x00000000] | 58 | » ·····Bound·Import:·0x00000000·[0x00000000] |
| 59 | » ··············IAT:·0x00002000·[0x00000008] | 59 | » ··············IAT:·0x00002000·[0x00000008] |
| 60 | » Delay·Import·Desc:·0x00000000·[0x00000000] | 60 | » Delay·Import·Desc:·0x00000000·[0x00000000] |
| 61 | » ·······CLI·Header:·0x00002008·[0x00000048] | 61 | » ·······CLI·Header:·0x00002008·[0x00000048] |
| 62 | » Name:·.text | 62 | » Name:·.text |
| 63 | » ···Virtual·Size:·0x001b7d | 63 | » ···Virtual·Size:·0x001b7d84 |
| 64 | » Virtual·Address:·0x00002000 | 64 | » Virtual·Address:·0x00002000 |
| 65 | » ··Raw·Data·Size:·0x001b7e00 | 65 | » ··Raw·Data·Size:·0x001b7e00 |
| 66 | » ···Raw·Data·Ptr:·0x00000400 | 66 | » ···Raw·Data·Ptr:·0x00000400 |
| 67 | » ······Reloc·Ptr:·0x00000000 | 67 | » ······Reloc·Ptr:·0x00000000 |
| 68 | » ·····LineNo·Ptr:·0x00000000 | 68 | » ·····LineNo·Ptr:·0x00000000 |
| 69 | » ····Reloc·Count:·0x0000 | 69 | » ····Reloc·Count:·0x0000 |
| 70 | » ·····Line·Count:·0x0000 | 70 | » ·····Line·Count:·0x0000 |
| 71 | » Flags:·code,·exec,·read,· | 71 | » Flags:·code,·exec,·read,· |
| 72 | » Name:·.sdata | 72 | » Name:·.sdata |
| 73 | » ···Virtual·Size:·0x0001a8e | 73 | » ···Virtual·Size:·0x0001a8e4 |
| 74 | » Virtual·Address:·0x001ba000 | 74 | » Virtual·Address:·0x001ba000 |
| 75 | » ··Raw·Data·Size:·0x0001aa00 | 75 | » ··Raw·Data·Size:·0x0001aa00 |
| 76 | » ···Raw·Data·Ptr:·0x001b8200 | 76 | » ···Raw·Data·Ptr:·0x001b8200 |
| 77 | » ······Reloc·Ptr:·0x00000000 | 77 | » ······Reloc·Ptr:·0x00000000 |
| 78 | » ·····LineNo·Ptr:·0x00000000 | 78 | » ·····LineNo·Ptr:·0x00000000 |
| 79 | » ····Reloc·Count:·0x0000 | 79 | » ····Reloc·Count:·0x0000 |
| 80 | » ·····Line·Count:·0x0000 | 80 | » ·····Line·Count:·0x0000 |
| Offset 103, 15 lines modified | Offset 103, 15 lines modified | ||
| 103 | » ····Reloc·Count:·0x0000 | 103 | » ····Reloc·Count:·0x0000 |
| 104 | » ·····Line·Count:·0x0000 | 104 | » ·····Line·Count:·0x0000 |
| 105 | » Flags:·data,·discard,·read,· | 105 | » Flags:·data,·discard,·read,· |
| 106 | ··········CLI·header·size:·72 | 106 | ··········CLI·header·size:·72 |
| 107 | ·········Runtime·required:·2.5 | 107 | ·········Runtime·required:·2.5 |
| 108 | ····················Flags:·ilonly,·32/64,·no-trackdebug,·notsigned | 108 | ····················Flags:·ilonly,·32/64,·no-trackdebug,·notsigned |
| 109 | » ·········Metadata:·0x000d74 | 109 | » ·········Metadata:·0x000d744c·[0x000e28e0] |
| 110 | » Entry·Point·Token:·0x0600093e | 110 | » Entry·Point·Token:·0x0600093e |
| 111 | » ·····Resources·at:·0x00000000·[0x00000000] | 111 | » ·····Resources·at:·0x00000000·[0x00000000] |
| 112 | » ···Strong·Name·at:·0x00000000·[0x00000000] | 112 | » ···Strong·Name·at:·0x00000000·[0x00000000] |
| 113 | » ··Code·Manager·at:·0x00000000·[0x00000000] | 113 | » ··Code·Manager·at:·0x00000000·[0x00000000] |
| 114 | » ··VTableFixups·at:·0x00000000·[0x00000000] | 114 | » ··VTableFixups·at:·0x00000000·[0x00000000] |
| 115 | » ·····EAT·jumps·at:·0x00000000·[0x00000000] | 115 | » ·····EAT·jumps·at:·0x00000000·[0x00000000] |
| Offset 126, 37 lines modified | Offset 126, 37 lines modified | ||
| 126 | Metadata·pointers: | 126 | Metadata·pointers: |
| 127 | » Tables·(#~):·0x0000006c·-·0x0006f1c0·[454996·==·0x0006f154] | 127 | » Tables·(#~):·0x0000006c·-·0x0006f1c0·[454996·==·0x0006f154] |
| 128 | » ····Strings:·0x0006f1c0·-·0x00098a87·[170183·==·0x000298c7] | 128 | » ····Strings:·0x0006f1c0·-·0x00098a87·[170183·==·0x000298c7] |
| 129 | » ·······Blob:·0x000ce5b4·-·0x000e28e0·[82732·==·0x0001432c] | 129 | » ·······Blob:·0x000ce5b4·-·0x000e28e0·[82732·==·0x0001432c] |
| 130 | » User·string:·0x00098a88·-·0x000ce5a4·[219932·==·0x00035b1c] | 130 | » User·string:·0x00098a88·-·0x000ce5a4·[219932·==·0x00035b1c] |
| 131 | » ·······GUID:·0x000ce5a4·-·0x000ce5b4·[16·==·0x00000010] | 131 | » ·······GUID:·0x000ce5a4·-·0x000ce5b4·[16·==·0x00000010] |
| 132 | Rows: | 132 | Rows: |
| 133 | Table·Module:·1·records·(12·bytes,·at·d59 | 133 | Table·Module:·1·records·(12·bytes,·at·d5944) |
| 134 | Table·TypeRef:·239·records·(10·bytes,·at·d59 | 134 | Table·TypeRef:·239·records·(10·bytes,·at·d5950) |
| 135 | Table·TypeDef:·1096·records·(18·bytes,·at·d62 | 135 | Table·TypeDef:·1096·records·(18·bytes,·at·d62a6) |
| 136 | Table·Field:·4694·records·(10·bytes,·at·daf | 136 | Table·Field:·4694·records·(10·bytes,·at·dafb6) |
| 137 | Table·Method:·10700·records·(18·bytes,·at·e6 | 137 | Table·Method:·10700·records·(18·bytes,·at·e6712) |
| 138 | Table·Param:·10823·records·(8·bytes,·at·1157 | 138 | Table·Param:·10823·records·(8·bytes,·at·11576a) |
| 139 | Table·InterfaceImpl:·231·records·(4·bytes,·at·12a9 | 139 | Table·InterfaceImpl:·231·records·(4·bytes,·at·12a9a2) |
| 140 | Table·MemberRef:·2508·records·(12·bytes,·at·12ad | 140 | Table·MemberRef:·2508·records·(12·bytes,·at·12ad3e) |
| 141 | Table·Constant:·1342·records·(8·bytes,·at·1322 | 141 | Table·Constant:·1342·records·(8·bytes,·at·1322ce) |
| 142 | Table·CustomAttribute:·794·records·(12·bytes,·at·134c | 142 | Table·CustomAttribute:·794·records·(12·bytes,·at·134cbe) |
| 143 | Table·ClassLayout:·18·records·(8·bytes,·at·1371 | 143 | Table·ClassLayout:·18·records·(8·bytes,·at·1371f6) |
| 144 | Table·FieldLayoutt:·2·records·(6·bytes,·at·1372 | 144 | Table·FieldLayoutt:·2·records·(6·bytes,·at·137286) |
| 145 | Table·StandaloneSig:·1817·records·(4·bytes,·at·1372 | 145 | Table·StandaloneSig:·1817·records·(4·bytes,·at·137292) |
| 146 | Table·EventMap:·3·records·(4·bytes,·at·138e | 146 | Table·EventMap:·3·records·(4·bytes,·at·138ef6) |
| 147 | Table·Event:·5·records·(8·bytes,·at·138 | 147 | Table·Event:·5·records·(8·bytes,·at·138f02) |
| 148 | Table·PropertyMap:·507·records·(4·bytes,·at·138f | 148 | Table·PropertyMap:·507·records·(4·bytes,·at·138f2a) |
| 149 | Table·Property:·2358·records·(10·bytes,·at·1397 | 149 | Table·Property:·2358·records·(10·bytes,·at·139716) |
| 150 | Table·MethodSemantics:·2648·records·(6·bytes,·at·13f3 | 150 | Table·MethodSemantics:·2648·records·(6·bytes,·at·13f332) |
| 151 | Table·MethodImpl:·145·records·(6·bytes,·at·1431 | 151 | Table·MethodImpl:·145·records·(6·bytes,·at·143142) |
| 152 | Table·Moduleref:·2·records·(4·bytes,·at·1434 | 152 | Table·Moduleref:·2·records·(4·bytes,·at·1434a8) |
| 153 | Table·TypeSpec:·714·records·(4·bytes,·at·1434 | 153 | Table·TypeSpec:·714·records·(4·bytes,·at·1434b0) |
| 154 | Table·ImplMap:·2·records·(10·bytes,·at·143f | 154 | Table·ImplMap:·2·records·(10·bytes,·at·143fd8) |
| 155 | Table·FieldRVA:·25·records·(6·bytes,·at·143f | 155 | Table·FieldRVA:·25·records·(6·bytes,·at·143fec) |
| 156 | Table·Assembly:·1·records·(28·bytes,·at·1440 | 156 | Table·Assembly:·1·records·(28·bytes,·at·144082) |
| 157 | Table·AssemblyRef:·4·records·(28·bytes,·at·1440 | 157 | Table·AssemblyRef:·4·records·(28·bytes,·at·14409e) |
| 158 | Table·NestedClass:·266·records·(4·bytes,·at·144 | 158 | Table·NestedClass:·266·records·(4·bytes,·at·14410e) |
| 159 | Table·GenericParam:·38·records·(10·bytes,·at·1445 | 159 | Table·GenericParam:·38·records·(10·bytes,·at·144536) |
| 160 | Table·MethodSpec:·125·records·(6·bytes,·at·1446 | 160 | Table·MethodSpec:·125·records·(6·bytes,·at·1446b2) |
| 161 | Table·GenericParamConstraint:·26·records·(4·bytes,·at·1449 | 161 | Table·GenericParamConstraint:·26·records·(4·bytes,·at·1449a0) |
| 162 | RVA·for·Entry·Point:·0x0004b938 | 162 | RVA·for·Entry·Point:·0x0004b938 |
| Offset 1, 13 lines modified | Offset 1, 13 lines modified | ||
| 00000000:·14a6·7ffd·2326·e845·3200·0000·0000·0000··....#&.E2....... | 00000000:·14a6·7ffd·2326·e845·3200·0000·0000·0000··....#&.E2....... | ||
| 00000010:· | 00000010:·c0c0·dcb9·cdf9·6842·98e1·6548·6859·8a75··......hB..eHhY.u | ||
| 00000020:· | 00000020:·f40b·0a00·7000·0000·f01c·0800·9400·0000··....p........... | ||
| 00000030:· | 00000030:·5407·0a00·a004·0000·9500·0000·ac02·0a00··T............... | ||
| 00000040:·a804·0000·7128·0000· | 00000040:·a804·0000·7128·0000·601d·0800·4ce5·0100··....q(..`...L... | ||
| 00000050:·0000·0000·0000·0000· | 00000050:·0000·0000·0000·0000·f40b·0a00·0000·0000··................ | ||
| 00000060:·ffff·ffff·0800·0000·0900·0000·0000·0000··................ | 00000060:·ffff·ffff·0800·0000·0900·0000·0000·0000··................ | ||
| 00000070:·3d2f·6275·696c·642f·7265·7072·6f64·7563··=/build/reproduc | 00000070:·3d2f·6275·696c·642f·7265·7072·6f64·7563··=/build/reproduc | ||
| 00000080:·6962·6c65·2d70·6174·682f·6d6f·6e6f·2d36··ible-path/mono-6 | 00000080:·6962·6c65·2d70·6174·682f·6d6f·6e6f·2d36··ible-path/mono-6 | ||
| 00000090:·2e31·342e·312b·6473·322f·6d63·732f·6d63··.14.1+ds2/mcs/mc | 00000090:·2e31·342e·312b·6473·322f·6d63·732f·6d63··.14.1+ds2/mcs/mc | ||
| 000000a0:·732f·6373·2d70·6172·7365·722e·6373·60a6··s/cs-parser.cs`. | 000000a0:·732f·6373·2d70·6172·7365·722e·6373·60a6··s/cs-parser.cs`. | ||
| 000000b0:·6e40·cf64·824c·b6f0·42d4·8172·a799·263a··n@.d.L..B..r..&: | 000000b0:·6e40·cf64·824c·b6f0·42d4·8172·a799·263a··n@.d.L..B..r..&: | ||
| 000000c0:·e429·a126·72ea·ba9b·f695·1056·9aed·003e··.).&r......V...> | 000000c0:·e429·a126·72ea·ba9b·f695·1056·9aed·003e··.).&r......V...> | ||
| Offset 369, 636 lines modified | Offset 369, 636 lines modified | ||
| 00001700:·11b8·5507·38c8·3b51·7fc9·1a29·df0b·c700··..U.8.;Q...).... | 00001700:·11b8·5507·38c8·3b51·7fc9·1a29·df0b·c700··..U.8.;Q...).... | ||
| 00001710:·432f·6275·696c·642f·7265·7072·6f64·7563··C/build/reproduc | 00001710:·432f·6275·696c·642f·7265·7072·6f64·7563··C/build/reproduc | ||
| 00001720:·6962·6c65·2d70·6174·682f·6d6f·6e6f·2d36··ible-path/mono-6 | 00001720:·6962·6c65·2d70·6174·682f·6d6f·6e6f·2d36··ible-path/mono-6 | ||
| 00001730:·2e31·342e·312b·6473·322f·6d63·732f·746f··.14.1+ds2/mcs/to | 00001730:·2e31·342e·312b·6473·322f·6d63·732f·746f··.14.1+ds2/mcs/to | ||
| 00001740:·6f6c·732f·6d6f·6e6f·702f·6f75·746c·696e··ols/monop/outlin | 00001740:·6f6c·732f·6d6f·6e6f·702f·6f75·746c·696e··ols/monop/outlin | ||
| 00001750:·652e·6373·60a6·6e40·cf64·824c·b6f0·42d4··e.cs`.n@.d.L..B. | 00001750:·652e·6373·60a6·6e40·cf64·824c·b6f0·42d4··e.cs`.n@.d.L..B. | ||
| 00001760:·8172·a799·4659·f2cc·88fa·96c4·80d6·4523··.r..FY........E# | 00001760:·8172·a799·4659·f2cc·88fa·96c4·80d6·4523··.r..FY........E# | ||
| 00001770:·035e·6bd6·00 | 00001770:·035e·6bd6·0059·2f62·7569·6c64·2f72·6570··.^k..Y/build/rep | ||
| 00001780:·726f·6475·6369·626c·652d·7061·7468·2f6d··roducible-path/m | 00001780:·726f·6475·6369·626c·652d·7061·7468·2f6d··roducible-path/m | ||
| 00001790:·6f6e·6f2d·362e·3134·2e31·2b64·7332·2f65··ono-6.14.1+ds2/e | 00001790:·6f6e·6f2d·362e·3134·2e31·2b64·7332·2f65··ono-6.14.1+ds2/e | ||
| 000017a0:·7874·6572·6e61·6c2f·696b·766d·2f72·6566··xternal/ikvm/ref | 000017a0:·7874·6572·6e61·6c2f·696b·766d·2f72·6566··xternal/ikvm/ref | ||
| 000017b0:·6c65·6374·2f41·6d62·6967·756f·7573·4d61··lect/AmbiguousMa | |||
| 000017c0:·7463·6845·7863·6570·7469·6f6e·2e63·7360··tchException.cs` | |||
| 000017b0:·6c65·6374·2f41·7373·656d·626c·794e·616d··lect/AssemblyNam | |||
| 000017c0:·652e·6373·60a6·6e40·cf64·824c·b6f0·42d4··e.cs`.n@.d.L..B. | |||
| 000017d0:·8172·a799·88d8·2a12·0f7a·bfcf·ec1c·ca71··.r....*..z.....q | |||
| 000017e0:·4315·6062·004c·2f62·7569·6c64·2f72·6570··C.`b.L/build/rep | |||
| 000017f0:·726f·6475·6369·626c·652d·7061·7468·2f6d··roducible-path/m | |||
| 00001800:·6f6e·6f2d·362e·3134·2e31·2b64·7332·2f65··ono-6.14.1+ds2/e | |||
| 00001810:·7874·6572·6e61·6c2f·696b·766d·2f72·6566··xternal/ikvm/ref | |||
| 00001820:·6c65·6374·2f50·726f·6a65·6374·696f·6e2e··lect/Projection. | |||
| 00001830:·6373·60a6·6e40·cf64·824c·b6f0·42d4·8172··cs`.n@.d.L..B..r | |||
| 00001840:·a799·2cd3·446a·2e8d·4c73·06ac·5923·088d··..,.Dj..Ls..Y#.. | |||
| 00001850:·a6ec·004e·2f62·7569·6c64·2f72·6570·726f··...N/build/repro | |||
| 00001860:·6475·6369·626c·652d·7061·7468·2f6d·6f6e··ducible-path/mon | |||
| 00001870:·6f2d·362e·3134·2e31·2b64·7332·2f65·7874··o-6.14.1+ds2/ext | |||
| 00001880:·6572·6e61·6c2f·696b·766d·2f72·6566·6c65··ernal/ikvm/refle | |||
| 00001890:·6374·2f50·726f·7065·7274·7949·6e66·6f2e··ct/PropertyInfo. | |||
| 000018a0:·6373·60a6·6e40·cf64·824c·b6f0·42d4·8172··cs`.n@.d.L..B..r | |||
| 000018b0:·a799·735d·cecf·778f·2100·0a01·75ce·96b6··..s]..w.!...u... | |||
| 000018c0:·7a8b·0053·2f62·7569·6c64·2f72·6570·726f··z..S/build/repro | |||
| 000018d0:·6475·6369·626c·652d·7061·7468·2f6d·6f6e··ducible-path/mon | |||
| 000018e0:·6f2d·362e·3134·2e31·2b64·7332·2f65·7874··o-6.14.1+ds2/ext | |||
| 000018f0:·6572·6e61·6c2f·696b·766d·2f72·6566·6c65··ernal/ikvm/refle | |||
| 00001900:·6374·2f50·6172·616d·6574·6572·4d6f·6469··ct/ParameterModi | |||
| 00001910:·6669·6572·2e63·7360·a66e·40cf·6482·4cb6··fier.cs`.n@.d.L. | |||
| 00001920:·f042·d481·72a7·99a9·deb8·3cb0·8423·78b0··.B..r.....<..#x. | |||
| 00001930:·f528·ea2f·d7d2·1300·472f·6275·696c·642f··.(./....G/build/ | |||
| 00001940:·7265·7072·6f64·7563·6962·6c65·2d70·6174··reproducible-pat | |||
| 00001950:·682f·6d6f·6e6f·2d36·2e31·342e·312b·6473··h/mono-6.14.1+ds | |||
| 00001960:·322f·6578·7465·726e·616c·2f69·6b76·6d2f··2/external/ikvm/ | |||
| 00001970:·7265·666c·6563·742f·456e·756d·732e·6373··reflect/Enums.cs | |||
| 00001980:·60a6·6e40·cf64·824c·b6f0·42d4·8172·a799··`.n@.d.L..B..r.. | |||
| 00001990:·bd44·46cf·b444·38e1·f603·2ba2·f9c9·bc9f··.DF..D8...+..... | |||
| 000019a0:·0056·2f62·7569·6c64·2f72·6570·726f·6475··.V/build/reprodu | |||
| 000019b0:·6369·626c·652d·7061·7468·2f6d·6f6e·6f2d··cible-path/mono- | |||
| 000019c0:·362e·3134·2e31·2b64·7332·2f65·7874·6572··6.14.1+ds2/exter | |||
| 000019d0:·6e61·6c2f·696b·766d·2f72·6566·6c65·6374··nal/ikvm/reflect | |||
| 000019e0:·2f4d·616e·6966·6573·7452·6573·6f75·7263··/ManifestResourc | |||
| 000019f0:·6549·6e66·6f2e·6373·60a6·6e40·cf64·824c··eInfo.cs`.n@.d.L | |||
| 00001a00:·b6f0·42d4·8172·a799·482c·c469·b04f·a60f··..B..r..H,.i.O.. | |||
| 00001a10:·c647·4ddf·ffbd·d6ae·0046·2f62·7569·6c64··.GM......F/build | |||
| 00001a20:·2f72·6570·726f·6475·6369·626c·652d·7061··/reproducible-pa | |||
| 00001a30:·7468·2f6d·6f6e·6f2d·362e·3134·2e31·2b64··th/mono-6.14.1+d | |||
| 00001a40:·7332·2f65·7874·6572·6e61·6c2f·696b·766d··s2/external/ikvm | |||
| 00001a50:·2f72·6566·6c65·6374·2f54·7970·652e·6373··/reflect/Type.cs | |||
| 00001a60:·60a6·6e40·cf64·824c·b6f0·42d4·8172·a799··`.n@.d.L..B..r.. | |||
| 00001a70:·c81f·e4f7·33e7·7d83·7421·00c3·51f7·ed7d··....3.}.t!..Q..} | |||
| 00001a80:·004c·2f62·7569·6c64·2f72·6570·726f·6475··.L/build/reprodu | |||
| 00001a90:·6369·626c·652d·7061·7468·2f6d·6f6e·6f2d··cible-path/mono- | |||
| 00001aa0:·362e·3134·2e31·2b64·7332·2f65·7874·6572··6.14.1+ds2/exter | |||
| 00001ab0:·6e61·6c2f·696b·766d·2f72·6566·6c65·6374··nal/ikvm/reflect | |||
| 00001ac0:·2f4d·6574·686f·6442·6f64·792e·6373·60a6··/MethodBody.cs`. | |||
| 00001 | 000017d0:·a66e·40cf·6482·4cb6·f042·d481·72a7·99b4··.n@.d.L..B..r... | ||
| 000017e0:·c82d·ba68·55a9·d16a·1f15·883a·874e·c100··.-.hU..j...:.N.. | |||
| 000017f0:·482f·6275·696c·642f·7265·7072·6f64·7563··H/build/reproduc | |||
| 00001800:·6962·6c65·2d70·6174·682f·6d6f·6e6f·2d36··ible-path/mono-6 | |||
| 00001810:·2e31·342e·312b·6473·322f·6578·7465·726e··.14.1+ds2/extern | |||
| 00001820:·616c·2f69·6b76·6d2f·7265·666c·6563·742f··al/ikvm/reflect/ | |||
| 00001ae0:·b524·d464·7c96·42fa·1f2f·24bf·52a7·0059··.$.d|.B../$.R..Y | |||
| 00001af0:·2f62·7569·6c64·2f72·6570·726f·6475·6369··/build/reproduci | |||
| 00001b00:·626c·652d·7061·7468·2f6d·6f6e·6f2d·362e··ble-path/mono-6. | |||
| 00001b10:·3134·2e31·2b64·7332·2f65·7874·6572·6e61··14.1+ds2/externa | |||
| 00001b20:·6c2f·696b·766d·2f72·6566·6c65·6374·2f41··l/ikvm/reflect/A | |||
| 00001b30:·6d62·6967·756f·7573·4d61·7463·6845·7863··mbiguousMatchExc | |||
| 00001 | 00001830:·4675·7369·6f6e·2e63·7360·a66e·40cf·6482··Fusion.cs`.n@.d. | ||
| 00001 | 00001840:·4cb6·f042·d481·72a7·9989·d94d·5101·459f··L..B..r....MQ.E. | ||
| 00001 | 00001850:·a94d·e8ab·bb1c·0208·6000·5e2f·6275·696c··.M......`.^/buil | ||
| 00001 | 00001860:·642f·7265·7072·6f64·7563·6962·6c65·2d70··d/reproducible-p | ||
| 00001 | 00001870:·6174·682f·6d6f·6e6f·2d36·2e31·342e·312b··ath/mono-6.14.1+ | ||
| 00001880:·6473·322f·6578·7465·726e·616c·2f69·6b76··ds2/external/ikv | |||
| 00001890:·6d2f·7265·666c·6563·742f·4375·7374·6f6d··m/reflect/Custom | |||
| 000018a0:·4174·7472·6962·7574·6554·7970·6564·4172··AttributeTypedAr | |||
| 000018b0:·6775·6d65·6e74·2e63·7360·a66e·40cf·6482··gument.cs`.n@.d. | |||
| 000018c0:·4cb6·f042·d481·72a7·9977·16b0·05cb·7808··L..B..r..w....x. | |||
| 000018d0:·d782·06ee·f76c·a916·7f00·592f·6275·696c··.....l....Y/buil | |||
| 000018e0:·642f·7265·7072·6f64·7563·6962·6c65·2d70··d/reproducible-p | |||
| 000018f0:·6174·682f·6d6f·6e6f·2d36·2e31·342e·312b··ath/mono-6.14.1+ | |||
| 00001 | 00001900:·6473·322f·6578·7465·726e·616c·2f69·6b76··ds2/external/ikv | ||
| 00001910:·6d2f·7265·666c·6563·742f·4261·6449·6d61··m/reflect/BadIma | |||
| 00001920:·6765·466f·726d·6174·4578·6365·7074·696f··geFormatExceptio | |||
| 00001ba0:·6d2f·7265·666c·6563·742f·4d69·7373·696e··m/reflect/Missin | |||
| 00001bb0:·672e·6373·60a6·6e40·cf64·824c·b6f0·42d4··g.cs`.n@.d.L..B. | |||
| 00001bc0:·8172·a799·5caa·d392·ba92·e7b4·6a21·5f6c··.r..\.......j!_l | |||
| 00001bd0:·2fb6·0ab7·0051·2f62·7569·6c64·2f72·6570··/....Q/build/rep | |||
| 00001be0:·726f·6475·6369·626c·652d·7061·7468·2f6d··roducible-path/m | |||
| 00001bf0:·6f6e·6f2d·362e·3134·2e31·2b64·7332·2f65··ono-6.14.1+ds2/e | |||
| 00001c00:·7874·6572·6e61·6c2f·696b·766d·2f72·6566··xternal/ikvm/ref | |||
| 00001c10:·6c65·6374·2f4d·6574·686f·6453·6967·6e61··lect/MethodSigna | |||
| 00001c20:·7475·7265·2e63·7360·a66e·40cf·6482·4cb6··ture.cs`.n@.d.L. | |||
| 00001c30:·f042·d481·72a7·9971·ab19·f7c2·a98a·8e5c··.B..r..q.......\ | |||
| 00001c40:·b529·2e52·2f3b·ce00·462f·6275·696c·642f··.).R/;..F/build/ | |||
| 00001c50:·7265·7072·6f64·7563·6962·6c65·2d70·6174··reproducible-pat | |||
| 00001c60:·682f·6d6f·6e6f·2d36·2e31·342e·312b·6473··h/mono-6.14.1+ds | |||
| 00001c70:·322f·6578·7465·726e·616c·2f69·6b76·6d2f··2/external/ikvm/ | |||
| 00001c80:·7265·666c·6563·742f·5574·696c·2e63·7360··reflect/Util.cs` | |||
| 00001c90:·a66e·40cf·6482·4cb6·f042·d481·72a7·9974··.n@.d.L..B..r..t | |||
| 00001ca0:·fa0c·4021·780d·8ad9·7073·9e98·5049·0800··..@!x...ps..PI.. | |||
| 00001cb0:·532f·6275·696c·642f·7265·7072·6f64·7563··S/build/reproduc | |||
| 00001cc0:·6962·6c65·2d70·6174·682f·6d6f·6e6f·2d36··ible-path/mono-6 | |||
| 00001cd0:·2e31·342e·312b·6473·322f·6578·7465·726e··.14.1+ds2/extern | |||
| 00001ce0:·616c·2f69·6b76·6d2f·7265·666c·6563·742f··al/ikvm/reflect/ | |||
| 00001cf0:·5374·726f·6e67·4e61·6d65·4b65·7950·6169··StrongNameKeyPai | |||
| Max diff block lines reached; 2407349/2448032 bytes (98.34%) of diff not shown. | |||
| Offset 11, 15 lines modified | Offset 11, 15 lines modified | ||
| 11 | PE·Header: | 11 | PE·Header: |
| 12 | » ·········Magic·(0x010b):·0x010b | 12 | » ·········Magic·(0x010b):·0x010b |
| 13 | » ·············LMajor·(6):·0x08 | 13 | » ·············LMajor·(6):·0x08 |
| 14 | » ·············LMinor·(0):·0x00 | 14 | » ·············LMinor·(0):·0x00 |
| 15 | » ··············Code·Size:·0x0007f800 | 15 | » ··············Code·Size:·0x0007f800 |
| 16 | » ··Initialized·Data·Size:·0x00000800 | 16 | » ··Initialized·Data·Size:·0x00000800 |
| 17 | » Uninitialized·Data·Size:·0x00000000 | 17 | » Uninitialized·Data·Size:·0x00000000 |
| 18 | » ········Entry·Point·RVA:·0x000816 | 18 | » ········Entry·Point·RVA:·0x0008166e |
| 19 | » ·» ··Code·Base·RVA:·0x00002000 | 19 | » ·» ··Code·Base·RVA:·0x00002000 |
| 20 | » » ··Data·Base·RVA:·0x00082000 | 20 | » » ··Data·Base·RVA:·0x00082000 |
| 21 | NT·Header: | 21 | NT·Header: |
| 22 | » ···Image·Base·(0x400000):·0x00400000 | 22 | » ···Image·Base·(0x400000):·0x00400000 |
| 23 | » Section·Alignment·(8192):·0x00002000 | 23 | » Section·Alignment·(8192):·0x00002000 |
| Offset 41, 15 lines modified | Offset 41, 15 lines modified | ||
| 41 | » ··Heap·Reserve·Size·(1M):·0x00100000 | 41 | » ··Heap·Reserve·Size·(1M):·0x00100000 |
| 42 | » ·Heap·Commit·Size·(4096):·0x00001000 | 42 | » ·Heap·Commit·Size·(4096):·0x00001000 |
| 43 | » ······Loader·flags·(0x1):·0x00000000 | 43 | » ······Loader·flags·(0x1):·0x00000000 |
| 44 | » ···Data·Directories·(16):·0x00000010 | 44 | » ···Data·Directories·(16):·0x00000010 |
| 45 | Data·directories: | 45 | Data·directories: |
| 46 | » ·····Export·Table:·0x00000000·[0x00000000] | 46 | » ·····Export·Table:·0x00000000·[0x00000000] |
| 47 | » ·····Import·Table:·0x000816 | 47 | » ·····Import·Table:·0x00081620·[0x0000004b] |
| 48 | » ···Resource·Table:·0x00084000·[0x000002e8] | 48 | » ···Resource·Table:·0x00084000·[0x000002e8] |
| 49 | » ··Exception·Table:·0x00000000·[0x00000000] | 49 | » ··Exception·Table:·0x00000000·[0x00000000] |
| 50 | » Certificate·Table:·0x00000000·[0x00000000] | 50 | » Certificate·Table:·0x00000000·[0x00000000] |
| 51 | » ······Reloc·Table:·0x00086000·[0x0000000c] | 51 | » ······Reloc·Table:·0x00086000·[0x0000000c] |
| 52 | » ············Debug:·0x00000000·[0x00000000] | 52 | » ············Debug:·0x00000000·[0x00000000] |
| 53 | » ········Copyright:·0x00000000·[0x00000000] | 53 | » ········Copyright:·0x00000000·[0x00000000] |
| 54 | » ·······Global·Ptr:·0x00000000·[0x00000000] | 54 | » ·······Global·Ptr:·0x00000000·[0x00000000] |
| Offset 57, 26 lines modified | Offset 57, 26 lines modified | ||
| 57 | » Load·Config·Table:·0x00000000·[0x00000000] | 57 | » Load·Config·Table:·0x00000000·[0x00000000] |
| 58 | » ·····Bound·Import:·0x00000000·[0x00000000] | 58 | » ·····Bound·Import:·0x00000000·[0x00000000] |
| 59 | » ··············IAT:·0x00002000·[0x00000008] | 59 | » ··············IAT:·0x00002000·[0x00000008] |
| 60 | » Delay·Import·Desc:·0x00000000·[0x00000000] | 60 | » Delay·Import·Desc:·0x00000000·[0x00000000] |
| 61 | » ·······CLI·Header:·0x00002008·[0x00000048] | 61 | » ·······CLI·Header:·0x00002008·[0x00000048] |
| 62 | » Name:·.text | 62 | » Name:·.text |
| 63 | » ···Virtual·Size:·0x0007f6 | 63 | » ···Virtual·Size:·0x0007f674 |
| 64 | » Virtual·Address:·0x00002000 | 64 | » Virtual·Address:·0x00002000 |
| 65 | » ··Raw·Data·Size:·0x0007f800 | 65 | » ··Raw·Data·Size:·0x0007f800 |
| 66 | » ···Raw·Data·Ptr:·0x00000400 | 66 | » ···Raw·Data·Ptr:·0x00000400 |
| 67 | » ······Reloc·Ptr:·0x00000000 | 67 | » ······Reloc·Ptr:·0x00000000 |
| 68 | » ·····LineNo·Ptr:·0x00000000 | 68 | » ·····LineNo·Ptr:·0x00000000 |
| 69 | » ····Reloc·Count:·0x0000 | 69 | » ····Reloc·Count:·0x0000 |
| 70 | » ·····Line·Count:·0x0000 | 70 | » ·····Line·Count:·0x0000 |
| 71 | » Flags:·code,·exec,·read,· | 71 | » Flags:·code,·exec,·read,· |
| 72 | » Name:·.sdata | 72 | » Name:·.sdata |
| 73 | » ···Virtual·Size:·0x000001d | 73 | » ···Virtual·Size:·0x000001d4 |
| 74 | » Virtual·Address:·0x00082000 | 74 | » Virtual·Address:·0x00082000 |
| 75 | » ··Raw·Data·Size:·0x00000200 | 75 | » ··Raw·Data·Size:·0x00000200 |
| 76 | » ···Raw·Data·Ptr:·0x0007fc00 | 76 | » ···Raw·Data·Ptr:·0x0007fc00 |
| 77 | » ······Reloc·Ptr:·0x00000000 | 77 | » ······Reloc·Ptr:·0x00000000 |
| 78 | » ·····LineNo·Ptr:·0x00000000 | 78 | » ·····LineNo·Ptr:·0x00000000 |
| 79 | » ····Reloc·Count:·0x0000 | 79 | » ····Reloc·Count:·0x0000 |
| 80 | » ·····Line·Count:·0x0000 | 80 | » ·····Line·Count:·0x0000 |
| Offset 103, 17 lines modified | Offset 103, 17 lines modified | ||
| 103 | » ····Reloc·Count:·0x0000 | 103 | » ····Reloc·Count:·0x0000 |
| 104 | » ·····Line·Count:·0x0000 | 104 | » ·····Line·Count:·0x0000 |
| 105 | » Flags:·data,·discard,·read,· | 105 | » Flags:·data,·discard,·read,· |
| 106 | ··········CLI·header·size:·72 | 106 | ··········CLI·header·size:·72 |
| 107 | ·········Runtime·required:·2.5 | 107 | ·········Runtime·required:·2.5 |
| 108 | ····················Flags:·ilonly,·32/64,·no-trackdebug,·notsigned | 108 | ····················Flags:·ilonly,·32/64,·no-trackdebug,·notsigned |
| 109 | » ·········Metadata:·0x0003b | 109 | » ·········Metadata:·0x0003b908·[0x00045d10] |
| 110 | » Entry·Point·Token:·0x06000002 | 110 | » Entry·Point·Token:·0x06000002 |
| 111 | » ·····Resources·at:·0x00039a | 111 | » ·····Resources·at:·0x00039a94·[0x00001e71] |
| 112 | » ···Strong·Name·at:·0x00000000·[0x00000000] | 112 | » ···Strong·Name·at:·0x00000000·[0x00000000] |
| 113 | » ··Code·Manager·at:·0x00000000·[0x00000000] | 113 | » ··Code·Manager·at:·0x00000000·[0x00000000] |
| 114 | » ··VTableFixups·at:·0x00000000·[0x00000000] | 114 | » ··VTableFixups·at:·0x00000000·[0x00000000] |
| 115 | » ·····EAT·jumps·at:·0x00000000·[0x00000000] | 115 | » ·····EAT·jumps·at:·0x00000000·[0x00000000] |
| 116 | Strong·name:·none | 116 | Strong·name:·none |
| Offset 126, 38 lines modified | Offset 126, 38 lines modified | ||
| 126 | Metadata·pointers: | 126 | Metadata·pointers: |
| 127 | » Tables·(#~):·0x0000006c·-·0x000233f8·[144268·==·0x0002338c] | 127 | » Tables·(#~):·0x0000006c·-·0x000233f8·[144268·==·0x0002338c] |
| 128 | » ····Strings:·0x000233f8·-·0x0003461b·[70179·==·0x00011223] | 128 | » ····Strings:·0x000233f8·-·0x0003461b·[70179·==·0x00011223] |
| 129 | » ·······Blob:·0x0003f4b0·-·0x00045d10·[26720·==·0x00006860] | 129 | » ·······Blob:·0x0003f4b0·-·0x00045d10·[26720·==·0x00006860] |
| 130 | » User·string:·0x0003461c·-·0x0003f4a0·[44676·==·0x0000ae84] | 130 | » User·string:·0x0003461c·-·0x0003f4a0·[44676·==·0x0000ae84] |
| 131 | » ·······GUID:·0x0003f4a0·-·0x0003f4b0·[16·==·0x00000010] | 131 | » ·······GUID:·0x0003f4a0·-·0x0003f4b0·[16·==·0x00000010] |
| 132 | Rows: | 132 | Rows: |
| 133 | Table·Module:·1·records·(12·bytes,·at·39 | 133 | Table·Module:·1·records·(12·bytes,·at·39e04) |
| 134 | Table·TypeRef:·190·records·(10·bytes,·at·39 | 134 | Table·TypeRef:·190·records·(10·bytes,·at·39e10) |
| 135 | Table·TypeDef:·381·records·(18·bytes,·at·3a5 | 135 | Table·TypeDef:·381·records·(18·bytes,·at·3a57c) |
| 136 | Table·Field:·1940·records·(8·bytes,·at·3c0 | 136 | Table·Field:·1940·records·(8·bytes,·at·3c046) |
| 137 | Table·Method:·3699·records·(16·bytes,·at·3fc | 137 | Table·Method:·3699·records·(16·bytes,·at·3fce6) |
| 138 | Table·Param:·3459·records·(8·bytes,·at·4e4 | 138 | Table·Param:·3459·records·(8·bytes,·at·4e416) |
| 139 | Table·InterfaceImpl:·52·records·(4·bytes,·at·550 | 139 | Table·InterfaceImpl:·52·records·(4·bytes,·at·5502e) |
| 140 | Table·MemberRef:·1187·records·(8·bytes,·at·550 | 140 | Table·MemberRef:·1187·records·(8·bytes,·at·550fe) |
| 141 | Table·Constant:·497·records·(6·bytes,·at·576 | 141 | Table·Constant:·497·records·(6·bytes,·at·57616) |
| 142 | Table·CustomAttribute:·153·records·(8·bytes,·at·581 | 142 | Table·CustomAttribute:·153·records·(8·bytes,·at·581bc) |
| 143 | Table·ClassLayout:·10·records·(8·bytes,·at·586 | 143 | Table·ClassLayout:·10·records·(8·bytes,·at·58684) |
| 144 | Table·FieldLayoutt:·2·records·(6·bytes,·at·586 | 144 | Table·FieldLayoutt:·2·records·(6·bytes,·at·586d4) |
| 145 | Table·StandaloneSig:·544·records·(2·bytes,·at·586 | 145 | Table·StandaloneSig:·544·records·(2·bytes,·at·586e0) |
| 146 | Table·EventMap:·2·records·(4·bytes,·at·58b | 146 | Table·EventMap:·2·records·(4·bytes,·at·58b20) |
| 147 | Table·Event:·4·records·(8·bytes,·at·58b | 147 | Table·Event:·4·records·(8·bytes,·at·58b28) |
| 148 | Table·PropertyMap:·152·records·(4·bytes,·at·58b | 148 | Table·PropertyMap:·152·records·(4·bytes,·at·58b48) |
| 149 | Table·Property:·1048·records·(8·bytes,·at·58d | 149 | Table·Property:·1048·records·(8·bytes,·at·58da8) |
| 150 | Table·MethodSemantics:·1092·records·(6·bytes,·at·5ae | 150 | Table·MethodSemantics:·1092·records·(6·bytes,·at·5ae68) |
| 151 | Table·MethodImpl:·53·records·(6·bytes,·at·5c | 151 | Table·MethodImpl:·53·records·(6·bytes,·at·5c800) |
| 152 | Table·Moduleref:·2·records·(4·bytes,·at·5c9 | 152 | Table·Moduleref:·2·records·(4·bytes,·at·5c93e) |
| 153 | Table·TypeSpec:·355·records·(2·bytes,·at·5c9 | 153 | Table·TypeSpec:·355·records·(2·bytes,·at·5c946) |
| 154 | Table·ImplMap:·3·records·(10·bytes,·at·5c | 154 | Table·ImplMap:·3·records·(10·bytes,·at·5cc0c) |
| 155 | Table·FieldRVA:·9·records·(6·bytes,·at·5cc | 155 | Table·FieldRVA:·9·records·(6·bytes,·at·5cc2a) |
| 156 | Table·Assembly:·1·records·(26·bytes,·at·5cc | 156 | Table·Assembly:·1·records·(26·bytes,·at·5cc60) |
| 157 | Table·AssemblyRef:·4·records·(24·bytes,·at·5cc | 157 | Table·AssemblyRef:·4·records·(24·bytes,·at·5cc7a) |
| 158 | Table·ManifestResource:·5·records·(14·bytes,·at·5cc | 158 | Table·ManifestResource:·5·records·(14·bytes,·at·5ccda) |
| 159 | Table·NestedClass:·121·records·(4·bytes,·at·5cd | 159 | Table·NestedClass:·121·records·(4·bytes,·at·5cd20) |
| 160 | Table·GenericParam:·21·records·(10·bytes,·at·5c | 160 | Table·GenericParam:·21·records·(10·bytes,·at·5cf04) |
| 161 | Table·MethodSpec:·61·records·(4·bytes,·at·5cf | 161 | Table·MethodSpec:·61·records·(4·bytes,·at·5cfd6) |
| 162 | Table·GenericParamConstraint:·13·records·(4·bytes,·at·5d0 | 162 | Table·GenericParamConstraint:·13·records·(4·bytes,·at·5d0ca) |
| 163 | RVA·for·Entry·Point:·0x00002058 | 163 | RVA·for·Entry·Point:·0x00002058 |
| Offset 1, 642 lines modified | Offset 1, 642 lines modified | ||
| 00000000:·14a6·7ffd·2326·e845·3200·0000·0000·0000··....#&.E2....... | 00000000:·14a6·7ffd·2326·e845·3200·0000·0000·0000··....#&.E2....... | ||
| 00000010:· | 00000010:·5109·83f2·8556·8f4c·86a6·f777·045e·18d2··Q....V.L...w.^.. | ||
| 00000020:·643e·0300·7000·0000·8c92·0200·5900·0000··d>..p.......Y... | 00000020:·643e·0300·7000·0000·8c92·0200·5900·0000··d>..p.......Y... | ||
| 00000030:·9c3b·0300·c802·0000·5900·0000·d438·0300··.;......Y....8.. | 00000030:·9c3b·0300·c802·0000·5900·0000·d438·0300··.;......Y....8.. | ||
| 00000040:·c802·0000·d20d·0000·fc92·0200·d8a5·0000··................ | 00000040:·c802·0000·d20d·0000·fc92·0200·d8a5·0000··................ | ||
| 00000050:·0000·0000·0000·0000·643e·0300·0000·0000··........d>...... | 00000050:·0000·0000·0000·0000·643e·0300·0000·0000··........d>...... | ||
| 00000060:·ffff·ffff·0800·0000·0900·0000·0000·0000··................ | 00000060:·ffff·ffff·0800·0000·0900·0000·0000·0000··................ | ||
| 00000070:·472f·6275·696c·642f·7265·7072·6f64·7563··G/build/reproduc | 00000070:·472f·6275·696c·642f·7265·7072·6f64·7563··G/build/reproduc | ||
| 00000080:·6962·6c65·2d70·6174·682f·6d6f·6e6f·2d36··ible-path/mono-6 | 00000080:·6962·6c65·2d70·6174·682f·6d6f·6e6f·2d36··ible-path/mono-6 | ||
| 00000090:·2e31·342e·312b·6473·322f·6d63·732f·746f··.14.1+ds2/mcs/to | 00000090:·2e31·342e·312b·6473·322f·6d63·732f·746f··.14.1+ds2/mcs/to | ||
| 000000a0:·6f6c·732f·6d6b·6275·6e64·6c65·2f6d·6b62··ols/mkbundle/mkb | 000000a0:·6f6c·732f·6d6b·6275·6e64·6c65·2f6d·6b62··ols/mkbundle/mkb | ||
| 000000b0:·756e·646c·652e·6373·60a6·6e40·cf64·824c··undle.cs`.n@.d.L | 000000b0:·756e·646c·652e·6373·60a6·6e40·cf64·824c··undle.cs`.n@.d.L | ||
| 000000c0:·b6f0·42d4·8172·a799·3d69·a229·21c7·d756··..B..r..=i.)!..V | 000000c0:·b6f0·42d4·8172·a799·3d69·a229·21c7·d756··..B..r..=i.)!..V | ||
| 000000d0:·4adf·94e3·7613·da43·00 | 000000d0:·4adf·94e3·7613·da43·0059·2f62·7569·6c64··J...v..C.Y/build | ||
| 000000e0:·2f72·6570·726f·6475·6369·626c·652d·7061··/reproducible-pa | 000000e0:·2f72·6570·726f·6475·6369·626c·652d·7061··/reproducible-pa | ||
| 000000f0:·7468·2f6d·6f6e·6f2d·362e·3134·2e31·2b64··th/mono-6.14.1+d | 000000f0:·7468·2f6d·6f6e·6f2d·362e·3134·2e31·2b64··th/mono-6.14.1+d | ||
| 00000100:·7332·2f65·7874·6572·6e61·6c2f·696b·766d··s2/external/ikvm | 00000100:·7332·2f65·7874·6572·6e61·6c2f·696b·766d··s2/external/ikvm | ||
| 00000110:·2f72·6566·6c65·6374·2f41· | 00000110:·2f72·6566·6c65·6374·2f41·6d62·6967·756f··/reflect/Ambiguo | ||
| 00000120:·7573·4d61·7463·6845·7863·6570·7469·6f6e··usMatchException | |||
| 00000120:·794e·616d·652e·6373·60a6·6e40·cf64·824c··yName.cs`.n@.d.L | |||
| 00000130:·b6f0·42d4·8172·a799·88d8·2a12·0f7a·bfcf··..B..r....*..z.. | |||
| 00000140:·ec1c·ca71·4315·6062·004c·2f62·7569·6c64··...qC.`b.L/build | |||
| 00000150:·2f72·6570·726f·6475·6369·626c·652d·7061··/reproducible-pa | |||
| 00000160:·7468·2f6d·6f6e·6f2d·362e·3134·2e31·2b64··th/mono-6.14.1+d | |||
| 00000170:·7332·2f65·7874·6572·6e61·6c2f·696b·766d··s2/external/ikvm | |||
| 00000180:·2f72·6566·6c65·6374·2f50·726f·6a65·6374··/reflect/Project | |||
| 00000190:·696f·6e2e·6373·60a6·6e40·cf64·824c·b6f0··ion.cs`.n@.d.L.. | |||
| 000001a0:·42d4·8172·a799·2cd3·446a·2e8d·4c73·06ac··B..r..,.Dj..Ls.. | |||
| 000001b0:·5923·088d·a6ec·004e·2f62·7569·6c64·2f72··Y#.....N/build/r | |||
| 000001c0:·6570·726f·6475·6369·626c·652d·7061·7468··eproducible-path | |||
| 000001d0:·2f6d·6f6e·6f2d·362e·3134·2e31·2b64·7332··/mono-6.14.1+ds2 | |||
| 000001e0:·2f65·7874·6572·6e61·6c2f·696b·766d·2f72··/external/ikvm/r | |||
| 000001f0:·6566·6c65·6374·2f50·726f·7065·7274·7949··eflect/PropertyI | |||
| 00000200:·6e66·6f2e·6373·60a6·6e40·cf64·824c·b6f0··nfo.cs`.n@.d.L.. | |||
| 00000210:·42d4·8172·a799·735d·cecf·778f·2100·0a01··B..r..s]..w.!... | |||
| 00000220:·75ce·96b6·7a8b·0053·2f62·7569·6c64·2f72··u...z..S/build/r | |||
| 00000230:·6570·726f·6475·6369·626c·652d·7061·7468··eproducible-path | |||
| 00000240:·2f6d·6f6e·6f2d·362e·3134·2e31·2b64·7332··/mono-6.14.1+ds2 | |||
| 00000250:·2f65·7874·6572·6e61·6c2f·696b·766d·2f72··/external/ikvm/r | |||
| 00000260:·6566·6c65·6374·2f50·6172·616d·6574·6572··eflect/Parameter | |||
| 00000270:·4d6f·6469·6669·6572·2e63·7360·a66e·40cf··Modifier.cs`.n@. | |||
| 00000280:·6482·4cb6·f042·d481·72a7·99a9·deb8·3cb0··d.L..B..r.....<. | |||
| 00000290:·8423·78b0·f528·ea2f·d7d2·1300·472f·6275··.#x..(./....G/bu | |||
| 000002a0:·696c·642f·7265·7072·6f64·7563·6962·6c65··ild/reproducible | |||
| 000002b0:·2d70·6174·682f·6d6f·6e6f·2d36·2e31·342e··-path/mono-6.14. | |||
| 000002c0:·312b·6473·322f·6578·7465·726e·616c·2f69··1+ds2/external/i | |||
| 000002d0:·6b76·6d2f·7265·666c·6563·742f·456e·756d··kvm/reflect/Enum | |||
| 000002e0:·732e·6373·60a6·6e40·cf64·824c·b6f0·42d4··s.cs`.n@.d.L..B. | |||
| 000002f0:·8172·a799·bd44·46cf·b444·38e1·f603·2ba2··.r...DF..D8...+. | |||
| 00000300:·f9c9·bc9f·0056·2f62·7569·6c64·2f72·6570··.....V/build/rep | |||
| 00000310:·726f·6475·6369·626c·652d·7061·7468·2f6d··roducible-path/m | |||
| 00000320:·6f6e·6f2d·362e·3134·2e31·2b64·7332·2f65··ono-6.14.1+ds2/e | |||
| 00000330:·7874·6572·6e61·6c2f·696b·766d·2f72·6566··xternal/ikvm/ref | |||
| 00000340:·6c65·6374·2f4d·616e·6966·6573·7452·6573··lect/ManifestRes | |||
| 00000350:·6f75·7263·6549·6e66·6f2e·6373·60a6·6e40··ourceInfo.cs`.n@ | |||
| 00000360:·cf64·824c·b6f0·42d4·8172·a799·482c·c469··.d.L..B..r..H,.i | |||
| 00000370:·b04f·a60f·c647·4ddf·ffbd·d6ae·0046·2f62··.O...GM......F/b | |||
| 00000380:·7569·6c64·2f72·6570·726f·6475·6369·626c··uild/reproducibl | |||
| 00000390:·652d·7061·7468·2f6d·6f6e·6f2d·362e·3134··e-path/mono-6.14 | |||
| 000003a0:·2e31·2b64·7332·2f65·7874·6572·6e61·6c2f··.1+ds2/external/ | |||
| 000003b0:·696b·766d·2f72·6566·6c65·6374·2f54·7970··ikvm/reflect/Typ | |||
| 000003c0:·652e·6373·60a6·6e40·cf64·824c·b6f0·42d4··e.cs`.n@.d.L..B. | |||
| 000003d0:·8172·a799·c81f·e4f7·33e7·7d83·7421·00c3··.r......3.}.t!.. | |||
| 000003e0:·51f7·ed7d·004c·2f62·7569·6c64·2f72·6570··Q..}.L/build/rep | |||
| 000003f0:·726f·6475·6369·626c·652d·7061·7468·2f6d··roducible-path/m | |||
| 00000400:·6f6e·6f2d·362e·3134·2e31·2b64·7332·2f65··ono-6.14.1+ds2/e | |||
| 00000410:·7874·6572·6e61·6c2f·696b·766d·2f72·6566··xternal/ikvm/ref | |||
| 00000420:·6c65·6374·2f4d·6574·686f·6442·6f64·792e··lect/MethodBody. | |||
| 00000430:·6373·60a6·6e40·cf64·824c·b6f0·42d4·8172··cs`.n@.d.L..B..r | |||
| 00000440:·a799·700a·b524·d464·7c96·42fa·1f2f·24bf··..p..$.d|.B../$. | |||
| 00000450:·52a7·0059·2f62·7569·6c64·2f72·6570·726f··R..Y/build/repro | |||
| 00000460:·6475·6369·626c·652d·7061·7468·2f6d·6f6e··ducible-path/mon | |||
| 00000470:·6f2d·362e·3134·2e31·2b64·7332·2f65·7874··o-6.14.1+ds2/ext | |||
| 00000480:·6572·6e61·6c2f·696b·766d·2f72·6566·6c65··ernal/ikvm/refle | |||
| 00000490:·6374·2f41·6d62·6967·756f·7573·4d61·7463··ct/AmbiguousMatc | |||
| 000004a0:·6845·7863·6570·7469·6f6e·2e63·7360·a66e··hException.cs`.n | |||
| 000004b0:·40cf·6482·4cb6·f042·d481·72a7·99b4·c82d··@.d.L..B..r....- | |||
| 000004c0:·ba68·55a9·d16a·1f15·883a·874e·c100·492f··.hU..j...:.N..I/ | |||
| 000004d0:·6275·696c·642f·7265·7072·6f64·7563·6962··build/reproducib | |||
| 000004e0:·6c65·2d70·6174·682f·6d6f·6e6f·2d36·2e31··le-path/mono-6.1 | |||
| 000004f0:·342e·312b·6473·322f·6578·7465·726e·616c··4.1+ds2/external | |||
| 00000500:·2f69·6b76·6d2f·7265·666c·6563·742f·4d69··/ikvm/reflect/Mi | |||
| 00000510:·7373·696e·672e·6373·60a6·6e40·cf64·824c··ssing.cs`.n@.d.L | |||
| 00000520:·b6f0·42d4·8172·a799·5caa·d392·ba92·e7b4··..B..r..\....... | |||
| 00000530:·6a21·5f6c·2fb6·0ab7·0051·2f62·7569·6c64··j!_l/....Q/build | |||
| 00000540:·2f72·6570·726f·6475·6369·626c·652d·7061··/reproducible-pa | |||
| 00000550:·7468·2f6d·6f6e·6f2d·362e·3134·2e31·2b64··th/mono-6.14.1+d | |||
| 00000560:·7332·2f65·7874·6572·6e61·6c2f·696b·766d··s2/external/ikvm | |||
| 00000570:·2f72·6566·6c65·6374·2f4d·6574·686f·6453··/reflect/MethodS | |||
| 00000580:·6967·6e61·7475·7265·2e63·7360·a66e·40cf··ignature.cs`.n@. | |||
| 00000590:·6482·4cb6·f042·d481·72a7·9971·ab19·f7c2··d.L..B..r..q.... | |||
| 000005a0:·a98a·8e5c·b529·2e52·2f3b·ce00·462f·6275··...\.).R/;..F/bu | |||
| 000005b0:·696c·642f·7265·7072·6f64·7563·6962·6c65··ild/reproducible | |||
| 000005c0:·2d70·6174·682f·6d6f·6e6f·2d36·2e31·342e··-path/mono-6.14. | |||
| 000005d0:·312b·6473·322f·6578·7465·726e·616c·2f69··1+ds2/external/i | |||
| 000005e0:·6b76·6d2f·7265·666c·6563·742f·5574·696c··kvm/reflect/Util | |||
| 00000 | 00000130:·2e63·7360·a66e·40cf·6482·4cb6·f042·d481··.cs`.n@.d.L..B.. | ||
| 00000 | 00000140:·72a7·99b4·c82d·ba68·55a9·d16a·1f15·883a··r....-.hU..j...: | ||
| 00000 | 00000150:·874e·c100·482f·6275·696c·642f·7265·7072··.N..H/build/repr | ||
| 00000 | 00000160:·6f64·7563·6962·6c65·2d70·6174·682f·6d6f··oducible-path/mo | ||
| 00000 | 00000170:·6e6f·2d36·2e31·342e·312b·6473·322f·6578··no-6.14.1+ds2/ex | ||
| 00000 | 00000180:·7465·726e·616c·2f69·6b76·6d2f·7265·666c··ternal/ikvm/refl | ||
| 00000190:·6563·742f·4675·7369·6f6e·2e63·7360·a66e··ect/Fusion.cs`.n | |||
| 00000650:·6563·742f·5374·726f·6e67·4e61·6d65·4b65··ect/StrongNameKe | |||
| 00000660:·7950·6169·722e·6373·60a6·6e40·cf64·824c··yPair.cs`.n@.d.L | |||
| 00000670:·b6f0·42d4·8172·a799·0d28·51a6·a555·0479··..B..r...(Q..U.y | |||
| 00000680:·1e46·4a81·0837·d50b·0053·2f62·7569·6c64··.FJ..7...S/build | |||
| 00000690:·2f72·6570·726f·6475·6369·626c·652d·7061··/reproducible-pa | |||
| 000006a0:·7468·2f6d·6f6e·6f2d·362e·3134·2e31·2b64··th/mono-6.14.1+d | |||
| 000006b0:·7332·2f65·7874·6572·6e61·6c2f·696b·766d··s2/external/ikvm | |||
| 000006c0:·2f72·6566·6c65·6374·2f50·726f·7065·7274··/reflect/Propert | |||
| 000006d0:·7953·6967·6e61·7475·7265·2e63·7360·a66e··ySignature.cs`.n | |||
| 00000 | 000001a0:·40cf·6482·4cb6·f042·d481·72a7·9989·d94d··@.d.L..B..r....M | ||
| 000001b0:·5101·459f·a94d·e8ab·bb1c·0208·6000·5e2f··Q.E..M......`.^/ | |||
| 000006f0:·75bb·f80b·b2e9·fcca·d4bc·bb75·7c00·512f··u..........u|.Q/ | |||
| 00000700:·6275·696c·642f·7265·7072·6f64·7563·6962··build/reproducib | |||
| 00000710:·6c65·2d70·6174·682f·6d6f·6e6f·2d36·2e31··le-path/mono-6.1 | |||
| 00000720:·342e·312b·6473·322f·6578·7465·726e·616c··4.1+ds2/external | |||
| 00000730:·2f69·6b76·6d2f·7265·666c·6563·742f·436f··/ikvm/reflect/Co | |||
| 00000740:·6e73·7472·7563·746f·7249·6e66·6f2e·6373··nstructorInfo.cs | |||
| 00000750:·60a6·6e40·cf64·824c·b6f0·42d4·8172·a799··`.n@.d.L..B..r.. | |||
| 00000760:·6c58·f7cc·0723·c291·b7cb·4aad·bd35·08af··lX...#....J..5.. | |||
| 00000770:·004c·2f62·7569·6c64·2f72·6570·726f·6475··.L/build/reprodu | |||
| 00000780:·6369·626c·652d·7061·7468·2f6d·6f6e·6f2d··cible-path/mono- | |||
| 00000790:·362e·3134·2e31·2b64·7332·2f65·7874·6572··6.14.1+ds2/exter | |||
| 000007a0:·6e61·6c2f·696b·766d·2f72·6566·6c65·6374··nal/ikvm/reflect | |||
| 000007b0:·2f4d·6574·686f·6449·6e66·6f2e·6373·60a6··/MethodInfo.cs`. | |||
| Max diff block lines reached; 1648919/1688545 bytes (97.65%) of diff not shown. | |||
| Offset 103, 15 lines modified | Offset 103, 15 lines modified | ||
| 103 | » ····Reloc·Count:·0x0000 | 103 | » ····Reloc·Count:·0x0000 |
| 104 | » ·····Line·Count:·0x0000 | 104 | » ·····Line·Count:·0x0000 |
| 105 | » Flags:·data,·discard,·read,· | 105 | » Flags:·data,·discard,·read,· |
| 106 | ··········CLI·header·size:·72 | 106 | ··········CLI·header·size:·72 |
| 107 | ·········Runtime·required:·2.5 | 107 | ·········Runtime·required:·2.5 |
| 108 | ····················Flags:·ilonly,·32/64,·no-trackdebug,·notsigned | 108 | ····················Flags:·ilonly,·32/64,·no-trackdebug,·notsigned |
| 109 | » ·········Metadata:·0x000380 | 109 | » ·········Metadata:·0x00038060·[0x0005135c] |
| 110 | » Entry·Point·Token:·0x06000002 | 110 | » Entry·Point·Token:·0x06000002 |
| 111 | » ·····Resources·at:·0x00000000·[0x00000000] | 111 | » ·····Resources·at:·0x00000000·[0x00000000] |
| 112 | » ···Strong·Name·at:·0x00000000·[0x00000000] | 112 | » ···Strong·Name·at:·0x00000000·[0x00000000] |
| 113 | » ··Code·Manager·at:·0x00000000·[0x00000000] | 113 | » ··Code·Manager·at:·0x00000000·[0x00000000] |
| 114 | » ··VTableFixups·at:·0x00000000·[0x00000000] | 114 | » ··VTableFixups·at:·0x00000000·[0x00000000] |
| 115 | » ·····EAT·jumps·at:·0x00000000·[0x00000000] | 115 | » ·····EAT·jumps·at:·0x00000000·[0x00000000] |
| Offset 126, 38 lines modified | Offset 126, 38 lines modified | ||
| 126 | Metadata·pointers: | 126 | Metadata·pointers: |
| 127 | » Tables·(#~):·0x0000006c·-·0x0002e6a4·[190008·==·0x0002e638] | 127 | » Tables·(#~):·0x0000006c·-·0x0002e6a4·[190008·==·0x0002e638] |
| 128 | » ····Strings:·0x0002e6a4·-·0x000434de·[85562·==·0x00014e3a] | 128 | » ····Strings:·0x0002e6a4·-·0x000434de·[85562·==·0x00014e3a] |
| 129 | » ·······Blob:·0x000479bc·-·0x0005135c·[39328·==·0x000099a0] | 129 | » ·······Blob:·0x000479bc·-·0x0005135c·[39328·==·0x000099a0] |
| 130 | » User·string:·0x000434e0·-·0x000479ac·[17612·==·0x000044cc] | 130 | » User·string:·0x000434e0·-·0x000479ac·[17612·==·0x000044cc] |
| 131 | » ·······GUID:·0x000479ac·-·0x000479bc·[16·==·0x00000010] | 131 | » ·······GUID:·0x000479ac·-·0x000479bc·[16·==·0x00000010] |
| 132 | Rows: | 132 | Rows: |
| 133 | Table·Module:·1·records·(12·bytes,·at·3655 | 133 | Table·Module:·1·records·(12·bytes,·at·3655c) |
| 134 | Table·TypeRef:·205·records·(10·bytes,·at·3656 | 134 | Table·TypeRef:·205·records·(10·bytes,·at·36568) |
| 135 | Table·TypeDef:·651·records·(18·bytes,·at·36d6 | 135 | Table·TypeDef:·651·records·(18·bytes,·at·36d6a) |
| 136 | Table·Field:·3540·records·(8·bytes,·at·39b | 136 | Table·Field:·3540·records·(8·bytes,·at·39b30) |
| 137 | Table·Method:·4062·records·(16·bytes,·at·409 | 137 | Table·Method:·4062·records·(16·bytes,·at·409d0) |
| 138 | Table·Param:·4574·records·(8·bytes,·at·507 | 138 | Table·Param:·4574·records·(8·bytes,·at·507b0) |
| 139 | Table·InterfaceImpl:·198·records·(4·bytes,·at·596 | 139 | Table·InterfaceImpl:·198·records·(4·bytes,·at·596a0) |
| 140 | Table·MemberRef:·1520·records·(8·bytes,·at·599b | 140 | Table·MemberRef:·1520·records·(8·bytes,·at·599b8) |
| 141 | Table·Constant:·1480·records·(6·bytes,·at·5c93 | 141 | Table·Constant:·1480·records·(6·bytes,·at·5c938) |
| 142 | Table·CustomAttribute:·389·records·(8·bytes,·at·5ebe | 142 | Table·CustomAttribute:·389·records·(8·bytes,·at·5ebe8) |
| 143 | Table·FieldMarshal:·51·records·(4·bytes,·at·5f8 | 143 | Table·FieldMarshal:·51·records·(4·bytes,·at·5f810) |
| 144 | Table·DeclSecurity:·2·records·(6·bytes,·at·5f8d | 144 | Table·DeclSecurity:·2·records·(6·bytes,·at·5f8dc) |
| 145 | Table·ClassLayout:·13·records·(8·bytes,·at·5f8e | 145 | Table·ClassLayout:·13·records·(8·bytes,·at·5f8e8) |
| 146 | Table·StandaloneSig:·702·records·(2·bytes,·at·5f9 | 146 | Table·StandaloneSig:·702·records·(2·bytes,·at·5f950) |
| 147 | Table·EventMap:·1·records·(4·bytes,·at·5fec | 147 | Table·EventMap:·1·records·(4·bytes,·at·5fecc) |
| 148 | Table·Event:·1·records·(8·bytes,·at·5fe | 148 | Table·Event:·1·records·(8·bytes,·at·5fed0) |
| 149 | Table·PropertyMap:·169·records·(4·bytes,·at·5fed | 149 | Table·PropertyMap:·169·records·(4·bytes,·at·5fed8) |
| 150 | Table·Property:·933·records·(8·bytes,·at·6017 | 150 | Table·Property:·933·records·(8·bytes,·at·6017c) |
| 151 | Table·MethodSemantics:·1361·records·(6·bytes,·at·61ea | 151 | Table·MethodSemantics:·1361·records·(6·bytes,·at·61ea4) |
| 152 | Table·MethodImpl:·71·records·(6·bytes,·at·63e8 | 152 | Table·MethodImpl:·71·records·(6·bytes,·at·63e8a) |
| 153 | Table·Moduleref:·1·records·(4·bytes,·at·6403 | 153 | Table·Moduleref:·1·records·(4·bytes,·at·64034) |
| 154 | Table·TypeSpec:·404·records·(2·bytes,·at·6403 | 154 | Table·TypeSpec:·404·records·(2·bytes,·at·64038) |
| 155 | Table·ImplMap:·1·records·(10·bytes,·at·643 | 155 | Table·ImplMap:·1·records·(10·bytes,·at·64360) |
| 156 | Table·FieldRVA:·15·records·(6·bytes,·at·6436 | 156 | Table·FieldRVA:·15·records·(6·bytes,·at·6436a) |
| 157 | Table·Assembly:·1·records·(26·bytes,·at·643c | 157 | Table·Assembly:·1·records·(26·bytes,·at·643c4) |
| 158 | Table·AssemblyRef:·3·records·(24·bytes,·at·643d | 158 | Table·AssemblyRef:·3·records·(24·bytes,·at·643de) |
| 159 | Table·NestedClass:·54·records·(4·bytes,·at·6442 | 159 | Table·NestedClass:·54·records·(4·bytes,·at·64426) |
| 160 | Table·GenericParam:·78·records·(10·bytes,·at·644f | 160 | Table·GenericParam:·78·records·(10·bytes,·at·644fe) |
| 161 | Table·MethodSpec:·178·records·(4·bytes,·at·6480 | 161 | Table·MethodSpec:·178·records·(4·bytes,·at·6480a) |
| 162 | Table·GenericParamConstraint:·12·records·(4·bytes,·at·64a | 162 | Table·GenericParamConstraint:·12·records·(4·bytes,·at·64ad2) |
| 163 | RVA·for·Entry·Point:·0x00002058 | 163 | RVA·for·Entry·Point:·0x00002058 |
| Offset 1, 13 lines modified | Offset 1, 13 lines modified | ||
| 00000000:·14a6·7ffd·2326·e845·3200·0000·0000·0000··....#&.E2....... | 00000000:·14a6·7ffd·2326·e845·3200·0000·0000·0000··....#&.E2....... | ||
| 00000010:· | 00000010:·90f7·3918·0977·8c48·b982·391b·609b·48fd··..9..w.H..9.`.H. | ||
| 00000020:· | 00000020:·e791·0300·7000·0000·5bd4·0200·b200·0000··....p...[....... | ||
| 00000030:· | 00000030:·578c·0300·9005·0000·b200·0000·c786·0300··W............... | ||
| 00000040:·9005·0000·d50e·0000· | 00000040:·9005·0000·d50e·0000·cbd4·0200·fcb1·0000··................ | ||
| 00000050:·0000·0000·0000·0000· | 00000050:·0000·0000·0000·0000·e791·0300·0000·0000··................ | ||
| 00000060:·ffff·ffff·0800·0000·0900·0000·0000·0000··................ | 00000060:·ffff·ffff·0800·0000·0900·0000·0000·0000··................ | ||
| 00000070:·522f·6275·696c·642f·7265·7072·6f64·7563··R/build/reproduc | 00000070:·522f·6275·696c·642f·7265·7072·6f64·7563··R/build/reproduc | ||
| 00000080:·6962·6c65·2d70·6174·682f·6d6f·6e6f·2d36··ible-path/mono-6 | 00000080:·6962·6c65·2d70·6174·682f·6d6f·6e6f·2d36··ible-path/mono-6 | ||
| 00000090:·2e31·342e·312b·6473·322f·6d63·732f·746f··.14.1+ds2/mcs/to | 00000090:·2e31·342e·312b·6473·322f·6d63·732f·746f··.14.1+ds2/mcs/to | ||
| 000000a0:·6f6c·732f·6d6f·6e6f·2d73·796d·626f·6c69··ols/mono-symboli | 000000a0:·6f6c·732f·6d6f·6e6f·2d73·796d·626f·6c69··ols/mono-symboli | ||
| 000000b0:·6361·7465·2f73·796d·626f·6c69·6361·7465··cate/symbolicate | 000000b0:·6361·7465·2f73·796d·626f·6c69·6361·7465··cate/symbolicate | ||
| 000000c0:·2e63·7360·a66e·40cf·6482·4cb6·f042·d481··.cs`.n@.d.L..B.. | 000000c0:·2e63·7360·a66e·40cf·6482·4cb6·f042·d481··.cs`.n@.d.L..B.. | ||
| Offset 696, 308 lines modified | Offset 696, 308 lines modified | ||
| 00002b70:·696c·642f·7265·7072·6f64·7563·6962·6c65··ild/reproducible | 00002b70:·696c·642f·7265·7072·6f64·7563·6962·6c65··ild/reproducible | ||
| 00002b80:·2d70·6174·682f·6d6f·6e6f·2d36·2e31·342e··-path/mono-6.14. | 00002b80:·2d70·6174·682f·6d6f·6e6f·2d36·2e31·342e··-path/mono-6.14. | ||
| 00002b90:·312b·6473·322f·6578·7465·726e·616c·2f63··1+ds2/external/c | 00002b90:·312b·6473·322f·6578·7465·726e·616c·2f63··1+ds2/external/c | ||
| 00002ba0:·6563·696c·2f4d·6f6e·6f2e·4365·6369·6c2f··ecil/Mono.Cecil/ | 00002ba0:·6563·696c·2f4d·6f6e·6f2e·4365·6369·6c2f··ecil/Mono.Cecil/ | ||
| 00002bb0:·5769·6e64·6f77·7352·756e·7469·6d65·5072··WindowsRuntimePr | 00002bb0:·5769·6e64·6f77·7352·756e·7469·6d65·5072··WindowsRuntimePr | ||
| 00002bc0:·6f6a·6563·7469·6f6e·732e·6373·60a6·6e40··ojections.cs`.n@ | 00002bc0:·6f6a·6563·7469·6f6e·732e·6373·60a6·6e40··ojections.cs`.n@ | ||
| 00002bd0:·cf64·824c·b6f0·42d4·8172·a799·d7f6·747c··.d.L..B..r....t| | 00002bd0:·cf64·824c·b6f0·42d4·8172·a799·d7f6·747c··.d.L..B..r....t| | ||
| 00002be0:·88cd·2bb3·e726·159c·8b72·9bce·005 | 00002be0:·88cd·2bb3·e726·159c·8b72·9bce·0055·2f62··..+..&...r...U/b | ||
| 00002bf0:·7569·6c64·2f72·6570·726f·6475·6369·626c··uild/reproducibl | 00002bf0:·7569·6c64·2f72·6570·726f·6475·6369·626c··uild/reproducibl | ||
| 00002c00:·652d·7061·7468·2f6d·6f6e·6f2d·362e·3134··e-path/mono-6.14 | 00002c00:·652d·7061·7468·2f6d·6f6e·6f2d·362e·3134··e-path/mono-6.14 | ||
| 00002c10:·2e31·2b64·7332·2f65·7874·6572·6e61·6c2f··.1+ds2/external/ | 00002c10:·2e31·2b64·7332·2f65·7874·6572·6e61·6c2f··.1+ds2/external/ | ||
| 00002c20:·6365·6369·6c2f·4d6f·6e6f·2e43·6563·696c··cecil/Mono.Cecil | 00002c20:·6365·6369·6c2f·4d6f·6e6f·2e43·6563·696c··cecil/Mono.Cecil | ||
| 00002c30:·2e43·696c·2f50·6f72·7461·626c·6550·6462··.Cil/PortablePdb | |||
| 00002c30:·2e43·696c·2f43·6f64·6552·6561·6465·722e··.Cil/CodeReader. | |||
| 00002c40:·6373·60a6·6e40·cf64·824c·b6f0·42d4·8172··cs`.n@.d.L..B..r | |||
| 00002c50:·a799·d56b·062e·59bc·0c82·5ae6·aae8·6603··...k..Y...Z...f. | |||
| 00002c60:·c05c·005b·2f62·7569·6c64·2f72·6570·726f··.\.[/build/repro | |||
| 00002c70:·6475·6369·626c·652d·7061·7468·2f6d·6f6e··ducible-path/mon | |||
| 00002c80:·6f2d·362e·3134·2e31·2b64·7332·2f65·7874··o-6.14.1+ds2/ext | |||
| 00002c90:·6572·6e61·6c2f·6365·6369·6c2f·4d6f·6e6f··ernal/cecil/Mono | |||
| 00002ca0:·2e43·6563·696c·2e43·696c·2f56·6172·6961··.Cecil.Cil/Varia | |||
| 00002cb0:·626c·6552·6566·6572·656e·6365·2e63·7360··bleReference.cs` | |||
| 00002cc0:·a66e·40cf·6482·4cb6·f042·d481·72a7·9931··.n@.d.L..B..r..1 | |||
| 00002cd0:·1613·702b·41ff·8f4c·0a4e·7704·bbfc·6c00··..p+A..L.Nw...l. | |||
| 00002ce0:·542f·6275·696c·642f·7265·7072·6f64·7563··T/build/reproduc | |||
| 00002cf0:·6962·6c65·2d70·6174·682f·6d6f·6e6f·2d36··ible-path/mono-6 | |||
| 00002d00:·2e31·342e·312b·6473·322f·6578·7465·726e··.14.1+ds2/extern | |||
| 00002d10:·616c·2f63·6563·696c·2f4d·6f6e·6f2e·4365··al/cecil/Mono.Ce | |||
| 00002d20:·6369·6c2e·4369·6c2f·436f·6465·5772·6974··cil.Cil/CodeWrit | |||
| 00002d30:·6572·2e63·7360·a66e·40cf·6482·4cb6·f042··er.cs`.n@.d.L..B | |||
| 00002d40:·d481·72a7·9984·af74·ae9a·4faf·3e91·0308··..r....t..O.>... | |||
| 00002d50:·e5c7·09ec·5400·512f·6275·696c·642f·7265··....T.Q/build/re | |||
| 00002d60:·7072·6f64·7563·6962·6c65·2d70·6174·682f··producible-path/ | |||
| 00002d70:·6d6f·6e6f·2d36·2e31·342e·312b·6473·322f··mono-6.14.1+ds2/ | |||
| 00002d80:·6578·7465·726e·616c·2f63·6563·696c·2f4d··external/cecil/M | |||
| 00002d90:·6f6e·6f2e·4365·6369·6c2e·4369·6c2f·4f70··ono.Cecil.Cil/Op | |||
| 00002da0:·436f·6465·732e·6373·60a6·6e40·cf64·824c··Codes.cs`.n@.d.L | |||
| 00002db0:·b6f0·42d4·8172·a799·025a·51ca·eb5a·bd1a··..B..r...ZQ..Z.. | |||
| 00002dc0:·85e1·a7a1·99b0·80f0·0054·2f62·7569·6c64··.........T/build | |||
| 00002dd0:·2f72·6570·726f·6475·6369·626c·652d·7061··/reproducible-pa | |||
| 00002de0:·7468·2f6d·6f6e·6f2d·362e·3134·2e31·2b64··th/mono-6.14.1+d | |||
| 00002df0:·7332·2f65·7874·6572·6e61·6c2f·6365·6369··s2/external/ceci | |||
| 00002e00:·6c2f·4d6f·6e6f·2e43·6563·696c·2e43·696c··l/Mono.Cecil.Cil | |||
| 00002e10:·2f4d·6574·686f·6442·6f64·792e·6373·60a6··/MethodBody.cs`. | |||
| 00002e20:·6e40·cf64·824c·b6f0·42d4·8172·a799·b64a··n@.d.L..B..r...J | |||
| 00002e30:·1e35·e383·b0bf·b94d·8be6·c25b·8f76·0050··.5.....M...[.v.P | |||
| 00002e40:·2f62·7569·6c64·2f72·6570·726f·6475·6369··/build/reproduci | |||
| 00002e50:·626c·652d·7061·7468·2f6d·6f6e·6f2d·362e··ble-path/mono-6. | |||
| 00002e60:·3134·2e31·2b64·7332·2f65·7874·6572·6e61··14.1+ds2/externa | |||
| 00002e70:·6c2f·6365·6369·6c2f·4d6f·6e6f·2e43·6563··l/cecil/Mono.Cec | |||
| 00002e80:·696c·2e43·696c·2f4f·7043·6f64·652e·6373··il.Cil/OpCode.cs | |||
| 00002e90:·60a6·6e40·cf64·824c·b6f0·42d4·8172·a799··`.n@.d.L..B..r.. | |||
| 00002ea0:·a331·26c3·4512·f1b0·7892·b7b8·4ae8·0abd··.1&.E...x...J... | |||
| 00002eb0:·0052·2f62·7569·6c64·2f72·6570·726f·6475··.R/build/reprodu | |||
| 00002ec0:·6369·626c·652d·7061·7468·2f6d·6f6e·6f2d··cible-path/mono- | |||
| 00002ed0:·362e·3134·2e31·2b64·7332·2f65·7874·6572··6.14.1+ds2/exter | |||
| 00002ee0:·6e61·6c2f·6365·6369·6c2f·4d6f·6e6f·2e43··nal/cecil/Mono.C | |||
| 00002ef0:·6563·696c·2e43·696c·2f44·6f63·756d·656e··ecil.Cil/Documen | |||
| 00002f00:·742e·6373·60a6·6e40·cf64·824c·b6f0·42d4··t.cs`.n@.d.L..B. | |||
| 00002f10:·8172·a799·d6ef·fda1·8c77·2c4b·7552·dc48··.r.......w,KuR.H | |||
| 00002f20:·f4ba·c417·004e·2f62·7569·6c64·2f72·6570··.....N/build/rep | |||
| 00002f30:·726f·6475·6369·626c·652d·7061·7468·2f6d··roducible-path/m | |||
| 00002f40:·6f6e·6f2d·362e·3134·2e31·2b64·7332·2f65··ono-6.14.1+ds2/e | |||
| 00002f50:·7874·6572·6e61·6c2f·6365·6369·6c2f·4d6f··xternal/cecil/Mo | |||
| 00002f60:·6e6f·2e43·6563·696c·2e43·696c·2f43·6f64··no.Cecil.Cil/Cod | |||
| 00002f70:·652e·6373·60a6·6e40·cf64·824c·b6f0·42d4··e.cs`.n@.d.L..B. | |||
| 00002f80:·8172·a799·0682·ffe4·d16d·e515·4848·4f80··.r.......m..HHO. | |||
| 00002f90:·77de·01f3·0055·2f62·7569·6c64·2f72·6570··w....U/build/rep | |||
| 00002fa0:·726f·6475·6369·626c·652d·7061·7468·2f6d··roducible-path/m | |||
| 00002fb0:·6f6e·6f2d·362e·3134·2e31·2b64·7332·2f65··ono-6.14.1+ds2/e | |||
| 00002fc0:·7874·6572·6e61·6c2f·6365·6369·6c2f·4d6f··xternal/cecil/Mo | |||
| 00002fd0:·6e6f·2e43·6563·696c·2e43·696c·2f49·4c50··no.Cecil.Cil/ILP | |||
| 00002fe0:·726f·6365·7373·6f72·2e63·7360·a66e·40cf··rocessor.cs`.n@. | |||
| 00002ff0:·6482·4cb6·f042·d481·72a7·9985·8822·a182··d.L..B..r....".. | |||
| 00003000:·c074·6687·81a1·ec2d·eb3d·f800·5c2f·6275··.tf....-.=..\/bu | |||
| 00003010:·696c·642f·7265·7072·6f64·7563·6962·6c65··ild/reproducible | |||
| 00003020:·2d70·6174·682f·6d6f·6e6f·2d36·2e31·342e··-path/mono-6.14. | |||
| 00003030:·312b·6473·322f·6578·7465·726e·616c·2f63··1+ds2/external/c | |||
| 00003040:·6563·696c·2f4d·6f6e·6f2e·4365·6369·6c2e··ecil/Mono.Cecil. | |||
| 00003050:·4369·6c2f·5661·7269·6162·6c65·4465·6669··Cil/VariableDefi | |||
| 00003060:·6e69·7469·6f6e·2e63·7360·a66e·40cf·6482··nition.cs`.n@.d. | |||
| 00003070:·4cb6·f042·d481·72a7·99de·d437·21dd·9b3e··L..B..r....7!..> | |||
| 00003080:·764c·984d·e4d2·add4·c800·572f·6275·696c··vL.M......W/buil | |||
| 00003090:·642f·7265·7072·6f64·7563·6962·6c65·2d70··d/reproducible-p | |||
| 000030a0:·6174·682f·6d6f·6e6f·2d36·2e31·342e·312b··ath/mono-6.14.1+ | |||
| 000030b0:·6473·322f·6578·7465·726e·616c·2f63·6563··ds2/external/cec | |||
| 000030c0:·696c·2f4d·6f6e·6f2e·4365·6369·6c2e·4369··il/Mono.Cecil.Ci | |||
| 000030d0:·6c2f·5365·7175·656e·6365·506f·696e·742e··l/SequencePoint. | |||
| 000030e0:·6373·60a6·6e40·cf64·824c·b6f0·42d4·8172··cs`.n@.d.L..B..r | |||
| 000030f0:·a799·6d3e·dccb·82d6·252d·1207·02b4·2335··..m>....%-....#5 | |||
| 00003100:·52f1·0051·2f62·7569·6c64·2f72·6570·726f··R..Q/build/repro | |||
| 00003110:·6475·6369·626c·652d·7061·7468·2f6d·6f6e··ducible-path/mon | |||
| 00003120:·6f2d·362e·3134·2e31·2b64·7332·2f65·7874··o-6.14.1+ds2/ext | |||
| 00003130:·6572·6e61·6c2f·6365·6369·6c2f·4d6f·6e6f··ernal/cecil/Mono | |||
| 00003140:·2e43·6563·696c·2e43·696c·2f53·796d·626f··.Cecil.Cil/Symbo | |||
| 00003150:·6c73·2e63·7360·a66e·40cf·6482·4cb6·f042··ls.cs`.n@.d.L..B | |||
| 00003160:·d481·72a7·99f3·70a2·644c·f71d·8d01·7e31··..r...p.dL....~1 | |||
| 00003170:·476e·249e·3500·552f·6275·696c·642f·7265··Gn$.5.U/build/re | |||
| 00003180:·7072·6f64·7563·6962·6c65·2d70·6174·682f··producible-path/ | |||
| 00003190:·6d6f·6e6f·2d36·2e31·342e·312b·6473·322f··mono-6.14.1+ds2/ | |||
| 000031a0:·6578·7465·726e·616c·2f63·6563·696c·2f4d··external/cecil/M | |||
| 000031b0:·6f6e·6f2e·4365·6369·6c2e·4369·6c2f·506f··ono.Cecil.Cil/Po | |||
| 000031c0:·7274·6162·6c65·5064·622e·6373·60a6·6e40··rtablePdb.cs`.n@ | |||
| 000031d0:·cf64·824c·b6f0·42d4·8172·a799·8d8f·35f1··.d.L..B..r....5. | |||
| 000031e0:·271d·cd14·d586·2b2a·83fe·a736·0055·2f62··'.....+*...6.U/b | |||
| 000031f0:·7569·6c64·2f72·6570·726f·6475·6369·626c··uild/reproducibl | |||
| 00003200:·652d·7061·7468·2f6d·6f6e·6f2d·362e·3134··e-path/mono-6.14 | |||
| 00003210:·2e31·2b64·7332·2f65·7874·6572·6e61·6c2f··.1+ds2/external/ | |||
| 00003220:·6365·6369·6c2f·4d6f·6e6f·2e43·6563·696c··cecil/Mono.Cecil | |||
| 00003230:·2e43·696c·2f49·6e73·7472·7563·7469·6f6e··.Cil/Instruction | |||
| 0000 | 00002c40:·2e63·7360·a66e·40cf·6482·4cb6·f042·d481··.cs`.n@.d.L..B.. | ||
| 0000 | 00002c50:·72a7·998d·8f35·f127·1dcd·14d5·862b·2a83··r....5.'.....+*. | ||
| 0000 | 00002c60:·fea7·3600·512f·6275·696c·642f·7265·7072··..6.Q/build/repr | ||
| Max diff block lines reached; 1059003/1076157 bytes (98.41%) of diff not shown. | |||
| Offset 11, 15 lines modified | Offset 11, 15 lines modified | ||
| 11 | PE·Header: | 11 | PE·Header: |
| 12 | » ·········Magic·(0x010b):·0x010b | 12 | » ·········Magic·(0x010b):·0x010b |
| 13 | » ·············LMajor·(6):·0x08 | 13 | » ·············LMajor·(6):·0x08 |
| 14 | » ·············LMinor·(0):·0x00 | 14 | » ·············LMinor·(0):·0x00 |
| 15 | » ··············Code·Size:·0x0007bc00 | 15 | » ··············Code·Size:·0x0007bc00 |
| 16 | » ··Initialized·Data·Size:·0x00000800 | 16 | » ··Initialized·Data·Size:·0x00000800 |
| 17 | » Uninitialized·Data·Size:·0x00000000 | 17 | » Uninitialized·Data·Size:·0x00000000 |
| 18 | » ········Entry·Point·RVA:·0x0007da | 18 | » ········Entry·Point·RVA:·0x0007dafe |
| 19 | » ·» ··Code·Base·RVA:·0x00002000 | 19 | » ·» ··Code·Base·RVA:·0x00002000 |
| 20 | » » ··Data·Base·RVA:·0x0007e000 | 20 | » » ··Data·Base·RVA:·0x0007e000 |
| 21 | NT·Header: | 21 | NT·Header: |
| 22 | » ···Image·Base·(0x400000):·0x00400000 | 22 | » ···Image·Base·(0x400000):·0x00400000 |
| 23 | » Section·Alignment·(8192):·0x00002000 | 23 | » Section·Alignment·(8192):·0x00002000 |
| Offset 41, 15 lines modified | Offset 41, 15 lines modified | ||
| 41 | » ··Heap·Reserve·Size·(1M):·0x00100000 | 41 | » ··Heap·Reserve·Size·(1M):·0x00100000 |
| 42 | » ·Heap·Commit·Size·(4096):·0x00001000 | 42 | » ·Heap·Commit·Size·(4096):·0x00001000 |
| 43 | » ······Loader·flags·(0x1):·0x00000000 | 43 | » ······Loader·flags·(0x1):·0x00000000 |
| 44 | » ···Data·Directories·(16):·0x00000010 | 44 | » ···Data·Directories·(16):·0x00000010 |
| 45 | Data·directories: | 45 | Data·directories: |
| 46 | » ·····Export·Table:·0x00000000·[0x00000000] | 46 | » ·····Export·Table:·0x00000000·[0x00000000] |
| 47 | » ·····Import·Table:·0x0007da | 47 | » ·····Import·Table:·0x0007dab0·[0x0000004b] |
| 48 | » ···Resource·Table:·0x00080000·[0x000002d8] | 48 | » ···Resource·Table:·0x00080000·[0x000002d8] |
| 49 | » ··Exception·Table:·0x00000000·[0x00000000] | 49 | » ··Exception·Table:·0x00000000·[0x00000000] |
| 50 | » Certificate·Table:·0x00000000·[0x00000000] | 50 | » Certificate·Table:·0x00000000·[0x00000000] |
| 51 | » ······Reloc·Table:·0x00082000·[0x0000000c] | 51 | » ······Reloc·Table:·0x00082000·[0x0000000c] |
| 52 | » ············Debug:·0x00000000·[0x00000000] | 52 | » ············Debug:·0x00000000·[0x00000000] |
| 53 | » ········Copyright:·0x00000000·[0x00000000] | 53 | » ········Copyright:·0x00000000·[0x00000000] |
| 54 | » ·······Global·Ptr:·0x00000000·[0x00000000] | 54 | » ·······Global·Ptr:·0x00000000·[0x00000000] |
| Offset 57, 26 lines modified | Offset 57, 26 lines modified | ||
| 57 | » Load·Config·Table:·0x00000000·[0x00000000] | 57 | » Load·Config·Table:·0x00000000·[0x00000000] |
| 58 | » ·····Bound·Import:·0x00000000·[0x00000000] | 58 | » ·····Bound·Import:·0x00000000·[0x00000000] |
| 59 | » ··············IAT:·0x00002000·[0x00000008] | 59 | » ··············IAT:·0x00002000·[0x00000008] |
| 60 | » Delay·Import·Desc:·0x00000000·[0x00000000] | 60 | » Delay·Import·Desc:·0x00000000·[0x00000000] |
| 61 | » ·······CLI·Header:·0x00002008·[0x00000048] | 61 | » ·······CLI·Header:·0x00002008·[0x00000048] |
| 62 | » Name:·.text | 62 | » Name:·.text |
| 63 | » ···Virtual·Size:·0x0007b | 63 | » ···Virtual·Size:·0x0007bb04 |
| 64 | » Virtual·Address:·0x00002000 | 64 | » Virtual·Address:·0x00002000 |
| 65 | » ··Raw·Data·Size:·0x0007bc00 | 65 | » ··Raw·Data·Size:·0x0007bc00 |
| 66 | » ···Raw·Data·Ptr:·0x00000400 | 66 | » ···Raw·Data·Ptr:·0x00000400 |
| 67 | » ······Reloc·Ptr:·0x00000000 | 67 | » ······Reloc·Ptr:·0x00000000 |
| 68 | » ·····LineNo·Ptr:·0x00000000 | 68 | » ·····LineNo·Ptr:·0x00000000 |
| 69 | » ····Reloc·Count:·0x0000 | 69 | » ····Reloc·Count:·0x0000 |
| 70 | » ·····Line·Count:·0x0000 | 70 | » ·····Line·Count:·0x0000 |
| 71 | » Flags:·code,·exec,·read,· | 71 | » Flags:·code,·exec,·read,· |
| 72 | » Name:·.sdata | 72 | » Name:·.sdata |
| 73 | » ···Virtual·Size:·0x000001e | 73 | » ···Virtual·Size:·0x000001e4 |
| 74 | » Virtual·Address:·0x0007e000 | 74 | » Virtual·Address:·0x0007e000 |
| 75 | » ··Raw·Data·Size:·0x00000200 | 75 | » ··Raw·Data·Size:·0x00000200 |
| 76 | » ···Raw·Data·Ptr:·0x0007c000 | 76 | » ···Raw·Data·Ptr:·0x0007c000 |
| 77 | » ······Reloc·Ptr:·0x00000000 | 77 | » ······Reloc·Ptr:·0x00000000 |
| 78 | » ·····LineNo·Ptr:·0x00000000 | 78 | » ·····LineNo·Ptr:·0x00000000 |
| 79 | » ····Reloc·Count:·0x0000 | 79 | » ····Reloc·Count:·0x0000 |
| 80 | » ·····Line·Count:·0x0000 | 80 | » ·····Line·Count:·0x0000 |
| Offset 103, 15 lines modified | Offset 103, 15 lines modified | ||
| 103 | » ····Reloc·Count:·0x0000 | 103 | » ····Reloc·Count:·0x0000 |
| 104 | » ·····Line·Count:·0x0000 | 104 | » ·····Line·Count:·0x0000 |
| 105 | » Flags:·data,·discard,·read,· | 105 | » Flags:·data,·discard,·read,· |
| 106 | ··········CLI·header·size:·72 | 106 | ··········CLI·header·size:·72 |
| 107 | ·········Runtime·required:·2.5 | 107 | ·········Runtime·required:·2.5 |
| 108 | ····················Flags:·ilonly,·32/64,·no-trackdebug,·notsigned | 108 | ····················Flags:·ilonly,·32/64,·no-trackdebug,·notsigned |
| 109 | » ·········Metadata:·0x0003b0 | 109 | » ·········Metadata:·0x0003b064·[0x00042a4c] |
| 110 | » Entry·Point·Token:·0x0600000c | 110 | » Entry·Point·Token:·0x0600000c |
| 111 | » ·····Resources·at:·0x00000000·[0x00000000] | 111 | » ·····Resources·at:·0x00000000·[0x00000000] |
| 112 | » ···Strong·Name·at:·0x00000000·[0x00000000] | 112 | » ···Strong·Name·at:·0x00000000·[0x00000000] |
| 113 | » ··Code·Manager·at:·0x00000000·[0x00000000] | 113 | » ··Code·Manager·at:·0x00000000·[0x00000000] |
| 114 | » ··VTableFixups·at:·0x00000000·[0x00000000] | 114 | » ··VTableFixups·at:·0x00000000·[0x00000000] |
| 115 | » ·····EAT·jumps·at:·0x00000000·[0x00000000] | 115 | » ·····EAT·jumps·at:·0x00000000·[0x00000000] |
| Offset 126, 37 lines modified | Offset 126, 37 lines modified | ||
| 126 | Metadata·pointers: | 126 | Metadata·pointers: |
| 127 | » Tables·(#~):·0x0000006c·-·0x00024068·[147452·==·0x00023ffc] | 127 | » Tables·(#~):·0x0000006c·-·0x00024068·[147452·==·0x00023ffc] |
| 128 | » ····Strings:·0x00024068·-·0x000354e7·[70783·==·0x0001147f] | 128 | » ····Strings:·0x00024068·-·0x000354e7·[70783·==·0x0001147f] |
| 129 | » ·······Blob:·0x0003bf04·-·0x00042a4c·[27464·==·0x00006b48] | 129 | » ·······Blob:·0x0003bf04·-·0x00042a4c·[27464·==·0x00006b48] |
| 130 | » User·string:·0x000354e8·-·0x0003bef4·[27148·==·0x00006a0c] | 130 | » User·string:·0x000354e8·-·0x0003bef4·[27148·==·0x00006a0c] |
| 131 | » ·······GUID:·0x0003bef4·-·0x0003bf04·[16·==·0x00000010] | 131 | » ·······GUID:·0x0003bef4·-·0x0003bf04·[16·==·0x00000010] |
| 132 | Rows: | 132 | Rows: |
| 133 | Table·Module:·1·records·(12·bytes,·at·395 | 133 | Table·Module:·1·records·(12·bytes,·at·3955c) |
| 134 | Table·TypeRef:·179·records·(10·bytes,·at·395 | 134 | Table·TypeRef:·179·records·(10·bytes,·at·39568) |
| 135 | Table·TypeDef:·393·records·(18·bytes,·at·39c | 135 | Table·TypeDef:·393·records·(18·bytes,·at·39c66) |
| 136 | Table·Field:·2039·records·(8·bytes,·at·3b | 136 | Table·Field:·2039·records·(8·bytes,·at·3b808) |
| 137 | Table·Method:·3783·records·(16·bytes,·at·3f7 | 137 | Table·Method:·3783·records·(16·bytes,·at·3f7c0) |
| 138 | Table·Param:·3575·records·(8·bytes,·at·4e4 | 138 | Table·Param:·3575·records·(8·bytes,·at·4e430) |
| 139 | Table·InterfaceImpl:·57·records·(4·bytes,·at·553 | 139 | Table·InterfaceImpl:·57·records·(4·bytes,·at·553e8) |
| 140 | Table·MemberRef:·1197·records·(8·bytes,·at·554 | 140 | Table·MemberRef:·1197·records·(8·bytes,·at·554cc) |
| 141 | Table·Constant:·525·records·(6·bytes,·at·57a | 141 | Table·Constant:·525·records·(6·bytes,·at·57a34) |
| 142 | Table·CustomAttribute:·100·records·(8·bytes,·at·586 | 142 | Table·CustomAttribute:·100·records·(8·bytes,·at·58682) |
| 143 | Table·ClassLayout:·11·records·(8·bytes,·at·589 | 143 | Table·ClassLayout:·11·records·(8·bytes,·at·589a2) |
| 144 | Table·FieldLayoutt:·2·records·(6·bytes,·at·589 | 144 | Table·FieldLayoutt:·2·records·(6·bytes,·at·589fa) |
| 145 | Table·StandaloneSig:·573·records·(2·bytes,·at·58 | 145 | Table·StandaloneSig:·573·records·(2·bytes,·at·58a06) |
| 146 | Table·EventMap:·2·records·(4·bytes,·at·58e | 146 | Table·EventMap:·2·records·(4·bytes,·at·58e80) |
| 147 | Table·Event:·4·records·(8·bytes,·at·58e | 147 | Table·Event:·4·records·(8·bytes,·at·58e88) |
| 148 | Table·PropertyMap:·160·records·(4·bytes,·at·58e | 148 | Table·PropertyMap:·160·records·(4·bytes,·at·58ea8) |
| 149 | Table·Property:·1072·records·(8·bytes,·at·591 | 149 | Table·Property:·1072·records·(8·bytes,·at·59128) |
| 150 | Table·MethodSemantics:·1110·records·(6·bytes,·at·5b2 | 150 | Table·MethodSemantics:·1110·records·(6·bytes,·at·5b2a8) |
| 151 | Table·MethodImpl:·54·records·(6·bytes,·at·5cc | 151 | Table·MethodImpl:·54·records·(6·bytes,·at·5ccac) |
| 152 | Table·Moduleref:·1·records·(4·bytes,·at·5cd | 152 | Table·Moduleref:·1·records·(4·bytes,·at·5cdf0) |
| 153 | Table·TypeSpec:·350·records·(2·bytes,·at·5cd | 153 | Table·TypeSpec:·350·records·(2·bytes,·at·5cdf4) |
| 154 | Table·ImplMap:·1·records·(10·bytes,·at·5d0 | 154 | Table·ImplMap:·1·records·(10·bytes,·at·5d0b0) |
| 155 | Table·FieldRVA:·10·records·(6·bytes,·at·5d0 | 155 | Table·FieldRVA:·10·records·(6·bytes,·at·5d0ba) |
| 156 | Table·Assembly:·1·records·(26·bytes,·at·5d0 | 156 | Table·Assembly:·1·records·(26·bytes,·at·5d0f6) |
| 157 | Table·AssemblyRef:·2·records·(24·bytes,·at·5d | 157 | Table·AssemblyRef:·2·records·(24·bytes,·at·5d110) |
| 158 | Table·NestedClass:·106·records·(4·bytes,·at·5d1 | 158 | Table·NestedClass:·106·records·(4·bytes,·at·5d140) |
| 159 | Table·GenericParam:·21·records·(10·bytes,·at·5d2 | 159 | Table·GenericParam:·21·records·(10·bytes,·at·5d2e8) |
| 160 | Table·MethodSpec:·55·records·(4·bytes,·at·5d3 | 160 | Table·MethodSpec:·55·records·(4·bytes,·at·5d3ba) |
| 161 | Table·GenericParamConstraint:·13·records·(4·bytes,·at·5d4 | 161 | Table·GenericParamConstraint:·13·records·(4·bytes,·at·5d496) |
| 162 | RVA·for·Entry·Point:·0x0000275c | 162 | RVA·for·Entry·Point:·0x0000275c |
| Offset 1, 9 lines modified | Offset 1, 9 lines modified | ||
| 00000000:·14a6·7ffd·2326·e845·3200·0000·0000·0000··....#&.E2....... | 00000000:·14a6·7ffd·2326·e845·3200·0000·0000·0000··....#&.E2....... | ||
| 00000010:· | 00000010:·08b0·ff2d·064a·b14e·8ab9·333b·4103·69cd··...-.J.N..3;A.i. | ||
| 00000020:·2c51·0300·7000·0000·3ca1·0200·6000·0000··,Q..p...<...`... | 00000020:·2c51·0300·7000·0000·3ca1·0200·6000·0000··,Q..p...<...`... | ||
| 00000030:·2c4e·0300·0003·0000·6000·0000·2c4b·0300··,N......`...,K.. | 00000030:·2c4e·0300·0003·0000·6000·0000·2c4b·0300··,N......`...,K.. | ||
| 00000040:·0003·0000·200e·0000·aca1·0200·80a9·0000··....·........... | 00000040:·0003·0000·200e·0000·aca1·0200·80a9·0000··....·........... | ||
| 00000050:·0000·0000·0000·0000·2c51·0300·0000·0000··........,Q...... | 00000050:·0000·0000·0000·0000·2c51·0300·0000·0000··........,Q...... | ||
| 00000060:·ffff·ffff·0800·0000·0900·0000·0000·0000··................ | 00000060:·ffff·ffff·0800·0000·0900·0000·0000·0000··................ | ||
| 00000070:·412f·6275·696c·642f·7265·7072·6f64·7563··A/build/reproduc | 00000070:·412f·6275·696c·642f·7265·7072·6f64·7563··A/build/reproduc | ||
| 00000080:·6962·6c65·2d70·6174·682f·6d6f·6e6f·2d36··ible-path/mono-6 | 00000080:·6962·6c65·2d70·6174·682f·6d6f·6e6f·2d36··ible-path/mono-6 | ||
| Offset 61, 636 lines modified | Offset 61, 636 lines modified | ||
| 000003c0:·6d6f·6e6f·2d36·2e31·342e·312b·6473·322f··mono-6.14.1+ds2/ | 000003c0:·6d6f·6e6f·2d36·2e31·342e·312b·6473·322f··mono-6.14.1+ds2/ | ||
| 000003d0:·6d63·732f·636c·6173·732f·4d6f·6e6f·2e53··mcs/class/Mono.S | 000003d0:·6d63·732f·636c·6173·732f·4d6f·6e6f·2e53··mcs/class/Mono.S | ||
| 000003e0:·6563·7572·6974·792f·4d6f·6e6f·2e53·6563··ecurity/Mono.Sec | 000003e0:·6563·7572·6974·792f·4d6f·6e6f·2e53·6563··ecurity/Mono.Sec | ||
| 000003f0:·7572·6974·792e·4372·7970·746f·6772·6170··urity.Cryptograp | 000003f0:·7572·6974·792e·4372·7970·746f·6772·6170··urity.Cryptograp | ||
| 00000400:·6879·2f43·7279·7074·6f43·6f6e·7665·7274··hy/CryptoConvert | 00000400:·6879·2f43·7279·7074·6f43·6f6e·7665·7274··hy/CryptoConvert | ||
| 00000410:·2e63·7360·a66e·40cf·6482·4cb6·f042·d481··.cs`.n@.d.L..B.. | 00000410:·2e63·7360·a66e·40cf·6482·4cb6·f042·d481··.cs`.n@.d.L..B.. | ||
| 00000420:·72a7·9927·8e5d·a552·2603·b0d0·da42·c679··r..'.].R&....B.y | 00000420:·72a7·9927·8e5d·a552·2603·b0d0·da42·c679··r..'.].R&....B.y | ||
| 00000430:·6a8f·a600· | 00000430:·6a8f·a600·592f·6275·696c·642f·7265·7072··j...Y/build/repr | ||
| 00000440:·6f64·7563·6962·6c65·2d70·6174·682f·6d6f··oducible-path/mo | 00000440:·6f64·7563·6962·6c65·2d70·6174·682f·6d6f··oducible-path/mo | ||
| 00000450:·6e6f·2d36·2e31·342e·312b·6473·322f·6578··no-6.14.1+ds2/ex | 00000450:·6e6f·2d36·2e31·342e·312b·6473·322f·6578··no-6.14.1+ds2/ex | ||
| 00000460:·7465·726e·616c·2f69·6b76·6d2f·7265·666c··ternal/ikvm/refl | 00000460:·7465·726e·616c·2f69·6b76·6d2f·7265·666c··ternal/ikvm/refl | ||
| 00000470:·6563·742f·416d·6269·6775·6f75·734d·6174··ect/AmbiguousMat | |||
| 00000480:·6368·4578·6365·7074·696f·6e2e·6373·60a6··chException.cs`. | |||
| 00000470:·6563·742f·4173·7365·6d62·6c79·4e61·6d65··ect/AssemblyName | |||
| 00000480:·2e63·7360·a66e·40cf·6482·4cb6·f042·d481··.cs`.n@.d.L..B.. | |||
| 00000490:·72a7·9988·d82a·120f·7abf·cfec·1cca·7143··r....*..z.....qC | |||
| 000004a0:·1560·6200·4c2f·6275·696c·642f·7265·7072··.`b.L/build/repr | |||
| 000004b0:·6f64·7563·6962·6c65·2d70·6174·682f·6d6f··oducible-path/mo | |||
| 000004c0:·6e6f·2d36·2e31·342e·312b·6473·322f·6578··no-6.14.1+ds2/ex | |||
| 000004d0:·7465·726e·616c·2f69·6b76·6d2f·7265·666c··ternal/ikvm/refl | |||
| 000004e0:·6563·742f·5072·6f6a·6563·7469·6f6e·2e63··ect/Projection.c | |||
| 000004f0:·7360·a66e·40cf·6482·4cb6·f042·d481·72a7··s`.n@.d.L..B..r. | |||
| 00000500:·992c·d344·6a2e·8d4c·7306·ac59·2308·8da6··.,.Dj..Ls..Y#... | |||
| 00000510:·ec00·4e2f·6275·696c·642f·7265·7072·6f64··..N/build/reprod | |||
| 00000520:·7563·6962·6c65·2d70·6174·682f·6d6f·6e6f··ucible-path/mono | |||
| 00000530:·2d36·2e31·342e·312b·6473·322f·6578·7465··-6.14.1+ds2/exte | |||
| 00000540:·726e·616c·2f69·6b76·6d2f·7265·666c·6563··rnal/ikvm/reflec | |||
| 00000550:·742f·5072·6f70·6572·7479·496e·666f·2e63··t/PropertyInfo.c | |||
| 00000560:·7360·a66e·40cf·6482·4cb6·f042·d481·72a7··s`.n@.d.L..B..r. | |||
| 00000570:·9973·5dce·cf77·8f21·000a·0175·ce96·b67a··.s]..w.!...u...z | |||
| 00000580:·8b00·532f·6275·696c·642f·7265·7072·6f64··..S/build/reprod | |||
| 00000590:·7563·6962·6c65·2d70·6174·682f·6d6f·6e6f··ucible-path/mono | |||
| 000005a0:·2d36·2e31·342e·312b·6473·322f·6578·7465··-6.14.1+ds2/exte | |||
| 000005b0:·726e·616c·2f69·6b76·6d2f·7265·666c·6563··rnal/ikvm/reflec | |||
| 000005c0:·742f·5061·7261·6d65·7465·724d·6f64·6966··t/ParameterModif | |||
| 000005d0:·6965·722e·6373·60a6·6e40·cf64·824c·b6f0··ier.cs`.n@.d.L.. | |||
| 000005e0:·42d4·8172·a799·a9de·b83c·b084·2378·b0f5··B..r.....<..#x.. | |||
| 000005f0:·28ea·2fd7·d213·0047·2f62·7569·6c64·2f72··(./....G/build/r | |||
| 00000600:·6570·726f·6475·6369·626c·652d·7061·7468··eproducible-path | |||
| 00000610:·2f6d·6f6e·6f2d·362e·3134·2e31·2b64·7332··/mono-6.14.1+ds2 | |||
| 00000620:·2f65·7874·6572·6e61·6c2f·696b·766d·2f72··/external/ikvm/r | |||
| 00000630:·6566·6c65·6374·2f45·6e75·6d73·2e63·7360··eflect/Enums.cs` | |||
| 00000640:·a66e·40cf·6482·4cb6·f042·d481·72a7·99bd··.n@.d.L..B..r... | |||
| 00000650:·4446·cfb4·4438·e1f6·032b·a2f9·c9bc·9f00··DF..D8...+...... | |||
| 00000660:·562f·6275·696c·642f·7265·7072·6f64·7563··V/build/reproduc | |||
| 00000670:·6962·6c65·2d70·6174·682f·6d6f·6e6f·2d36··ible-path/mono-6 | |||
| 00000680:·2e31·342e·312b·6473·322f·6578·7465·726e··.14.1+ds2/extern | |||
| 00000690:·616c·2f69·6b76·6d2f·7265·666c·6563·742f··al/ikvm/reflect/ | |||
| 000006a0:·4d61·6e69·6665·7374·5265·736f·7572·6365··ManifestResource | |||
| 000006b0:·496e·666f·2e63·7360·a66e·40cf·6482·4cb6··Info.cs`.n@.d.L. | |||
| 000006c0:·f042·d481·72a7·9948·2cc4·69b0·4fa6·0fc6··.B..r..H,.i.O... | |||
| 000006d0:·474d·dfff·bdd6·ae00·462f·6275·696c·642f··GM......F/build/ | |||
| 000006e0:·7265·7072·6f64·7563·6962·6c65·2d70·6174··reproducible-pat | |||
| 000006f0:·682f·6d6f·6e6f·2d36·2e31·342e·312b·6473··h/mono-6.14.1+ds | |||
| 00000700:·322f·6578·7465·726e·616c·2f69·6b76·6d2f··2/external/ikvm/ | |||
| 00000710:·7265·666c·6563·742f·5479·7065·2e63·7360··reflect/Type.cs` | |||
| 00000720:·a66e·40cf·6482·4cb6·f042·d481·72a7·99c8··.n@.d.L..B..r... | |||
| 00000730:·1fe4·f733·e77d·8374·2100·c351·f7ed·7d00··...3.}.t!..Q..}. | |||
| 00000740:·4c2f·6275·696c·642f·7265·7072·6f64·7563··L/build/reproduc | |||
| 00000750:·6962·6c65·2d70·6174·682f·6d6f·6e6f·2d36··ible-path/mono-6 | |||
| 00000760:·2e31·342e·312b·6473·322f·6578·7465·726e··.14.1+ds2/extern | |||
| 00000770:·616c·2f69·6b76·6d2f·7265·666c·6563·742f··al/ikvm/reflect/ | |||
| 00000780:·4d65·7468·6f64·426f·6479·2e63·7360·a66e··MethodBody.cs`.n | |||
| 00000790:·40cf·6482·4cb6·f042·d481·72a7·9970·0ab5··@.d.L..B..r..p.. | |||
| 000007a0:·24d4·647c·9642·fa1f·2f24·bf52·a700·592f··$.d|.B../$.R..Y/ | |||
| 000007b0:·6275·696c·642f·7265·7072·6f64·7563·6962··build/reproducib | |||
| 000007c0:·6c65·2d70·6174·682f·6d6f·6e6f·2d36·2e31··le-path/mono-6.1 | |||
| 000007d0:·342e·312b·6473·322f·6578·7465·726e·616c··4.1+ds2/external | |||
| 000007e0:·2f69·6b76·6d2f·7265·666c·6563·742f·416d··/ikvm/reflect/Am | |||
| 000007f0:·6269·6775·6f75·734d·6174·6368·4578·6365··biguousMatchExce | |||
| 00000800:·7074·696f·6e2e·6373·60a6·6e40·cf64·824c··ption.cs`.n@.d.L | |||
| 00000810:·b6f0·42d4·8172·a799·b4c8·2dba·6855·a9d1··..B..r....-.hU.. | |||
| 00000820:·6a1f·1588·3a87·4ec1·0049·2f62·7569·6c64··j...:.N..I/build | |||
| 00000830:·2f72·6570·726f·6475·6369·626c·652d·7061··/reproducible-pa | |||
| 00000840:·7468·2f6d·6f6e·6f2d·362e·3134·2e31·2b64··th/mono-6.14.1+d | |||
| 00000850:·7332·2f65·7874·6572·6e61·6c2f·696b·766d··s2/external/ikvm | |||
| 00000860:·2f72·6566·6c65·6374·2f4d·6973·7369·6e67··/reflect/Missing | |||
| 00000870:·2e63·7360·a66e·40cf·6482·4cb6·f042·d481··.cs`.n@.d.L..B.. | |||
| 00000880:·72a7·995c·aad3·92ba·92e7·b46a·215f·6c2f··r..\.......j!_l/ | |||
| 00000890:·b60a·b700·512f·6275·696c·642f·7265·7072··....Q/build/repr | |||
| 000008a0:·6f64·7563·6962·6c65·2d70·6174·682f·6d6f··oducible-path/mo | |||
| 000008b0:·6e6f·2d36·2e31·342e·312b·6473·322f·6578··no-6.14.1+ds2/ex | |||
| 000008c0:·7465·726e·616c·2f69·6b76·6d2f·7265·666c··ternal/ikvm/refl | |||
| 000008d0:·6563·742f·4d65·7468·6f64·5369·676e·6174··ect/MethodSignat | |||
| 000008e0:·7572·652e·6373·60a6·6e40·cf64·824c·b6f0··ure.cs`.n@.d.L.. | |||
| 000008f0:·42d4·8172·a799·71ab·19f7·c2a9·8a8e·5cb5··B..r..q.......\. | |||
| 00000900:·292e·522f·3bce·0046·2f62·7569·6c64·2f72··).R/;..F/build/r | |||
| 00000910:·6570·726f·6475·6369·626c·652d·7061·7468··eproducible-path | |||
| 00000920:·2f6d·6f6e·6f2d·362e·3134·2e31·2b64·7332··/mono-6.14.1+ds2 | |||
| 00000930:·2f65·7874·6572·6e61·6c2f·696b·766d·2f72··/external/ikvm/r | |||
| 00000940:·6566·6c65·6374·2f55·7469·6c2e·6373·60a6··eflect/Util.cs`. | |||
| 00000 | 00000490:·6e40·cf64·824c·b6f0·42d4·8172·a799·b4c8··n@.d.L..B..r.... | ||
| 00000 | 000004a0:·2dba·6855·a9d1·6a1f·1588·3a87·4ec1·0048··-.hU..j...:.N..H | ||
| 00000 | 000004b0:·2f62·7569·6c64·2f72·6570·726f·6475·6369··/build/reproduci | ||
| 00000 | 000004c0:·626c·652d·7061·7468·2f6d·6f6e·6f2d·362e··ble-path/mono-6. | ||
| 00000990:·3134·2e31·2b64·7332·2f65·7874·6572·6e61··14.1+ds2/externa | |||
| 000009a0:·6c2f·696b·766d·2f72·6566·6c65·6374·2f53··l/ikvm/reflect/S | |||
| 000009b0:·7472·6f6e·674e·616d·654b·6579·5061·6972··trongNameKeyPair | |||
| 000009c0:·2e63·7360·a66e·40cf·6482·4cb6·f042·d481··.cs`.n@.d.L..B.. | |||
| 000009d0:·72a7·990d·2851·a6a5·5504·791e·464a·8108··r...(Q..U.y.FJ.. | |||
| 000009e0:·37d5·0b00·532f·6275·696c·642f·7265·7072··7...S/build/repr | |||
| 000009f0:·6f64·7563·6962·6c65·2d70·6174·682f·6d6f··oducible-path/mo | |||
| 00000a00:·6e6f·2d36·2e31·342e·312b·6473·322f·6578··no-6.14.1+ds2/ex | |||
| 00000a10:·7465·726e·616c·2f69·6b76·6d2f·7265·666c··ternal/ikvm/refl | |||
| 00000a20:·6563·742f·5072·6f70·6572·7479·5369·676e··ect/PropertySign | |||
| 00000a30:·6174·7572·652e·6373·60a6·6e40·cf64·824c··ature.cs`.n@.d.L | |||
| 00000a40:·b6f0·42d4·8172·a799·26c4·b675·bbf8·0bb2··..B..r..&..u.... | |||
| 00000a50:·e9fc·cad4·bcbb·757c·0051·2f62·7569·6c64··......u|.Q/build | |||
| 00000a60:·2f72·6570·726f·6475·6369·626c·652d·7061··/reproducible-pa | |||
| 00000a70:·7468·2f6d·6f6e·6f2d·362e·3134·2e31·2b64··th/mono-6.14.1+d | |||
| 00000a80:·7332·2f65·7874·6572·6e61·6c2f·696b·766d··s2/external/ikvm | |||
| 00000a90:·2f72·6566·6c65·6374·2f43·6f6e·7374·7275··/reflect/Constru | |||
| 00000aa0:·6374·6f72·496e·666f·2e63·7360·a66e·40cf··ctorInfo.cs`.n@. | |||
| 00000ab0:·6482·4cb6·f042·d481·72a7·996c·58f7·cc07··d.L..B..r..lX... | |||
| 00000ac0:·23c2·91b7·cb4a·adbd·3508·af00·4c2f·6275··#....J..5...L/bu | |||
| 00000ad0:·696c·642f·7265·7072·6f64·7563·6962·6c65··ild/reproducible | |||
| 00000ae0:·2d70·6174·682f·6d6f·6e6f·2d36·2e31·342e··-path/mono-6.14. | |||
| Max diff block lines reached; 1648244/1688371 bytes (97.62%) of diff not shown. | |||
| Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
| 1 | Zip·file·size:·474 | 1 | Zip·file·size:·474699·bytes,·number·of·entries:·982 |
| 2 | -rw----·····2.0·fat······346·b-·defN·25-Sep-01·13:00·CS0006 | 2 | -rw----·····2.0·fat······346·b-·defN·25-Sep-01·13:00·CS0006 |
| 3 | -rw----·····2.0·fat·····8552·b-·defN·25-Sep-01·13:00·CS0012 | 3 | -rw----·····2.0·fat·····8552·b-·defN·25-Sep-01·13:00·CS0012 |
| 4 | -rw----·····2.0·fat······408·b-·defN·25-Sep-01·13:00·CS0017 | 4 | -rw----·····2.0·fat······408·b-·defN·25-Sep-01·13:00·CS0017 |
| 5 | -rw----·····2.0·fat····17933·b-·defN·25-Sep-01·13:00·CS0019 | 5 | -rw----·····2.0·fat····17933·b-·defN·25-Sep-01·13:00·CS0019 |
| 6 | -rw----·····2.0·fat······396·b-·defN·25-Sep-01·13:00·CS0020 | 6 | -rw----·····2.0·fat······396·b-·defN·25-Sep-01·13:00·CS0020 |
| 7 | -rw----·····2.0·fat·····1219·b-·defN·25-Sep-01·13:00·CS0021 | 7 | -rw----·····2.0·fat·····1219·b-·defN·25-Sep-01·13:00·CS0021 |
| 8 | -rw----·····2.0·fat······641·b-·defN·25-Sep-01·13:00·CS0022 | 8 | -rw----·····2.0·fat······641·b-·defN·25-Sep-01·13:00·CS0022 |
| Offset 977, 8 lines modified | Offset 977, 8 lines modified | ||
| 977 | -rw----·····2.0·fat······439·b-·defN·25-Sep-01·13:00·CS8343 | 977 | -rw----·····2.0·fat······439·b-·defN·25-Sep-01·13:00·CS8343 |
| 978 | -rw----·····2.0·fat······717·b-·defN·25-Sep-01·13:00·CS8345 | 978 | -rw----·····2.0·fat······717·b-·defN·25-Sep-01·13:00·CS8345 |
| 979 | -rw----·····2.0·fat······503·b-·defN·25-Sep-01·13:00·CS8346 | 979 | -rw----·····2.0·fat······503·b-·defN·25-Sep-01·13:00·CS8346 |
| 980 | -rw----·····2.0·fat······645·b-·defN·25-Sep-01·13:00·CS8385 | 980 | -rw----·····2.0·fat······645·b-·defN·25-Sep-01·13:00·CS8385 |
| 981 | -rw----·····2.0·fat······391·b-·defN·25-Sep-01·13:00·CS8800 | 981 | -rw----·····2.0·fat······391·b-·defN·25-Sep-01·13:00·CS8800 |
| 982 | -rw----·····2.0·fat······836·b-·defN·25-Sep-01·13:00·CS9030 | 982 | -rw----·····2.0·fat······836·b-·defN·25-Sep-01·13:00·CS9030 |
| 983 | -rw----·····2.0·fat······434·b-·defN·25-Sep-01·13:00·CS9671 | 983 | -rw----·····2.0·fat······434·b-·defN·25-Sep-01·13:00·CS9671 |
| 984 | 982·files,·1097786·bytes·uncompressed,·388 | 984 | 982·files,·1097786·bytes·uncompressed,·388261·bytes·compressed:··64.6% |
| Offset 22, 44328 lines modified | Offset 22, 44328 lines modified | ||
| 22 | 00104·LOCAL·HEADER·#2·······04034B50·(67324752) | 22 | 00104·LOCAL·HEADER·#2·······04034B50·(67324752) |
| 23 | 00108·Extract·Zip·Spec······14·(20)·'2.0' | 23 | 00108·Extract·Zip·Spec······14·(20)·'2.0' |
| 24 | 00109·Extract·OS············00·(0)·'MS-DOS' | 24 | 00109·Extract·OS············00·(0)·'MS-DOS' |
| 25 | 0010A·General·Purpose·Flag··0000·(0) | 25 | 0010A·General·Purpose·Flag··0000·(0) |
| 26 | ······[Bits·1-2]············0·'Normal·Compression' | 26 | ······[Bits·1-2]············0·'Normal·Compression' |
| 27 | 0010C·Compression·Method····0008·(8)·'Deflated' | 27 | 0010C·Compression·Method····0008·(8)·'Deflated' |
| 28 | 0010E·Modification·Time·····5B216804·(1528915972)·'Mon·Sep··1·13:00:08·2025' | 28 | 0010E·Modification·Time·····5B216804·(1528915972)·'Mon·Sep··1·13:00:08·2025' |
| 29 | 00112·CRC··················· | 29 | 00112·CRC···················D18C67EE·(3515639790) |
| 30 | 00116·Compressed·Size·······0000039 | 30 | 00116·Compressed·Size·······00000394·(916) |
| 31 | 0011A·Uncompressed·Size·····00002168·(8552) | 31 | 0011A·Uncompressed·Size·····00002168·(8552) |
| 32 | 0011E·Filename·Length·······0006·(6) | 32 | 0011E·Filename·Length·······0006·(6) |
| 33 | 00120·Extra·Length··········0000·(0) | 33 | 00120·Extra·Length··········0000·(0) |
| 34 | 00122·Filename··············'XXXXXX' | 34 | 00122·Filename··············'XXXXXX' |
| 35 | # | 35 | # |
| 36 | #·WARNING:·Offset·0x122:·Filename·'XXXXXX' | 36 | #·WARNING:·Offset·0x122:·Filename·'XXXXXX' |
| 37 | #··········Zero·length·filename | 37 | #··········Zero·length·filename |
| 38 | # | 38 | # |
| 39 | 00128·PAYLOAD | 39 | 00128·PAYLOAD |
| 40 | 004 | 40 | 004BC·LOCAL·HEADER·#3·······04034B50·(67324752) |
| 41 | 004C | 41 | 004C0·Extract·Zip·Spec······14·(20)·'2.0' |
| 42 | 004C | 42 | 004C1·Extract·OS············00·(0)·'MS-DOS' |
| 43 | 004C | 43 | 004C2·General·Purpose·Flag··0000·(0) |
| 44 | ······[Bits·1-2]············0·'Normal·Compression' | 44 | ······[Bits·1-2]············0·'Normal·Compression' |
| 45 | 004C | 45 | 004C4·Compression·Method····0008·(8)·'Deflated' |
| 46 | 004C | 46 | 004C6·Modification·Time·····5B216804·(1528915972)·'Mon·Sep··1·13:00:08·2025' |
| 47 | 004 | 47 | 004CA·CRC···················E7C0E788·(3888179080) |
| 48 | 004 | 48 | 004CE·Compressed·Size·······000000F9·(249) |
| 49 | 004D | 49 | 004D2·Uncompressed·Size·····00000198·(408) |
| 50 | 004D | 50 | 004D6·Filename·Length·······0006·(6) |
| 51 | 004 | 51 | 004D8·Extra·Length··········0000·(0) |
| 52 | 004 | 52 | 004DA·Filename··············'XXXXXX' |
| 53 | # | 53 | # |
| 54 | #·WARNING:·Offset·0x4 | 54 | #·WARNING:·Offset·0x4DA:·Filename·'XXXXXX' |
| 55 | #··········Zero·length·filename | 55 | #··········Zero·length·filename |
| 56 | # | 56 | # |
| 57 | 004E | 57 | 004E0·PAYLOAD···············XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX |
| 58 | ····························XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | 58 | ····························XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX |
| 59 | 005 | 59 | 005D9·LOCAL·HEADER·#4·······04034B50·(67324752) |
| 60 | 005 | 60 | 005DD·Extract·Zip·Spec······14·(20)·'2.0' |
| 61 | 005 | 61 | 005DE·Extract·OS············00·(0)·'MS-DOS' |
| 62 | 005 | 62 | 005DF·General·Purpose·Flag··0000·(0) |
| 63 | ······[Bits·1-2]············0·'Normal·Compression' | 63 | ······[Bits·1-2]············0·'Normal·Compression' |
| 64 | 005E | 64 | 005E1·Compression·Method····0008·(8)·'Deflated' |
| 65 | 005E | 65 | 005E3·Modification·Time·····5B216804·(1528915972)·'Mon·Sep··1·13:00:08·2025' |
| 66 | 005 | 66 | 005E7·CRC···················169CB9FB·(379369979) |
| 67 | 005 | 67 | 005EB·Compressed·Size·······00000D41·(3393) |
| 68 | 005 | 68 | 005EF·Uncompressed·Size·····0000460D·(17933) |
| 69 | 005F | 69 | 005F3·Filename·Length·······0006·(6) |
| 70 | 005F | 70 | 005F5·Extra·Length··········0000·(0) |
| 71 | 00 | 71 | 005F7·Filename··············'XXXXXX' |
| 72 | # | 72 | # |
| 73 | #·WARNING:·Offset·0x | 73 | #·WARNING:·Offset·0x5F7:·Filename·'XXXXXX' |
| 74 | #··········Zero·length·filename | 74 | #··········Zero·length·filename |
| 75 | # | 75 | # |
| 76 | 00 | 76 | 005FD·PAYLOAD |
| 77 | 013 | 77 | 0133E·LOCAL·HEADER·#5·······04034B50·(67324752) |
| 78 | 013 | 78 | 01342·Extract·Zip·Spec······14·(20)·'2.0' |
| 79 | 013 | 79 | 01343·Extract·OS············00·(0)·'MS-DOS' |
| 80 | 013 | 80 | 01344·General·Purpose·Flag··0000·(0) |
| 81 | ······[Bits·1-2]············0·'Normal·Compression' | 81 | ······[Bits·1-2]············0·'Normal·Compression' |
| 82 | 013 | 82 | 01346·Compression·Method····0008·(8)·'Deflated' |
| 83 | 013 | 83 | 01348·Modification·Time·····5B216804·(1528915972)·'Mon·Sep··1·13:00:08·2025' |
| 84 | 013 | 84 | 0134C·CRC···················E5C72A85·(3855035013) |
| 85 | 013 | 85 | 01350·Compressed·Size·······000000FE·(254) |
| 86 | 013 | 86 | 01354·Uncompressed·Size·····0000018C·(396) |
| 87 | 013 | 87 | 01358·Filename·Length·······0006·(6) |
| 88 | 013 | 88 | 0135A·Extra·Length··········0000·(0) |
| 89 | 013 | 89 | 0135C·Filename··············'XXXXXX' |
| 90 | # | 90 | # |
| 91 | #·WARNING:·Offset·0x13 | 91 | #·WARNING:·Offset·0x135C:·Filename·'XXXXXX' |
| 92 | #··········Zero·length·filename | 92 | #··········Zero·length·filename |
| 93 | # | 93 | # |
| 94 | 013 | 94 | 01362·PAYLOAD···············XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX |
| 95 | ····························XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | 95 | ····························XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX |
| 96 | 014 | 96 | 01460·LOCAL·HEADER·#6·······04034B50·(67324752) |
| 97 | 014 | 97 | 01464·Extract·Zip·Spec······14·(20)·'2.0' |
| 98 | 014 | 98 | 01465·Extract·OS············00·(0)·'MS-DOS' |
| 99 | 014 | 99 | 01466·General·Purpose·Flag··0000·(0) |
| 100 | ······[Bits·1-2]············0·'Normal·Compression' | 100 | ······[Bits·1-2]············0·'Normal·Compression' |
| 101 | 014 | 101 | 01468·Compression·Method····0008·(8)·'Deflated' |
| 102 | 014 | 102 | 0146A·Modification·Time·····5B216804·(1528915972)·'Mon·Sep··1·13:00:08·2025' |
| 103 | 014 | 103 | 0146E·CRC···················7FFDB1C2·(2147332546) |
| 104 | 014 | 104 | 01472·Compressed·Size·······000001C4·(452) |
| 105 | 014 | 105 | 01476·Uncompressed·Size·····000004C3·(1219) |
| 106 | 014 | 106 | 0147A·Filename·Length·······0006·(6) |
| 107 | 014 | 107 | 0147C·Extra·Length··········0000·(0) |
| 108 | 014 | 108 | 0147E·Filename··············'XXXXXX' |
| 109 | # | 109 | # |
| 110 | #·WARNING:·Offset·0x14 | 110 | #·WARNING:·Offset·0x147E:·Filename·'XXXXXX' |
| 111 | #··········Zero·length·filename | 111 | #··········Zero·length·filename |
| 112 | # | 112 | # |
| 113 | 014 | 113 | 01484·PAYLOAD |
| 114 | 016 | 114 | 01648·LOCAL·HEADER·#7·······04034B50·(67324752) |
| 115 | 016 | 115 | 0164C·Extract·Zip·Spec······14·(20)·'2.0' |
| 116 | 016 | 116 | 0164D·Extract·OS············00·(0)·'MS-DOS' |
| 117 | 016 | 117 | 0164E·General·Purpose·Flag··0000·(0) |
| 118 | ······[Bits·1-2]············0·'Normal·Compression' | 118 | ······[Bits·1-2]············0·'Normal·Compression' |
| 119 | 016 | 119 | 01650·Compression·Method····0008·(8)·'Deflated' |
| 120 | 016 | 120 | 01652·Modification·Time·····5B216804·(1528915972)·'Mon·Sep··1·13:00:08·2025' |
| 121 | 016 | 121 | 01656·CRC···················992248F7·(2569160951) |
| 122 | 016 | 122 | 0165A·Compressed·Size·······00000175·(373) |
| 123 | 016 | 123 | 0165E·Uncompressed·Size·····00000281·(641) |
| 124 | 016 | 124 | 01662·Filename·Length·······0006·(6) |
| 125 | 016 | 125 | 01664·Extra·Length··········0000·(0) |
| 126 | 016 | 126 | 01666·Filename··············'XXXXXX' |
| 127 | # | 127 | # |
| 128 | #·WARNING:·Offset·0x16 | 128 | #·WARNING:·Offset·0x1666:·Filename·'XXXXXX' |
| 129 | #··········Zero·length·filename | 129 | #··········Zero·length·filename |
| 130 | # | 130 | # |
| 131 | 016 | 131 | 0166C·PAYLOAD |
| 132 | 01 | 132 | 017E1·LOCAL·HEADER·#8·······04034B50·(67324752) |
| 133 | 01 | 133 | 017E5·Extract·Zip·Spec······14·(20)·'2.0' |
| 134 | 01 | 134 | 017E6·Extract·OS············00·(0)·'MS-DOS' |
| 135 | 01 | 135 | 017E7·General·Purpose·Flag··0000·(0) |
| 136 | ······[Bits·1-2]············0·'Normal·Compression' | 136 | ······[Bits·1-2]············0·'Normal·Compression' |
| 137 | 01 | 137 | 017E9·Compression·Method····0008·(8)·'Deflated' |
| 138 | 01 | 138 | 017EB·Modification·Time·····5B216804·(1528915972)·'Mon·Sep··1·13:00:08·2025' |
| 139 | 01 | 139 | 017EF·CRC···················552DC134·(1429061940) |
| 140 | 01 | 140 | 017F3·Compressed·Size·······000005CF·(1487) |
| 141 | 01 | 141 | 017F7·Uncompressed·Size·····00001A80·(6784) |
| 142 | 01 | 142 | 017FB·Filename·Length·······0006·(6) |
| Max diff block lines reached; 3383313/3393015 bytes (99.71%) of diff not shown. | |||
| Offset 1, 138 lines modified | Offset 1, 110 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0012</ErrorName> | 3 | ··<ErrorName>CS0012</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·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' | ||
| 6 | //·Line:·9 | ||
| 7 | //·Compiler·options:·-r:CS0012-18-lib.dll | ||
| 8 | class·Test | ||
| 9 | { | ||
| 10 | » public·static·void·Main·() | ||
| 11 | » { | ||
| 12 | » » var·c·=·B.e; | ||
| 13 | » } | ||
| 14 | }</string> | ||
| 15 | ····<string>//·CS0012:·The·type·`A | 5 | ····<string>//·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' |
| 16 | //·Line:·13 | ||
| 17 | //·Compiler·options:·-r:CS0012-lib.dll | ||
| 18 | using·System.Threading.Tasks; | ||
| 19 | class·Test | ||
| 20 | { | ||
| 21 | » public·static·void·Main·() | ||
| 22 | » { | ||
| 23 | » » var·b·=·new·B·(); | ||
| 24 | » » var·t·=·Task.Factory.StartNew·(()·=>·{ | ||
| 25 | » » » b.Test·(); | ||
| 26 | » » » b.Test·(); | ||
| 27 | » » }); | ||
| 28 | » » b.Test·(); | ||
| 29 | » } | ||
| 30 | }</string> | ||
| 31 | ····<string>//·CS0012:·The·type·`A.Nested'·is·defined·in·an·assembly·that·is·not·referenced.·Consider·adding·a·reference·to·assembly·`CS0012-lib-missing,·Version=0.0.0.0,·Culture=neutral,·PublicKeyToken=null' | ||
| 32 | //·Line:·9 | 6 | //·Line:·9 |
| 33 | //·Compiler·options:·-r:CS0012-1 | 7 | //·Compiler·options:·-r:CS0012-15-lib.dll |
| 34 | class·Test | 8 | class·Test |
| 35 | { | 9 | { |
| 36 | » public·static·void·Main·() | 10 | » public·static·void·Main·() |
| 37 | » { | 11 | » { |
| 38 | » » | 12 | » » B.Foo<long>·(1); |
| 39 | » } | 13 | » } |
| 40 | }</string> | 14 | }</string> |
| 41 | ····<string>//·CS0012:·The·type·`AA`1<T>'·is·defined·in·an·assembly·that·is·not·referenced.·Consider·adding·a·reference·to·assembly·`CS0012-lib-missing,·Version=0.0.0.0,·Culture=neutral,·PublicKeyToken=null' | 15 | ····<string>//·CS0012:·The·type·`AA`1<T>'·is·defined·in·an·assembly·that·is·not·referenced.·Consider·adding·a·reference·to·assembly·`CS0012-lib-missing,·Version=0.0.0.0,·Culture=neutral,·PublicKeyToken=null' |
| 42 | //·Line:·9 | 16 | //·Line:·9 |
| 43 | //·Compiler·options:·-r:CS0012-17-lib.dll | 17 | //·Compiler·options:·-r:CS0012-17-lib.dll |
| 44 | class·Test | 18 | class·Test |
| 45 | { | 19 | { |
| 46 | » public·static·void·Main·() | 20 | » public·static·void·Main·() |
| 47 | » { | 21 | » { |
| 48 | » » B.Foo<long>·(); | 22 | » » B.Foo<long>·(); |
| 49 | » } | 23 | » } |
| 50 | }</string> | 24 | }</string> |
| 51 | ····<string>//·CS0012:·The·type·` | 25 | ····<string>//·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' |
| 52 | //·Line:· | 26 | //·Line:·9 |
| 53 | //·Compiler·options:·-r:CS0012-2-lib.dll | 27 | //·Compiler·options:·-r:CS0012-21-lib.dll |
| 54 | class· | 28 | public·class·C |
| 55 | { | 29 | { |
| 56 | » public·static·void·Main·() | 30 | » public·static·void·Main·() |
| 57 | » { | 31 | » { |
| 32 | » » new·B·(); | ||
| 58 | » » var·b·=·new·B·(); | ||
| 59 | » » b.Test·(null); | ||
| 60 | » } | 33 | » } |
| 61 | }</string> | 34 | }</string> |
| 62 | ····<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' | 35 | ····<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' |
| 63 | //·Line:· | 36 | //·Line:·10 |
| 64 | //·Compiler·options:·-r:CS0012- | 37 | //·Compiler·options:·-r:CS0012-3-lib.dll |
| 65 | class·Test | 38 | class·Test |
| 66 | { | 39 | { |
| 67 | » public·static·void·Main·() | 40 | » public·static·void·Main·() |
| 68 | » { | 41 | » { |
| 69 | » » | 42 | » » var·b·=·new·B·(); |
| 43 | » » b.value·=·null; | ||
| 70 | » } | 44 | » } |
| 71 | }</string> | 45 | }</string> |
| 72 | ····<string>//·CS0012:·The·type·` | 46 | ····<string>//·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' |
| 73 | //·Line:· | 47 | //·Line:·5 |
| 74 | //·Compiler·options:·-r:CS0012- | 48 | //·Compiler·options:·-r:CS0012-12-lib.dll |
| 75 | 49 | class·Program·:·Lib1.Class1<int> | |
| 76 | { | 50 | { |
| 77 | » public·static·void·Main·() | ||
| 78 | » { | ||
| 79 | » » var·val·=·B.ArrayMember; | ||
| 80 | » } | ||
| 81 | }</string> | 51 | }</string> |
| 82 | ····<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' | 52 | ····<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' |
| 83 | //·Line:·10 | 53 | //·Line:·10 |
| 84 | //·Compiler·options:·-r:CS0012-lib.dll | 54 | //·Compiler·options:·-r:CS0012-lib.dll |
| 85 | class·Test | 55 | class·Test |
| 86 | { | 56 | { |
| 87 | » public·static·void·Main·() | 57 | » public·static·void·Main·() |
| 88 | » { | 58 | » { |
| 89 | » » var·b·=·new·B·(); | 59 | » » var·b·=·new·B·(); |
| 90 | » » b.Test·(); | 60 | » » b.Test·(); |
| 91 | » » b.Test·(); | ||
| 92 | » } | 61 | » } |
| 93 | }</string> | 62 | }</string> |
| 94 | ····<string>//·CS0012:·The·type·` | 63 | ····<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' |
| 95 | //·Line:· | 64 | //·Line:·10 |
| 96 | //·Compiler·options:·-r:CS0012- | 65 | //·Compiler·options:·-r:CS0012-6-lib.dll |
| 97 | 66 | [A] | |
| 67 | class·Test | ||
| 98 | { | 68 | { |
| 99 | » public·static·void·Main·() | 69 | » public·static·void·Main·() |
| 100 | » { | 70 | » { |
| 101 | » » new·B·(); | ||
| 102 | » } | 71 | » } |
| 103 | }</string> | 72 | }</string> |
| 104 | ····<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' | 73 | ····<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' |
| 105 | //·Line:·9 | 74 | //·Line:·9 |
| 106 | //·Compiler·options:·-r:CS0012-9-lib.dll | 75 | //·Compiler·options:·-r:CS0012-9-lib.dll |
| 107 | class·Test | 76 | class·Test |
| 108 | { | 77 | { |
| 109 | » public·static·void·Main·() | 78 | » public·static·void·Main·() |
| 110 | » { | 79 | » { |
| 111 | » » A.M<string>·(); | 80 | » » A.M<string>·(); |
| 112 | » } | 81 | » } |
| Max diff block lines reached; 7618/12789 bytes (59.57%) of diff not shown. | |||
| Offset 1, 167 lines modified | Offset 1, 180 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0019</ErrorName> | 3 | ··<ErrorName>CS0019</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0019:·Operator·`=='·cannot·be·applied·to·operands·of·type·`A.D'·and·`anonymous·method' | ||
| 6 | //·Line:·11 | ||
| 7 | class·A | ||
| 8 | { | ||
| 9 | » delegate·void·D·(); | ||
| 10 | » static·void·Main·() | ||
| 11 | » { | ||
| 12 | » » D·d·=·null; | ||
| 13 | » » bool·r·=·d·==·(()·=>·{·}); | ||
| 14 | » } | ||
| 15 | }</string> | ||
| 16 | ····<string>//·CS0019:·Operator·` | 5 | ····<string>//·CS0019:·Operator·`%'·cannot·be·applied·to·operands·of·type·`E'·and·`int' |
| 17 | //·Line·:·10 | 6 | //·Line·:·10 |
| 18 | enum·E:·byte·{ | 7 | enum·E:·byte·{ |
| 19 | » Min | 8 | » Min |
| 20 | } | 9 | } |
| 21 | class·T·{ | 10 | class·T·{ |
| 22 | » static·void·Main·()·{ | 11 | » static·void·Main·()·{ |
| 23 | » » E·error·=·E.Min· | 12 | » » E·error·=·E.Min·%·2; |
| 24 | » } | 13 | » } |
| 25 | }</string> | 14 | }</string> |
| 26 | ····<string>//·CS0019:·Operator·` | 15 | ····<string>//·CS0019:·Operator·`+'·cannot·be·applied·to·operands·of·type·`string'·and·`method·group' |
| 27 | //·Line:· | 16 | //·Line:·10 |
| 28 | class·S | ||
| 29 | { | ||
| 30 | » const·decimal·d·=·0f·-·1m; | ||
| 31 | }</string> | ||
| 32 | ····<string>//·CS0019:·Operator·`+'·cannot·be·applied·to·operands·of·type·`Test.Zub'·and·`Test.Zub' | ||
| 33 | //·Line·:·11 | ||
| 34 | using·System; | 17 | using·System; |
| 18 | public·class·Test | ||
| 19 | { | ||
| 35 | class·Test·{ | ||
| 36 | » enum·Zub·:byte·{ | ||
| 37 | » » Foo·=·99, | ||
| 38 | » » Bar, | ||
| 39 | » » Baz | ||
| 40 | » } | ||
| 41 | » | ||
| 42 | » static·void·Main·() | 20 | » public·static·void·Main·() |
| 43 | » { | 21 | » { |
| 22 | » » Console.WriteLine·("+++"·+·Main); | ||
| 44 | » » Zub·a·=·Zub.Foo,·b·=·Zub.Bar; | ||
| 45 | » » object·v·=·(a·+·b); | ||
| 46 | » } | 23 | » } |
| 47 | }</string> | 24 | }</string> |
| 48 | ····<string>//·CS0019:·Operator·`=='·cannot·be·applied·to·operands·of·type·` | 25 | ····<string>//·CS0019:·Operator·`=='·cannot·be·applied·to·operands·of·type·`U'·and·`null' |
| 49 | //·Line:· | 26 | //·Line:·13 |
| 50 | class· | 27 | abstract·class·A<T> |
| 51 | { | 28 | { |
| 52 | » static·int·i; | ||
| 53 | » | ||
| 54 | » | 29 | » public·abstract·bool·Foo<U>·(U·arg)·where·U·:·T; |
| 30 | } | ||
| 31 | class·B·:·A<byte> | ||
| 32 | { | ||
| 33 | » public·override·bool·Foo<U>·(U·arg) | ||
| 55 | » { | 34 | » { |
| 56 | » » return· | 35 | » » return·arg·==·null; |
| 57 | » } | 36 | » } |
| 58 | }</string> | 37 | }</string> |
| 59 | ····<string>//·CS0019:·Operator·` | 38 | ····<string>//·CS0019:·Operator·`+'·cannot·be·applied·to·operands·of·type·`string'·and·`float*' |
| 39 | //·Line:·12 | ||
| 40 | //·Compiler·options:·-unsafe | ||
| 41 | using·System; | ||
| 42 | public·class·Driver·{ | ||
| 43 | ··public·static·void·Main·()·{ | ||
| 44 | ····float·[]·floats·=·new·float[1]; | ||
| 45 | ····floats[0]·=·1.0f; | ||
| 46 | ····unsafe·{ | ||
| 47 | ······fixed·(float·*fp·=·&floats[0])·{ | ||
| 48 | ······Console.WriteLine·("foo"·+·fp); | ||
| 49 | ······} | ||
| 50 | ····} | ||
| 51 | ··} | ||
| 52 | }</string> | ||
| 53 | ····<string>//·CS0019:·Operator·`+='·cannot·be·applied·to·operands·of·type·`dynamic'·and·`anonymous·method' | ||
| 60 | //·Line:·9 | 54 | //·Line:·9 |
| 61 | using·System; | ||
| 62 | 55 | class·MainClass | |
| 56 | { | ||
| 63 | » public·static·void·Main·() | 57 | » public·static·void·Main·() |
| 64 | » » uint·j,·k; | ||
| 65 | » » j·=·0; | ||
| 66 | » | 58 | » { |
| 59 | » » dynamic·d·=·null; | ||
| 60 | » » d·+=·delegate·{}; | ||
| 67 | » } | 61 | » } |
| 68 | }</string> | 62 | }</string> |
| 69 | ····<string>//·CS0019:·Operator·`=='·cannot·be·applied·to·operands·of·type·` | 63 | ····<string>//·CS0019:··Operator·`=='·cannot·be·applied·to·operands·of·type·`object'·and·`int' |
| 70 | //·Line:· | 64 | //·Line:·11 |
| 71 | public·class·TestClass<T> | ||
| 72 | { | ||
| 73 | » public·bool·Check·(T·x,·T·y)·{·return·x·==·y;·} | ||
| 74 | } | ||
| 65 | using·System; | ||
| 66 | class·Test·{ | ||
| 75 | public·class·X | ||
| 76 | { | ||
| 77 | » static·void·Main·() | 67 | » static·void·Main·() |
| 78 | » { | 68 | » { |
| 69 | » » object·o·=·2; | ||
| 70 | » » if·(o·==·42) | ||
| 71 | » » » Console.WriteLine·(o); | ||
| 72 | » } | ||
| 79 | }</string> | 73 | }</string> |
| 80 | ····<string>//·CS0019:·Operator·` | 74 | ····<string>//·CS0019:·Operator·`-'·cannot·be·applied·to·operands·of·type·`AA'·and·`long' |
| 81 | //·Line:· | 75 | //·Line:·11 |
| Max diff block lines reached; 28971/32546 bytes (89.02%) of diff not shown. | |||
| Offset 1, 61 lines modified | Offset 1, 61 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0021</ErrorName> | 3 | ··<ErrorName>CS0021</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0021:·Cannot·apply·indexing·with·[]·to·an·expression·of·type·` | 5 | ····<string>//·CS0021:·Cannot·apply·indexing·with·[]·to·an·expression·of·type·`method·group' |
| 6 | //·Line:· | 6 | //·Line:· |
| 7 | using·System; | ||
| 8 | class·X | 7 | class·X |
| 9 | { | 8 | { |
| 10 | » public·void·Foo·( | 9 | » public·void·Foo·() |
| 11 | » { | 10 | » { |
| 12 | » » object·baz·=· | 11 | » » object·baz·=·Foo·[0]; |
| 13 | » } | 12 | » } |
| 14 | }</string> | 13 | }</string> |
| 15 | ····<string>//·CS0021:·Cannot·apply·indexing·with·[]·to·an·expression·of·type·` | 14 | ····<string>//·CS0021:·Cannot·apply·indexing·with·[]·to·an·expression·of·type·`int' |
| 16 | //·Line:· | 15 | //·Line:·10· |
| 16 | using·System; | ||
| 17 | 17 | class·Test | |
| 18 | { | 18 | { |
| 19 | » public·static·void· | 19 | » public·static·void·Main·() |
| 20 | » { | 20 | » { |
| 21 | » » int·i·=· | 21 | » » int·i·=·0; |
| 22 | » » Console.WriteLine·("Get·i[2]:·{0}",·i[2]); | ||
| 22 | » } | 23 | » } |
| 23 | }</string> | 24 | }</string> |
| 24 | ····<string>//·CS0021:·Cannot·apply·indexing·with·[]·to·an·expression·of·type·` | 25 | ····<string>//·CS0021:·Cannot·apply·indexing·with·[]·to·an·expression·of·type·`G' |
| 25 | //·Line:· | 26 | //·Line:·8 |
| 26 | class· | 27 | public·class·Foo<G> |
| 27 | { | 28 | { |
| 28 | » public·static·void· | 29 | » public·static·void·Bar·() |
| 29 | » { | 30 | » { |
| 31 | » » int·i·=·default·(G)[0]; | ||
| 30 | » » var·d·=·new·object·{ | ||
| 31 | » » » ["a"]·=·1 | ||
| 32 | » » }; | ||
| 33 | » } | 32 | » } |
| 34 | }</string> | 33 | }</string> |
| 35 | ····<string>//·CS0021:·Cannot·apply·indexing·with·[]·to·an·expression·of·type·` | 34 | ····<string>//·CS0021:·Cannot·apply·indexing·with·[]·to·an·expression·of·type·`System.Array' |
| 36 | //·Line:· | 35 | //·Line:·9· |
| 36 | using·System; | ||
| 37 | class·X | 37 | class·X |
| 38 | { | 38 | { |
| 39 | » public·void·Foo·() | 39 | » public·void·Foo·(Array·bar) |
| 40 | » { | 40 | » { |
| 41 | » » object·baz·=· | 41 | » » object·baz·=·bar[0]; |
| 42 | » } | 42 | » } |
| 43 | }</string> | 43 | }</string> |
| 44 | ····<string>//·CS0021:·Cannot·apply·indexing·with·[]·to·an·expression·of·type·` | 44 | ····<string>//·CS0021:·Cannot·apply·indexing·with·[]·to·an·expression·of·type·`object' |
| 45 | //·Line:· | 45 | //·Line:·9 |
| 46 | using·System; | ||
| 47 | class· | 46 | class·C |
| 48 | { | 47 | { |
| 49 | » public·static·void·Main·() | 48 | » public·static·void·Main·() |
| 50 | » { | 49 | » { |
| 51 | » » int·i·=·0; | ||
| 52 | » » | 50 | » » var·d·=·new·object·{ |
| 51 | » » » ["a"]·=·1 | ||
| 52 | » » }; | ||
| 53 | » } | 53 | » } |
| 54 | }</string> | 54 | }</string> |
| 55 | ··</Examples> | 55 | ··</Examples> |
| 56 | </ErrorDocumentation> | 56 | </ErrorDocumentation> |
| Offset 1, 133 lines modified | Offset 1, 99 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0023</ErrorName> | 3 | ··<ErrorName>CS0023</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0023:·The·` | 5 | ····<string>//·CS0023:·The·`-'·operator·cannot·be·applied·to·operand·of·type·`ulong' |
| 6 | //·Line:· | 6 | //·Line·:·6 |
| 7 | using·System; | ||
| 8 | class· | 7 | class·X·{ |
| 8 | ····const·ulong·a·=·2; | ||
| 9 | ····const·int·b·=·-a; | ||
| 9 | { | ||
| 10 | » static·void·Main() | ||
| 11 | » { | ||
| 12 | » » int·k·=·0; | ||
| 13 | » » var·r·=·k?.ToString·(); | ||
| 14 | » } | ||
| 15 | }</string> | 10 | }</string> |
| 16 | ····<string>//·CS0023:·The·`.'·operator·cannot·be·applied·to·operand·of·type·` | 11 | ····<string>//·CS0023:·The·`.'·operator·cannot·be·applied·to·operand·of·type·`anonymous·method' |
| 17 | //·Line:· | 12 | //·Line:·8 |
| 18 | public·class·App·{ | ||
| 19 | ··public·static·void·Main()·{} | ||
| 20 | ··SomeEnum·SomeEnum()·{ | ||
| 21 | ····return·SomeEnum.First; | ||
| 22 | ··} | ||
| 23 | } | ||
| 24 | enum·SomeEnum·{·First,·Second·};</string> | ||
| 25 | ····<string>//·CS0023:·The·`?'·operator·cannot·be·applied·to·operand·of·type·`void' | ||
| 26 | //·Line:·10 | ||
| 27 | using·System; | 13 | using·System; |
| 14 | class·Test·{ | ||
| 15 | » public·static·void·Main(string[]·argv)·{ | ||
| 16 | » » Console.WriteLine("Type·of·anonymous·block:·{0}", | ||
| 17 | » » » (delegate()·{}).GetType()); | ||
| 28 | class·C | ||
| 29 | { | ||
| 30 | » static·void·Main·() | ||
| 31 | » { | ||
| 32 | » » var·v·=·Console.WriteLine·()?[0]; | ||
| 33 | » } | 18 | » } |
| 34 | }</string> | 19 | }</string> |
| 35 | ····<string>//·CS0023:·The·` | 20 | ····<string>//·CS0023:·The·`++'·operator·cannot·be·applied·to·operand·of·type·`object' |
| 36 | //·Line:· | 21 | //·Line:·9 |
| 22 | using·System; | ||
| 23 | using·System.Collections; | ||
| 37 | class·A | ||
| 38 | { | ||
| 39 | » public·static·implicit·operator·ulong·(A·mask) | ||
| 40 | » { | ||
| 41 | 24 | class·Test·{ | |
| 25 | » public·static·void·Main(string[]·args)·{ | ||
| 26 | » » ArrayList·al·=·new·ArrayList(); | ||
| 27 | » » al[0]·=·0; | ||
| 28 | » » | ||
| 29 | » » Console.WriteLine((al[0])++); | ||
| 42 | » } | 30 | » } |
| 43 | } | ||
| 44 | class·X | ||
| 45 | { | ||
| 46 | ····static·A·a·=·null; | ||
| 47 | ····static·object·o·=·-a; | ||
| 48 | }</string> | 31 | }</string> |
| 49 | ····<string>//·CS0023:·The·`?'·operator·cannot·be·applied·to·operand·of·type·`T' | 32 | ····<string>//·CS0023:·The·`?'·operator·cannot·be·applied·to·operand·of·type·`T' |
| 50 | //·Line:· | 33 | //·Line:·8 |
| 51 | interface·IFoo<T> | ||
| 52 | { | ||
| 53 | » T·Call·(); | ||
| 54 | } | ||
| 55 | class·C | 34 | class·C |
| 56 | { | 35 | { |
| 57 | » | 36 | » static·void·Foo<T>·(T·t)·where·T·:·struct |
| 58 | » { | 37 | » { |
| 59 | » » | 38 | » » var·r·=·t?.ToString·(); |
| 60 | » } | 39 | » } |
| 61 | }</string> | 40 | }</string> |
| 62 | ····<string>//·CS0023:·The·`+'·operator·cannot·be·applied·to·operand·of·type·`X' | ||
| 63 | //·Line·:·6 | ||
| 64 | class·X·{ | ||
| 65 | ········static·void·Foo·(object·o) | ||
| 66 | ········{ | ||
| 67 | ········} | ||
| 68 | ········ | ||
| 69 | ········static·void·Main·()·{ | ||
| 70 | ················Foo·(+(X)null); | ||
| 71 | ········} | ||
| 72 | }</string> | ||
| 73 | ····<string>//·CS0023:·The·`?'·operator·cannot·be·applied·to·operand·of·type·`int' | 41 | ····<string>//·CS0023:·The·`?'·operator·cannot·be·applied·to·operand·of·type·`int' |
| 74 | //·Line:·9 | 42 | //·Line:·9 |
| 75 | public·class·C | 43 | public·class·C |
| 76 | { | 44 | { |
| 77 | » static·void·Main() | 45 | » static·void·Main() |
| 78 | » { | 46 | » { |
| 79 | » » string·s·=·null; | 47 | » » string·s·=·null; |
| 80 | » » var·x·=·s?.Length?.ToString·(); | 48 | » » var·x·=·s?.Length?.ToString·(); |
| 81 | » } | 49 | » } |
| 82 | }</string> | 50 | }</string> |
| 83 | ····<string>//·CS0023:·The·` | 51 | ····<string>//·CS0023:·The·`+'·operator·cannot·be·applied·to·operand·of·type·`X' |
| 52 | //·Line·:·6 | ||
| 53 | class·X·{ | ||
| 54 | ····static·X·x; | ||
| 55 | ····static·object·o·=·+x; | ||
| 56 | }</string> | ||
| 57 | ····<string>//·CS0023:·The·`?'·operator·cannot·be·applied·to·operand·of·type·`T' | ||
| 84 | //·Line:·8 | 58 | //·Line:·8 |
| 85 | class·X | 59 | class·X |
| 86 | { | 60 | { |
| 87 | » | 61 | » static·void·Bug<T>(System.Func<T>·func) |
| 88 | » { | 62 | » { |
| 89 | » » | 63 | » » var·r·=·func?.Invoke·(); |
| 90 | » } | 64 | » } |
| Max diff block lines reached; 8359/11566 bytes (72.27%) of diff not shown. | |||
| Offset 1, 26 lines modified | Offset 1, 12 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0027</ErrorName> | 3 | ··<ErrorName>CS0027</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0027:·Keyword·`this'·is·not·available·in·the·current·context | 5 | ····<string>//·CS0027:·Keyword·`this'·is·not·available·in·the·current·context |
| 6 | //·Line:·7· | ||
| 7 | using·System; | ||
| 8 | class·Error0027·{ | ||
| 9 | » int·i·=·this.x; | ||
| 10 | » int·x·=·0; | ||
| 11 | » | ||
| 12 | » public·static·void·Main·()·{ | ||
| 13 | » » Console.WriteLine·("The·compiler·should·complain:·Error·CS0027·trying·to·use·'this'·outside·context."); | ||
| 14 | » » Console.WriteLine·("Trying·to·assign·i·to·'this.x'·outside·a·method,·property·or·ctr."); | ||
| 15 | » } | ||
| 16 | }</string> | ||
| 17 | ····<string>//·CS0027:·Keyword·`this'·is·not·available·in·the·current·context | ||
| 18 | //·Line:·10 | 6 | //·Line:·10 |
| 19 | //·Attention:·Here·the·compiler·complains·saying·that·cannot·convert·implicitly·from·'Error0027'·to·'int'·but | 7 | //·Attention:·Here·the·compiler·complains·saying·that·cannot·convert·implicitly·from·'Error0027'·to·'int'·but |
| 20 | //·should·also·say·that·the·use·of·keyword·'this'·is·out·of·context·since·it's·used·outside·a·constructor,·method | 8 | //·should·also·say·that·the·use·of·keyword·'this'·is·out·of·context·since·it's·used·outside·a·constructor,·method |
| 21 | //·or·property. | 9 | //·or·property. |
| 22 | using·System; | 10 | using·System; |
| Offset 29, 14 lines modified | Offset 15, 21 lines modified | ||
| 29 | » int·x·=·0; | 15 | » int·x·=·0; |
| 30 | » | 16 | » |
| 31 | » public·static·void·Main·()·{ | 17 | » public·static·void·Main·()·{ |
| 32 | » » Console.WriteLine·("The·compiler·should·complain:·Error·CS0027·trying·to·use·'this'·outside·context."); | 18 | » » Console.WriteLine·("The·compiler·should·complain:·Error·CS0027·trying·to·use·'this'·outside·context."); |
| 33 | » » Console.WriteLine·("Trying·to·assign·i·to·'this'·outside·a·method,·property·or·ctr."); | 19 | » » Console.WriteLine·("Trying·to·assign·i·to·'this'·outside·a·method,·property·or·ctr."); |
| 34 | » } | 20 | » } |
| 35 | }</string> | 21 | }</string> |
| 22 | ····<string>//·CS0027:·Keyword·`this'·is·not·available·in·the·current·context | ||
| 23 | //·Line:·6 | ||
| 24 | class·Program | ||
| 25 | { | ||
| 26 | » const·object·y·=·this; | ||
| 27 | }</string> | ||
| 36 | ····<string>//·CS0007:·Keyword·`this'·is·not·available·in·the·current·context | 28 | ····<string>//·CS0007:·Keyword·`this'·is·not·available·in·the·current·context |
| 37 | //·Line:·14 | 29 | //·Line:·14 |
| 38 | class·B | 30 | class·B |
| 39 | { | 31 | { |
| 40 | » public·B·(object·o) | 32 | » public·B·(object·o) |
| 41 | » { | 33 | » { |
| Offset 47, 15 lines modified | Offset 40, 22 lines modified | ||
| 47 | { | 40 | { |
| 48 | » public·C·() | 41 | » public·C·() |
| 49 | » » :·base·(this) | 42 | » » :·base·(this) |
| 50 | » { | 43 | » { |
| 51 | » } | 44 | » } |
| 52 | }</string> | 45 | }</string> |
| 53 | ····<string>//·CS0027:·Keyword·`this'·is·not·available·in·the·current·context | 46 | ····<string>//·CS0027:·Keyword·`this'·is·not·available·in·the·current·context |
| 54 | //·Line:· | 47 | //·Line:·7· |
| 55 | class·Program | ||
| 56 | { | ||
| 57 | 48 | using·System; | |
| 49 | class·Error0027·{ | ||
| 50 | » int·i·=·this.x; | ||
| 51 | » int·x·=·0; | ||
| 52 | » | ||
| 53 | » public·static·void·Main·()·{ | ||
| 54 | » » Console.WriteLine·("The·compiler·should·complain:·Error·CS0027·trying·to·use·'this'·outside·context."); | ||
| 55 | » » Console.WriteLine·("Trying·to·assign·i·to·'this.x'·outside·a·method,·property·or·ctr."); | ||
| 56 | » } | ||
| 58 | }</string> | 57 | }</string> |
| 59 | ··</Examples> | 58 | ··</Examples> |
| 60 | </ErrorDocumentation> | 59 | </ErrorDocumentation> |
| Offset 1, 28 lines modified | Offset 1, 28 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0028</ErrorName> | 3 | ··<ErrorName>CS0028</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0028:·`T.Main()'·has·the·wrong·signature·to·be·an·entry·point | ||
| 6 | //·Line:·6 | ||
| 7 | //·Compiler·options:·-warnaserror:28·-warn:4 | ||
| 8 | class·T·{ | ||
| 9 | ········public·static·bool·Main·() | ||
| 10 | ········{ | ||
| 11 | ············return·false; | ||
| 12 | ········} | ||
| 13 | }</string> | ||
| 14 | ····<string>//·CS0028:·`T.Main(int)'·has·the·wrong·signature·to·be·an·entry·point | 5 | ····<string>//·CS0028:·`T.Main(int)'·has·the·wrong·signature·to·be·an·entry·point |
| 15 | //·Line:·8 | 6 | //·Line:·8 |
| 16 | //·Compiler·options:·-warnaserror·-warn:4 | 7 | //·Compiler·options:·-warnaserror·-warn:4 |
| 17 | class·T·{ | 8 | class·T·{ |
| 18 | ········public·static·int·Main·() | 9 | ········public·static·int·Main·() |
| 19 | ········{ | 10 | ········{ |
| 20 | ········} | 11 | ········} |
| 21 | ········public·static·int·Main·(int·foo) | 12 | ········public·static·int·Main·(int·foo) |
| 22 | ········{ | 13 | ········{ |
| 23 | ········} | 14 | ········} |
| 24 | }</string> | 15 | }</string> |
| 16 | ····<string>//·CS0028:·`T.Main()'·has·the·wrong·signature·to·be·an·entry·point | ||
| 17 | //·Line:·6 | ||
| 18 | //·Compiler·options:·-warnaserror:28·-warn:4 | ||
| 19 | class·T·{ | ||
| 20 | ········public·static·bool·Main·() | ||
| 21 | ········{ | ||
| 22 | ············return·false; | ||
| 23 | ········} | ||
| 24 | }</string> | ||
| 25 | ··</Examples> | 25 | ··</Examples> |
| 26 | </ErrorDocumentation> | 26 | </ErrorDocumentation> |
| Offset 1, 66 lines modified | Offset 1, 121 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0029</ErrorName> | 3 | ··<ErrorName>CS0029</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0029:·Cannot·implicitly·convert·type·`void'·to·`System.EventHandler' | ||
| 6 | //·Line:·14 | ||
| 7 | class·C | ||
| 8 | { | ||
| 9 | » static·event·System.EventHandler·ev | ||
| 10 | » { | ||
| 11 | » » add·{·} | ||
| 12 | » » remove·{·} | ||
| 13 | » } | ||
| 14 | » static·void·Main·() | ||
| 15 | » { | ||
| 16 | » » ev·+=·ev·+=·null; | ||
| 17 | » } | ||
| 18 | }</string> | ||
| 19 | ····<string>//·CS0029:·Cannot·implicitly·convert·type·`T[]'·to·`System.Collections.Generic.IList<U>' | ||
| 20 | //·Line:·10 | ||
| 21 | using·System.Collections.Generic; | ||
| 22 | class·Program | ||
| 23 | { | ||
| 24 | » static·IList<U>·Foo<T,·U>·(T[]·arg)·where·T·:·U | ||
| 25 | » { | ||
| 26 | » » return·arg; | ||
| 27 | » } | ||
| 28 | }</string> | ||
| 29 | ····<string>//·CS0029:·Cannot·implicitly·convert·type·`bool'·to·`int' | ||
| 30 | //·Line·:·7 | ||
| 31 | class·T·{ | ||
| 32 | » static·int·Main·() | ||
| 33 | » { | ||
| 34 | » » int·a·=·default(bool); | ||
| 35 | » } | ||
| 36 | }</string> | ||
| 37 | ····<string>//·CS0029:·Cannot·implicitly·convert·type·`A<int>.B<long>'·to·`A<long>.B<long>' | ||
| 38 | //·Line:·14 | ||
| 39 | class·A<T> | ||
| 40 | { | ||
| 41 | » public·class·B<U> | ||
| 42 | » { | ||
| 43 | » } | ||
| 44 | } | ||
| 45 | class·Test | ||
| 46 | { | ||
| 47 | » static·A<int>.B<long>·a; | ||
| 48 | » static·A<long>.B<long>·b·=·a; | ||
| 49 | }</string> | ||
| 5 | ····<string>//·CS0029:·Cannot·implicitly·convert·type·`anonymous·type'·to·`bool' | 50 | ····<string>//·CS0029:·Cannot·implicitly·convert·type·`anonymous·type'·to·`bool' |
| 6 | //·Line:·10 | 51 | //·Line:·10 |
| 7 | public·class·Test | 52 | public·class·Test |
| 8 | { | 53 | { |
| 9 | » static·void·Main·() | 54 | » static·void·Main·() |
| 10 | » { | 55 | » { |
| 11 | » » var·o·=·new·{·Value·=·1·}; | 56 | » » var·o·=·new·{·Value·=·1·}; |
| 12 | » » bool·b·=·o; | 57 | » » bool·b·=·o; |
| 13 | » } | 58 | » } |
| 14 | }</string> | 59 | }</string> |
| 15 | ····<string>//·CS0029:·Cannot·implicitly·convert·type·`string'·to·`int' | 60 | ····<string>//·CS0029:·Cannot·implicitly·convert·type·`string'·to·`int' |
| 16 | //·Line:· | 61 | //·Line:·10 |
| 62 | //·Compiler·options:·-unsafe | ||
| 17 | delegate·string·funcs·(string·s); | ||
| 18 | delegate·int·funci·(int·i); | ||
| 19 | class· | 63 | class·TestClass |
| 20 | { | 64 | { |
| 65 | » public·unsafe·static·void·Main·() | ||
| 21 | » static·void·Foo·(funci·fi) | ||
| 22 | » { | ||
| 23 | » } | ||
| 24 | » | ||
| 25 | » static·void·Foo·(funcs·fs) | ||
| 26 | » { | 66 | » { |
| 67 | » » int*·arr·=·null; | ||
| 68 | » » var·i·=·arr["c"]; | ||
| 27 | » } | 69 | » } |
| 70 | }</string> | ||
| 71 | ····<string>//·CS0029:·Cannot·implicitly·convert·type·`int'·to·`string' | ||
| 72 | //·Line:·5 | ||
| 28 | 73 | class·A·{ | |
| 74 | » public·static·implicit·operator·string·(A·a) | ||
| 29 | » { | 75 | » {· |
| 30 | » » Foo·(x·=>·{ | ||
| 31 | » » » int·a·=·"a"; | ||
| 32 | » » | 76 | » » return·42; |
| 33 | » » }); | ||
| 34 | » } | 77 | ·» } |
| 35 | }</string> | 78 | }</string> |
| 36 | ····<string>//·CS00 | 79 | ····<string>//·CS0019:·Cannot·implicitly·convert·type·`dynamic'·to·`int*' |
| 37 | //·Line:· | 80 | //·Line:·10 |
| 81 | //·Compiler·options:·-unsafe | ||
| 38 | class· | 82 | public·unsafe·class·C |
| 39 | { | 83 | { |
| 40 | » public·static·void·Main·() | 84 | » public·static·void·Main·() |
| 41 | » { | 85 | » { |
| 42 | » » | 86 | » » dynamic·d·=·1; |
| 87 | » » int*·i·=·d; | ||
| 43 | » } | 88 | » } |
| 44 | }</string> | 89 | }</string> |
| 45 | ····<string>//·CS0029:·Cannot·implicitly·convert·type·`in | 90 | ····<string>//·CS0029:·Cannot·implicitly·convert·type·`string'·to·`MyTypeImplicitOnly?' |
| 46 | //·Line:· | 91 | //·Line:·13 |
| 92 | struct·MyTypeImplicitOnly | ||
| 93 | { | ||
| 94 | } | ||
| 47 | class·C | 95 | class·C |
| 48 | { | 96 | { |
| 49 | » static·void· | 97 | » static·void·Main·() |
| 50 | » { | 98 | » { |
| 51 | » » | 99 | » » MyTypeImplicitOnly?·mt·=·null; |
| 100 | » » mt·=·null·+·mt; | ||
| 52 | » } | 101 | » } |
| Max diff block lines reached; 15596/18454 bytes (84.51%) of diff not shown. | |||
| Offset 1, 103 lines modified | Offset 1, 74 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0030</ErrorName> | 3 | ··<ErrorName>CS0030</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0030:·Cannot·convert·type·`T'·to·` | 5 | ····<string>//·CS0030:·Cannot·convert·type·`System.DateTime'·to·`string' |
| 6 | //·Line:· | 6 | //·Line:·10 |
| 7 | class·Foo<T> | ||
| 8 | » where·T·:·System.ICloneable | ||
| 7 | using·System; | ||
| 8 | public·class·Blah | ||
| 9 | { | 9 | { |
| 10 | » public· | 10 | » public·static·void·Main·() |
| 11 | » { | 11 | » { |
| 12 | » » r | 12 | » » string·s·=·(string)DateTime.Now; |
| 13 | » } | 13 | » } |
| 14 | }</string> | ||
| 15 | ····<string>//·CS0030:·Cannot·convert·type·`object'·to·`S' | ||
| 16 | //·Line:·13 | ||
| 17 | //·Compiler·options:·-langversion:latest | ||
| 18 | ref·struct·S | ||
| 19 | { | ||
| 14 | } | 20 | } |
| 15 | class·X | 21 | class·X |
| 16 | { | 22 | { |
| 23 | » public·static·void·Foo·(object·o) | ||
| 17 | » static·void·Main·() | ||
| 18 | » {·} | ||
| 19 | }</string> | ||
| 20 | ····<string>//·CS0030:·Cannot·convert·type·`string'·to·`char' | ||
| 21 | //·Line:·8 | ||
| 22 | public·class·Blah·{ | ||
| 23 | » public·static·int·Main·() | ||
| 24 | » { | 24 | » { |
| 25 | » » | 25 | » » var·res·=·(S)·o; |
| 26 | » } | 26 | » } |
| 27 | }</string> | 27 | }</string> |
| 28 | ····<string>//·CS0030:·Cannot·convert·type·` | 28 | ····<string>//·CS0030:·Cannot·convert·type·`Position'·to·`Board.Stone' |
| 29 | //·Line:· | 29 | //·Line:·20 |
| 30 | using·System; | 30 | using·System; |
| 31 | using·System.Collections; | ||
| 32 | public·class·Position·{ | ||
| 33 | } | ||
| 31 | public·class·Blah·{ | ||
| 32 | » struct·S·{} | ||
| 33 | » enum·E·{·Val·} | ||
| 34 | » | ||
| 35 | » public·static·void·Main·() | ||
| 36 | » { | ||
| 37 | » » S·s·=·(S)(Enum)E.Val; | ||
| 38 | » } | ||
| 39 | }</string> | ||
| 40 | ····<string>//·CS0030:·Cannot·convert·type·`Blah'·to·`float' | ||
| 41 | //·Line:·12 | ||
| 42 | public·class·B | 34 | public·class·Board·{ |
| 35 | ····public·enum·Stone·:·int·{ | ||
| 36 | » None·=·0, | ||
| 37 | » ····Empty·=·1, | ||
| 38 | » ····Black·=·2, | ||
| 39 | » ····White·=·3 | ||
| 40 | ····} | ||
| 41 | ····public·Stone·Get(Position·p) | ||
| 42 | ····{ | ||
| 43 | » return·(Stone)p; | ||
| 44 | ····} | ||
| 43 | 45 | ····public·static·void·Main()·{ | |
| 46 | ····} | ||
| 47 | ···· | ||
| 44 | » { | ||
| 45 | » » Blah·k; | ||
| 46 | » » | ||
| 47 | » » k·=·new·Blah·(); | ||
| 48 | » » | ||
| 49 | » » float·f·=·(float)·k; | ||
| 50 | » » | ||
| 51 | » } | ||
| 52 | }</string> | 48 | }</string> |
| 53 | ····<string>//·CS0030:·Cannot·convert·type·`T2[]'·to·`T1[]' | 49 | ····<string>//·CS0030:·Cannot·convert·type·`T2[]'·to·`T1[]' |
| 54 | //·Line:·8 | 50 | //·Line:·8 |
| 55 | class·X | 51 | class·X |
| 56 | { | 52 | { |
| 57 | » static·void·Foo<T1,T2>·(T2[]·array)·where·T1·:·class·where·T2·:·struct | 53 | » static·void·Foo<T1,T2>·(T2[]·array)·where·T1·:·class·where·T2·:·struct |
| 58 | » { | 54 | » { |
| 59 | » » T1[]·a·=·(T1[])array; | 55 | » » T1[]·a·=·(T1[])array; |
| 60 | » } | 56 | » } |
| 61 | }</string> | 57 | }</string> |
| 62 | ····<string>//·CS0030:·Cannot·convert·type·`string'·to·`IA' | ||
| 63 | //·Line:·13 | ||
| 64 | interface·IA | ||
| 65 | { | ||
| 66 | } | ||
| 67 | class·MainClass | ||
| 68 | { | ||
| 69 | » public·static·void·Main·() | ||
| 70 | » { | ||
| 71 | » » string·s·=·"s"; | ||
| 72 | » » IA·i·=·(IA)·s; | ||
| 73 | » } | ||
| 74 | }</string> | ||
| 75 | ····<string>//·CS0030:·Cannot·convert·type·`T[,]'·to·`System.Collections.Generic.IEnumerable<T>' | ||
| 76 | //·Line:·10 | ||
| 77 | using·System.Collections.Generic; | ||
| 78 | class·C | ||
| 79 | { | ||
| 80 | » IEnumerable<T>·Foo<T>·(T·[,]·a) | ||
| 81 | » { | ||
| 82 | » » return·(IEnumerable<T>)·a; | ||
| 83 | » } | ||
| 84 | }</string> | ||
| 85 | ····<string>//·CS0030:·Cannot·convert·type·`X'·to·`S' | 58 | ····<string>//·CS0030:·Cannot·convert·type·`X'·to·`S' |
| 86 | //·Line:·10 | 59 | //·Line:·10 |
| 87 | struct·S·{ | 60 | struct·S·{ |
| Max diff block lines reached; 4416/7024 bytes (62.87%) of diff not shown. | |||
| Offset 1, 83 lines modified | Offset 1, 64 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0031</ErrorName> | 3 | ··<ErrorName>CS0031</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0031:·Constant·value·` | 5 | ····<string>//·CS0031:·Constant·value·`-1'·cannot·be·converted·to·a·`byte' |
| 6 | //·Line:·9 | 6 | //·Line:·9 |
| 7 | public·class·Test | 7 | public·class·Test |
| 8 | { | 8 | { |
| 9 | » public·static·void·Main() | 9 | » public·static·void·Main() |
| 10 | » { | 10 | » { |
| 11 | » » byte·b·=·-1; | ||
| 11 | » » unchecked·{ | ||
| 12 | » » » byte·b·=·1024·-·2; | ||
| 13 | » » } | ||
| 14 | » } | ||
| 15 | }</string> | ||
| 16 | ····<string>//·CS0031:·Constant·value·`999999999999999'·cannot·be·converted·to·a·`int' | ||
| 17 | //·Line:·9 | ||
| 18 | class·X | ||
| 19 | { | ||
| 20 | » public·static·void·Main·() | ||
| 21 | » { | ||
| 22 | » » int·i·=·3; | ||
| 23 | » » i·+=·999999999999999; | ||
| 24 | » } | 12 | » } |
| 25 | }</string> | 13 | }</string> |
| 26 | ····<string>//·CS0031:·Constant·value·` | 14 | ····<string>//·CS0031:·Constant·value·`1022'·cannot·be·converted·to·a·`byte' |
| 27 | //·Line:·9 | 15 | //·Line:·9 |
| 28 | public·class·Test | 16 | public·class·Test |
| 29 | { | 17 | { |
| 30 | » public·static·void·Main() | 18 | » public·static·void·Main() |
| 31 | » { | 19 | » { |
| 32 | » » | 20 | » » unchecked·{ |
| 21 | » » » byte·b·=·1024·-·2; | ||
| 22 | » » } | ||
| 33 | » } | 23 | » } |
| 34 | }</string> | 24 | }</string> |
| 35 | ····<string>//·CS0031:·Constant·value·`1.42'·cannot·be·converted·to·a·`int' | ||
| 36 | //·Line:·6 | ||
| 37 | class·X | ||
| 38 | { | ||
| 39 | » const·int·val·=·1.42f; | ||
| 40 | }</string> | ||
| 41 | ····<string>//·CS0031:·Constant·value·`256'·cannot·be·converted·to·a·`byte' | 25 | ····<string>//·CS0031:·Constant·value·`256'·cannot·be·converted·to·a·`byte' |
| 42 | //·Line·:·7 | 26 | //·Line·:·7 |
| 43 | public·class·Blah·{ | 27 | public·class·Blah·{ |
| 44 | » public·enum·MyEnum·:·byte·{ | 28 | » public·enum·MyEnum·:·byte·{ |
| 45 | » » Foo·=·256, | 29 | » » Foo·=·256, |
| 46 | » » Bar | 30 | » » Bar |
| 47 | » } | 31 | » } |
| 48 | » public·static·void·Main·() | 32 | » public·static·void·Main·() |
| 49 | » { | 33 | » { |
| 50 | » } | 34 | » } |
| 51 | }</string> | 35 | }</string> |
| 52 | ····<string>//·CS0031:·Constant·value·`200000000000'·cannot·be·converted·to·a·`int' | ||
| 53 | //·Line:·7 | ||
| 54 | //·Compiler·options:·-unsafe | ||
| 55 | public·unsafe·struct·C | ||
| 56 | { | ||
| 57 | ····private·fixed·long·test_1·[200000000000]; | ||
| 58 | }</string> | ||
| 59 | ····<string>//·CS0031:·Constant·value·`-9'·cannot·be·converted·to·a·`uint' | 36 | ····<string>//·CS0031:·Constant·value·`-9'·cannot·be·converted·to·a·`uint' |
| 60 | //·Line:·9 | 37 | //·Line:·9 |
| 61 | public·class·Test | 38 | public·class·Test |
| 62 | { | 39 | { |
| 63 | » public·static·void·Main() | 40 | » public·static·void·Main() |
| 64 | » { | 41 | » { |
| 65 | » » uint·b·=·-9; | 42 | » » uint·b·=·-9; |
| 66 | » } | 43 | » } |
| 67 | }</string> | 44 | }</string> |
| 45 | ····<string>//·CS0031:·Constant·value·`1.42'·cannot·be·converted·to·a·`int' | ||
| 46 | //·Line:·6 | ||
| 47 | class·X | ||
| 48 | { | ||
| 49 | » const·int·val·=·1.42f; | ||
| 50 | }</string> | ||
| 68 | ····<string>//·CS0031:·Constant·value·`-97'·cannot·be·converted·to·a·`uint' | 51 | ····<string>//·CS0031:·Constant·value·`-97'·cannot·be·converted·to·a·`uint' |
| 69 | //·Line:·9 | 52 | //·Line:·9 |
| 70 | public·class·Test | 53 | public·class·Test |
| 71 | { | 54 | { |
| 72 | » const·uint·b·=·-'a'; | 55 | » const·uint·b·=·-'a'; |
| 73 | }</string> | 56 | }</string> |
| Offset 87, 9 lines modified | Offset 68, 28 lines modified | ||
| 87 | class·C | 68 | class·C |
| 88 | { | 69 | { |
| 89 | » public·static·void·Main·() | 70 | » public·static·void·Main·() |
| 90 | » { | 71 | » { |
| 91 | » » const·byte·c·=·unchecked·((byte)·1000M); | 72 | » » const·byte·c·=·unchecked·((byte)·1000M); |
| 92 | » } | 73 | » } |
| 93 | }</string> | 74 | }</string> |
| 75 | ····<string>//·CS0031:·Constant·value·`200000000000'·cannot·be·converted·to·a·`int' | ||
| 76 | //·Line:·7 | ||
| 77 | //·Compiler·options:·-unsafe | ||
| 78 | public·unsafe·struct·C | ||
| 79 | { | ||
| 80 | ····private·fixed·long·test_1·[200000000000]; | ||
| 81 | }</string> | ||
| 82 | ····<string>//·CS0031:·Constant·value·`999999999999999'·cannot·be·converted·to·a·`int' | ||
| 83 | //·Line:·9 | ||
| 84 | class·X | ||
| 85 | { | ||
| 86 | » public·static·void·Main·() | ||
| 87 | » { | ||
| 88 | » » int·i·=·3; | ||
| 89 | » » i·+=·999999999999999; | ||
| 90 | » } | ||
| 91 | }</string> | ||
| 94 | ··</Examples> | 92 | ··</Examples> |
| 95 | </ErrorDocumentation> | 93 | </ErrorDocumentation> |
| Offset 1, 46 lines modified | Offset 1, 11 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0034</ErrorName> | 3 | ··<ErrorName>CS0034</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0034:·Operator·`=='·is·ambiguous·on·operands·of·type·`Foo'·and·`Foo' | ||
| 6 | //·Line:·23 | ||
| 7 | public·struct·Foo | ||
| 8 | { | ||
| 9 | » public·static·implicit·operator·int?·(Foo·f) | ||
| 10 | » { | ||
| 11 | » » return·1; | ||
| 12 | » } | ||
| 13 | » public·static·implicit·operator·bool?·(Foo·f) | ||
| 14 | » { | ||
| 15 | » » return·false; | ||
| 16 | » } | ||
| 17 | } | ||
| 18 | class·C | ||
| 19 | { | ||
| 20 | » public·static·void·Main·() | ||
| 21 | » { | ||
| 22 | » » Foo·f; | ||
| 23 | » » Foo·f2; | ||
| 24 | » » var·v·=·f·==·f2; | ||
| 25 | » } | ||
| 26 | }</string> | ||
| 27 | ····<string>//·CS0034:·Operator·`+'·is·ambiguous·on·operands·of·type·`null'·and·`null' | ||
| 28 | //·Line:·8 | ||
| 29 | class·C | ||
| 30 | { | ||
| 31 | » public·static·void·Main·() | ||
| 32 | » { | ||
| 33 | » » const·string·s3·=·null·+·null; | ||
| 34 | » } | ||
| 35 | }</string> | ||
| 36 | ····<string>//·CS0034:·Operator·`!='·is·ambiguous·on·operands·of·type·`Program.A'·and·`Program.B' | 5 | ····<string>//·CS0034:·Operator·`!='·is·ambiguous·on·operands·of·type·`Program.A'·and·`Program.B' |
| 37 | //·Line:·36 | 6 | //·Line:·36 |
| 38 | using·System; | 7 | using·System; |
| 39 | class·Program | 8 | class·Program |
| 40 | { | 9 | { |
| Offset 71, 14 lines modified | Offset 36, 50 lines modified | ||
| 71 | » } | 36 | » } |
| 72 | » public·static·void·Main·(string·[]·args) | 37 | » public·static·void·Main·(string·[]·args) |
| 73 | » { | 38 | » { |
| 74 | » » bool·b·=·new·A·()·!=·new·B·(); | 39 | » » bool·b·=·new·A·()·!=·new·B·(); |
| 75 | » } | 40 | » } |
| 76 | }</string> | 41 | }</string> |
| 42 | ····<string>//·CS0034:·Operator·`+'·is·ambiguous·on·operands·of·type·`null'·and·`null' | ||
| 43 | //·Line:·8 | ||
| 44 | class·C | ||
| 45 | { | ||
| 46 | » public·static·void·Main·() | ||
| 47 | » { | ||
| 48 | » » const·string·s3·=·null·+·null; | ||
| 49 | » } | ||
| 50 | }</string> | ||
| 51 | ····<string>//·CS0034:·Operator·`=='·is·ambiguous·on·operands·of·type·`A'·and·`A' | ||
| 52 | //·Line:·36 | ||
| 53 | using·System; | ||
| 54 | struct·A | ||
| 55 | { | ||
| 56 | » public·static·implicit·operator·string·(A·c) | ||
| 57 | » { | ||
| 58 | » » return·null; | ||
| 59 | » } | ||
| 60 | » public·static·implicit·operator·Delegate·(A·c) | ||
| 61 | » { | ||
| 62 | » » return·null; | ||
| 63 | » } | ||
| 64 | } | ||
| 65 | class·Program | ||
| 66 | { | ||
| 67 | » public·static·void·Main·() | ||
| 68 | » { | ||
| 69 | » » bool·b·=·new·A·()·==·new·A·(); | ||
| 70 | » } | ||
| 71 | }</string> | ||
| 77 | ····<string>//·CS0034:·Operator·`+'·is·ambiguous·on·operands·of·type·`Y'·and·`X' | 72 | ····<string>//·CS0034:·Operator·`+'·is·ambiguous·on·operands·of·type·`Y'·and·`X' |
| 78 | //·Line:·22 | 73 | //·Line:·22 |
| 79 | public·class·Y·{ | 74 | public·class·Y·{ |
| 80 | » public·static·implicit·operator·int·(Y·y)·{ | 75 | » public·static·implicit·operator·int·(Y·y)·{ |
| 81 | » » return·0; | 76 | » » return·0; |
| 82 | » } | 77 | » } |
| Offset 107, 56 lines modified | Offset 108, 55 lines modified | ||
| 107 | public·class·C·{ | 108 | public·class·C·{ |
| 108 | » public·static·void·Main·() | 109 | » public·static·void·Main·() |
| 109 | » { | 110 | » { |
| 110 | » » Y·y·=·new·Y·()·+·new·X·(); | 111 | » » Y·y·=·new·Y·()·+·new·X·(); |
| 111 | » } | 112 | » } |
| 112 | }</string> | 113 | }</string> |
| 113 | ····<string>//·CS0034:·Operator·` | 114 | ····<string>//·CS0034:·Operator·`+'·is·ambiguous·on·operands·of·type·`A'·and·`A' |
| 114 | //·Line:· | 115 | //·Line:·22 |
| 115 | using·System; | ||
| 116 | public·class·A·{ | ||
| 116 | struct·A | ||
| 117 | { | ||
| 118 | » public·static·implicit·operator· | 117 | » public·static·implicit·operator·int·(A·a) |
| 119 | » { | 118 | » { |
| 120 | » » return· | 119 | » » return·0; |
| 121 | » } | 120 | » } |
| 122 | » public·static·implicit·operator· | 121 | » public·static·implicit·operator·string·(A·a) |
| 123 | » { | 122 | » { |
| 124 | » » return· | 123 | » » return·"a"; |
| 125 | » } | 124 | » } |
| 126 | } | ||
| 127 | class·Program | ||
| 128 | { | ||
| Max diff block lines reached; 844/3351 bytes (25.19%) of diff not shown. | |||
| Offset 1, 119 lines modified | Offset 1, 119 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0037</ErrorName> | 3 | ··<ErrorName>CS0037</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0037:·Cannot·convert·null·to·`char'·because·it·is·a·value·type | 5 | ····<string>//·CS0037:·Cannot·convert·null·to·`char'·because·it·is·a·value·type |
| 6 | //·Line:·8 | ||
| 7 | class·Test | ||
| 8 | { | ||
| 9 | » static·void·Main·() | ||
| 10 | » { | ||
| 11 | » » char·p·=·null; | ||
| 12 | » } | ||
| 13 | }</string> | ||
| 14 | ····<string>//·CS0037:·Cannot·convert·null·to·`int'·because·it·is·a·value·type | ||
| 15 | //·Line:·6 | ||
| 16 | class·C | ||
| 17 | { | ||
| 18 | » object·[,]·i·=·new·int·[2,1]·{·{·null·},·{·2·}·}; | ||
| 19 | }</string> | ||
| 20 | ····<string>//·CS0037:·Cannot·convert·null·to·`int'·because·it·is·a·value·type | ||
| 21 | //·Line:·6 | ||
| 22 | class·C | ||
| 23 | { | ||
| 24 | » int·[,]·i·=·new·int·[2,null]·{·{·1·},·{·2·}·}; | ||
| 25 | }</string> | ||
| 26 | ····<string>//·CS0037:·Cannot·convert·null·to·`char'·because·it·is·a·value·type | ||
| 6 | //·Line:·12 | 27 | //·Line:·12 |
| 7 | class·C | 28 | class·C |
| 8 | { | 29 | { |
| 9 | » static·void·Test·() | 30 | » static·void·Test·() |
| 10 | » { | 31 | » { |
| 11 | » » char·c·=·'c'; | 32 | » » char·c·=·'c'; |
| 12 | » » switch·(c) | 33 | » » switch·(c) |
| 13 | » » { | 34 | » » { |
| 14 | » » » case·'a':· | 35 | » » » case·'a':· |
| 15 | » » » » goto·case·null; | 36 | » » » » goto·case·null; |
| 16 | » » } | 37 | » » } |
| 17 | » } | 38 | » } |
| 18 | }</string> | 39 | }</string> |
| 19 | ····<string>//·CS0037:·Cannot·convert·null·to·` | 40 | ····<string>//·CS0037:·Cannot·convert·null·to·`S'·because·it·is·a·value·type |
| 20 | //·Line | 41 | //·Line:·10 |
| 42 | struct·S·{ | ||
| 43 | » int·a; | ||
| 44 | } | ||
| 21 | public·class·Blah·{ | ||
| 22 | » public·enum·MyEnum·:·byte·{ | ||
| 23 | » » Foo·=·null, | ||
| 24 | » » Bar | ||
| 25 | » } | ||
| 45 | class·X·{ | ||
| 26 | » | 46 | » static·void·Main·() |
| 27 | » { | 47 | » { |
| 48 | » » S·s·=·(S)·null; | ||
| 28 | » } | 49 | » } |
| 29 | }</string> | 50 | }</string> |
| 30 | ····<string>//·CS0037:·Cannot·convert·null·to·`int'·because·it·is·a·value·type | ||
| 31 | //·Line:·6 | ||
| 32 | class·C | ||
| 33 | { | ||
| 34 | » object·[,]·i·=·new·int·[2,1]·{·{·null·},·{·2·}·}; | ||
| 35 | }</string> | ||
| 36 | ····<string>//·CS0037:·Cannot·convert·null·to·`bool'·because·it·is·a·value·type | 51 | ····<string>//·CS0037:·Cannot·convert·null·to·`bool'·because·it·is·a·value·type |
| 37 | //·Line:·1 | 52 | //·Line:·13 |
| 38 | using·System; | 53 | using·System; |
| 39 | class· | 54 | public·sealed·class·BoundAttribute·:·System.Attribute |
| 40 | { | 55 | { |
| 56 | » public·bool·Dec·{·set·{·}·get·{·return·false;·}·} | ||
| 41 | » public·string·Select·(Func<TestA,·bool>·f) | ||
| 42 | » { | ||
| 43 | » » return·""; | ||
| 44 | » } | ||
| 45 | } | 57 | } |
| 46 | 58 | class·C | |
| 47 | { | 59 | { |
| 60 | » [Bound·(Dec·=·null)] | ||
| 61 | » double·d2; | ||
| 48 | » static·void·Main·() | ||
| 49 | » { | ||
| 50 | » » string·foo·=·from·a·in·new·TestA·()·select·null; | ||
| 51 | » } | ||
| 52 | }</string> | 62 | }</string> |
| 53 | ····<string>//·CS0037:·Cannot·convert·null·to·`int'·because·it·is·a·value·type | 63 | ····<string>//·CS0037:·Cannot·convert·null·to·`int'·because·it·is·a·value·type |
| 54 | //·Line:·9 | 64 | //·Line:·9 |
| 55 | class·X·{ | 65 | class·X·{ |
| 56 | » static·void·Main·() | 66 | » static·void·Main·() |
| 57 | » { | 67 | » { |
| 58 | » » int·s·=·44; | 68 | » » int·s·=·44; |
| 59 | » » switch·(s)·{ | 69 | » » switch·(s)·{ |
| 60 | » » » case·null:·break; | 70 | » » » case·null:·break; |
| 61 | » » } | 71 | » » } |
| 62 | » } | 72 | » } |
| 63 | }</string> | 73 | }</string> |
| 64 | ····<string>//·CS0037:·Cannot·convert·null·to·` | 74 | ····<string>//·CS0037:·Cannot·convert·null·to·`bool'·because·it·is·a·value·type |
| 65 | //·Line:· | 75 | //·Line:·19 |
| 76 | using·System; | ||
| 66 | class·Test | 77 | class·TestA |
| 67 | { | 78 | { |
| 68 | » | 79 | » public·string·Select·(Func<TestA,·bool>·f) |
| 69 | » { | 80 | » { |
| 70 | » » | 81 | » » return·""; |
| 71 | » } | 82 | » } |
| 72 | }</string> | ||
| 73 | ····<string>//·CS0037:·Cannot·convert·null·to·`S'·because·it·is·a·value·type | ||
| 74 | //·Line:·10 | ||
| 75 | struct·S·{ | ||
| 76 | » int·a; | ||
| 77 | } | 83 | } |
| 78 | class | 84 | public·class·C |
| 85 | { | ||
| 79 | » static·void·Main·() | 86 | » static·void·Main·() |
| Max diff block lines reached; 788/3539 bytes (22.27%) of diff not shown. | |||
| Offset 1, 49 lines modified | Offset 1, 26 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0038</ErrorName> | 3 | ··<ErrorName>CS0038</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0038:·Cannot·access·a·nonstatic·member·of·outer·type·` | 5 | ····<string>//·CS0038:·Cannot·access·a·nonstatic·member·of·outer·type·`B'·via·nested·type·`B.C' |
| 6 | //·Line:·1 | 6 | //·Line:·14 |
| 7 | using·System; | ||
| 8 | class·X | ||
| 9 | { | ||
| 10 | » int·a·=·5; | ||
| 11 | 7 | public·class·B·{ | |
| 8 | » public·static·void·Main·() | ||
| 12 | » { | 9 | » { |
| 13 | » » public·long·b; | ||
| 14 | » » public·Y·() | ||
| 15 | » » { | ||
| 16 | » » » Console.WriteLine·(a); | ||
| 17 | » » } | ||
| 18 | » } | 10 | » } |
| 11 | » public·int·Foo·{·get·{·return·1;·}·} | ||
| 19 | » static·void·Main·() | ||
| 20 | » { | ||
| 21 | » } | ||
| 22 | }</string> | ||
| 23 | ····<string>//·CS0038:·Cannot·access·a·nonstatic·member·of·outer·type·`A'·via·nested·type·`C.N' | ||
| 24 | //·Line:·12 | ||
| 25 | class·A·{ | ||
| 26 | » protected·int·n·=·0; | ||
| 27 | } | ||
| 28 | class·B·:·A·{·} | ||
| 29 | class·C·:·B·{ | ||
| 30 | » class·N·{ | ||
| 31 | » | 12 | » public·class·C·{ |
| 13 | » » public·void·Baz·() | ||
| 14 | » » { | ||
| 15 | » » » int·x·=·Foo; | ||
| 32 | » } | 16 | » » } |
| 33 | » public·static·int·Main·()·{ | ||
| 34 | » » N·a·=·new·N·(); | ||
| 35 | » » return·a.foo·(); | ||
| 36 | » } | 17 | » } |
| 37 | }</string> | 18 | }</string> |
| 38 | ····<string>//·CS0038:·Cannot·access·a·nonstatic·member·of·outer·type·`A'·via·nested·type·`B.C' | 19 | ····<string>//·CS0038:·Cannot·access·a·nonstatic·member·of·outer·type·`A'·via·nested·type·`B.C' |
| 39 | //·Line:·15 | 20 | //·Line:·15 |
| 40 | public·class·A·{ | 21 | public·class·A·{ |
| 41 | » public·int·Foo·{·get·{·return·1;·}·} | 22 | » public·int·Foo·{·get·{·return·1;·}·} |
| Offset 93, 26 lines modified | Offset 70, 49 lines modified | ||
| 93 | » { | 70 | » { |
| 94 | » » public·string·Check·() | 71 | » » public·string·Check·() |
| 95 | » » { | 72 | » » { |
| 96 | » » » return·Runner.Report·(); | 73 | » » » return·Runner.Report·(); |
| 97 | » » } | 74 | » » } |
| 98 | » } | 75 | » } |
| 99 | }</string> | 76 | }</string> |
| 100 | ····<string>//·CS0038:·Cannot·access·a·nonstatic·member·of·outer·type·` | 77 | ····<string>//·CS0038:·Cannot·access·a·nonstatic·member·of·outer·type·`X'·via·nested·type·`X.Y' |
| 101 | //·Line:·1 | 78 | //·Line:·15 |
| 79 | using·System; | ||
| 80 | class·X | ||
| 81 | { | ||
| 82 | » int·a·=·5; | ||
| 102 | public·class·B·{ | ||
| 103 | » public·static·void·Main·() | ||
| 104 | » { | ||
| 105 | » } | ||
| 106 | » | 83 | » class·Y |
| 84 | » { | ||
| 85 | » » public·long·b; | ||
| 86 | » » public·Y·() | ||
| 107 | » public·class·C·{ | ||
| 108 | » » public·void·Baz·() | ||
| 109 | » » { | 87 | » » { |
| 110 | » » » | 88 | » » » Console.WriteLine·(a); |
| 111 | » » } | 89 | » » } |
| 112 | » } | 90 | » } |
| 91 | » static·void·Main·() | ||
| 92 | » { | ||
| 93 | » } | ||
| 94 | }</string> | ||
| 95 | ····<string>//·CS0038:·Cannot·access·a·nonstatic·member·of·outer·type·`A'·via·nested·type·`C.N' | ||
| 96 | //·Line:·12 | ||
| 97 | class·A·{ | ||
| 98 | » protected·int·n·=·0; | ||
| 99 | } | ||
| 100 | class·B·:·A·{·} | ||
| 101 | class·C·:·B·{ | ||
| 102 | » class·N·{ | ||
| 103 | » » internal·int·foo·()·{·return·n;·} | ||
| 104 | » } | ||
| 105 | » public·static·int·Main·()·{ | ||
| 106 | » » N·a·=·new·N·(); | ||
| 107 | » » return·a.foo·(); | ||
| 108 | » } | ||
| 113 | }</string> | 109 | }</string> |
| 114 | ··</Examples> | 110 | ··</Examples> |
| 115 | </ErrorDocumentation> | 111 | </ErrorDocumentation> |
| Offset 1, 27 lines modified | Offset 1, 27 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0039</ErrorName> | 3 | ··<ErrorName>CS0039</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0039:·Cannot·convert·type·`string'·to·`C'·via·a·built-in·conversion | ||
| 6 | //·Line:·8 | ||
| 7 | class·C | ||
| 8 | { | ||
| 9 | » public·static·void·Main·() | ||
| 10 | » { | ||
| 11 | » » C·c·=·"test"·as·C; | ||
| 12 | » } | ||
| 13 | }</string> | ||
| 5 | ····<string>//·CS0039:·Cannot·convert·type·`decimal'·to·`string'·via·a·built-in·conversion | 14 | ····<string>//·CS0039:·Cannot·convert·type·`decimal'·to·`string'·via·a·built-in·conversion |
| 6 | //·Line:·8 | 15 | //·Line:·8 |
| 7 | class·A·{ | 16 | class·A·{ |
| 8 | ········public·static·void·Main·() | 17 | ········public·static·void·Main·() |
| 9 | ········{ | 18 | ········{ |
| 10 | » » decimal·tryDec; | 19 | » » decimal·tryDec; |
| 11 | » » tryDec·=·1234.2345M; | 20 | » » tryDec·=·1234.2345M; |
| 12 | » » object·a·=·tryDec·as·string; | 21 | » » object·a·=·tryDec·as·string; |
| 13 | ········} | 22 | ········} |
| 14 | }</string> | 23 | }</string> |
| 15 | ····<string>//·CS0039:·Cannot·convert·type·`string'·to·`C'·via·a·built-in·conversion | ||
| 16 | //·Line:·8 | ||
| 17 | class·C | ||
| 18 | { | ||
| 19 | » public·static·void·Main·() | ||
| 20 | » { | ||
| 21 | » » C·c·=·"test"·as·C; | ||
| 22 | » } | ||
| 23 | }</string> | ||
| 24 | ··</Examples> | 24 | ··</Examples> |
| 25 | </ErrorDocumentation> | 25 | </ErrorDocumentation> |
| Offset 1, 11 lines modified | Offset 1, 26 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0051</ErrorName> | 3 | ··<ErrorName>CS0051</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0051:·Inconsistent·accessibility:·parameter·type·`MyClass.X'·is·less·accessible·than·method·`MyClass.method(MyClass.X)' | ||
| 6 | //·Line:·12 | ||
| 7 | public·class·MyClass·{ | ||
| 8 | » // | ||
| 9 | » //·To·fix·change·the·next·line·to·"public·enum·X·{ | ||
| 10 | » enum·X·{ | ||
| 11 | » » a,·b | ||
| 12 | » } | ||
| 13 | » public·void·method·(X·arg) | ||
| 14 | » { | ||
| 15 | » } | ||
| 16 | }</string> | ||
| 5 | ····<string>//·CS0051:·Inconsistent·accessibility:·parameter·type·`C.S?[][]'·is·less·accessible·than·method·`C.Foo(C.S?[][])' | 17 | ····<string>//·CS0051:·Inconsistent·accessibility:·parameter·type·`C.S?[][]'·is·less·accessible·than·method·`C.Foo(C.S?[][])' |
| 6 | //·Line:·7 | 18 | //·Line:·7 |
| 7 | public·class·C | 19 | public·class·C |
| 8 | { | 20 | { |
| 9 | » struct·S·{} | 21 | » struct·S·{} |
| 10 | » public·void·Foo·(S?[][]·o)·{} | 22 | » public·void·Foo·(S?[][]·o)·{} |
| Offset 23, 24 lines modified | Offset 38, 9 lines modified | ||
| 23 | partial·class·C1 | 38 | partial·class·C1 |
| 24 | { | 39 | { |
| 25 | » public·void·Foo·(NV·arg) | 40 | » public·void·Foo·(NV·arg) |
| 26 | » { | 41 | » { |
| 27 | » } | 42 | » } |
| 28 | }</string> | 43 | }</string> |
| 29 | ····<string>//·CS0051:·Inconsistent·accessibility:·parameter·type·`MyClass.X'·is·less·accessible·than·method·`MyClass.method(MyClass.X)' | ||
| 30 | //·Line:·12 | ||
| 31 | public·class·MyClass·{ | ||
| 32 | » // | ||
| 33 | » //·To·fix·change·the·next·line·to·"public·enum·X·{ | ||
| 34 | » enum·X·{ | ||
| 35 | » » a,·b | ||
| 36 | » } | ||
| 37 | » public·void·method·(X·arg) | ||
| 38 | » { | ||
| 39 | » } | ||
| 40 | }</string> | ||
| 41 | ··</Examples> | 44 | ··</Examples> |
| 42 | </ErrorDocumentation> | 45 | </ErrorDocumentation> |
| Offset 7, 29 lines modified | Offset 7, 14 lines modified | ||
| 7 | class·InternalClass·{ | 7 | class·InternalClass·{ |
| 8 | } | 8 | } |
| 9 | public·class·PublicClass·{ | 9 | public·class·PublicClass·{ |
| 10 | » public·InternalClass·member; | 10 | » public·InternalClass·member; |
| 11 | }</string> | 11 | }</string> |
| 12 | ····<string>//·CS0052:·Inconsistent·accessibility:·field·type·`A.B'·is·less·accessible·than·field·`A.C.D.b' | ||
| 13 | //·Line:·12 | ||
| 14 | public·class·A | ||
| 15 | { | ||
| 16 | » private·class·B·{·} | ||
| 17 | » public·class·C | ||
| 18 | » { | ||
| 19 | » » protected·class·D | ||
| 20 | » » { | ||
| 21 | » » » protected·B·b; | ||
| 22 | » » } | ||
| 23 | » } | ||
| 24 | }</string> | ||
| 25 | ····<string>//·CS0052:·Inconsistent·accessibility:·field·type·`C'·is·less·accessible·than·field·`PublicClass.member' | 12 | ····<string>//·CS0052:·Inconsistent·accessibility:·field·type·`C'·is·less·accessible·than·field·`PublicClass.member' |
| 26 | //·Line:·8 | 13 | //·Line:·8 |
| 27 | class·C | 14 | class·C |
| 28 | { | 15 | { |
| 29 | } | 16 | } |
| Offset 48, 9 lines modified | Offset 33, 24 lines modified | ||
| 48 | ········{ | 33 | ········{ |
| 49 | ················protected·class·D | 34 | ················protected·class·D |
| 50 | ················{ | 35 | ················{ |
| 51 | ························public·B·b; | 36 | ························public·B·b; |
| 52 | ················} | 37 | ················} |
| 53 | ········} | 38 | ········} |
| 54 | }</string> | 39 | }</string> |
| 40 | ····<string>//·CS0052:·Inconsistent·accessibility:·field·type·`A.B'·is·less·accessible·than·field·`A.C.D.b' | ||
| 41 | //·Line:·12 | ||
| 42 | public·class·A | ||
| 43 | { | ||
| 44 | » private·class·B·{·} | ||
| 45 | » public·class·C | ||
| 46 | » { | ||
| 47 | » » protected·class·D | ||
| 48 | » » { | ||
| 49 | » » » protected·B·b; | ||
| 50 | » » } | ||
| 51 | » } | ||
| 52 | }</string> | ||
| 55 | ··</Examples> | 53 | ··</Examples> |
| 56 | </ErrorDocumentation> | 54 | </ErrorDocumentation> |
| Offset 1, 11 lines modified | Offset 1, 26 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0060</ErrorName> | 3 | ··<ErrorName>CS0060</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0060:·Inconsistent·accessibility:·base·class·`A<C>.B'·is·less·accessible·than·class·`D' | ||
| 6 | //·Line:·13 | ||
| 7 | public·class·A<T> | ||
| 8 | { | ||
| 9 | » public·class·B·{} | ||
| 10 | } | ||
| 11 | internal·class·C·:·A<C> | ||
| 12 | { | ||
| 13 | } | ||
| 14 | public·class·D·:·C.B | ||
| 15 | { | ||
| 16 | }</string> | ||
| 5 | ····<string>//·CS0060:·Inconsistent·accessibility:·base·class·`A.B.Base'·is·less·accessible·than·class·`A.B.Derived' | 17 | ····<string>//·CS0060:·Inconsistent·accessibility:·base·class·`A.B.Base'·is·less·accessible·than·class·`A.B.Derived' |
| 6 | //·Line:·9 | 18 | //·Line:·9 |
| 7 | internal·class·A | 19 | internal·class·A |
| 8 | { | 20 | { |
| 9 | » protected·class·B | 21 | » protected·class·B |
| 10 | » { | 22 | » { |
| Offset 16, 17 lines modified | Offset 31, 46 lines modified | ||
| 16 | ····<string>//·CS0060:·Inconsistent·accessibility:·base·class·`Foo<Bar.Baz>'·is·less·accessible·than·class·`Bar' | 31 | ····<string>//·CS0060:·Inconsistent·accessibility:·base·class·`Foo<Bar.Baz>'·is·less·accessible·than·class·`Bar' |
| 17 | //·Line:·7 | 32 | //·Line:·7 |
| 18 | public·class·Foo<K>·{ | 33 | public·class·Foo<K>·{ |
| 19 | } | 34 | } |
| 20 | public·class·Bar·:·Foo<Bar.Baz>·{ | 35 | public·class·Bar·:·Foo<Bar.Baz>·{ |
| 36 | » internal·class·Baz·{ | ||
| 37 | » } | ||
| 38 | }</string> | ||
| 39 | ····<string>//·CS0060:·Inconsistent·accessibility:·base·class·`X'·is·less·accessible·than·class·`Y' | ||
| 40 | //·Line:·6 | ||
| 41 | class·X·{ | ||
| 42 | } | ||
| 43 | public·class·Y·:·X·{ | ||
| 44 | }</string> | ||
| 45 | ····<string>//·CS0060:·Inconsistent·accessibility:·base·class·`Foo<Bar.Baz>'·is·less·accessible·than·class·`Bar' | ||
| 46 | //·Line:·7 | ||
| 47 | public·class·Foo<K>·{ | ||
| 48 | } | ||
| 49 | public·class·Bar·:·Foo<Bar.Baz>·{ | ||
| 21 | » private·class·Baz·{ | 50 | » private·class·Baz·{ |
| 22 | » } | 51 | » } |
| 23 | }</string> | 52 | }</string> |
| 53 | ····<string>//·CS0060:·Inconsistent·accessibility:·base·class·`System.Collections.Generic.List<Foo<T>.Bar>'·is·less·accessible·than·class·`Foo<T>' | ||
| 54 | //·Line:·7 | ||
| 55 | using·System; | ||
| 56 | using·System.Collections.Generic; | ||
| 57 | public·class·Foo<T>·:·List<Foo<T>.Bar> | ||
| 58 | { | ||
| 59 | » class·Bar | ||
| 60 | » { | ||
| 61 | » } | ||
| 62 | }</string> | ||
| 24 | ····<string>//·CS0060:·Inconsistent·accessibility:·base·class·`X.A.D.E'·is·less·accessible·than·class·`X.A.B.F' | 63 | ····<string>//·CS0060:·Inconsistent·accessibility:·base·class·`X.A.D.E'·is·less·accessible·than·class·`X.A.B.F' |
| 25 | //·Line:·10 | 64 | //·Line:·10 |
| 26 | internal·class·X | 65 | internal·class·X |
| 27 | { | 66 | { |
| 28 | » protected·class·A | 67 | » protected·class·A |
| 29 | » { | 68 | » { |
| Offset 39, 14 lines modified | Offset 83, 28 lines modified | ||
| 39 | » » protected·class·D·:·B | 83 | » » protected·class·D·:·B |
| 40 | » » { | 84 | » » { |
| 41 | » » » internal·class·E·{·} | 85 | » » » internal·class·E·{·} |
| 42 | » » } | 86 | » » } |
| 43 | » } | 87 | » } |
| 44 | }</string> | 88 | }</string> |
| 89 | ····<string>//·CS0060:·Inconsistent·accessibility:·base·class·`A.B.C'·is·less·accessible·than·class·`A.B.D' | ||
| 90 | //·Line:·10 | ||
| 91 | public·class·A | ||
| 92 | { | ||
| 93 | » private·class·B | ||
| 94 | » { | ||
| 95 | » » protected·class·C·{·} | ||
| 96 | » » protected·internal·class·D·:·C | ||
| 97 | » » { | ||
| 98 | » » } | ||
| 99 | ····} | ||
| 100 | }</string> | ||
| 45 | ····<string>//·CS0060:·Inconsistent·accessibility:·base·class·`B.C.E'·is·less·accessible·than·class·`B.A.D' | 101 | ····<string>//·CS0060:·Inconsistent·accessibility:·base·class·`B.C.E'·is·less·accessible·than·class·`B.A.D' |
| 46 | //·Line:·15 | 102 | //·Line:·15 |
| 47 | public·class·B | 103 | public·class·B |
| 48 | { | 104 | { |
| 49 | » protected·class·C·:·A | 105 | » protected·class·C·:·A |
| 50 | » { | 106 | » { |
| Offset 58, 67 lines modified | Offset 116, 9 lines modified | ||
| 58 | » protected·internal·class·A | 116 | » protected·internal·class·A |
| 59 | » { | 117 | » { |
| 60 | » » protected·class·D·:·C.E | 118 | » » protected·class·D·:·C.E |
| 61 | » » { | 119 | » » { |
| 62 | » » } | 120 | » » } |
| 63 | » } | 121 | » } |
| 64 | }</string> | 122 | }</string> |
| 65 | ····<string>//·CS0060:·Inconsistent·accessibility:·base·class·`A<C>.B'·is·less·accessible·than·class·`D' | ||
| 66 | //·Line:·13 | ||
| 67 | public·class·A<T> | ||
| 68 | { | ||
| 69 | » public·class·B·{} | ||
| 70 | } | ||
| 71 | internal·class·C·:·A<C> | ||
| 72 | { | ||
| 73 | } | ||
| 74 | public·class·D·:·C.B | ||
| 75 | { | ||
| 76 | }</string> | ||
| 77 | ····<string>//·CS0060:·Inconsistent·accessibility:·base·class·`System.Collections.Generic.List<Foo<T>.Bar>'·is·less·accessible·than·class·`Foo<T>' | ||
| 78 | //·Line:·7 | ||
| Max diff block lines reached; 23/3750 bytes (0.61%) of diff not shown. | |||
| Offset 1, 26 lines modified | Offset 1, 11 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0061</ErrorName> | 3 | ··<ErrorName>CS0061</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0061:·Inconsistent·accessibility:·base·interface·`IFoo'·is·less·accessible·than·interface·`IBar' | ||
| 6 | //·Line:·9 | ||
| 7 | using·System; | ||
| 8 | interface·IFoo·{ | ||
| 9 | } | ||
| 10 | public·interface·IBar·:·IFoo·{ | ||
| 11 | } | ||
| 12 | class·ErrorCS0061·{ | ||
| 13 | » public·static·void·Main·()·{ | ||
| 14 | » } | ||
| 15 | }</string> | ||
| 16 | ····<string>//·CS0061:·Inconsistent·accessibility:·base·interface·`B.IBase'·is·less·accessible·than·interface·`A.IDerived' | 5 | ····<string>//·CS0061:·Inconsistent·accessibility:·base·interface·`B.IBase'·is·less·accessible·than·interface·`A.IDerived' |
| 17 | //·Line:·6 | 6 | //·Line:·6 |
| 18 | public·class·A | 7 | public·class·A |
| 19 | { | 8 | { |
| 20 | » protected·internal·interface·IDerived·:·B.IBase | 9 | » protected·internal·interface·IDerived·:·B.IBase |
| 21 | » { | 10 | » { |
| Offset 29, 14 lines modified | Offset 14, 29 lines modified | ||
| 29 | public·class·B | 14 | public·class·B |
| 30 | { | 15 | { |
| 31 | » protected·internal·interface·IBase· | 16 | » protected·internal·interface·IBase· |
| 32 | » { | 17 | » { |
| 33 | » } | 18 | » } |
| 34 | }</string> | 19 | }</string> |
| 20 | ····<string>//·CS0061:·Inconsistent·accessibility:·base·interface·`IFoo'·is·less·accessible·than·interface·`IBar' | ||
| 21 | //·Line:·9 | ||
| 22 | using·System; | ||
| 23 | interface·IFoo·{ | ||
| 24 | } | ||
| 25 | public·interface·IBar·:·IFoo·{ | ||
| 26 | } | ||
| 27 | class·ErrorCS0061·{ | ||
| 28 | » public·static·void·Main·()·{ | ||
| 29 | » } | ||
| 30 | }</string> | ||
| 35 | ····<string>//·CS0061:·Inconsistent·accessibility:·base·interface·`B.IBase'·is·less·accessible·than·interface·`A.IDerived' | 31 | ····<string>//·CS0061:·Inconsistent·accessibility:·base·interface·`B.IBase'·is·less·accessible·than·interface·`A.IDerived' |
| 36 | //·Line:·6 | 32 | //·Line:·6 |
| 37 | public·class·A | 33 | public·class·A |
| 38 | { | 34 | { |
| 39 | » protected·interface·IDerived·:·B.IBase | 35 | » protected·interface·IDerived·:·B.IBase |
| 40 | » { | 36 | » { |
| Offset 1, 31 lines modified | Offset 1, 31 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0065</ErrorName> | 3 | ··<ErrorName>CS0065</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0065:·`EventClass<T>.handler':·event·property·must·have·both·add·and·remove·accessors | ||
| 6 | //·Line:·10 | ||
| 7 | using·System; | ||
| 8 | public·delegate·void·EventHandler·(object·sender,·EventArgs·e); | ||
| 9 | public·class·EventClass<T> | ||
| 10 | { | ||
| 11 | » event·EventHandler·handler·{·add·{}·} | ||
| 12 | }</string> | ||
| 13 | ····<string>//·CS0065:·`EventClass.handler':·event·property·must·have·both·add·and·remove·accessors | 5 | ····<string>//·CS0065:·`EventClass.handler':·event·property·must·have·both·add·and·remove·accessors |
| 14 | //·Line·:·9 | 6 | //·Line·:·9 |
| 15 | using·System; | 7 | using·System; |
| 16 | public·delegate·void·EventHandler·(object·sender,·EventArgs·e); | 8 | public·delegate·void·EventHandler·(object·sender,·EventArgs·e); |
| 17 | public·class·EventClass·{ | 9 | public·class·EventClass·{ |
| 18 | ········event·EventHandler·handler·{·add;·} | 10 | ········event·EventHandler·handler·{·add;·} |
| 19 | } | 11 | } |
| 20 | public·class·MainClass·{ | 12 | public·class·MainClass·{ |
| 21 | » public·static·void·Main·()·{} | 13 | » public·static·void·Main·()·{} |
| 22 | }</string> | 14 | }</string> |
| 15 | ····<string>//·CS0065:·`EventClass<T>.handler':·event·property·must·have·both·add·and·remove·accessors | ||
| 16 | //·Line:·10 | ||
| 17 | using·System; | ||
| 18 | public·delegate·void·EventHandler·(object·sender,·EventArgs·e); | ||
| 19 | public·class·EventClass<T> | ||
| 20 | { | ||
| 21 | » event·EventHandler·handler·{·add·{}·} | ||
| 22 | }</string> | ||
| 23 | ··</Examples> | 23 | ··</Examples> |
| 24 | </ErrorDocumentation> | 24 | </ErrorDocumentation> |
| Offset 1, 42 lines modified | Offset 1, 37 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0067</ErrorName> | 3 | ··<ErrorName>CS0067</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0067:·The·event·`Foo.OnFoo'·is·never·used | 5 | ····<string>//·CS0067:·The·event·`Foo.OnFoo'·is·never·used |
| 6 | //·Line:·12 | 6 | //·Line:·12 |
| 7 | //·Compiler·options:·-warnaserror·-warn:3 | ||
| 8 | using·System; | ||
| 9 | class·Foo | ||
| 10 | { | ||
| 11 | » public·event·FooHandler·OnFoo; | ||
| 12 | » public·delegate·void·FooHandler·(); | ||
| 13 | » public·static·void·Main·() | ||
| 14 | » { | ||
| 15 | » } | ||
| 16 | }</string> | ||
| 17 | ····<string>//·CS0067:·The·event·`Foo.OnFoo'·is·never·used | ||
| 18 | //·Line:·12 | ||
| 19 | //·Compiler·options:·-warnaserror·-warn:4 | 7 | //·Compiler·options:·-warnaserror·-warn:4 |
| 20 | using·System; | 8 | using·System; |
| 21 | class·ErrorCS0067·{ | 9 | class·ErrorCS0067·{ |
| 22 | » public·delegate·void·FooHandler·(); | 10 | » public·delegate·void·FooHandler·(); |
| 23 | } | 11 | } |
| 24 | class·Foo·{ | 12 | class·Foo·{ |
| 25 | » private·event·ErrorCS0067.FooHandler·OnFoo; | 13 | » private·event·ErrorCS0067.FooHandler·OnFoo; |
| 26 | » | 14 | » |
| 27 | » public·static·void·Main·()·{ | 15 | » public·static·void·Main·()·{ |
| 28 | » } | 16 | » } |
| 29 | }</string> | 17 | }</string> |
| 18 | ····<string>//·CS0067:·The·event·`S.EH'·is·never·used | ||
| 19 | //·Line:·9 | ||
| 20 | //·Compiler·options:·-warnaserror·-warn:3 | ||
| 21 | using·System; | ||
| 22 | static·class·S | ||
| 23 | { | ||
| 24 | » public·static·event·EventHandler·EH; | ||
| 25 | }</string> | ||
| 30 | ····<string>//·CS0067:·The·event·`EventTestClass.Elapsed'·is·never·used | 26 | ····<string>//·CS0067:·The·event·`EventTestClass.Elapsed'·is·never·used |
| 31 | //·Line:·8 | 27 | //·Line:·8 |
| 32 | //·Compiler·options:·-warnaserror | 28 | //·Compiler·options:·-warnaserror |
| 33 | using·System; | 29 | using·System; |
| 34 | public·class·EventTestClass·:·IEventTest | 30 | public·class·EventTestClass·:·IEventTest |
| Offset 44, 19 lines modified | Offset 39, 24 lines modified | ||
| 44 | » public·event·EventHandler·Elapsed; | 39 | » public·event·EventHandler·Elapsed; |
| 45 | } | 40 | } |
| 46 | public·interface·IEventTest· | 41 | public·interface·IEventTest· |
| 47 | { | 42 | { |
| 48 | » event·EventHandler·Elapsed; | 43 | » event·EventHandler·Elapsed; |
| 49 | }</string> | 44 | }</string> |
| 50 | ····<string>//·CS0067:·The·event·` | 45 | ····<string>//·CS0067:·The·event·`Foo.OnFoo'·is·never·used |
| 51 | //·Line:· | 46 | //·Line:·12 |
| 52 | //·Compiler·options:·-warnaserror·-warn:3 | 47 | //·Compiler·options:·-warnaserror·-warn:3 |
| 53 | using·System; | 48 | using·System; |
| 54 | 49 | class·Foo | |
| 55 | { | 50 | { |
| 56 | » public· | 51 | » public·event·FooHandler·OnFoo; |
| 52 | » public·delegate·void·FooHandler·(); | ||
| 53 | » public·static·void·Main·() | ||
| 54 | » { | ||
| 55 | » } | ||
| 57 | }</string> | 56 | }</string> |
| 58 | ··</Examples> | 57 | ··</Examples> |
| 59 | </ErrorDocumentation> | 58 | </ErrorDocumentation> |
| Offset 1, 11 lines modified | Offset 1, 35 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0070</ErrorName> | 3 | ··<ErrorName>CS0070</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0070:·The·event·`A.evt'·can·only·appear·on·the·left·hand·side·of·+=·or·-=·when·used·outside·of·the·type·`A' | ||
| 6 | //·Line:·22 | ||
| 7 | using·System; | ||
| 8 | public·static·class·EventExtensions | ||
| 9 | { | ||
| 10 | » public·static·void·Raise·(this·EventHandler·h) | ||
| 11 | » { | ||
| 12 | » } | ||
| 13 | } | ||
| 14 | public·class·A | ||
| 15 | { | ||
| 16 | » public·event·EventHandler·evt; | ||
| 17 | } | ||
| 18 | public·class·B·:·A | ||
| 19 | { | ||
| 20 | » public·void·Run() | ||
| 21 | » { | ||
| 22 | » » Action·a·=·()·=>·evt.Raise·(); | ||
| 23 | » } | ||
| 24 | }</string> | ||
| 5 | ····<string>//·CS0070:·The·event·`Button.Click'·can·only·appear·on·the·left·hand·side·of·+=·or·-=·when·used·outside·of·the·type·`Button' | 25 | ····<string>//·CS0070:·The·event·`Button.Click'·can·only·appear·on·the·left·hand·side·of·+=·or·-=·when·used·outside·of·the·type·`Button' |
| 6 | //·Line:·20 | 26 | //·Line:·20 |
| 7 | using·System; | 27 | using·System; |
| 8 | public·delegate·void·EventHandler·(int·i,·int·j); | 28 | public·delegate·void·EventHandler·(int·i,·int·j); |
| Offset 28, 33 lines modified | Offset 52, 9 lines modified | ||
| 28 | » { | 52 | » { |
| 29 | » } | 53 | » } |
| 30 | » | 54 | » |
| 31 | » public·static·void·Main·() | 55 | » public·static·void·Main·() |
| 32 | » { | 56 | » { |
| 33 | » } | 57 | » } |
| 34 | }</string> | 58 | }</string> |
| 35 | ····<string>//·CS0070:·The·event·`A.evt'·can·only·appear·on·the·left·hand·side·of·+=·or·-=·when·used·outside·of·the·type·`A' | ||
| 36 | //·Line:·22 | ||
| 37 | using·System; | ||
| 38 | public·static·class·EventExtensions | ||
| 39 | { | ||
| 40 | » public·static·void·Raise·(this·EventHandler·h) | ||
| 41 | » { | ||
| 42 | » } | ||
| 43 | } | ||
| 44 | public·class·A | ||
| 45 | { | ||
| 46 | » public·event·EventHandler·evt; | ||
| 47 | } | ||
| 48 | public·class·B·:·A | ||
| 49 | { | ||
| 50 | » public·void·Run() | ||
| 51 | » { | ||
| 52 | » » Action·a·=·()·=>·evt.Raise·(); | ||
| 53 | » } | ||
| 54 | }</string> | ||
| 55 | ··</Examples> | 59 | ··</Examples> |
| 56 | </ErrorDocumentation> | 60 | </ErrorDocumentation> |
| Offset 27, 27 lines modified | Offset 27, 27 lines modified | ||
| 27 | using·System; | 27 | using·System; |
| 28 | public·delegate·void·Foo·(object·source); | 28 | public·delegate·void·Foo·(object·source); |
| 29 | interface·IFoo·{ | 29 | interface·IFoo·{ |
| 30 | » event·Foo·OnFoo; | 30 | » event·Foo·OnFoo; |
| 31 | } | 31 | } |
| 32 | » | ||
| 33 | class·ErrorCS0071·:·IFoo·{ | 32 | class·ErrorCS0071·:·IFoo·{ |
| 34 | » event·Foo·IFoo.OnFoo; | 33 | » public·event·Foo·IFoo.OnFoo; |
| 35 | }</string> | 34 | }</string> |
| 36 | ····<string>//·CS0071:·`ErrorCS0071.IFoo.OnFoo':·An·explicit·interface·implementation·of·an·event·must·use·property·syntax | 35 | ····<string>//·CS0071:·`ErrorCS0071.IFoo.OnFoo':·An·explicit·interface·implementation·of·an·event·must·use·property·syntax |
| 37 | //·Line:·13 | 36 | //·Line:·13 |
| 38 | using·System; | 37 | using·System; |
| 39 | public·delegate·void·Foo·(object·source); | 38 | public·delegate·void·Foo·(object·source); |
| 40 | interface·IFoo·{ | 39 | interface·IFoo·{ |
| 41 | » event·Foo·OnFoo; | 40 | » event·Foo·OnFoo; |
| 42 | } | 41 | } |
| 42 | » | ||
| 43 | class·ErrorCS0071·:·IFoo·{ | 43 | class·ErrorCS0071·:·IFoo·{ |
| 44 | » | 44 | » event·Foo·IFoo.OnFoo; |
| 45 | }</string> | 45 | }</string> |
| 46 | ··</Examples> | 46 | ··</Examples> |
| 47 | </ErrorDocumentation> | 47 | </ErrorDocumentation> |
| Offset 10, 15 lines modified | Offset 10, 22 lines modified | ||
| 10 | class·ErrorCS0072·{ | 10 | class·ErrorCS0072·{ |
| 11 | » public·delegate·void·FooHandler·(); | 11 | » public·delegate·void·FooHandler·(); |
| 12 | » protected·void·OnFoo·()·{} | 12 | » protected·void·OnFoo·()·{} |
| 13 | } | 13 | } |
| 14 | class·Child·:·ErrorCS0072·{ | 14 | class·Child·:·ErrorCS0072·{ |
| 15 | » //·We·are·trying·to·override·a·method·with·an·event. | 15 | » //·We·are·trying·to·override·a·method·with·an·event. |
| 16 | » protected·override·event·FooHandler·OnFoo | 16 | » protected·override·event·FooHandler·OnFoo·{ |
| 17 | » » add·{ | ||
| 18 | » » » OnFoo·+=·value; | ||
| 19 | » » } | ||
| 20 | » » remove·{ | ||
| 21 | » » » OnFoo·-=·value; | ||
| 22 | » » } | ||
| 23 | » } | ||
| 17 | » public·static·void·Main·()·{ | 24 | » public·static·void·Main·()·{ |
| 18 | » } | 25 | » } |
| 19 | }</string> | 26 | }</string> |
| 20 | ····<string>//·CS0072:·`Child.OnFoo':·cannot·override·because·`ErrorCS0072.OnFoo()'·is·not·an·event | 27 | ····<string>//·CS0072:·`Child.OnFoo':·cannot·override·because·`ErrorCS0072.OnFoo()'·is·not·an·event |
| 21 | //·Line:·16 | 28 | //·Line:·16 |
| Offset 27, 21 lines modified | Offset 34, 14 lines modified | ||
| 27 | class·ErrorCS0072·{ | 34 | class·ErrorCS0072·{ |
| 28 | » public·delegate·void·FooHandler·(); | 35 | » public·delegate·void·FooHandler·(); |
| 29 | » protected·void·OnFoo·()·{} | 36 | » protected·void·OnFoo·()·{} |
| 30 | } | 37 | } |
| 31 | class·Child·:·ErrorCS0072·{ | 38 | class·Child·:·ErrorCS0072·{ |
| 32 | » //·We·are·trying·to·override·a·method·with·an·event. | 39 | » //·We·are·trying·to·override·a·method·with·an·event. |
| 33 | » protected·override·event·FooHandler·OnFoo | 40 | » protected·override·event·FooHandler·OnFoo; |
| 34 | » » add·{ | ||
| 35 | » » » OnFoo·+=·value; | ||
| 36 | » » } | ||
| 37 | » » remove·{ | ||
| 38 | » » » OnFoo·-=·value; | ||
| 39 | » » } | ||
| 40 | » } | ||
| 41 | » public·static·void·Main·()·{ | 41 | » public·static·void·Main·()·{ |
| 42 | » } | 42 | » } |
| 43 | }</string> | 43 | }</string> |
| 44 | ··</Examples> | 44 | ··</Examples> |
| 45 | </ErrorDocumentation> | 45 | </ErrorDocumentation> |
| Offset 1, 27 lines modified | Offset 1, 33 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0079</ErrorName> | 3 | ··<ErrorName>CS0079</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0079:·The·event·` | 5 | ····<string>//·CS0079:·The·event·`ErrorCS0079.OnFoo'·can·only·appear·on·the·left·hand·side·of·`+='·or·`-='·operator |
| 6 | //·Line:·1 | 6 | //·Line:·19 |
| 7 | · | ||
| 7 | using·System; | 8 | using·System; |
| 8 | 9 | class·ErrorCS0079·{ | |
| 10 | » public·delegate·void·Handler·(); | ||
| 9 | » | 11 | » event·Handler·privateEvent; |
| 10 | » public·Foo·() | ||
| 11 | » { | ||
| 12 | » | 12 | » public·event·Handler·OnFoo·{ |
| 13 | » » add·{ | ||
| 14 | » » » privateEvent·+=·value; | ||
| 15 | » » } | ||
| 16 | » » remove·{ | ||
| 17 | » » » privateEvent·-=·value; | ||
| 18 | » » } | ||
| 13 | » } | 19 | » } |
| 14 | » public·event·EventHandler·Event2·{ | ||
| 15 | » » add·{·event2·+=·value;·} | ||
| 16 | » | 20 | » void·Callback()·{ |
| 21 | » » if·(privateEvent·!=·null)· | ||
| 22 | » » » OnFoo(); | ||
| 23 | » } | ||
| 24 | » | ||
| 25 | » public·static·void·Main·()·{ | ||
| 17 | » } | 26 | » } |
| 18 | }</string> | 27 | }</string> |
| 19 | ····<string>//·CS0079:·The·event·`Foo.BaseFoo.Changed'·can·only·appear·on·the·left·hand·side·of·`+='·or·`-='·operator | 28 | ····<string>//·CS0079:·The·event·`Foo.BaseFoo.Changed'·can·only·appear·on·the·left·hand·side·of·`+='·or·`-='·operator |
| 20 | //·Line:·16 | 29 | //·Line:·16 |
| 21 | using·System; | 30 | using·System; |
| Offset 36, 14 lines modified | Offset 42, 48 lines modified | ||
| 36 | » » public·string·Name·{ | 42 | » » public·string·Name·{ |
| 37 | » » » set·{ | 43 | » » » set·{ |
| 38 | » » » » Changed·(); | 44 | » » » » Changed·(); |
| 39 | » » » } | 45 | » » » } |
| 40 | » » } | 46 | » » } |
| 41 | » } | 47 | » } |
| 42 | }</string> | 48 | }</string> |
| 49 | ····<string>//·CS0079:·The·event·`C.ev'·can·only·appear·on·the·left·hand·side·of·`+='·or·`-='·operator | ||
| 50 | //·Line:·14 | ||
| 51 | class·C | ||
| 52 | { | ||
| 53 | » static·event·System.EventHandler·ev | ||
| 54 | » { | ||
| 55 | » » add·{·} | ||
| 56 | » » remove·{·} | ||
| 57 | » } | ||
| 58 | » static·void·Main·() | ||
| 59 | » { | ||
| 60 | » » ev·*=·null; | ||
| 61 | » } | ||
| 62 | }</string> | ||
| 63 | ····<string>//·CS0079:·The·event·`Foo.Event2'·can·only·appear·on·the·left·hand·side·of·`+='·or·`-='·operator | ||
| 64 | //·Line:·11 | ||
| 65 | using·System; | ||
| 66 | public·class·Foo·{ | ||
| 67 | » EventHandler·event2; | ||
| 68 | » public·Foo·() | ||
| 69 | » { | ||
| 70 | » » Event2·=·null; | ||
| 71 | » } | ||
| 72 | » public·event·EventHandler·Event2·{ | ||
| 73 | » » add·{·event2·+=·value;·} | ||
| 74 | » » remove·{event2·-=·value;·} | ||
| 75 | » } | ||
| 76 | }</string> | ||
| 43 | ····<string>//·CS0079:·The·event·`Foo.BaseFoo.Changed'·can·only·appear·on·the·left·hand·side·of·`+='·or·`-='·operator | 77 | ····<string>//·CS0079:·The·event·`Foo.BaseFoo.Changed'·can·only·appear·on·the·left·hand·side·of·`+='·or·`-='·operator |
| 44 | //·Line:·16 | 78 | //·Line:·16 |
| 45 | using·System; | 79 | using·System; |
| 46 | namespace·Foo | 80 | namespace·Foo |
| 47 | { | 81 | { |
| Offset 56, 49 lines modified | Offset 96, 9 lines modified | ||
| 56 | » » public·string·Name·{ | 96 | » » public·string·Name·{ |
| 57 | » » » set·{ | 97 | » » » set·{ |
| 58 | » » » » Changed·(); | 98 | » » » » Changed·(); |
| 59 | » » » } | 99 | » » » } |
| 60 | » » } | 100 | » » } |
| 61 | » } | 101 | » } |
| 62 | }</string> | 102 | }</string> |
| 63 | ····<string>//·CS0079:·The·event·`ErrorCS0079.OnFoo'·can·only·appear·on·the·left·hand·side·of·`+='·or·`-='·operator | ||
| 64 | //·Line:·19 | ||
| 65 | · | ||
| 66 | using·System; | ||
| 67 | class·ErrorCS0079·{ | ||
| 68 | » public·delegate·void·Handler·(); | ||
| 69 | » event·Handler·privateEvent; | ||
| 70 | » public·event·Handler·OnFoo·{ | ||
| 71 | » » add·{ | ||
| 72 | » » » privateEvent·+=·value; | ||
| 73 | » » } | ||
| 74 | » » remove·{ | ||
| 75 | » » » privateEvent·-=·value; | ||
| 76 | » » } | ||
| 77 | » } | ||
| 78 | » void·Callback()·{ | ||
| 79 | » » if·(privateEvent·!=·null)· | ||
| 80 | » » » OnFoo(); | ||
| 81 | » } | ||
| 82 | » | ||
| 83 | » public·static·void·Main·()·{ | ||
| 84 | » } | ||
| 85 | }</string> | ||
| 86 | ····<string>//·CS0079:·The·event·`C.ev'·can·only·appear·on·the·left·hand·side·of·`+='·or·`-='·operator | ||
| 87 | //·Line:·14 | ||
| 88 | class·C | ||
| 89 | { | ||
| 90 | » static·event·System.EventHandler·ev | ||
| 91 | » { | ||
| Max diff block lines reached; 23/2894 bytes (0.79%) of diff not shown. | |||
| Offset 1, 12 lines modified | Offset 1, 21 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0081</ErrorName> | 3 | ··<ErrorName>CS0081</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0081:·Type·parameter·declaration·must·be·an·identifier·not·a·type | 5 | ····<string>//·CS0081:·Type·parameter·declaration·must·be·an·identifier·not·a·type |
| 6 | //·Line:·6 | ||
| 7 | class·D | ||
| 8 | { | ||
| 9 | » public·void·Foo<int>() | ||
| 10 | » { | ||
| 11 | » } | ||
| 12 | }</string> | ||
| 13 | ····<string>//·CS0081:·Type·parameter·declaration·must·be·an·identifier·not·a·type | ||
| 6 | //·Line:·4 | 14 | //·Line:·4 |
| 7 | class·D<string> | 15 | class·D<string> |
| 8 | { | 16 | { |
| 9 | }</string> | 17 | }</string> |
| 10 | ····<string>//·CS0081:·Type·parameter·declaration·must·be·an·identifier·not·a·type | 18 | ····<string>//·CS0081:·Type·parameter·declaration·must·be·an·identifier·not·a·type |
| 11 | //·Line:·4 | 19 | //·Line:·4 |
| Offset 14, 18 lines modified | Offset 23, 9 lines modified | ||
| 14 | partial·class·A<T,·bool> | 23 | partial·class·A<T,·bool> |
| 15 | { | 24 | { |
| 16 | } | 25 | } |
| 17 | partial·class·A<T,·O> | 26 | partial·class·A<T,·O> |
| 18 | { | 27 | { |
| 19 | }</string> | 28 | }</string> |
| 20 | ····<string>//·CS0081:·Type·parameter·declaration·must·be·an·identifier·not·a·type | ||
| 21 | //·Line:·6 | ||
| 22 | class·D | ||
| 23 | { | ||
| 24 | » public·void·Foo<int>() | ||
| 25 | » { | ||
| 26 | » } | ||
| 27 | }</string> | ||
| 28 | ··</Examples> | 29 | ··</Examples> |
| 29 | </ErrorDocumentation> | 30 | </ErrorDocumentation> |
| Offset 1, 60 lines modified | Offset 1, 48 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0082</ErrorName> | 3 | ··<ErrorName>CS0082</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0082:·A·member·` | 5 | ····<string>//·CS0082:·A·member·`I.set_Item(int[],·params·int[])'·is·already·reserved |
| 6 | //·Line:· | 6 | //·Line·:·7 |
| 7 | 7 | interface·I | |
| 8 | { | 8 | { |
| 9 | » void·set_Item·(int[]·a,·params·int[]·b); | ||
| 10 | » int[]·this·[params·int[]·ii]·{·get;·} | ||
| 9 | » public·string·Value·{ | ||
| 10 | » » set·{·} | ||
| 11 | » } | ||
| 12 | » public·string·get_Value·()·{·return·null;·} | ||
| 13 | }</string> | 11 | }</string> |
| 14 | ····<string>//·CS0082:·A·member·` | 12 | ····<string>//·CS0082:·A·member·`Test.add_XX(Test.MyEvent)'·is·already·reserved |
| 15 | //·Line:· | 13 | //·Line:·12 |
| 16 | using·System.Runtime.CompilerServices; | ||
| 17 | class·ErrorClass·{ | ||
| 18 | » [IndexerName·("Blah")] | ||
| 19 | » public·int·this·[int·a]·{ | ||
| 20 | 14 | public·class·Test | |
| 15 | { | ||
| 16 | » public·delegate·void·MyEvent·(); | ||
| 17 | » public·event·MyEvent·XX·{ | ||
| 18 | » » add·{·} | ||
| 19 | » » remove·{·} | ||
| 21 | » } | 20 | » } |
| 22 | ········ | 21 | ········ |
| 22 | » public·void·add_XX·(MyEvent·e)·{·return;·} | ||
| 23 | ········public·void·get_Blah·(int·b)·{} | ||
| 24 | » | ||
| 25 | ········public·static·void·Main·() | ||
| 26 | ········{ | ||
| 27 | ········} | ||
| 28 | }</string> | 23 | }</string> |
| 29 | ····<string>//·CS0082:·A·member·`Test.get_Value()'·is·already·reserved | 24 | ····<string>//·CS0082:·A·member·`Test.get_Value()'·is·already·reserved |
| 30 | //·Line:· | 25 | //·Line:·6 |
| 31 | public·class·Test | 26 | public·class·Test |
| 32 | { | 27 | { |
| 33 | » public·string·get_Value·()·{·return·null;·} | ||
| 34 | » public·string·Value·{ | 28 | » public·string·Value·{ |
| 35 | » » | 29 | » » set·{·} |
| 36 | » } | 30 | » } |
| 37 | }</string> | ||
| 38 | ····<string>//·CS0082:·A·member·`Test.get_Value()'·is·already·reserved | ||
| 39 | //·Line:·7 | ||
| 40 | public·partial·class·Test | ||
| 41 | { | ||
| 42 | » public·string·get_Value·()·{·return·null;·} | 31 | » public·string·get_Value·()·{·return·null;·} |
| 43 | } | 32 | }</string> |
| 33 | ····<string>//·CS0082:·A·member·`ISample.set_Item(int,·int)'·is·already·reserved | ||
| 34 | //·Line:·6 | ||
| 35 | public·interface·ISample·{ | ||
| 36 | ········int·this[int·i]·{·set;·} | ||
| 37 | ········void·set_Item·(int·a,·int·b); | ||
| 44 | public·partial·class·Test | ||
| 45 | { | ||
| 46 | » public·string·Value·{ | ||
| 47 | » » get·{·} | ||
| 48 | » } | ||
| 49 | }</string> | 38 | }</string> |
| 50 | ····<string>//·CS0082:·A·member·`ISample.set_Item(int,·int)'·is·already·reserved | 39 | ····<string>//·CS0082:·A·member·`ISample.set_Item(int,·int)'·is·already·reserved |
| 51 | //·Line:·6 | 40 | //·Line:·6 |
| 52 | public·interface·ISample·{ | 41 | public·interface·ISample·{ |
| 53 | ········void·set_Item·(int·a,·int·b); | 42 | ········void·set_Item·(int·a,·int·b); |
| 54 | ········int·this[int·i]·{·set;·} | 43 | ········int·this[int·i]·{·set;·} |
| Offset 65, 37 lines modified | Offset 53, 49 lines modified | ||
| 65 | public·class·Test | 53 | public·class·Test |
| 66 | { | 54 | { |
| 67 | » public·string·this·[int·i]·{ | 55 | » public·string·this·[int·i]·{ |
| 68 | » » get·{·return·"";·} | 56 | » » get·{·return·"";·} |
| 69 | » } | 57 | » } |
| 70 | » public·void·set_Item·(int·i,·string·s)·{·} | 58 | » public·void·set_Item·(int·i,·string·s)·{·} |
| 71 | }</string> | 59 | }</string> |
| 72 | ····<string>//·CS0082:·A·member·` | 60 | ····<string>//·CS0082:·A·member·`Test.get_Value()'·is·already·reserved |
| 73 | //·Line | 61 | //·Line:·7 |
| 74 | i | 62 | public·partial·class·Test |
| 75 | { | 63 | { |
| 64 | » public·string·get_Value·()·{·return·null;·} | ||
| 65 | } | ||
| 76 | » void·set_Item·(int[]·a,·params·int[]·b); | ||
| 77 | » int[]·this·[params·int[]·ii]·{·get;·} | ||
| 78 | }</string> | ||
| 79 | ····<string>//·CS0082:·A·member·`Test.add_XX(Test.MyEvent)'·is·already·reserved | ||
| 80 | //·Line:·12 | ||
| 81 | public·class·Test | 66 | public·partial·class·Test |
| 82 | { | 67 | { |
| 83 | » public·delegate·void·MyEvent·(); | ||
| 84 | » public·event·MyEvent·XX·{ | ||
| 85 | » » add·{·} | ||
| 86 | » | 68 | » public·string·Value·{ |
| 69 | » » get·{·} | ||
| 70 | » } | ||
| 71 | }</string> | ||
| 72 | ····<string>//·CS0082:·A·member·`ErrorClass.get_Blah(int)'·is·already·reserved | ||
| 73 | //·Line:·8 | ||
| 74 | using·System.Runtime.CompilerServices; | ||
| 75 | class·ErrorClass·{ | ||
| 76 | » [IndexerName·("Blah")] | ||
| 77 | » public·int·this·[int·a]·{ | ||
| 78 | ············get·{·return·1;·} | ||
| 87 | » } | 79 | » } |
| 88 | ········ | 80 | ········ |
| 89 | 81 | ········public·void·get_Blah·(int·b)·{} | |
| 82 | » | ||
| 83 | ········public·static·void·Main·() | ||
| 84 | ········{ | ||
| 85 | ········} | ||
| 90 | }</string> | 86 | }</string> |
| 91 | ····<string>//·CS0082:·A·member·` | 87 | ····<string>//·CS0082:·A·member·`Test.get_Value()'·is·already·reserved |
| 92 | //·Line:· | 88 | //·Line:·7 |
| 93 | public·interface·ISample·{ | ||
| 94 | ········int·this[int·i]·{·set;·} | ||
| 95 | 89 | public·class·Test | |
| 90 | { | ||
| 91 | » public·string·get_Value·()·{·return·null;·} | ||
| Max diff block lines reached; 38/3784 bytes (1.00%) of diff not shown. | |||
| Offset 9, 21 lines modified | Offset 9, 40 lines modified | ||
| 9 | ····<string>//·CS0100:·The·parameter·name·`obj'·is·a·duplicate | 9 | ····<string>//·CS0100:·The·parameter·name·`obj'·is·a·duplicate |
| 10 | //·Line:·4 | 10 | //·Line:·4 |
| 11 | class·C | 11 | class·C |
| 12 | { | 12 | { |
| 13 | » public·extern·C·(object·obj,·object·obj); | 13 | » public·extern·C·(object·obj,·object·obj); |
| 14 | }</string> | 14 | }</string> |
| 15 | ····<string>//·CS0100:·The·parameter·name·`a'·is·a·duplicate | ||
| 16 | //·Line:·10 | ||
| 17 | using·System; | ||
| 18 | class·C | ||
| 19 | { | ||
| 20 | » static·void·Main·() | ||
| 21 | » { | ||
| 22 | » » Func<int,·int,·int>·l·=·(a,·a)·=>·1; | ||
| 23 | » } | ||
| 24 | }</string> | ||
| 15 | ····<string>//·CS0100:·The·parameter·name·`obj'·is·a·duplicate | 25 | ····<string>//·CS0100:·The·parameter·name·`obj'·is·a·duplicate |
| 16 | //·Line:·4 | 26 | //·Line:·4 |
| 17 | class·C | 27 | class·C |
| 18 | { | 28 | { |
| 19 | » public·static·extern·bool·operator·+(C·obj,·C·obj); | 29 | » public·static·extern·bool·operator·+(C·obj,·C·obj); |
| 20 | }</string> | 30 | }</string> |
| 31 | ····<string>//·CS100:·The·parameter·name·`obj'·is·a·duplicate | ||
| 32 | //·Line:·6 | ||
| 33 | abstract·class·C | ||
| 34 | { | ||
| 35 | » public·abstract·int·this·[object·obj,·object·obj]·=>·1; | ||
| 36 | }</string> | ||
| 21 | ····<string>//·CS0100:·The·parameter·name·`a'·is·a·duplicate | 37 | ····<string>//·CS0100:·The·parameter·name·`a'·is·a·duplicate |
| 22 | //·Line:·6 | 38 | //·Line:·6 |
| 23 | // | 39 | // |
| 24 | //·Author:· | 40 | //·Author:· |
| 25 | //·» Alejandro·Snchez·Acosta··<raciel@es.gnu.org> | 41 | //·» Alejandro·Snchez·Acosta··<raciel@es.gnu.org> |
| 26 | // | 42 | // |
| 27 | //·(C)·Alejandro·Snchez·Acosta | 43 | //·(C)·Alejandro·Snchez·Acosta |
| Offset 39, 44 lines modified | Offset 58, 25 lines modified | ||
| 39 | » } | 58 | » } |
| 40 | » static·void·Main·() | 59 | » static·void·Main·() |
| 41 | » { | 60 | » { |
| 42 | » » this.Add·(3,·5); | 61 | » » this.Add·(3,·5); |
| 43 | » } | 62 | » } |
| 44 | }</string> | 63 | }</string> |
| 45 | ····<string>//·CS0100:·The·parameter·name·`a'·is·a·duplicate | ||
| 46 | //·Line:·10 | ||
| 47 | using·System; | ||
| 48 | class·C | ||
| 49 | { | ||
| 50 | » static·void·Main·() | ||
| 51 | » { | ||
| 52 | » » Func<int,·int,·int>·l·=·(a,·a)·=>·1; | ||
| 53 | » } | ||
| 54 | }</string> | ||
| 55 | ····<string>//·CS0100:·The·parameter·name·`obj'·is·a·duplicate | ||
| 56 | //·Line:·6 | ||
| 57 | public·abstract·class·TestClass· | ||
| 58 | { | ||
| 59 | » public·abstract·void·TestMethod·(object·obj,·object·obj); | ||
| 60 | }</string> | ||
| 61 | ····<string>//·CS0100:·The·parameter·name·`obj'·is·a·duplicate | 64 | ····<string>//·CS0100:·The·parameter·name·`obj'·is·a·duplicate |
| 62 | //·Line:·4 | 65 | //·Line:·4 |
| 63 | abstract·class·C | 66 | abstract·class·C |
| 64 | { | 67 | { |
| 65 | » public·abstract·int·this·[object·obj,·object·obj]·{ | 68 | » public·abstract·int·this·[object·obj,·object·obj]·{ |
| 66 | » » set; | 69 | » » set; |
| 67 | » } | 70 | » } |
| 68 | }</string> | 71 | }</string> |
| 69 | ····<string>//·CS100:·The·parameter·name·`obj'·is·a·duplicate | 72 | ····<string>//·CS0100:·The·parameter·name·`obj'·is·a·duplicate |
| 70 | //·Line:·6 | 73 | //·Line:·6 |
| 71 | abstract·class·C | 74 | public·abstract·class·TestClass· |
| 72 | { | 75 | { |
| 73 | » public·abstract·i | 76 | » public·abstract·void·TestMethod·(object·obj,·object·obj); |
| 74 | }</string> | 77 | }</string> |
| 75 | ··</Examples> | 78 | ··</Examples> |
| 76 | </ErrorDocumentation> | 79 | </ErrorDocumentation> |
| Offset 1, 40 lines modified | Offset 1, 85 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0101</ErrorName> | 3 | ··<ErrorName>CS0101</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0101:·The·namespace·` | 5 | ····<string>//·CS0101:·The·namespace·`global::'·already·contains·a·definition·for·`I<T>' |
| 6 | //·Line:· | 6 | //·Line:·8 |
| 7 | 7 | interface·I<T> | |
| 8 | { | 8 | { |
| 9 | » public·class·C | ||
| 10 | » { | ||
| 11 | » } | ||
| 12 | } | 9 | } |
| 13 | 10 | partial·class·I<T> | |
| 14 | { | 11 | { |
| 15 | » public·class·C | ||
| 16 | » { | ||
| 17 | » } | ||
| 18 | }</string> | 12 | }</string> |
| 19 | ····<string>//·CS0101:·The·namespace·`Test'·already·contains·a·definition·for·`Foo' | 13 | ····<string>//·CS0101:·The·namespace·`Test'·already·contains·a·definition·for·`Foo' |
| 20 | //·Line:·10 | 14 | //·Line:·10 |
| 21 | namespace·Test | 15 | namespace·Test |
| 22 | { | 16 | { |
| 23 | » public·class·Foo | 17 | » public·class·Foo |
| 24 | » { | 18 | » { |
| 25 | » } | 19 | » } |
| 26 | » | 20 | » |
| 27 | » namespace·Foo | 21 | » namespace·Foo |
| 28 | » { | 22 | » { |
| 29 | » } | 23 | » } |
| 30 | }</string> | 24 | }</string> |
| 25 | ····<string>//·CS0101:·The·namespace·`global::'·already·contains·a·definition·for·`SomeEnum' | ||
| 26 | //·Line:·10 | ||
| 27 | using·System; | ||
| 28 | public·enum·SomeEnum·{ | ||
| 29 | » Something1, | ||
| 30 | » Something2 | ||
| 31 | } | ||
| 32 | public·enum·SomeEnum·{ | ||
| 33 | » Dog, | ||
| 34 | » Fish, | ||
| 35 | » Cat | ||
| 36 | } | ||
| 37 | public·class·DupeEnumTest·{ | ||
| 38 | » public·static·void·Main(string[]·args)·{ | ||
| 39 | » » SomeEnum·someEnum·=·SomeEnum.Dog; | ||
| 40 | » » Console.WriteLine("SomeEnum·Result:·"·+·someEnum.ToString | ||
| 41 | ()); | ||
| 42 | » } | ||
| 43 | }</string> | ||
| 44 | ····<string>//·CS0101:·The·namespace·`global::'·already·contains·a·definition·for·`Test' | ||
| 45 | //·Line:·6 | ||
| 46 | class·Test·{} | ||
| 47 | namespace·Test | ||
| 48 | { | ||
| 49 | }</string> | ||
| 50 | ····<string>//·CS0101:·The·namespace·`N'·already·contains·a·definition·for·`C' | ||
| 51 | //·Line:·13 | ||
| 52 | namespace·N | ||
| 53 | { | ||
| 54 | » public·class·C | ||
| 55 | » { | ||
| 56 | » } | ||
| 57 | } | ||
| 58 | namespace·N | ||
| 59 | { | ||
| 60 | » public·class·C | ||
| 61 | » { | ||
| 62 | » } | ||
| 63 | }</string> | ||
| 64 | ····<string>//·CS0101:·The·namespace·`global::'·already·contains·a·definition·for·`Test' | ||
| 65 | //·Line:·5 | ||
| 66 | //·Compiler·options:·CS0101-7-2.cs | ||
| 67 | class·Test·{}</string> | ||
| 31 | ····<string>//·CS0101:·The·namespace·`AA.VV'·already·contains·a·definition·for·`SomeEnum' | 68 | ····<string>//·CS0101:·The·namespace·`AA.VV'·already·contains·a·definition·for·`SomeEnum' |
| 32 | //·Line:·10 | 69 | //·Line:·10 |
| 33 | using·System; | 70 | using·System; |
| 34 | namespace·AA·{ | 71 | namespace·AA·{ |
| 35 | » namespace·VV·{ | 72 | » namespace·VV·{ |
| 36 | » » public·enum·SomeEnum·{ | 73 | » » public·enum·SomeEnum·{ |
| Offset 45, 75 lines modified | Offset 90, 30 lines modified | ||
| 45 | » » public·enum·SomeEnum·{ | 90 | » » public·enum·SomeEnum·{ |
| 46 | » » » Dog, | 91 | » » » Dog, |
| 47 | » » » Fish, | 92 | » » » Fish, |
| 48 | » » » Cat | 93 | » » » Cat |
| 49 | » » } | 94 | » » } |
| 50 | » } | 95 | » } |
| 51 | }</string> | 96 | }</string> |
| 52 | ····<string>//·CS0101:·The·namespace·`global::'·already·contains·a·definition·for·`I<T>' | ||
| 53 | //·Line:·8 | ||
| 54 | interface·I<T> | ||
| 55 | { | ||
| 56 | } | ||
| 57 | partial·class·I<T> | ||
| 58 | { | ||
| 59 | }</string> | ||
| 60 | ····<string>//·CS0101:·The·namespace·`Test'·already·contains·a·definition·for·`Foo' | 97 | ····<string>//·CS0101:·The·namespace·`Test'·already·contains·a·definition·for·`Foo' |
| 61 | //·Line:·10 | 98 | //·Line:·10 |
| 62 | namespace·Test | 99 | namespace·Test |
| 63 | { | 100 | { |
| 64 | » public·class·Foo | 101 | » public·class·Foo |
| 65 | » { | 102 | » { |
| 66 | » } | 103 | » } |
| 67 | » | 104 | » |
| 68 | » namespace·Foo.PP | 105 | » namespace·Foo.PP |
| 69 | » { | 106 | » { |
| 70 | » } | 107 | » } |
| 71 | }</string> | 108 | }</string> |
| 72 | ····<string>//·CS0101:·The·namespace·`global::'·already·contains·a·definition·for·`Test' | ||
| 73 | //·Line:·6 | ||
| 74 | class·Test·{} | ||
| Max diff block lines reached; 305/3307 bytes (9.22%) of diff not shown. | |||
| Offset 1, 197 lines modified | Offset 1, 197 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0102</ErrorName> | 3 | ··<ErrorName>CS0102</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0102:·The·type·`SampleClass'·already·contains·a·definition·for·`Item' | ||
| 6 | //·Line:·6 | ||
| 7 | public·class·SampleClass·{ | ||
| 8 | ········protected·int·Item·{·set·{}·} | ||
| 9 | ········public·bool·Item; | ||
| 10 | }</string> | ||
| 11 | ····<string>//·CS0102:·The·type·` | 5 | ····<string>//·CS0102:·The·type·`C<get_Foo>'·already·contains·a·definition·for·`get_Foo' |
| 12 | //·Line:·6 | 6 | //·Line:·6 |
| 13 | class·X·{ | ||
| 14 | » const·int·A·=·10; | ||
| 15 | 7 | class·C<get_Foo> | |
| 8 | { | ||
| 9 | » string·Foo·{ | ||
| 10 | » » set·{·} | ||
| 11 | » } | ||
| 16 | }</string> | 12 | }</string> |
| 17 | ····<string>//·CS0102:·The·type·`SampleClass'·already·contains·a·definition·for·` | 13 | ····<string>//·CS0102:·The·type·`SampleClass'·already·contains·a·definition·for·`add_XX' |
| 18 | //·Line:· | 14 | //·Line:·13 |
| 19 | public·class·SampleClass·{ | 15 | public·class·SampleClass·{ |
| 20 | » public·delegate·void·MyEvent·(); | 16 | » public·delegate·void·MyEvent·(); |
| 17 | » public·event·MyEvent·XX·{ | ||
| 18 | » » add·{·} | ||
| 19 | » » remove·{·} | ||
| 21 | ········ | ||
| 22 | ········public·void·MyEvent·()·{} | ||
| 23 | }</string> | ||
| 24 | ····<string>//·CS0102:·The·type·`ErrorClass'·already·contains·a·definition·for·`Blah' | ||
| 25 | //·Line:·7 | ||
| 26 | using·System.Runtime.CompilerServices; | ||
| 27 | class·ErrorClass·{ | ||
| 28 | » [IndexerName·("Blah")] | ||
| 29 | » public·int·this·[int·a]·{ | ||
| 30 | ············get·{·return·1;·} | ||
| 31 | » } | 20 | » } |
| 32 | ········ | 21 | ········ |
| 22 | ········bool·add_XX; | ||
| 33 | ········public·int·Blah; | ||
| 34 | }</string> | ||
| 35 | ····<string>//·CS0102:·The·type·`X<T>'·already·contains·a·definition·for·`T' | ||
| 36 | //·Line:·11 | ||
| 37 | class·X·<T>·{ | ||
| 38 | » int·T; | ||
| 39 | } | ||
| 40 | class·W·{ | ||
| 41 | » static·void·Main·()·{} | ||
| 42 | }</string> | 23 | }</string> |
| 43 | ····<string>//·CS0102:·The·type·` | 24 | ····<string>//·CS0102:·The·type·`ErrorClass'·already·contains·a·definition·for·`Method' |
| 44 | //·Line:·6 | 25 | //·Line:·6 |
| 45 | public·class· | 26 | public·class·ErrorClass·{ |
| 27 | ········protected·int·Method·()·{·return·2;·} | ||
| 28 | ········public·bool·Method; | ||
| 46 | ········protected·int·set_Item; | ||
| 47 | ········public·int·this[int·index]·{·set·{}·}········ | ||
| 48 | }</string> | ||
| 49 | ····<string>//·CS0102:·The·type·`X'·already·contains·a·definition·for·`False' | ||
| 50 | //·Line:·11 | ||
| 51 | class·X | ||
| 52 | { | ||
| 53 | » bool·False<T>·() | ||
| 54 | » { | ||
| 55 | » » return·false; | ||
| 56 | » } | ||
| 57 | » bool·False·{ | ||
| 58 | » » get·{ | ||
| 59 | » » » return·false; | ||
| 60 | » » } | ||
| 61 | » } | ||
| 62 | }</string> | 29 | }</string> |
| 63 | ····<string>//·CS0102:·The·type·`C | 30 | ····<string>//·CS0102:·The·type·`C'·already·contains·a·definition·for·`Item' |
| 64 | //·Line:· | 31 | //·Line:·7 |
| 65 | class·C | 32 | class·C |
| 66 | { | 33 | { |
| 34 | ····bool·this·[int·i]·{·get·{·return·false;·}·} | ||
| 35 | ····bool·Item·(int·i)·{·return·false;·} | ||
| 67 | » object·Clone·() | ||
| 68 | » { | ||
| 69 | » » return·this; | ||
| 70 | » } | ||
| 71 | » | ||
| 72 | » public·class·Clone | ||
| 73 | » { | ||
| 74 | » } | ||
| 75 | }</string> | 36 | }</string> |
| 76 | ····<string>//·CS0102:·The·type·`T'·already·contains·a·definition·for·`A' | 37 | ····<string>//·CS0102:·The·type·`T'·already·contains·a·definition·for·`A' |
| 77 | //·Line:·6 | 38 | //·Line:·6 |
| 78 | class·T{ | 39 | class·T{ |
| 79 | ········public·string·A·{·get·{·return·"a";·}·} | 40 | ········public·string·A·{·get·{·return·"a";·}·} |
| 80 | ········public·string·A·(int·a)·{·return·"a";·} | 41 | ········public·string·A·(int·a)·{·return·"a";·} |
| 81 | }</string> | 42 | }</string> |
| 82 | ····<string>//·CS0102:·The·type·`SampleEnum'·already·contains·a·definition·for·`Label' | ||
| 83 | //·Line:·6 | ||
| 84 | public·enum·SampleEnum·{ | ||
| 85 | ········Label, | ||
| 86 | ········Label | ||
| 87 | }</string> | ||
| 88 | ····<string>//·CS0102:·The·type·`SampleClass'·already·contains·a·definition·for·`EE' | 43 | ····<string>//·CS0102:·The·type·`SampleClass'·already·contains·a·definition·for·`EE' |
| 89 | //·Line:·6 | 44 | //·Line:·6 |
| 90 | public·class·SampleClass·{ | 45 | public·class·SampleClass·{ |
| 91 | » public·delegate·void·EE·(); | 46 | » public·delegate·void·EE·(); |
| 92 | » public·event·EE·EE; | 47 | » public·event·EE·EE; |
| 93 | }</string> | 48 | }</string> |
| 94 | ····<string>//·CS0102:·The·type·`C'·already·contains·a·definition·for·`Item' | 49 | ····<string>//·CS0102:·The·type·`SampleClass'·already·contains·a·definition·for·`set_Item' |
| 50 | //·Line:·6 | ||
| 51 | public·class·SampleClass·{ | ||
| 52 | ········protected·const·int·set_Item·=·3; | ||
| 53 | ········const·int·set_Item·=·5; | ||
| 54 | }</string> | ||
| 55 | ····<string>//·CS0102:·The·type·`SampleClass'·already·contains·a·definition·for·`A' | ||
| 95 | //·Line:·7 | 56 | //·Line:·7 |
| Max diff block lines reached; 4190/7815 bytes (53.61%) of diff not shown. | |||
| Offset 1, 47 lines modified | Offset 1, 91 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0103</ErrorName> | 3 | ··<ErrorName>CS0103</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·C0103:·The·name·` | 5 | ····<string>//·CS0103:·The·name·`b'·does·not·exist·in·the·current·context |
| 6 | //·Line:· | 6 | //·Line:·11 |
| 7 | //·Compiler·options:·-langversion:experimental | ||
| 8 | 7 | using·System.Linq; | |
| 8 | class·C | ||
| 9 | { | 9 | { |
| 10 | » public·static·void·Main·() | ||
| 10 | » public·Test·() | ||
| 11 | » » :·this·(s) | ||
| 12 | » { | 11 | » { |
| 12 | » » var·e·=·from·a·in·"abcd" | ||
| 13 | » » » join·b·in·"defg"·on·b·equals·"g" | ||
| 14 | » » » select·a; | ||
| 13 | » } | 15 | » } |
| 14 | }</string> | 16 | }</string> |
| 15 | ····<string>//·CS0103:·The·name·` | 17 | ····<string>//·CS0103:·The·name·`a1'·does·not·exist·in·the·current·context |
| 16 | //·Line:·1 | 18 | //·Line:·11 |
| 17 | using·st | 19 | using·System.Linq; |
| 18 | class· | 20 | class·C |
| 19 | { | 21 | { |
| 20 | » public·void· | 22 | » public·static·void·Main·() |
| 21 | » { | 23 | » { |
| 24 | » » var·e·=· | ||
| 25 | » » » from·a1·in·"abcd" | ||
| 26 | » » » select·a1; | ||
| 27 | » » | ||
| 28 | » » a1·=·null; | ||
| 22 | » } | 29 | » } |
| 23 | } | 30 | }</string> |
| 31 | ····<string>//·CS0103:·The·name·`de'·does·not·exist·in·the·current·context | ||
| 32 | //·Line:·4 | ||
| 24 | 33 | [assembly:·System.Reflection.AssemblyCulture(de)] | |
| 34 | public·class·Hello·{ | ||
| 35 | }</string> | ||
| 36 | ····<string>//·CS0103:·The·name·`bar'·does·not·exist·in·the·current·context | ||
| 37 | //·Line:·8 | ||
| 38 | public·class·Test | ||
| 25 | { | 39 | { |
| 26 | » | 40 | » static·void·Main·() |
| 27 | » { | 41 | » { |
| 28 | » » | 42 | » » if·(false·&&·bar·())·{ |
| 43 | » » } | ||
| 29 | » } | 44 | » } |
| 30 | }</string> | 45 | }</string> |
| 31 | ····<string>//·CS0103:·The·name·` | 46 | ····<string>//·CS0103:·The·name·`Console'·does·not·exist·in·the·current·context |
| 32 | //·Line:· | 47 | //·Line:·10 |
| 33 | class· | 48 | class·C |
| 34 | » void·Y·()·{ | ||
| 35 | 49 | { | |
| 50 | » delegate·void·WithOutParam·(string·value); | ||
| 51 | » static·void·Main()· | ||
| 52 | » { | ||
| 53 | » » WithOutParam·o·=·(s)·=>·Console.WriteLine(); | ||
| 54 | » } | ||
| 55 | }</string> | ||
| 56 | ····<string>//·CS0103:·The·name·`value'·does·not·exist·in·the·current·context | ||
| 57 | //·Line:·8 | ||
| 58 | //·Compiler·options:·-langversion:experimental | ||
| 59 | class·X·(double·value) | ||
| 60 | { | ||
| 61 | » public·static·double·Prop·{ | ||
| 62 | » » get·{ | ||
| 63 | » » » return·value; | ||
| 64 | » » } | ||
| 65 | » } | ||
| 66 | }</string> | ||
| 67 | ····<string>//·CS0103:·The·name·`nameof'·does·not·exist·in·the·current·context | ||
| 68 | //·Line:·8 | ||
| 69 | static·class·C | ||
| 70 | { | ||
| 71 | » static·void·Main·() | ||
| 72 | » { | ||
| 73 | » » string·s·=·nameof·(nameof); | ||
| 36 | » } | 74 | » } |
| 37 | }</string> | 75 | }</string> |
| 38 | ····<string>//·CS0103:·The·name·`test'·does·not·exist·in·the·current·context | 76 | ····<string>//·CS0103:·The·name·`test'·does·not·exist·in·the·current·context |
| 39 | //·Line:·11 | 77 | //·Line:·11 |
| 40 | class·ClassMain | 78 | class·ClassMain |
| 41 | { | 79 | { |
| Offset 54, 167 lines modified | Offset 98, 123 lines modified | ||
| 54 | » } | 98 | » } |
| 55 | » | 99 | » |
| 56 | » static·bool·Test·{· | 100 | » static·bool·Test·{· |
| 57 | » » set·{ | 101 | » » set·{ |
| 58 | » » } | 102 | » » } |
| 59 | » } | 103 | » } |
| 60 | }</string> | 104 | }</string> |
| 61 | ····<string>//·CS0103:·The·name·` | 105 | ····<string>//·CS0103:·The·name·`Value'·does·not·exist·in·the·current·context |
| 62 | //·Line:· | 106 | //·Line:·9 |
| 63 | public·class·Test | 107 | public·class·Test |
| 64 | { | 108 | { |
| 65 | » static·void·Main·() | 109 | » static·void·Main·() |
| 66 | » { | 110 | » { |
| 111 | » » var·v·=·new·{·Field·=·Value·}; | ||
| 67 | » » if·(false·&&·bar·())·{ | ||
| 68 | » » } | ||
| 69 | » } | 112 | » } |
| 70 | }</string> | 113 | }</string> |
| 71 | ····<string>//·CS0103:·The·name·` | 114 | ····<string>//·CS0103:·The·name·`owner'·does·not·exist·in·the·current·context |
| 72 | //·Line:· | 115 | //·Line:·6 |
| 73 | class·C | 116 | class·C |
| 74 | { | 117 | { |
| 118 | » public·readonly·object·A·=·owner.Foo; | ||
| 75 | » void·Test·() | ||
| 76 | » { | ||
| 77 | » » _.ToString·(); | ||
| 78 | » } | ||
| 79 | }</string> | ||
| Max diff block lines reached; 3717/6941 bytes (53.55%) of diff not shown. | |||
| Offset 31, 32 lines modified | Offset 31, 40 lines modified | ||
| 31 | » » } | 31 | » » } |
| 32 | » » | 32 | » » |
| 33 | » » static·void·Foo·(Action·a) | 33 | » » static·void·Foo·(Action·a) |
| 34 | » » { | 34 | » » { |
| 35 | » » } | 35 | » » } |
| 36 | » } | 36 | » } |
| 37 | }</string> | 37 | }</string> |
| 38 | ····<string>//·CS0104:·` | 38 | ····<string>//·CS0104:·`Graphics'·is·an·ambiguous·reference·between·`Gdk.Graphics'·and·`System.Drawing.Graphics' |
| 39 | //·Line:·16 | 39 | //·Line:·16 |
| 40 | namespace·A·{ | ||
| 41 | » class·X·{ | ||
| 40 | using·Gdk; | ||
| 41 | using·System.Drawing; | ||
| 42 | public·class·Plot·{ | ||
| 43 | » void·M·() | ||
| 44 | » { | ||
| 45 | » » Graphics·g; | ||
| 46 | » } | ||
| 47 | » | ||
| 48 | » | ||
| 49 | » static·void·Main·() | ||
| 50 | » { | ||
| 42 | » } | 51 | » } |
| 43 | } | 52 | } |
| 44 | namespace· | 53 | namespace·Gdk·{ |
| 45 | » class· | 54 | » public·class·Graphics·{ |
| 46 | » } | 55 | » } |
| 47 | } | 56 | } |
| 57 | namespace·System.Drawing·{ | ||
| 58 | » public·class·Graphics·{ | ||
| 48 | namespace·C·{ | ||
| 49 | » using·A; | ||
| 50 | » using·B; | ||
| 51 | » class·D·:·X·{ | ||
| 52 | » static·void·Main·()·{} | ||
| 53 | » } | 59 | » } |
| 54 | }</string> | 60 | }</string> |
| 55 | ····<string>//·CS0104:·`XAttribute'·is·an·ambiguous·reference·between·`A.XAttribute'·and·`B.XAttribute' | 61 | ····<string>//·CS0104:·`XAttribute'·is·an·ambiguous·reference·between·`A.XAttribute'·and·`B.XAttribute' |
| 56 | //·Line:·21 | 62 | //·Line:·21 |
| 57 | using·System; | 63 | using·System; |
| Offset 76, 42 lines modified | Offset 84, 14 lines modified | ||
| 76 | » using·B; | 84 | » using·B; |
| 77 | » [X] | 85 | » [X] |
| 78 | » class·Test· | 86 | » class·Test· |
| 79 | » { | 87 | » { |
| 80 | » } | 88 | » } |
| 81 | }</string> | 89 | }</string> |
| 82 | ····<string>//·CS0104:·`Graphics'·is·an·ambiguous·reference·between·`Gdk.Graphics'·and·`System.Drawing.Graphics' | ||
| 83 | //·Line:·16 | ||
| 84 | using·Gdk; | ||
| 85 | using·System.Drawing; | ||
| 86 | public·class·Plot·{ | ||
| 87 | » void·M·() | ||
| 88 | » { | ||
| 89 | » » Graphics·g; | ||
| 90 | » } | ||
| 91 | » | ||
| 92 | » | ||
| 93 | » static·void·Main·() | ||
| 94 | » { | ||
| 95 | » } | ||
| 96 | } | ||
| 97 | namespace·Gdk·{ | ||
| 98 | » public·class·Graphics·{ | ||
| 99 | » } | ||
| 100 | } | ||
| 101 | namespace·System.Drawing·{ | ||
| 102 | » public·class·Graphics·{ | ||
| 103 | » } | ||
| 104 | }</string> | ||
| 105 | ····<string>//·CS0104:·`N'·is·an·ambiguous·reference·between·`C.N'·and·`A.T.N' | 90 | ····<string>//·CS0104:·`N'·is·an·ambiguous·reference·between·`C.N'·and·`A.T.N' |
| 106 | //·Line:·32 | 91 | //·Line:·32 |
| 107 | namespace·A | 92 | namespace·A |
| 108 | { | 93 | { |
| 109 | » public·class·T | 94 | » public·class·T |
| 110 | » { | 95 | » { |
| Offset 139, 9 lines modified | Offset 119, 29 lines modified | ||
| 139 | » { | 119 | » { |
| 140 | » » static·void·Main·() | 120 | » » static·void·Main·() |
| 141 | » » { | 121 | » » { |
| 142 | » » » var·u·=·new·N·(); | 122 | » » » var·u·=·new·N·(); |
| 143 | » » } | 123 | » » } |
| 144 | » } | 124 | » } |
| 145 | }</string> | 125 | }</string> |
| 126 | ····<string>//·CS0104:·`X'·is·an·ambiguous·reference·between·`A.X'·and·`B.X' | ||
| 127 | //·Line:·16 | ||
| 128 | namespace·A·{ | ||
| 129 | » class·X·{ | ||
| 130 | » } | ||
| 131 | } | ||
| 132 | namespace·B·{ | ||
| 133 | » class·X·{ | ||
| 134 | » } | ||
| 135 | } | ||
| 136 | namespace·C·{ | ||
| 137 | » using·A; | ||
| 138 | » using·B; | ||
| 139 | » class·D·:·X·{ | ||
| 140 | » static·void·Main·()·{} | ||
| 141 | » } | ||
| 142 | }</string> | ||
| 146 | ··</Examples> | 143 | ··</Examples> |
| 147 | </ErrorDocumentation> | 144 | </ErrorDocumentation> |
| Offset 1, 26 lines modified | Offset 1, 17 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0105</ErrorName> | 3 | ··<ErrorName>CS0105</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0105:·The·using·directive·for·`System'·appeared·previously·in·this·namespace | 5 | ····<string>//·CS0105:·The·using·directive·for·`System.Console'·appeared·previously·in·this·namespace |
| 6 | //·Line:·6 | 6 | //·Line:·6 |
| 7 | //·Compiler·options:·-warnaserror·-warn:3 | 7 | //·Compiler·options:·-warnaserror·-warn:3 |
| 8 | using·static·System.Console; | ||
| 9 | using·static·System.Console;</string> | ||
| 8 | using·System; | ||
| 9 | using·System; | ||
| 10 | public·class·X | ||
| 11 | { | ||
| 12 | » static·int·Main·()· | ||
| 13 | » { | ||
| 14 | » » int·a=5; | ||
| 15 | » » return·a; | ||
| 16 | » } | ||
| 17 | }</string> | ||
| 18 | ····<string>//·CS0105:·The·using·directive·for·`N.M'·appeared·previously·in·this·namespace | 10 | ····<string>//·CS0105:·The·using·directive·for·`N.M'·appeared·previously·in·this·namespace |
| 19 | //·Line:·8 | 11 | //·Line:·8 |
| 20 | //·Compiler·options:·-warnaserror·-warn:3 | 12 | //·Compiler·options:·-warnaserror·-warn:3 |
| 21 | namespace·N | 13 | namespace·N |
| 22 | { | 14 | { |
| 23 | » using·M; | 15 | » using·M; |
| Offset 32, 15 lines modified | Offset 23, 24 lines modified | ||
| 32 | }</string> | 23 | }</string> |
| 33 | ····<string>//·CS0105:·The·using·directive·for·`System'·appeared·previously·in·this·namespace | 24 | ····<string>//·CS0105:·The·using·directive·for·`System'·appeared·previously·in·this·namespace |
| 34 | //·Line:·6 | 25 | //·Line:·6 |
| 35 | //·Compiler·options:·-warnaserror·-warn:3 | 26 | //·Compiler·options:·-warnaserror·-warn:3 |
| 36 | using·System; | 27 | using·System; |
| 37 | using·global::System;</string> | 28 | using·global::System;</string> |
| 38 | ····<string>//·CS0105:·The·using·directive·for·`System | 29 | ····<string>//·CS0105:·The·using·directive·for·`System'·appeared·previously·in·this·namespace |
| 39 | //·Line:·6 | 30 | //·Line:·6 |
| 40 | //·Compiler·options:·-warnaserror·-warn:3 | 31 | //·Compiler·options:·-warnaserror·-warn:3 |
| 41 | using·static·System.Console; | ||
| 42 | using· | 32 | using·System; |
| 33 | using·System; | ||
| 34 | public·class·X | ||
| 35 | { | ||
| 36 | » static·int·Main·()· | ||
| 37 | » { | ||
| 38 | » » int·a=5; | ||
| 39 | » » return·a; | ||
| 40 | » } | ||
| 41 | }</string> | ||
| 43 | ··</Examples> | 42 | ··</Examples> |
| 44 | </ErrorDocumentation> | 43 | </ErrorDocumentation> |
| Offset 1, 97 lines modified | Offset 1, 97 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0106</ErrorName> | 3 | ··<ErrorName>CS0106</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0106:·The·modifier·`public'·is·not·valid·for·this·item | ||
| 6 | //·Line:·8 | ||
| 7 | interface·A·{ | ||
| 8 | » void·B·(); | ||
| 9 | } | ||
| 10 | class·X·:·A·{ | ||
| 11 | » public·virtual·void·A.B·()·{} | ||
| 12 | » static·void·Main·()·{} | ||
| 13 | }</string> | ||
| 14 | ····<string>//·CS0106:·The·modifier·`sealed'·is·not·valid·for·this·item | ||
| 15 | //·Line:·6 | ||
| 16 | struct·S | ||
| 17 | { | ||
| 18 | » public·sealed·override·int·GetHashCode·() | ||
| 19 | » { | ||
| 20 | » » return·1; | ||
| 21 | » } | ||
| 22 | }</string> | ||
| 23 | ····<string>//·CS0106:·The·modifier·`abstract'·is·not·valid·for·this·item | 5 | ····<string>//·CS0106:·The·modifier·`abstract'·is·not·valid·for·this·item |
| 24 | //·Line:·6 | 6 | //·Line:·6 |
| 25 | struct·S | 7 | struct·S |
| 26 | { | 8 | { |
| 27 | » public·abstract·int·Prop·{ | 9 | » public·abstract·int·Prop·{ |
| 28 | » » set·{} | 10 | » » set·{} |
| 29 | » } | 11 | » } |
| 30 | }</string> | 12 | }</string> |
| 31 | ····<string>//·CS0106:·The·modifier·` | 13 | ····<string>//·CS0106:·The·modifier·`readonly'·is·not·valid·for·this·item |
| 32 | //·Line:·6 | 14 | //·Line:·6 |
| 15 | //·Compiler·option:·-langversion:latest | ||
| 16 | readonly·interface·I | ||
| 33 | class·C | ||
| 34 | { | ||
| 35 | » public·~C·() | ||
| 36 | » { | ||
| 37 | » } | ||
| 38 | }</string> | ||
| 39 | ····<string>//·CS0106:·The·modifier·`unsafe'·is·not·valid·for·this·item | ||
| 40 | //·Line:·5 | ||
| 41 | //·Compiler·options:·-unsafe | ||
| 42 | unsafe·enum·E | ||
| 43 | { | 17 | { |
| 44 | }</string> | 18 | }</string> |
| 45 | ····<string>//·CS0106:·The·modifier·`static'·is·not·valid·for·this·item | 19 | ····<string>//·CS0106:·The·modifier·`static'·is·not·valid·for·this·item |
| 46 | //·Line:·6 | 20 | //·Line:·6 |
| 47 | class·Data | 21 | class·Data |
| 48 | { | 22 | { |
| 49 | » public·static·delegate·int·Count·(); | 23 | » public·static·delegate·int·Count·(); |
| 50 | }</string> | 24 | }</string> |
| 25 | ····<string>//·CS0106:·The·modifier·`sealed'·is·not·valid·for·this·item | ||
| 26 | //·Line:·6 | ||
| 27 | struct·S | ||
| 28 | { | ||
| 29 | » public·sealed·override·int·GetHashCode·() | ||
| 30 | » { | ||
| 31 | » » return·1; | ||
| 32 | » } | ||
| 33 | }</string> | ||
| 51 | ····<string>//·CS0106:·The·modifier·`async'·is·not·valid·for·this·item | 34 | ····<string>//·CS0106:·The·modifier·`async'·is·not·valid·for·this·item |
| 52 | //·Line:·6 | 35 | //·Line:·6 |
| 53 | interface·I | 36 | interface·I |
| 54 | { | 37 | { |
| 55 | » async·void·M·(); | 38 | » async·void·M·(); |
| 56 | }</string> | 39 | }</string> |
| 57 | ····<string>//·CS0106:·The·modifier·`public'·is·not·valid·for·this·item | 40 | ····<string>//·CS0106:·The·modifier·`public'·is·not·valid·for·this·item |
| 58 | //·Line:·6 | 41 | //·Line:·6 |
| 59 | interface·S | 42 | interface·S |
| 60 | { | 43 | { |
| 61 | » public·void·Foo·(); | 44 | » public·void·Foo·(); |
| 62 | }</string> | 45 | }</string> |
| 46 | ····<string>//·CS0106:·The·modifier·`virtual'·is·not·valid·for·this·item | ||
| 47 | //·Line:·7 | ||
| 48 | class·C | ||
| 49 | { | ||
| 50 | » public·int·Foo·{ | ||
| 51 | » » virtual·set·{·} | ||
| 52 | » } | ||
| 53 | }</string> | ||
| 63 | ····<string>//·CS0106:·The·modifier·`volatile'·is·not·valid·for·this·item | 54 | ····<string>//·CS0106:·The·modifier·`volatile'·is·not·valid·for·this·item |
| 64 | //·Line:·8 | 55 | //·Line:·8 |
| 65 | //·Compiler·options:·-unsafe | 56 | //·Compiler·options:·-unsafe |
| 66 | public·unsafe·struct·S | 57 | public·unsafe·struct·S |
| 67 | { | 58 | { |
| 68 | » » volatile·fixed·char·b[8]; | 59 | » » volatile·fixed·char·b[8]; |
| 69 | }</string> | 60 | }</string> |
| 70 | ····<string>//·CS0106:·The·modifier·` | 61 | ····<string>//·CS0106:·The·modifier·`public'·is·not·valid·for·this·item |
| 71 | //·Line:· | 62 | //·Line:·6 |
| 72 | class·C | 63 | class·C |
| 73 | { | 64 | { |
| 74 | » public·int·Foo·{ | ||
| 75 | » | 65 | » public·~C·() |
| 66 | » { | ||
| 76 | » } | 67 | » } |
| 77 | }</string> | 68 | }</string> |
| 78 | ····<string>//·CS0106:·The·modifier·` | 69 | ····<string>//·CS0106:·The·modifier·`unsafe'·is·not·valid·for·this·item |
| 79 | //·Line:· | 70 | //·Line:·5 |
| 80 | //·Compiler·option:·- | 71 | //·Compiler·options:·-unsafe |
| 81 | 72 | unsafe·enum·E | |
| 82 | { | 73 | { |
| 83 | }</string> | 74 | }</string> |
| 75 | ····<string>//·CS0106:·The·modifier·`public'·is·not·valid·for·this·item | ||
| 76 | //·Line:·8 | ||
| 77 | interface·A·{ | ||
| 78 | » void·B·(); | ||
| 79 | } | ||
| 80 | class·X·:·A·{ | ||
| 81 | » public·virtual·void·A.B·()·{} | ||
| 82 | » static·void·Main·()·{} | ||
| Max diff block lines reached; 23/2921 bytes (0.79%) of diff not shown. | |||
| Offset 1, 26 lines modified | Offset 1, 11 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0108</ErrorName> | 3 | ··<ErrorName>CS0108</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0108:·`Derived.Prop'·hides·inherited·member·`Base.Prop'.·Use·the·new·keyword·if·hiding·was·intended | ||
| 6 | //·Line:·10 | ||
| 7 | //·Compiler·options:·-warnaserror·-warn:2 | ||
| 8 | class·Base·{ | ||
| 9 | » public·bool·Prop·=·false; | ||
| 10 | } | ||
| 11 | class·Derived·:·Base·{ | ||
| 12 | » public·int·Prop·{ | ||
| 13 | ············get·{ | ||
| 14 | ················return·0; | ||
| 15 | ············} | ||
| 16 | ········} | ||
| 17 | }</string> | ||
| 18 | ····<string>//·CS0108:·`O.InnerAttribute'·hides·inherited·member·`Base.InnerAttribute()'.·Use·the·new·keyword·if·hiding·was·intended | 5 | ····<string>//·CS0108:·`O.InnerAttribute'·hides·inherited·member·`Base.InnerAttribute()'.·Use·the·new·keyword·if·hiding·was·intended |
| 19 | //·Line:·12 | 6 | //·Line:·12 |
| 20 | //·Compiler·options:·-warnaserror·-warn:2 | 7 | //·Compiler·options:·-warnaserror·-warn:2 |
| 21 | using·System; | 8 | using·System; |
| 22 | public·class·Base | 9 | public·class·Base |
| Offset 34, 119 lines modified | Offset 19, 138 lines modified | ||
| 34 | ····public·sealed·class·InnerAttribute:·Attribute·{ | 19 | ····public·sealed·class·InnerAttribute:·Attribute·{ |
| 35 | ····}········ | 20 | ····}········ |
| 36 | } | 21 | } |
| 37 | class·D·{ | 22 | class·D·{ |
| 38 | » static·void·Main·()·{} | 23 | » static·void·Main·()·{} |
| 39 | }</string> | 24 | }</string> |
| 40 | ····<string>//·CS0108:·`Derived. | 25 | ····<string>//·CS0108:·`Derived.Prop'·hides·inherited·member·`Base.Prop'.·Use·the·new·keyword·if·hiding·was·intended |
| 41 | //·Line:·1 | 26 | //·Line:·14 |
| 42 | //·Compiler·options:·-warnaserror·-warn:2 | 27 | //·Compiler·options:·-warnaserror·-warn:2 |
| 43 | class·Base·{ | 28 | class·Base·{ |
| 44 | » public·bool·Method·()·{·return·false;·} | ||
| 45 | 29 | » public·int·Prop·{ | |
| 30 | ············get·{ | ||
| 31 | ················return·0; | ||
| 32 | ············} | ||
| 33 | ········}···· | ||
| 46 | } | 34 | } |
| 47 | class·Derived·:·Base·{ | 35 | class·Derived·:·Base·{ |
| 48 | 36 | » public·bool·Prop·=·false; | |
| 49 | }</string> | 37 | }</string> |
| 50 | ····<string>//·CS0108:·`B. | 38 | ····<string>//·CS0108:·`B.D'·hides·inherited·member·`A.D'.·Use·the·new·keyword·if·hiding·was·intended |
| 51 | //·Line:·1 | 39 | //·Line:·15 |
| 52 | //·Compiler·options:·-warnaserror·-warn:2 | 40 | //·Compiler·options:·-warnaserror·-warn:2 |
| 53 | class·A | 41 | public·class·B·:·A |
| 54 | { | 42 | { |
| 43 | » public·delegate·void·D·(); | ||
| 55 | » public·abstract·class·Adapter | ||
| 56 | » { | ||
| 57 | » } | ||
| 58 | } | 44 | } |
| 59 | 45 | public·class·A | |
| 60 | { | 46 | { |
| 61 | » public·int· | 47 | » public·int·D; |
| 62 | }</string> | 48 | }</string> |
| 63 | ····<string>//·CS0108:·` | 49 | ····<string>//·CS0108:·`Derived.Prop'·hides·inherited·member·`Base.Prop(int)'.·Use·the·new·keyword·if·hiding·was·intended |
| 64 | //·Line:·1 | 50 | //·Line:·10 |
| 65 | //·Compiler·options:·-warnaserror·-warn:2 | 51 | //·Compiler·options:·-warnaserror·-warn:2 |
| 52 | class·Base·{ | ||
| 53 | » public·void·Prop·(int·a)·{} | ||
| 66 | public·interface·ISequence | ||
| 67 | { | ||
| 68 | » object·this·[int·index]· | ||
| 69 | » { | ||
| 70 | » » get; | ||
| 71 | » } | ||
| 72 | } | 54 | } |
| 73 | 55 | class·Derived·:·Base·{ | |
| 56 | » public·int·Prop·{ | ||
| 57 | ············get·{ | ||
| 58 | ················return·0; | ||
| 59 | ············} | ||
| 60 | ········} | ||
| 61 | }</string> | ||
| 62 | ····<string>//·CS0108:·`A.B.AnInt'·hides·inherited·member·`A.AnInt'.·Use·the·new·keyword·if·hiding·was·intended | ||
| 63 | //·Line:·11 | ||
| 64 | //·Compiler·options:·-warnaserror | ||
| 65 | public·abstract·class·A | ||
| 74 | { | 66 | { |
| 75 | » | 67 | » static·readonly·int·AnInt·=·2; |
| 68 | » public·class·B·:·A | ||
| 76 | » { | 69 | » { |
| 70 | » » static·readonly·int·AnInt·=·3; | ||
| 77 | » » get; | ||
| 78 | » » set; | ||
| 79 | » } | 71 | » } |
| 80 | }</string> | 72 | }</string> |
| 81 | ····<string>//·CS0108:·` | 73 | ····<string>//·CS0108:·`Derived.Prop(bool)'·hides·inherited·member·`Base.Prop'.·Use·the·new·keyword·if·hiding·was·intended |
| 82 | //·Line:·1 | 74 | //·Line:·13 |
| 83 | //·Compiler·options:·-warnaserror·-warn:2 | 75 | //·Compiler·options:·-warnaserror·-warn:2 |
| 84 | using·System; | ||
| 85 | using·System.Runtime.InteropServices; | ||
| 86 | · | ||
| 87 | class· | 76 | class·Base·{ |
| 77 | » public·bool·Prop·=·false; | ||
| 88 | » [DllImport·(Libs.MyLib)] | ||
| 89 | » private·static·extern·void·foo·(); | ||
| 90 | · | ||
| 91 | » public·static·void·Main·() | ||
| 92 | » { | ||
| 93 | » } | ||
| 94 | } | ||
| 95 | · | ||
| 96 | class·Libs·:·Foo·{ | ||
| 97 | » internal·const·string·MyLib·=·"SomeLibrary"; | ||
| 98 | } | 78 | } |
| 99 | class·Foo·{ | ||
| 100 | » internal·const·string·MyLib·=·"Foo"; | ||
| 79 | class·Derived·:·Base·{ | ||
| 80 | ········public·void·Prop·(bool·b)·{} | ||
| 101 | }</string> | 81 | }</string> |
| Max diff block lines reached; 7114/11179 bytes (63.64%) of diff not shown. | |||
| Offset 9, 26 lines modified | Offset 9, 24 lines modified | ||
| 9 | class·Base·{ | 9 | class·Base·{ |
| 10 | » void·Test·(bool·arg)·{} | 10 | » void·Test·(bool·arg)·{} |
| 11 | } | 11 | } |
| 12 | class·Derived·:·Base·{ | 12 | class·Derived·:·Base·{ |
| 13 | » new·void·Test·()·{} | 13 | » new·void·Test·()·{} |
| 14 | }</string> | 14 | }</string> |
| 15 | ····<string>//·CS0109:·The·member·`Derived. | 15 | ····<string>//·CS0109:·The·member·`Derived.this[string]'·does·not·hide·an·inherited·member.·The·new·keyword·is·not·required |
| 16 | //·Line:·1 | 16 | //·Line:·10 |
| 17 | //·Compiler·options:·-warnaserror·-warn:4 | 17 | //·Compiler·options:·-warnaserror·-warn:4 |
| 18 | class·Base·{ | ||
| 19 | » public·bool·this·[int·arg]·{·set·{}·} | ||
| 18 | public·abstract·class·Base | ||
| 19 | { | ||
| 20 | » public·delegate·void·Action<U>·(U·val); | ||
| 21 | } | 20 | } |
| 22 | 21 | class·Derived·:·Base·{ | |
| 22 | » public·new·bool·this·[string·arg]·{·set·{}·} | ||
| 23 | { | ||
| 24 | » public·new·delegate·void·Action<T,·U>·(U·val); | ||
| 25 | }</string> | 23 | }</string> |
| 26 | ····<string>//·CS0109:·The·member·`Test.this[string]'·does·not·hide·an·inherited·member.·The·new·keyword·is·not·required | 24 | ····<string>//·CS0109:·The·member·`Test.this[string]'·does·not·hide·an·inherited·member.·The·new·keyword·is·not·required |
| 27 | //·Line:·9 | 25 | //·Line:·9 |
| 28 | //·Compiler·options:·-warnaserror·-warn:4 | 26 | //·Compiler·options:·-warnaserror·-warn:4 |
| 29 | using·System.Collections; | 27 | using·System.Collections; |
| Offset 67, 25 lines modified | Offset 65, 14 lines modified | ||
| 67 | ························return·0; | 65 | ························return·0; |
| 68 | ················} | 66 | ················} |
| 69 | ················set·{·} | 67 | ················set·{·} |
| 70 | ········} | 68 | ········} |
| 71 | » » static·void·Main·()·{} | 69 | » » static·void·Main·()·{} |
| 72 | }</string> | 70 | }</string> |
| 73 | ····<string>//·CS0109:·The·member·`Derived.this[string]'·does·not·hide·an·inherited·member.·The·new·keyword·is·not·required | ||
| 74 | //·Line:·10 | ||
| 75 | //·Compiler·options:·-warnaserror·-warn:4 | ||
| 76 | class·Base·{ | ||
| 77 | » public·bool·this·[int·arg]·{·set·{}·} | ||
| 78 | } | ||
| 79 | class·Derived·:·Base·{ | ||
| 80 | » public·new·bool·this·[string·arg]·{·set·{}·} | ||
| 81 | }</string> | ||
| 82 | ····<string>//·CS0109:·The·member·`Wrapper.DerivedClass.AnInt'·does·not·hide·an·inherited·member.·The·new·keyword·is·not·required | 71 | ····<string>//·CS0109:·The·member·`Wrapper.DerivedClass.AnInt'·does·not·hide·an·inherited·member.·The·new·keyword·is·not·required |
| 83 | //·Line:·18 | 72 | //·Line:·18 |
| 84 | //·Compiler·options:·-warnaserror | 73 | //·Compiler·options:·-warnaserror |
| 85 | public·abstract·class·BaseClass | 74 | public·abstract·class·BaseClass |
| 86 | { | 75 | { |
| 87 | » private·static·readonly·int·AnInt·=·1; | 76 | » private·static·readonly·int·AnInt·=·1; |
| Offset 98, 14 lines modified | Offset 85, 21 lines modified | ||
| 98 | public·static·class·Wrapper | 85 | public·static·class·Wrapper |
| 99 | { | 86 | { |
| 100 | » public·class·DerivedClass·:·BaseClass | 87 | » public·class·DerivedClass·:·BaseClass |
| 101 | » { | 88 | » { |
| 102 | » » private·new·static·readonly·int·AnInt·=·2; | 89 | » » private·new·static·readonly·int·AnInt·=·2; |
| 103 | » } | 90 | » } |
| 104 | }</string> | 91 | }</string> |
| 92 | ····<string>//·CS0109:·The·member·`BaseClass.Location'·does·not·hide·an·inherited·member.·The·new·keyword·is·not·required | ||
| 93 | //·Line:·6 | ||
| 94 | //·Compiler·options:·-warnaserror·-warn:4 | ||
| 95 | class·BaseClass·{ | ||
| 96 | ········public·new·int·Location·{·set·{·}·} | ||
| 97 | }</string> | ||
| 105 | ····<string>//·CS0109:·The·member·`Derived<U>.Action'·does·not·hide·an·inherited·member.·The·new·keyword·is·not·required | 98 | ····<string>//·CS0109:·The·member·`Derived<U>.Action'·does·not·hide·an·inherited·member.·The·new·keyword·is·not·required |
| 106 | //·Line:·12 | 99 | //·Line:·12 |
| 107 | //·Compiler·options:·-warnaserror·-warn:4 | 100 | //·Compiler·options:·-warnaserror·-warn:4 |
| 108 | public·abstract·class·Base | 101 | public·abstract·class·Base |
| 109 | { | 102 | { |
| 110 | » public·delegate·void·Action<U>(U·val); | 103 | » public·delegate·void·Action<U>(U·val); |
| Offset 123, 28 lines modified | Offset 117, 34 lines modified | ||
| 123 | ········public·new·const·bool·Val·=·false; | 117 | ········public·new·const·bool·Val·=·false; |
| 124 | }</string> | 118 | }</string> |
| 125 | ····<string>//·CS0109:·The·member·`BaseClass.Location'·does·not·hide·an·inherited·member.·The·new·keyword·is·not·required | 119 | ····<string>//·CS0109:·The·member·`BaseClass.Location'·does·not·hide·an·inherited·member.·The·new·keyword·is·not·required |
| 126 | //·Line:·6 | 120 | //·Line:·6 |
| 127 | //·Compiler·options:·-warnaserror·-warn:4 | 121 | //·Compiler·options:·-warnaserror·-warn:4 |
| 128 | class·BaseClass·{ | 122 | class·BaseClass·{ |
| 129 | ········public·new·int·Location | 123 | ········public·new·int·Location; |
| 130 | }</string> | 124 | }</string> |
| 131 | ····<string>//·CS0109:·The·member·`Outer.Inner'·does·not·hide·an·inherited·member.·The·new·keyword·is·not·required | 125 | ····<string>//·CS0109:·The·member·`Outer.Inner'·does·not·hide·an·inherited·member.·The·new·keyword·is·not·required |
| 132 | //·Line:·7 | 126 | //·Line:·7 |
| 133 | //·Compiler·options:·-warnaserror·-warn:4 | 127 | //·Compiler·options:·-warnaserror·-warn:4 |
| 134 | class·Outer | 128 | class·Outer |
| 135 | { | 129 | { |
| 136 | ····public·new·class·Inner | 130 | ····public·new·class·Inner |
| 137 | ····{ | 131 | ····{ |
| 138 | ····} | 132 | ····} |
| 139 | }</string> | 133 | }</string> |
| 140 | ····<string>//·CS0109:·The·member·` | 134 | ····<string>//·CS0109:·The·member·`Derived.Action<T,U>'·does·not·hide·an·inherited·member.·The·new·keyword·is·not·required |
| 141 | //·Line:· | 135 | //·Line:·12 |
| 142 | //·Compiler·options:·-warnaserror·-warn:4 | 136 | //·Compiler·options:·-warnaserror·-warn:4 |
| 143 | class·BaseClass·{ | ||
| 144 | 137 | public·abstract·class·Base | |
| 138 | { | ||
| 139 | » public·delegate·void·Action<U>·(U·val); | ||
| 140 | } | ||
| 141 | public·class·Derived·:·Base | ||
| 142 | { | ||
| 143 | » public·new·delegate·void·Action<T,·U>·(U·val); | ||
| 145 | }</string> | 144 | }</string> |
| 146 | ··</Examples> | 145 | ··</Examples> |
| 147 | </ErrorDocumentation> | 146 | </ErrorDocumentation> |
| Offset 1, 154 lines modified | Offset 1, 45 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0111</ErrorName> | 3 | ··<ErrorName>CS0111</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0111:·A·member·`C.Foo<U>(G<U>)'·is·already·defined.·Rename·this·member·or·use·different·parameter·types | ||
| 6 | //·Line·:·14 | ||
| 7 | class·G<T> | ||
| 8 | { | ||
| 9 | } | ||
| 10 | public·class·C | ||
| 11 | { | ||
| 12 | » void·Foo<T>·(G<T>·g) | ||
| 13 | » { | ||
| 14 | » } | ||
| 15 | » | ||
| 16 | » void·Foo<U>·(G<U>·u) | ||
| 17 | » { | ||
| 18 | » } | ||
| 19 | }</string> | ||
| 20 | ····<string>//·CS0111:·A·member·` | 5 | ····<string>//·CS0111:·A·member·`T.T()'·is·already·defined.·Rename·this·member·or·use·different·parameter·types |
| 21 | //·Line | 6 | //·Line:·9 |
| 7 | partial·class·T·{ | ||
| 8 | » T·()·{} | ||
| 22 | public·interface·I | ||
| 23 | { | ||
| 24 | ····void·M<X>·(); | ||
| 25 | } | 9 | } |
| 10 | partial·class·T·{ | ||
| 11 | » T·()·{} | ||
| 26 | public·class·Blah:·I | ||
| 27 | { | ||
| 28 | ········void·I.M<X>·()·{} | ||
| 29 | ········void·I.M<X>·()·{} | ||
| 30 | }</string> | ||
| 31 | ····<string>//·CS0111:·A·member·`C.Foo<U>(U)'·is·already·defined.·Rename·this·member·or·use·different·parameter·types | ||
| 32 | //·Line·:·12 | ||
| 33 | public·class·C | ||
| 34 | { | ||
| 35 | » void·Foo<T>·(T·i) | ||
| 36 | » { | ||
| 37 | » } | ||
| 38 | » | ||
| 39 | » void·Foo<U>·(U·i) | ||
| 40 | » { | ||
| 41 | » } | ||
| 42 | }</string> | ||
| 43 | ····<string>//·CS0111:·A·member·`S3.S3(string)'·is·already·defined.·Rename·this·member·or·use·different·parameter·types | ||
| 44 | //·Line:·6 | ||
| 45 | //·Compiler·options:·-langversion:experimental | ||
| 46 | struct·S3·(string·s) | ||
| 47 | { | ||
| 48 | » public·S3·(string·s) | ||
| 49 | » » :·this·(1) | ||
| 50 | » { | ||
| 51 | » } | ||
| 52 | » public·S3·(int·i) | ||
| 53 | » » :·this·("") | ||
| 54 | » { | ||
| 55 | » } | ||
| 56 | }</string> | 12 | }</string> |
| 57 | ····<string>//·CS0111:·A·member·`C.I<int>.Prop'·is·already·defined.·Rename·this·member·or·use·different·parameter·types | 13 | ····<string>//·CS0111:·A·member·`C.I<int>.Prop'·is·already·defined.·Rename·this·member·or·use·different·parameter·types |
| 58 | //·Line:·12 | 14 | //·Line:·12 |
| 59 | interface·I<T> | 15 | interface·I<T> |
| 60 | { | 16 | { |
| 61 | » T·Prop·{·get;·set;·} | 17 | » T·Prop·{·get;·set;·} |
| 62 | } | 18 | } |
| 63 | class·C·:·I<int> | 19 | class·C·:·I<int> |
| 64 | { | 20 | { |
| 65 | » int·I<int>.Prop·{·get;·set;·} | 21 | » int·I<int>.Prop·{·get;·set;·} |
| 66 | » int·I<int>.Prop·{·get;·set;·} | 22 | » int·I<int>.Prop·{·get;·set;·} |
| 67 | }</string> | 23 | }</string> |
| 68 | ····<string>//·CS0111:·A·member·`ISample.Blah()'·is·already·defined.·Rename·this·member·or·use·different·parameter·types | ||
| 69 | //·Line:·6 | ||
| 70 | public·interface·ISample·{ | ||
| 71 | ········int·Blah·(); | ||
| 72 | ········int·Blah·(); | ||
| 73 | }</string> | ||
| 74 | ····<string>//·CS0111:·A·member·`C.Foo()'·is·already·defined.·Rename·this·member·or·use·different·parameter·types | ||
| 75 | //·Line:·12 | ||
| 76 | public·partial·class·C | ||
| 77 | { | ||
| 78 | » partial·void·Foo·(); | ||
| 79 | } | ||
| 80 | public·partial·class·C | ||
| 81 | { | ||
| 82 | » void·Foo·() | ||
| 83 | » { | ||
| 84 | » } | ||
| 85 | }</string> | ||
| 86 | ····<string>//·CS0111:·A·member·`C.this[int]'·is·already·defined.·Rename·this·member·or·use·different·parameter·types | ||
| 87 | //·Line:·6 | ||
| 88 | class·C | ||
| 89 | { | ||
| 90 | ····bool·this·[int·i]·{·get·{·return·false;·}·} | ||
| 91 | ····bool·this·[int·i]·{·get·{·return·true;·}·} | ||
| 92 | }</string> | ||
| 93 | ····<string>//·CS0111:·A·member·`T.T()'·is·already·defined.·Rename·this·member·or·use·different·parameter·types | 24 | ····<string>//·CS0111:·A·member·`T.T()'·is·already·defined.·Rename·this·member·or·use·different·parameter·types |
| 94 | //·Line·:·6 | 25 | //·Line·:·6 |
| 95 | class·T·{ | 26 | class·T·{ |
| 96 | » T·()·{} | 27 | » T·()·{} |
| 97 | » T·()·{} | 28 | » T·()·{} |
| 98 | » public·static·void·Main·() | 29 | » public·static·void·Main·() |
| 99 | » { | 30 | » { |
| 100 | » } | 31 | » } |
| 101 | }</string> | 32 | }</string> |
| 102 | ····<string>//·CS0111:·A·member·`C.this[params·int[]]'·is·already·defined.·Rename·this·member·or·use·different·parameter·types | ||
| 103 | //·Line:·6 | ||
| 104 | class·C | ||
| 105 | { | ||
| 106 | ····bool·this·[int[]·i]·{·get·{·return·true;·}·} | ||
| Max diff block lines reached; 7582/11207 bytes (67.65%) of diff not shown. | |||
| Offset 16, 41 lines modified | Offset 16, 14 lines modified | ||
| 16 | class·C·:·B | 16 | class·C·:·B |
| 17 | { | 17 | { |
| 18 | » public·override·int·P·{ | 18 | » public·override·int·P·{ |
| 19 | » » get·{·return·5;·} | 19 | » » get·{·return·5;·} |
| 20 | » » set·{·} | 20 | » » set·{·} |
| 21 | » } | 21 | » } |
| 22 | }</string> | 22 | }</string> |
| 23 | ····<string>//·CS0115:·`X.this[int]'·is·marked·as·an·override·but·no·suitable·indexer·found·to·override | ||
| 24 | //·Line:·5 | ||
| 25 | class·X·{ | ||
| 26 | » public·override·long·this·[int·i]·{ | ||
| 27 | ············set·{·} | ||
| 28 | » } | ||
| 29 | }</string> | ||
| 30 | ····<string>//·CS0115:·`B.MyMissingSuperclassEvent'·is·marked·as·an·override·but·no·suitable·event·found·to·override | ||
| 31 | //·Line:·10 | ||
| 32 | using·System; | ||
| 33 | class·A·{ | ||
| 34 | } | ||
| 35 | class·B·:·A·{ | ||
| 36 | » public·override·event·EventHandler·MyMissingSuperclassEvent; | ||
| 37 | }</string> | ||
| 38 | ····<string>//·CS0115:·`X.Bla()'·is·marked·as·an·override·but·no·suitable·method·found·to·override | ||
| 39 | //·Line:·5 | ||
| 40 | class·X·{ | ||
| 41 | » public·override·void·Bla·() | ||
| 42 | » { | ||
| 43 | » } | ||
| 44 | }</string> | ||
| 45 | ····<string>//·CS0115:·`MyTestExtended.GetName()'·is·marked·as·an·override·but·no·suitable·method·found·to·override | 23 | ····<string>//·CS0115:·`MyTestExtended.GetName()'·is·marked·as·an·override·but·no·suitable·method·found·to·override |
| 46 | //·Line:·12 | 24 | //·Line:·12 |
| 47 | //·Compiler·options:·-r:CS0534-4-lib.dll | 25 | //·Compiler·options:·-r:CS0534-4-lib.dll |
| 48 | using·System; | 26 | using·System; |
| 49 | public·class·MyTestExtended·:·MyTestAbstract | 27 | public·class·MyTestExtended·:·MyTestAbstract |
| 50 | { | 28 | { |
| Offset 64, 14 lines modified | Offset 37, 32 lines modified | ||
| 64 | » » Console.WriteLine("Calling·PrintName"); | 37 | » » Console.WriteLine("Calling·PrintName"); |
| 65 | » » MyTestExtended·test·=·new·MyTestExtended(); | 38 | » » MyTestExtended·test·=·new·MyTestExtended(); |
| 66 | » » test.PrintName(); | 39 | » » test.PrintName(); |
| 67 | » » Console.WriteLine("Out·of·PrintName"); | 40 | » » Console.WriteLine("Out·of·PrintName"); |
| 68 | » } | 41 | » } |
| 69 | » | 42 | » |
| 70 | }</string> | 43 | }</string> |
| 44 | ····<string>//·CS0115:·`DerivedClass.get_Value()'·is·marked·as·an·override·but·no·suitable·method·found·to·override | ||
| 45 | //·Line:·13 | ||
| 46 | class·BaseClass·{ | ||
| 47 | ········protected·virtual·int·Value·{· | ||
| 48 | ················get·{ | ||
| 49 | ························return·0; | ||
| 50 | ················} | ||
| 51 | ········} | ||
| 52 | } | ||
| 53 | class·DerivedClass:·BaseClass·{ | ||
| 54 | ········protected·override·int·get_Value·()·{ | ||
| 55 | ················return·1; | ||
| 56 | ········} | ||
| 57 | » static·void·Main·()·{} | ||
| 58 | }</string> | ||
| 71 | ····<string>//·CS0115:·`B.Foo(ref·int)'·is·marked·as·an·override·but·no·suitable·method·found·to·override | 59 | ····<string>//·CS0115:·`B.Foo(ref·int)'·is·marked·as·an·override·but·no·suitable·method·found·to·override |
| 72 | //·Line:·13 | 60 | //·Line:·13 |
| 73 | class·A | 61 | class·A |
| 74 | { | 62 | { |
| 75 | » public·virtual·void·Foo·(out·int·i) | 63 | » public·virtual·void·Foo·(out·int·i) |
| 76 | » { | 64 | » { |
| Offset 80, 27 lines modified | Offset 71, 36 lines modified | ||
| 80 | class·B·:·A | 71 | class·B·:·A |
| 81 | { | 72 | { |
| 82 | » public·override·void·Foo·(ref·int·i) | 73 | » public·override·void·Foo·(ref·int·i) |
| 83 | » { | 74 | » { |
| 84 | » } | 75 | » } |
| 85 | }</string> | 76 | }</string> |
| 86 | ····<string>//·CS0115:·` | 77 | ····<string>//·CS0115:·`X.Bla()'·is·marked·as·an·override·but·no·suitable·method·found·to·override |
| 87 | //·Line:· | 78 | //·Line:·5 |
| 88 | class·BaseClass·{ | ||
| 89 | ········protected·virtual·int·Value·{· | ||
| 90 | ················get·{ | ||
| 91 | ························return·0; | ||
| 92 | ················} | ||
| 93 | 79 | class·X·{ | |
| 80 | » public·override·void·Bla·() | ||
| 81 | » { | ||
| 82 | » } | ||
| 83 | }</string> | ||
| 84 | ····<string>//·CS0115:·`B.MyMissingSuperclassEvent'·is·marked·as·an·override·but·no·suitable·event·found·to·override | ||
| 85 | //·Line:·10 | ||
| 86 | using·System; | ||
| 87 | class·A·{ | ||
| 94 | } | 88 | } |
| 95 | class·DerivedClass:·BaseClass·{ | ||
| 96 | ········protected·override·int·get_Value·()·{ | ||
| 97 | ················return·1; | ||
| 98 | 89 | class·B·:·A·{ | |
| 90 | » public·override·event·EventHandler·MyMissingSuperclassEvent; | ||
| 91 | }</string> | ||
| 92 | ····<string>//·CS0115:·`X.this[int]'·is·marked·as·an·override·but·no·suitable·indexer·found·to·override | ||
| 93 | //·Line:·5 | ||
| 99 | 94 | class·X·{ | |
| 95 | » public·override·long·this·[int·i]·{ | ||
| 96 | ············set·{·} | ||
| 97 | » } | ||
| 100 | }</string> | 98 | }</string> |
| 101 | ··</Examples> | 99 | ··</Examples> |
| 102 | </ErrorDocumentation> | 100 | </ErrorDocumentation> |
| Offset 1, 74 lines modified | Offset 1, 87 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0117</ErrorName> | 3 | ··<ErrorName>CS0117</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0117:·` | 5 | ····<string>//·CS0117:·`Data'·does·not·contain·a·definition·for·`Count' |
| 6 | //·Line:· | 6 | //·Line:·15 |
| 7 | using·System.Runtime.CompilerServices; | ||
| 8 | 7 | using·System; | |
| 8 | class·Data | ||
| 9 | { | 9 | { |
| 10 | ···[IndexerName("xxx",·errorarg·=·"")] | ||
| 11 | ···public·int·this[int·index]·{ | ||
| 12 | ······get·{ | ||
| 13 | ·········return·0; | ||
| 14 | ······} | ||
| 15 | 10 | } | |
| 11 | public·class·Test | ||
| 12 | { | ||
| 13 | » static·void·Main·() | ||
| 14 | » { | ||
| 15 | » » var·c·=·new·Data·{·Count·=·10·}; | ||
| 16 | » } | ||
| 16 | }</string> | 17 | }</string> |
| 17 | ····<string>//·CS0117:·` | 18 | ····<string>//·CS0117:·`X'·does·not·contain·a·definition·for·`P' |
| 18 | //·Line:· | 19 | //·Line:·11 |
| 19 | 20 | class·X | |
| 20 | { | 21 | { |
| 21 | » void·Test·() | 22 | » public·void·Test·() |
| 22 | » { | 23 | » { |
| 23 | » » | 24 | » » Foo·(); |
| 24 | » } | 25 | » } |
| 25 | } | ||
| 26 | static· | 26 | » public·static·void·Foo·(string·Product·=·X.P) |
| 27 | » { | ||
| 28 | » } | ||
| 29 | }</string> | ||
| 30 | ····<string>//·CS0117:·`A'·does·not·contain·a·definition·for·`CODE' | ||
| 31 | //·Line:·6 | ||
| 32 | class·X | ||
| 27 | { | 33 | { |
| 28 | » public·static·void· | 34 | » public·static·void·Foo·(int·i,·string·code·=·A.CODE) |
| 29 | » { | 35 | » { |
| 30 | » } | 36 | » } |
| 31 | } | 37 | } |
| 32 | 38 | class·A | |
| 33 | { | 39 | { |
| 34 | }</string> | 40 | }</string> |
| 35 | ····<string>//·CS0117:·`string'·does·not·contain·a·definition·for·`Parse' | 41 | ····<string>//·CS0117:·`string'·does·not·contain·a·definition·for·`Parse' |
| 36 | //·Line:·10 | 42 | //·Line:·10 |
| 37 | using·System; | 43 | using·System; |
| 38 | class·string_parse | 44 | class·string_parse |
| 39 | { | 45 | { |
| 40 | » public·static·void·Main·() | 46 | » public·static·void·Main·() |
| 41 | » { | 47 | » { |
| 42 | » » string·drawBackLabel·=·string.Parse("absDrawBack"); | 48 | » » string·drawBackLabel·=·string.Parse("absDrawBack"); |
| 43 | » } | 49 | » } |
| 44 | }</string> | 50 | }</string> |
| 45 | ····<string>//·CS0117:·` | 51 | ····<string>//·CS0117:·`A'·does·not·contain·a·definition·for·`Method' |
| 46 | //·Line:· | 52 | //·Line:·8 |
| 47 | using·System; | ||
| 48 | class· | 53 | public·class·E·:·A |
| 49 | { | 54 | { |
| 55 | » void·Test·() | ||
| 56 | » { | ||
| 57 | » » base.Method·(); | ||
| 58 | » } | ||
| 50 | } | 59 | } |
| 51 | 60 | static·class·S | |
| 52 | { | 61 | { |
| 53 | » static·void·M | 62 | » public·static·void·Method·(this·A·a) |
| 54 | » { | 63 | » { |
| 55 | » » var·c·=·new·Data·{·Count·=·10·}; | ||
| 56 | » } | 64 | » } |
| 65 | } | ||
| 66 | public·class·A | ||
| 67 | { | ||
| 57 | }</string> | 68 | }</string> |
| 58 | ····<string>//·CS0117:·`Color'·does·not·contain·a·definition·for·`Transparent' | 69 | ····<string>//·CS0117:·`Color'·does·not·contain·a·definition·for·`Transparent' |
| 59 | //·Line: | 70 | //·Line: |
| 60 | using·System; | 71 | using·System; |
| 61 | struct·Color | 72 | struct·Color |
| Offset 86, 62 lines modified | Offset 99, 49 lines modified | ||
| 86 | class·MainClass | 99 | class·MainClass |
| 87 | { | 100 | { |
| 88 | » public·static·void·Main·() | 101 | » public·static·void·Main·() |
| 89 | » { | 102 | » { |
| 90 | » » var·c·=·Color.Transparent·(); | 103 | » » var·c·=·Color.Transparent·(); |
| 91 | » } | 104 | » } |
| 92 | }</string> | 105 | }</string> |
| 93 | ····<string>//·CS0117:·`A'·does·not·contain·a·definition·for·`CODE' | ||
| 94 | //·Line:·6 | ||
| 95 | class·X | ||
| 96 | { | ||
| 97 | » public·static·void·Foo·(int·i,·string·code·=·A.CODE) | ||
| 98 | » { | ||
| 99 | » } | ||
| 100 | } | ||
| 101 | class·A | ||
| 102 | { | ||
| 103 | }</string> | ||
| 104 | ····<string>//·CS0117:·`System.Console'·does·not·contain·a·definition·for·`WriteLINE' | 106 | ····<string>//·CS0117:·`System.Console'·does·not·contain·a·definition·for·`WriteLINE' |
| 105 | //·Line:·10 | 107 | //·Line:·10 |
| 106 | using·System; | 108 | using·System; |
| 107 | public·class·Test | 109 | public·class·Test |
| 108 | { | 110 | { |
| 109 | » public·static·void·Main·() | 111 | » public·static·void·Main·() |
| Max diff block lines reached; 993/3651 bytes (27.20%) of diff not shown. | |||
| Offset 1, 11 lines modified | Offset 1, 27 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0118</ErrorName> | 3 | ··<ErrorName>CS0118</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0118:·`A.s'·is·a·`field'·but·a·`type'·was·expected | ||
| 6 | //·Line:·11 | ||
| 7 | class·A | ||
| 8 | { | ||
| 9 | » public·string·s; | ||
| 10 | } | ||
| 11 | class·X·:·A | ||
| 12 | { | ||
| 13 | » s·MyProperty·{ | ||
| 14 | » » get·{ | ||
| 15 | » » » return·s; | ||
| 16 | » » } | ||
| 17 | » } | ||
| 18 | }</string> | ||
| 5 | ····<string>//·CS0118:·`MonoTests.System.Data.Test'·is·a·`namespace'·but·a·`type'·was·expected | 19 | ····<string>//·CS0118:·`MonoTests.System.Data.Test'·is·a·`namespace'·but·a·`type'·was·expected |
| 6 | //·Line:·22 | 20 | //·Line:·22 |
| 7 | using·NUnit.Framework; | 21 | using·NUnit.Framework; |
| 8 | using·System; | 22 | using·System; |
| 9 | namespace·NUnit.Framework | 23 | namespace·NUnit.Framework |
| 10 | { | 24 | { |
| Offset 28, 107 lines modified | Offset 44, 38 lines modified | ||
| 28 | » » { | 44 | » » { |
| 29 | » » } | 45 | » » } |
| 30 | » » static·void·Main·() | 46 | » » static·void·Main·() |
| 31 | » » {·} | 47 | » » {·} |
| 32 | » } | 48 | » } |
| 33 | }</string> | 49 | }</string> |
| 34 | ····<string>//·CS0118:·` | 50 | ····<string>//·CS0118:·`System'·is·a·`namespace'·but·a·`type'·was·expected |
| 35 | //·Line:· | 51 | //·Line:·9 |
| 36 | class·A | ||
| 37 | { | ||
| 38 | } | ||
| 52 | public·class·C | ||
| 39 | class·B | ||
| 40 | { | ||
| 41 | » public·B·() | ||
| 42 | » { | ||
| 43 | » » A·=·2; | ||
| 44 | » } | ||
| 45 | }</string> | ||
| 46 | ····<string>//·CS0118:·`Foo<X>'·is·a·`type'·but·a·`variable'·was·expected | ||
| 47 | //·Line:·12 | ||
| 48 | · | ||
| 49 | public·class·Foo<T> | ||
| 50 | { | ||
| 51 | } | ||
| 52 | · | ||
| 53 | class·X | ||
| 54 | { | 53 | { |
| 55 | » | 54 | » public·object·Test·(object·a) |
| 56 | » { | 55 | » { |
| 57 | » » | 56 | » » return·(System)(a); |
| 58 | » } | 57 | » } |
| 59 | }</string> | 58 | }</string> |
| 60 | ····<string>//·CS0118:·`N'·is·a·`namespace'·but·a·`type'·was·expected | ||
| 61 | //·Line:·8 | ||
| 62 | namespace·N | ||
| 63 | { | ||
| 64 | } | ||
| 65 | public·class·C<T>··where·T·:·N | ||
| 66 | { | ||
| 67 | }</string> | ||
| 68 | ····<string>//·CS0118:·`x.a.B'·is·a·`property'·but·a·`type'·was·expected | 59 | ····<string>//·CS0118:·`x.a.B'·is·a·`property'·but·a·`type'·was·expected |
| 69 | //·Line:·9 | 60 | //·Line:·9 |
| 70 | using·System; | 61 | using·System; |
| 71 | namespace·x | 62 | namespace·x |
| 72 | { | 63 | { |
| 73 | » class·a | 64 | » class·a |
| 74 | » { | 65 | » { |
| 75 | » » bool·B·{·set·{}·} | 66 | » » bool·B·{·set·{}·} |
| 76 | » » | 67 | » » |
| 77 | » » void·Test·(B·b)·{} | 68 | » » void·Test·(B·b)·{} |
| 78 | » } | 69 | » } |
| 79 | }</string> | 70 | }</string> |
| 80 | ····<string>//·CS0118:·`A.Foo(string)'·is·a·`method·group'·but·a·`type'·was·expected | ||
| 81 | //·Line:·15 | ||
| 82 | public·class·A | ||
| 83 | { | ||
| 84 | » public·static·void·Foo·(string·Setting) | ||
| 85 | » { | ||
| 86 | » } | ||
| 87 | } | ||
| 88 | class·Example | ||
| 89 | { | ||
| 90 | » public·void·Main(string[]·args) | ||
| 91 | » { | ||
| 92 | » » A·a·=·new·A.Foo·("test");·· | ||
| 93 | » } | ||
| 94 | }</string> | ||
| 95 | ····<string>//·CS0118:·`M.N'·is·a·`namespace'·but·a·`variable'·was·expected | ||
| 96 | //·Line:·10 | ||
| 97 | namespace·M.N | ||
| 98 | { | ||
| 99 | » public·class·Foo | ||
| 100 | » { | ||
| 101 | » » public·Foo·(object·value) | ||
| 102 | » » { | ||
| 103 | » » » N·=·value; | ||
| 104 | » » } | ||
| 105 | » } | ||
| 106 | }</string> | ||
| 107 | ····<string>//·CS0118:·`X.s'·is·a·`field'·but·a·`type'·was·expected | ||
| 108 | //·Line:·6 | ||
| 109 | class·X·{ | ||
| 110 | » string·s; | ||
| 111 | » s·MyProperty·{ | ||
| 112 | » » get·{ | ||
| 113 | » » » return·s; | ||
| 114 | » » } | ||
| Max diff block lines reached; 2318/4618 bytes (50.19%) of diff not shown. | |||
| Offset 1, 73 lines modified | Offset 1, 44 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0119</ErrorName> | 3 | ··<ErrorName>CS0119</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0119:·Expression·denotes·a·`variable',·where·a·`type'·or·`method·group'·was·expected | ||
| 6 | //·Line:·10 | ||
| 7 | delegate·void·D·(); | ||
| 8 | class·C | ||
| 9 | { | ||
| 10 | ····public·void·Foo·(int·i) | ||
| 11 | ····{ | ||
| 12 | ········D·d·=·new·D·(i); | ||
| 13 | ····} | ||
| 14 | }</string> | ||
| 15 | ····<string>//·CS0119:·Expression·denotes·a·`variable',·where·a·`type'·was·expected | 5 | ····<string>//·CS0119:·Expression·denotes·a·`variable',·where·a·`type'·was·expected |
| 16 | //·Line:·8 | 6 | //·Line:·8 |
| 17 | class·A | 7 | class·A |
| 18 | { | 8 | { |
| 19 | » public·void·f·() | 9 | » public·void·f·() |
| 20 | ········{ | 10 | ········{ |
| 21 | ················this.test·bad·=·null; | 11 | ················this.test·bad·=·null; |
| 22 | ········} | 12 | ········} |
| 23 | » static·void·Main·()·{} | 13 | » static·void·Main·()·{} |
| 24 | }</string> | 14 | }</string> |
| 15 | ····<string>//·CS0119:·Expression·denotes·a·`namespace',·where·a·`variable',·`value'·or·`method·group'·was·expected | ||
| 16 | //·Line:·8 | ||
| 17 | class·X | ||
| 18 | { | ||
| 19 | » public·static·void·Main·() | ||
| 20 | » { | ||
| 21 | » » System.Collections.Generic·(""); | ||
| 22 | » } | ||
| 23 | }</string> | ||
| 25 | ····<string>//·CS0119:·Expression·denotes·a·`variable',·where·a·`type'·was·expected | 24 | ····<string>//·CS0119:·Expression·denotes·a·`variable',·where·a·`type'·was·expected |
| 26 | //·Line:·9 | 25 | //·Line:·9 |
| 27 | class·A | 26 | class·A |
| 28 | { | 27 | { |
| 29 | ········private·string·test; | 28 | ········private·string·test; |
| 30 | » public·void·f·() | 29 | » public·void·f·() |
| 31 | ········{ | 30 | ········{ |
| 32 | ················this.test·bad·=·null; | 31 | ················this.test·bad·=·null; |
| 33 | ········} | 32 | ········} |
| 34 | » static·void·Main·()·{} | 33 | » static·void·Main·()·{} |
| 35 | }</string> | 34 | }</string> |
| 36 | ····<string>//·CS0119:·Expression·denotes·a·`type·parameter',·where·a·`variable',·`value'·or·`type'·was·expected | ||
| 37 | //·Line:·8 | ||
| 38 | class·C | ||
| 39 | { | ||
| 40 | » static·void·Foo<T>·() | ||
| 41 | » { | ||
| 42 | » » T.ToString·(); | ||
| 43 | » } | ||
| 44 | }</string> | ||
| 45 | ····<string>//·CS0119:·Expression·denotes·a·`type',·where·a·`variable',·`value'·or·`method·group'·was·expected | ||
| 46 | //·Line:·14 | ||
| 47 | using·System; | ||
| 48 | namespace·Test | ||
| 49 | { | ||
| 50 | » public·delegate·void·SomeDel·(Action·a); | ||
| 51 | » public·class·TestClass | ||
| 52 | » { | ||
| 53 | » » public·void·TestMethod·() | ||
| 54 | » » { | ||
| 55 | » » » SomeDel·(()·=>·{·}); | ||
| 56 | » » } | ||
| 57 | » } | ||
| 58 | }</string> | ||
| 59 | ····<string>//·CS0119:·Expression·denotes·a·`type',·where·a·`variable'·or·`value'·was·expected | 35 | ····<string>//·CS0119:·Expression·denotes·a·`type',·where·a·`variable'·or·`value'·was·expected |
| 60 | //·Line:·15 | 36 | //·Line:·15 |
| 61 | class·A | 37 | class·A |
| 62 | { | 38 | { |
| 63 | » public·class·D | 39 | » public·class·D |
| 64 | » { | 40 | » { |
| Offset 77, 22 lines modified | Offset 48, 37 lines modified | ||
| 77 | class·B | 48 | class·B |
| 78 | { | 49 | { |
| 79 | » public·B·() | 50 | » public·B·() |
| 80 | » { | 51 | » { |
| 81 | » » A.D·=·2; | 52 | » » A.D·=·2; |
| 82 | » } | 53 | » } |
| 83 | }</string> | 54 | }</string> |
| 84 | ····<string>//·CS0119:·Expression·denotes·a·` | 55 | ····<string>//·CS0119:·Expression·denotes·a·`variable',·where·a·`type'·or·`method·group'·was·expected |
| 85 | //·Line:· | 56 | //·Line:·10 |
| 57 | delegate·void·D·(); | ||
| 86 | class·C | 58 | class·C |
| 87 | { | 59 | { |
| 60 | ····public·void·Foo·(int·i) | ||
| 61 | ····{ | ||
| 62 | ········D·d·=·new·D·(i); | ||
| 63 | ····} | ||
| 64 | }</string> | ||
| 65 | ····<string>//·CS0119:·Expression·denotes·a·`variable',·where·a·`method·group'·was·expected | ||
| 66 | //·Line:·11 | ||
| 67 | using·System; | ||
| 68 | class·X | ||
| 69 | { | ||
| 88 | » static·void·Main·() | 70 | » static·void·Main·() |
| 89 | » { | 71 | » { |
| 90 | » » t | 72 | » » Delegate·d·=·null; |
| 73 | » » Console.WriteLine·(d·(null,·null)); | ||
| 91 | » } | 74 | » } |
| 92 | }</string> | 75 | }</string> |
| 93 | ····<string>//·CS0119:·Expression·denotes·a·`type·parameter',·where·a·`variable',·`value'·or·`type'·was·expected | 76 | ····<string>//·CS0119:·Expression·denotes·a·`type·parameter',·where·a·`variable',·`value'·or·`type'·was·expected |
| 94 | //·Line:·15 | 77 | //·Line:·15 |
| 95 | class·A | 78 | class·A |
| 96 | { | 79 | { |
| Offset 104, 44 lines modified | Offset 90, 58 lines modified | ||
| 104 | class·B<T>·:·A | 90 | class·B<T>·:·A |
| 105 | { | 91 | { |
| 106 | » void·Foo·() | 92 | » void·Foo·() |
| 107 | » { | 93 | » { |
| 108 | » » T.Equals·(null,·null); | 94 | » » T.Equals·(null,·null); |
| Max diff block lines reached; 1419/4191 bytes (33.86%) of diff not shown. | |||
| Offset 1, 24 lines modified | Offset 1, 70 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0120</ErrorName> | 3 | ··<ErrorName>CS0120</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0120:·An·object·reference·is·required·to·access·non-static·member·`MainClass.Test' | ||
| 6 | //·Line:·20 | ||
| 7 | public·class·Test | ||
| 8 | { | ||
| 9 | » public·void·Foo·() | ||
| 10 | » { | ||
| 11 | » } | ||
| 12 | } | ||
| 13 | public·class·MainClass | ||
| 14 | { | ||
| 15 | » public·Test·Test | ||
| 16 | » { | ||
| 17 | » » get; | ||
| 18 | » » set; | ||
| 19 | » } | ||
| 20 | » public·static·void·Main·(string[]·args) | ||
| 21 | » { | ||
| 22 | » » Test.Foo·(); | ||
| 23 | » } | ||
| 24 | }</string> | ||
| 5 | ····<string>//·CS0120:·An·object·reference·is·required·to·access·non-static·member·`X.Y(System.Text.StringBuilder)' | 25 | ····<string>//·CS0120:·An·object·reference·is·required·to·access·non-static·member·`X.Y(System.Text.StringBuilder)' |
| 6 | //·Line:·8 | 26 | //·Line:·8 |
| 7 | using·System.Text; | 27 | using·System.Text; |
| 8 | class·X·{ | 28 | class·X·{ |
| 9 | » static·void·Main·()·{ | 29 | » static·void·Main·()·{ |
| 10 | » » X.Y(null);» | 30 | » » X.Y(null);» |
| 11 | » } | 31 | » } |
| 12 | » | 32 | » |
| 13 | » void·Y(StringBuilder·someParam)·{ | 33 | » void·Y(StringBuilder·someParam)·{ |
| 14 | » } | 34 | » } |
| 15 | }</string> | 35 | }</string> |
| 36 | ····<string>//·CS0120:·An·object·reference·is·required·to·access·non-static·member·`Derived.Foo()' | ||
| 37 | //·Line:·16 | ||
| 38 | using·System; | ||
| 39 | public·class·Base | ||
| 40 | { | ||
| 41 | » public·Base·(Action·a) | ||
| 42 | » { | ||
| 43 | » } | ||
| 44 | } | ||
| 45 | public·class·Derived·:·Base | ||
| 46 | { | ||
| 47 | » public·Derived·() | ||
| 48 | » » :·base·(()·=>·Foo·()) | ||
| 49 | » { | ||
| 50 | » } | ||
| 51 | » void·Foo·() | ||
| 52 | » { | ||
| 53 | » } | ||
| 54 | }</string> | ||
| 16 | ····<string>//·CS0120:·An·object·reference·is·required·to·access·non-static·member·`MainClass.Callback()' | 55 | ····<string>//·CS0120:·An·object·reference·is·required·to·access·non-static·member·`MainClass.Callback()' |
| 17 | //·Line:·9 | 56 | //·Line:·9 |
| 18 | using·System; | 57 | using·System; |
| 19 | class·MainClass·:·BaseClass | 58 | class·MainClass·:·BaseClass |
| 20 | { | 59 | { |
| Offset 38, 25 lines modified | Offset 84, 85 lines modified | ||
| 38 | » { | 84 | » { |
| 39 | » } | 85 | » } |
| 40 | » public·BaseClass·(string·a,·Action·callback) | 86 | » public·BaseClass·(string·a,·Action·callback) |
| 41 | » { | 87 | » { |
| 42 | » } | 88 | » } |
| 43 | }</string> | 89 | }</string> |
| 90 | ····<string>//·CS0120:·An·object·reference·is·required·to·access·non-static·member·`Program.x' | ||
| 91 | //·Line:·6 | ||
| 92 | class·Program·{ | ||
| 93 | » int·x; | ||
| 94 | » const·int·y·=·x; | ||
| 95 | }</string> | ||
| 96 | ····<string>//·CS0120:·An·object·reference·is·required·to·access·non-static·member·`App.Test' | ||
| 97 | //·Line:·15 | ||
| 98 | class·App | ||
| 99 | { | ||
| 100 | » Test·a·=·new·Test·(); | ||
| 101 | » public·Test·Test | ||
| 102 | » { | ||
| 103 | » » get·{·return·a;·} | ||
| 104 | » } | ||
| 105 | » public·static·void·Main·(string[]·args) | ||
| 106 | » { | ||
| 107 | » » Test.Run·(); | ||
| 108 | » } | ||
| 109 | } | ||
| 110 | class·Test | ||
| 111 | { | ||
| 112 | » public·void·Run·()·{·} | ||
| 113 | }</string> | ||
| 44 | ····<string>//·CS0120:·An·object·reference·is·required·to·access·non-static·member·` | 114 | ····<string>//·CS0120:·An·object·reference·is·required·to·access·non-static·member·`X.Y' |
| 45 | //·Line:·11 | 115 | //·Line:·11 |
| 46 | using·System; | 116 | using·System; |
| 47 | public·class·MemRefMonoBug·{ | ||
| 48 | 117 | class·X·{ | |
| 118 | » //·Public·properties·and·variables. | ||
| 119 | » public·string·Y; | ||
| 120 | » //·Constructors. | ||
| 121 | » public·X() | ||
| 122 | » { | ||
| 123 | » } | ||
| 124 | » //·Public·static·methods. | ||
| 125 | » public·static·void·Main(string[]·Arguments) | ||
| 126 | » { | ||
| 127 | » » X.Y·=·""; | ||
| 128 | » } | ||
| Max diff block lines reached; 6433/9231 bytes (69.69%) of diff not shown. | |||
| Offset 1, 178 lines modified | Offset 1, 217 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0121</ErrorName> | 3 | ··<ErrorName>CS0121</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0121:·The·call·is·ambiguous·between·the·following·methods·or·properties:·` | 5 | ····<string>//·CS0121:·The·call·is·ambiguous·between·the·following·methods·or·properties:·`A.Foo<int>(int,·G<int>)'·and·`A.Foo<int>(int,·object)' |
| 6 | //·Line:·18 | 6 | //·Line:·18 |
| 7 | class· | 7 | class·A |
| 8 | { | 8 | { |
| 9 | » static·int·Foo·( | 9 | » static·int·Foo<T>·(T·a,·G<T>·y·=·null) |
| 10 | » { | 10 | » { |
| 11 | » » return· | 11 | » » return·1; |
| 12 | » } | 12 | » } |
| 13 | » | ||
| 14 | » static·int·Foo·(int·i·=·8) | ||
| 13 | » static·int·Foo<T>·(T·a,·object·y·=·null) | ||
| 15 | » { | 14 | » { |
| 16 | » » return·2; | 15 | » » return·2; |
| 17 | » } | 16 | » } |
| 18 | » | ||
| 19 | » public·static· | 17 | » public·static·int·Main·() |
| 20 | » { | 18 | » { |
| 21 | » » Foo·() | 19 | » » if·(A.Foo<int>·(99)·!=·2) |
| 20 | » » » return·1; | ||
| 21 | » » return·0; | ||
| 22 | » } | 22 | » } |
| 23 | } | ||
| 23 | }</string> | ||
| 24 | ····<string>//·CS0121:·The·call·is·ambiguous·between·the·following·methods·or·properties:·`IList.Count()'·and·`ICounter.Count()' | ||
| 25 | //·Line:·29 | ||
| 26 | 24 | class·G<U> | |
| 25 | { | ||
| 26 | }</string> | ||
| 27 | ····<string>//·CS0121:·The·call·is·ambiguous·between·the·following·methods·or·properties:·`IA.Foo()'·and·`IB.Foo()' | ||
| 28 | //·Line:·27 | ||
| 27 | interface·I | 29 | interface·IA |
| 28 | { | 30 | { |
| 29 | » | 31 | » void·Foo·(); |
| 30 | } | 32 | } |
| 31 | interface·I | 33 | interface·IBB·:·IB |
| 32 | { | 34 | { |
| 33 | » int·Count·(); | ||
| 34 | } | 35 | } |
| 35 | interface·I | 36 | interface·IB |
| 36 | { | 37 | { |
| 37 | » int· | 38 | » int·Foo·(); |
| 38 | } | 39 | } |
| 39 | interface·I | 40 | interface·IC·:·IA,·IBB |
| 40 | { | 41 | { |
| 41 | } | 42 | } |
| 42 | class· | 43 | public·class·Program |
| 43 | { | 44 | { |
| 44 | » static·void· | 45 | » static·void·Main·() |
| 45 | » { | 46 | » { |
| 46 | » » | 47 | » » IC·i·=·null; |
| 48 | » » i.Foo·(); | ||
| 47 | » } | 49 | » } |
| 48 | }</string> | 50 | }</string> |
| 49 | ····<string>//·CS0121:·The·call·is·ambiguous·between·the·following·methods·or·properties:·` | 51 | ····<string>//·CS0121:·The·call·is·ambiguous·between·the·following·methods·or·properties:·`A.B.X.Test(this·int)'·and·`A.C.X.Test(this·int)' |
| 50 | //·Line:· | 52 | //·Line:·37 |
| 51 | 53 | using·System; | |
| 54 | namespace·A.B | ||
| 52 | { | 55 | { |
| 53 | » | 56 | » static·class·X |
| 54 | » { | 57 | » { |
| 55 | » » var·d·=·new·C·(); | ||
| 56 | » » | 58 | » » public·static·int·Test·(this·int·o) |
| 59 | » » { | ||
| 60 | » » » return·1; | ||
| 61 | » » } | ||
| 57 | » } | 62 | » } |
| 63 | } | ||
| 58 | 64 | namespace·A.C | |
| 65 | { | ||
| 66 | » static·class·X | ||
| 59 | » { | 67 | » { |
| 68 | » » public·static·int·Test·(this·int·o) | ||
| 69 | » » { | ||
| 70 | » » » return·2; | ||
| 71 | » » } | ||
| 60 | » } | 72 | » } |
| 73 | } | ||
| 61 | 74 | namespace·C | |
| 75 | { | ||
| 76 | » using·A.B; | ||
| 77 | » using·static·A.C.X; | ||
| 78 | » class·M | ||
| 62 | » { | 79 | » { |
| 80 | » » public·static·int·Main·() | ||
| 81 | » » { | ||
| 82 | » » » if·(1.Test·()·!=·1) | ||
| 83 | » » » » return·1; | ||
| 84 | » » » return·0; | ||
| 85 | » » } | ||
| 63 | » } | 86 | » } |
| 64 | }</string> | 87 | }</string> |
| 65 | ····<string>//·CS0121:·The·call·is·ambiguous·between·the·following·methods·or·properties:·`A. | 88 | ····<string>//·CS0121:·The·call·is·ambiguous·between·the·following·methods·or·properties:·`A.operator·+(A,·B)'·and·`B.operator·+(A,·B)' |
| 66 | //·Line:·2 | 89 | //·Line:·21 |
| 67 | class·A | 90 | class·A |
| 68 | { | 91 | { |
| 92 | » public·static·A·operator·+·(A·a,·B·b) | ||
| 69 | » public·virtual·void·Foo·(int·a2,·string·b2) | ||
| 70 | » { | ||
| 71 | » } | ||
| 72 | » | ||
| 73 | » public·void·Foo·(string·b,·int·a) | ||
| 74 | » { | 93 | » { |
| 94 | » » return·null; | ||
| 75 | » } | 95 | » } |
| 76 | } | 96 | } |
| 77 | class·B | 97 | class·B |
| 78 | { | 98 | { |
| Max diff block lines reached; 17177/20431 bytes (84.07%) of diff not shown. | |||
| Offset 1, 11 lines modified | Offset 1, 22 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0122</ErrorName> | 3 | ··<ErrorName>CS0122</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0122:·`N.S'·is·inaccessible·due·to·its·protection·level | ||
| 6 | //·Line:·9 | ||
| 7 | //·Compiler·options:·-r:CS0122-36-lib.dll | ||
| 8 | class·X | ||
| 9 | { | ||
| 10 | » static·void·Main·() | ||
| 11 | » { | ||
| 12 | » » var·v·=·new·N.S·(); | ||
| 13 | » } | ||
| 14 | }</string> | ||
| 5 | ····<string>//·CS0122:·`Foo.this[int]'·is·inaccessible·due·to·its·protection·level | 15 | ····<string>//·CS0122:·`Foo.this[int]'·is·inaccessible·due·to·its·protection·level |
| 6 | //·Line:·14 | 16 | //·Line:·14 |
| 7 | using·System; | 17 | using·System; |
| 8 | » | 18 | » |
| 9 | public·class·Foo·{ | 19 | public·class·Foo·{ |
| 10 | » private·int·this[int·index]·{·get·{·return·index;·}·} | 20 | » private·int·this[int·index]·{·get·{·return·index;·}·} |
| Offset 14, 60 lines modified | Offset 25, 109 lines modified | ||
| 14 | public·class·Bar·{ | 25 | public·class·Bar·{ |
| 15 | » public·static·void·Main·() | 26 | » public·static·void·Main·() |
| 16 | » { | 27 | » { |
| 17 | » » Foo·foo·=·new·Foo·(); | 28 | » » Foo·foo·=·new·Foo·(); |
| 18 | » » Console.WriteLine·(foo[5]); | 29 | » » Console.WriteLine·(foo[5]); |
| 19 | » } | 30 | » } |
| 20 | }</string> | 31 | }</string> |
| 21 | ····<string>//·CS0122:·` | 32 | ····<string>//·CS0122:·`BB.AnEvent'·is·inaccessible·due·to·its·protection·level |
| 22 | //·Line:·10 | 33 | //·Line:·10 |
| 23 | using·System; | 34 | using·System; |
| 24 | 35 | class·X· | |
| 25 | { | 36 | { |
| 26 | 37 | ·······static·void·Main·() | |
| 38 | ·······{ | ||
| 39 | ···············BB·b·=·new·BB·(); | ||
| 40 | ···············b.AnEvent·+=·DoIt; | ||
| 41 | ·······} | ||
| 42 | ······· | ||
| 43 | ·······public·static·void·DoIt·(object·sender,·EventArgs·args)·{} | ||
| 44 | } | ||
| 45 | public·class·BB | ||
| 46 | { | ||
| 47 | ·······event·EventHandler·AnEvent; | ||
| 48 | }</string> | ||
| 49 | ····<string>//·CS0122:·`Foo.Bar()'·is·inaccessible·due·to·its·protection·level | ||
| 50 | //·Line:·17 | ||
| 51 | using·System; | ||
| 52 | public·class·Foo | ||
| 53 | { | ||
| 54 | » void·Bar·() | ||
| 27 | » { | 55 | » { |
| 28 | » » SomeAttribute()·{} | ||
| 29 | » } | 56 | » } |
| 57 | } | ||
| 30 | » [SomeAttribute] | ||
| 31 | 58 | public·class·Baz·:·Foo | |
| 59 | { | ||
| 60 | » public·static·void·Main·(String[]·args) | ||
| 32 | » { | 61 | » { |
| 62 | » » Bar·(); | ||
| 33 | » } | 63 | » } |
| 34 | }</string> | 64 | }</string> |
| 35 | ····<string>//·CS0122:·` | 65 | ····<string>//·CS0122:·`C.this[int]'·is·inaccessible·due·to·its·protection·level |
| 36 | //·Line:· | 66 | //·Line:·6 |
| 37 | using· | 67 | using·System; |
| 68 | using·System.Collections; | ||
| 38 | class· | 69 | class·C |
| 39 | { | 70 | { |
| 40 | » c | 71 | » protected·string·this·[int·i]·{·set·{}·} |
| 72 | } | ||
| 73 | public·class·D | ||
| 74 | { | ||
| 75 | » void·Foo·() | ||
| 76 | » { | ||
| 77 | » » C·c·=·new·C·(); | ||
| 78 | » » c·[0]·=·null; | ||
| 79 | » } | ||
| 41 | }</string> | 80 | }</string> |
| 42 | ····<string>//·CS0122:·` | 81 | ····<string>//·CS0122:·`X.a.get'·is·inaccessible·due·to·its·protection·level |
| 43 | //·Line:· | 82 | //·Line:·16 |
| 44 | //·Compiler·options:·-r:CS0122-38-lib.dll | ||
| 45 | class· | 83 | public·class·X·{ |
| 84 | » private·int·a·{ | ||
| 85 | » » get·{ | ||
| 86 | » » » return·1; | ||
| 87 | » » } | ||
| 88 | » } | ||
| 89 | } | ||
| 90 | internal·class·Y·:·X | ||
| 91 | { | ||
| 92 | » int·D·(X·x) | ||
| 93 | » { | ||
| 94 | » » if·(x.a·==·2) | ||
| 95 | » » » return·0; | ||
| 96 | » » return·0; | ||
| 97 | » } | ||
| 98 | }</string> | ||
| 99 | ····<string>//·CS0122:·`A.AA.Foo()'·is·inaccessible·due·to·its·protection·level | ||
| 100 | //·Line:·16 | ||
| 101 | //·Compiler·options:·-r:CS0122-8-lib.dll | ||
| 102 | public·class·Test | ||
| 46 | { | 103 | { |
| 47 | » public·static·void·Main·() | 104 | » public·static·void·Main·() |
| 48 | » { | 105 | » { |
| 49 | » » new· | 106 | » » new·B.BB·().Foo·(); |
| 50 | » } | 107 | » } |
| 51 | }</string> | 108 | }</string> |
| 52 | ····<string>//·CS0122:·`Y.Y(string)'·is·inaccessible·due·to·its·protection·level | 109 | ····<string>//·CS0122:·`X.Y.Y(string)'·is·inaccessible·due·to·its·protection·level |
| 53 | //·Line:· | 110 | //·Line:·9 |
| 111 | //·Compiler·options:·-r:CS0122-10-lib.dll | ||
| 54 | using·System; | 112 | using·System; |
| Max diff block lines reached; 15099/18160 bytes (83.14%) of diff not shown. | |||
| Offset 1, 105 lines modified | Offset 1, 72 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0123</ErrorName> | 3 | ··<ErrorName>CS0123</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0123:·A·method·or·delegate·` | 5 | ····<string>//·CS0123:·A·method·or·delegate·`C.Method(ref·dynamic)'·parameters·do·not·match·delegate·`C.D(dynamic)'·parameters |
| 6 | //·Line:·1 | 6 | //·Line:·14 |
| 7 | delegate·IA·TestDelegate(bool·b); | ||
| 8 | interface·IA·{} | ||
| 9 | public·class·MainClass·:·IA | ||
| 10 | { | ||
| 11 | » static·MainClass·Delegate() | ||
| 12 | » { | ||
| 13 | » » return·null; | ||
| 14 | » } | ||
| 15 | » public·static·void·Main() | ||
| 16 | » { | ||
| 17 | » » TestDelegate·delegateInstance·=·new·TestDelegate·(Delegate); | ||
| 18 | » } | ||
| 19 | }</string> | ||
| 20 | ····<string>//·CS0123:·A·method·or·delegate·`Program.method(A)'·parameters·do·not·match·delegate·`D(dynamic)'·parameters | ||
| 21 | //·Line:·19 | ||
| 22 | delegate·object·D·(dynamic·b); | ||
| 23 | class·A | ||
| 24 | { | ||
| 25 | } | ||
| 26 | 7 | public·class·C | |
| 27 | { | 8 | { |
| 28 | » | 9 | » delegate·void·D·(dynamic·d); |
| 10 | » | ||
| 11 | » static·void·Method·(ref·dynamic·d) | ||
| 29 | » { | 12 | » { |
| 30 | » » return·""; | ||
| 31 | » } | 13 | » } |
| 32 | » static·void·Main·() | 14 | » public·static·void·Main·() |
| 33 | » { | 15 | » { |
| 34 | » » | 16 | » » D·d·=·Method; |
| 35 | » } | 17 | » } |
| 36 | }</string> | 18 | }</string> |
| 37 | ····<string>//·CS0123:·A·method·or·delegate·`MainClass.Delegate()'·parameters·do·not·match·delegate·`TestDelegate(bool)'·parameters | ||
| 38 | //·Line:·12 | ||
| 39 | delegate·int·TestDelegate(bool·b); | ||
| 40 | public·class·MainClass·{ | ||
| 41 | ········public·static·int·Delegate()·{ | ||
| 42 | ················return·0; | ||
| 43 | ········} | ||
| 44 | ········public·static·void·Main()·{ | ||
| 45 | ················TestDelegate·delegateInstance·=·new·TestDelegate·(Delegate); | ||
| 46 | ·······} | ||
| 47 | }</string> | ||
| 48 | ····<string>//·CS0123:·A·method·or·delegate·`A<T,U>.M(T)'·parameters·do·not·match·delegate·`A<T,U>.D(U)'·parameters | 19 | ····<string>//·CS0123:·A·method·or·delegate·`A<T,U>.M(T)'·parameters·do·not·match·delegate·`A<T,U>.D(U)'·parameters |
| 49 | //·Line:·10 | 20 | //·Line:·10 |
| 50 | class·A<T,·U>·where·T·:·U | 21 | class·A<T,·U>·where·T·:·U |
| 51 | { | 22 | { |
| 52 | » delegate·void·D·(U·u); | 23 | » delegate·void·D·(U·u); |
| 53 | » static·void·M·(T·t) | 24 | » static·void·M·(T·t) |
| 54 | » { | 25 | » { |
| 55 | » » D·d·=·M; | 26 | » » D·d·=·M; |
| 56 | » } | 27 | » } |
| 57 | }</string> | 28 | }</string> |
| 58 | ····<string>//·CS0123:·A·method·or·delegate·` | 29 | ····<string>//·CS0123:·A·method·or·delegate·`Test.Foo(int,·bool)'·parameters·do·not·match·delegate·`System.Func<int,bool>(int)'·parameters |
| 59 | //·Line:·1 | 30 | //·Line:·15 |
| 60 | //·Compiler·options:·-langversion:latest | ||
| 61 | using·System; | 31 | using·System; |
| 62 | public·ref·struct·S | ||
| 63 | { | ||
| 64 | } | ||
| 65 | class·Test | 32 | class·Test |
| 66 | { | 33 | { |
| 67 | » | 34 | » static·bool·Foo·(int·x,·bool·option·=·true) |
| 68 | » { | 35 | » { |
| 69 | » » var·s·=·new·S·(); | ||
| 70 | » » | 36 | » » return·true; |
| 37 | » } | ||
| 38 | » static·void·Main·() | ||
| 39 | » { | ||
| 40 | » » Func<int,·bool>·f·=·Foo; | ||
| 71 | » } | 41 | » } |
| 72 | }</string> | 42 | }</string> |
| 73 | ····<string>//·CS0123:·A·method·or·delegate·`o | 43 | ····<string>//·CS0123:·A·method·or·delegate·`C.Button1_Click(params·object[])'·parameters·do·not·match·delegate·`EventHandler(params·int[])'·parameters |
| 74 | //·Line:· | 44 | //·Line:·20 |
| 75 | using·System; | 45 | using·System; |
| 76 | cla | 46 | public·delegate·void·EventHandler·(params·int[]·args); |
| 47 | public·class·C | ||
| 77 | { | 48 | { |
| 78 | » public· | 49 | » public·void·Connect·() |
| 50 | » { | ||
| 51 | » » EventHandler·Click·=·new·EventHandler·(Button1_Click); | ||
| 52 | » } | ||
| 53 | » public·void·Button1_Click·(params·object[]·i) | ||
| 79 | » { | 54 | » { |
| 80 | » » Func<string>·f·=·default·(TypedReference).ToString; | ||
| 81 | » } | 55 | » } |
| 82 | }</string> | 56 | }</string> |
| 83 | ····<string>//·CS0123:·A·method·or·delegate·`X.f1(int,·object)'·parameters·do·not·match·delegate·`X.Function(int,·int)'·parameters | 57 | ····<string>//·CS0123:·A·method·or·delegate·`X.f1(int,·object)'·parameters·do·not·match·delegate·`X.Function(int,·int)'·parameters |
| 84 | //·Line:·13 | 58 | //·Line:·13 |
| 85 | using·System; | 59 | using·System; |
| Offset 115, 14 lines modified | Offset 82, 35 lines modified | ||
| 115 | » } | 82 | » } |
| 116 | » static·bool·f1·(int·a,·object·b) | 83 | » static·bool·f1·(int·a,·object·b) |
| 117 | » { | 84 | » { |
| 118 | » » return·false; | 85 | » » return·false; |
| 119 | » } | 86 | » } |
| 120 | }</string> | 87 | }</string> |
| Max diff block lines reached; 2741/6716 bytes (40.81%) of diff not shown. | |||
| Offset 1, 11 lines modified | Offset 1, 37 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0126</ErrorName> | 3 | ··<ErrorName>CS0126</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0126:·An·object·of·a·type·convertible·to·`int'·is·required·for·the·return·statement | ||
| 6 | //·Line:·15 | ||
| 7 | using·System.Threading.Tasks; | ||
| 8 | class·MainClass | ||
| 9 | { | ||
| 10 | ····public·static·void·Main·() | ||
| 11 | ····{ | ||
| 12 | ········Task<C>·v·=·null; | ||
| 13 | ········Task.Run·(async·()·=>·{ | ||
| 14 | ············await·Task.Yield·(); | ||
| 15 | ············if·(v·==·null)·{ | ||
| 16 | ················return; | ||
| 17 | ············} | ||
| 18 | ············return·1; | ||
| 19 | ········}); | ||
| 20 | ····} | ||
| 21 | } | ||
| 22 | public·class·C | ||
| 23 | { | ||
| 24 | ····string·Id·{·get;·set;·} | ||
| 25 | }</string> | ||
| 5 | ····<string>//·CS0126:·An·object·of·a·type·convertible·to·`string'·is·required·for·the·return·statement | 26 | ····<string>//·CS0126:·An·object·of·a·type·convertible·to·`string'·is·required·for·the·return·statement |
| 6 | //·Line:·7 | 27 | //·Line:·7 |
| 7 | using·System.Threading.Tasks; | 28 | using·System.Threading.Tasks; |
| 8 | class·A | 29 | class·A |
| 9 | { | 30 | { |
| Offset 25, 35 lines modified | Offset 51, 9 lines modified | ||
| 25 | class·X·{ | 51 | class·X·{ |
| 26 | » int·Y·() | 52 | » int·Y·() |
| 27 | » { | 53 | » { |
| 28 | » » return; | 54 | » » return; |
| 29 | » } | 55 | » } |
| 30 | }</string> | 56 | }</string> |
| 31 | ····<string>//·CS0126:·An·object·of·a·type·convertible·to·`int'·is·required·for·the·return·statement | ||
| 32 | //·Line:·15 | ||
| 33 | using·System.Threading.Tasks; | ||
| 34 | class·MainClass | ||
| 35 | { | ||
| 36 | ····public·static·void·Main·() | ||
| 37 | ····{ | ||
| 38 | ········Task<C>·v·=·null; | ||
| 39 | ········Task.Run·(async·()·=>·{ | ||
| 40 | ············await·Task.Yield·(); | ||
| 41 | ············if·(v·==·null)·{ | ||
| 42 | ················return; | ||
| 43 | ············} | ||
| 44 | ············return·1; | ||
| 45 | ········}); | ||
| 46 | ····} | ||
| 47 | } | ||
| 48 | public·class·C | ||
| 49 | { | ||
| 50 | ····string·Id·{·get;·set;·} | ||
| 51 | }</string> | ||
| 52 | ··</Examples> | 57 | ··</Examples> |
| 53 | </ErrorDocumentation> | 58 | </ErrorDocumentation> |
| Offset 14, 23 lines modified | Offset 14, 24 lines modified | ||
| 14 | » } | 14 | » } |
| 15 | » static·void·Foo·(out·int·arg) | 15 | » static·void·Foo·(out·int·arg) |
| 16 | » { | 16 | » { |
| 17 | » » arg·=·2; | 17 | » » arg·=·2; |
| 18 | » } | 18 | » } |
| 19 | }</string> | 19 | }</string> |
| 20 | ····<string>//·CS0128:·A·local·variable·named·`x | 20 | ····<string>//·CS0128:·A·local·variable·named·`x'·is·already·defined·in·this·scope |
| 21 | //·Line:· | 21 | //·Line:·8 |
| 22 | class· | 22 | class·x·{ |
| 23 | » static·int·y·() | ||
| 23 | { | ||
| 24 | » public·static·void·Main·() | ||
| 25 | » { | 24 | » { |
| 26 | » » short·xx; | ||
| 27 | » » | 25 | » » int·x·=·1; |
| 26 | » » int·x·=·2; | ||
| 27 | » » return·x·+·x; | ||
| 28 | » } | 28 | » } |
| 29 | }</string> | 29 | }</string> |
| 30 | ····<string>//·CS0128:·A·local·variable·named·`res'·is·already·defined·in·this·scope | 30 | ····<string>//·CS0128:·A·local·variable·named·`res'·is·already·defined·in·this·scope |
| 31 | //·Line:·13 | 31 | //·Line:·13 |
| 32 | class·C | 32 | class·C |
| 33 | { | 33 | { |
| Offset 55, 21 lines modified | Offset 56, 20 lines modified | ||
| 55 | » { | 56 | » { |
| 56 | » » object·o·=·null; | 57 | » » object·o·=·null; |
| 57 | » » var·x1·=·o·is·string·s; | 58 | » » var·x1·=·o·is·string·s; |
| 58 | » » var·x2·=·o·is·string·s; | 59 | » » var·x2·=·o·is·string·s; |
| 59 | » } | 60 | » } |
| 60 | }</string> | 61 | }</string> |
| 61 | ····<string>//·CS0128:·A·local·variable·named·`x'·is·already·defined·in·this·scope | 62 | ····<string>//·CS0128:·A·local·variable·named·`xx'·is·already·defined·in·this·scope |
| 62 | //·Line:· | 63 | //·Line:·9 |
| 63 | class· | 64 | class·X |
| 64 | 65 | { | |
| 66 | » public·static·void·Main·() | ||
| 65 | » { | 67 | » { |
| 68 | » » short·xx; | ||
| 69 | » » var·(xx,·yy)·=·(1,·'g'); | ||
| 66 | » » int·x·=·1; | ||
| 67 | » » int·x·=·2; | ||
| 68 | » » return·x·+·x; | ||
| 69 | » } | 70 | » } |
| 70 | }</string> | 71 | }</string> |
| 71 | ··</Examples> | 72 | ··</Examples> |
| 72 | </ErrorDocumentation> | 73 | </ErrorDocumentation> |
| Offset 1, 24 lines modified | Offset 1, 12 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0131</ErrorName> | 3 | ··<ErrorName>CS0131</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0131:·The·left-hand·side·of·an·assignment·must·be·a·variable,·a·property·or·an·indexer | 5 | ····<string>//·CS0131:·The·left-hand·side·of·an·assignment·must·be·a·variable,·a·property·or·an·indexer |
| 6 | //·Line:·10 | ||
| 7 | using·System; | ||
| 8 | class·X | ||
| 9 | { | ||
| 10 | » static·void·Main·() | ||
| 11 | » { | ||
| 12 | » » int·a·=·7; | ||
| 13 | » » +a·=·9; | ||
| 14 | » } | ||
| 15 | }</string> | ||
| 16 | ····<string>//·CS0131:·The·left-hand·side·of·an·assignment·must·be·a·variable,·a·property·or·an·indexer | ||
| 17 | //·Line:·15 | 6 | //·Line:·15 |
| 18 | //·Compiler·options:·-unsafe | 7 | //·Compiler·options:·-unsafe |
| 19 | unsafe·struct·MyStruct | 8 | unsafe·struct·MyStruct |
| 20 | { | 9 | { |
| 21 | » public·fixed·char·Name[32]; | 10 | » public·fixed·char·Name[32]; |
| 22 | } | 11 | } |
| Offset 28, 26 lines modified | Offset 16, 25 lines modified | ||
| 28 | » public·static·void·Main·() | 16 | » public·static·void·Main·() |
| 29 | » { | 17 | » { |
| 30 | » » var·str·=·new·MyStruct(); | 18 | » » var·str·=·new·MyStruct(); |
| 31 | » » str.Name·=·null; | 19 | » » str.Name·=·null; |
| 32 | » } | 20 | » } |
| 33 | }</string> | 21 | }</string> |
| 34 | ····<string>//·CS0131:·The·left-hand·side·of·an·assignment·must·be·a·variable,·a·property·or·an·indexer | 22 | ····<string>//·CS0131:·The·left-hand·side·of·an·assignment·must·be·a·variable,·a·property·or·an·indexer |
| 35 | //·Line:· | 23 | //·Line:·12 |
| 24 | using·System; | ||
| 25 | using·System.Collections; | ||
| 36 | class·X | ||
| 37 | { | ||
| 38 | » void·Test·() | ||
| 39 | » { | ||
| 40 | » » Foo·()·=·1; | ||
| 41 | » } | ||
| 42 | » static·int·Foo·() | ||
| 43 | » { | ||
| 44 | 26 | class·Test·{ | |
| 27 | » public·static·void·Main(string[]·args)·{ | ||
| 28 | » » ArrayList·al·=·new·ArrayList(); | ||
| 29 | » » al[0]·=·0; | ||
| 30 | » » | ||
| 31 | » » Console.WriteLine(((int)al[0])++); | ||
| 45 | » } | 32 | » } |
| 46 | }</string> | 33 | }</string> |
| 47 | ····<string>//·CS0131:·The·left-hand·side·of·an·assignment·must·be·a·variable,·a·property·or·an·indexer | 34 | ····<string>//·CS0131:·The·left-hand·side·of·an·assignment·must·be·a·variable,·a·property·or·an·indexer |
| 48 | //·Line:·7 | 35 | //·Line:·7 |
| 49 | class·X·{ | 36 | class·X·{ |
| 50 | » void·A·() | 37 | » void·A·() |
| Offset 71, 22 lines modified | Offset 58, 35 lines modified | ||
| 71 | » public·static·void·Main·() | 58 | » public·static·void·Main·() |
| 72 | » { | 59 | » { |
| 73 | » » Person·johnDoe·=·new·Person·(); | 60 | » » Person·johnDoe·=·new·Person·(); |
| 74 | » » (string)·johnDoe.Name·=·"John·Doe"; | 61 | » » (string)·johnDoe.Name·=·"John·Doe"; |
| 75 | » } | 62 | » } |
| 76 | }</string> | 63 | }</string> |
| 77 | ····<string>//·CS0131:·The·left-hand·side·of·an·assignment·must·be·a·variable,·a·property·or·an·indexer | 64 | ····<string>//·CS0131:·The·left-hand·side·of·an·assignment·must·be·a·variable,·a·property·or·an·indexer |
| 78 | //·Line:· | 65 | //·Line:·8 |
| 66 | class·X | ||
| 67 | { | ||
| 68 | » void·Test·() | ||
| 69 | » { | ||
| 70 | » » Foo·()·=·1; | ||
| 71 | » } | ||
| 72 | » static·int·Foo·() | ||
| 73 | » { | ||
| 74 | » » return·1; | ||
| 75 | » } | ||
| 76 | }</string> | ||
| 77 | ····<string>//·CS0131:·The·left-hand·side·of·an·assignment·must·be·a·variable,·a·property·or·an·indexer | ||
| 78 | //·Line:·10 | ||
| 79 | using·System; | 79 | using·System; |
| 80 | using·System.Collections; | ||
| 81 | class·Test·{ | ||
| 82 | » public·static·void·Main(string[]·args)·{ | ||
| 83 | » » ArrayList·al·=·new·ArrayList(); | ||
| 84 | » » al[0]·=·0; | ||
| 85 | » » | ||
| 86 | 80 | class·X | |
| 81 | { | ||
| 82 | » static·void·Main·() | ||
| 83 | » { | ||
| 84 | » » int·a·=·7; | ||
| 85 | » » +a·=·9; | ||
| 87 | » } | 86 | » } |
| 88 | }</string> | 87 | }</string> |
| 89 | ··</Examples> | 88 | ··</Examples> |
| 90 | </ErrorDocumentation> | 89 | </ErrorDocumentation> |
| Offset 1, 18 lines modified | Offset 1, 11 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0132</ErrorName> | 3 | ··<ErrorName>CS0132</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0132:·`X.X(int)':·The·static·constructor·must·be·parameterless | ||
| 6 | //·Line:·4 | ||
| 7 | class·X·{ | ||
| 8 | » static·X·(int·x) | ||
| 9 | » { | ||
| 10 | » } | ||
| 11 | }</string> | ||
| 12 | ····<string>//·CS0132:·`Foo.Foo(int)':·The·static·constructor·must·be·parameterless | 5 | ····<string>//·CS0132:·`Foo.Foo(int)':·The·static·constructor·must·be·parameterless |
| 13 | //·Line:·10 | 6 | //·Line:·10 |
| 14 | class·Foo | 7 | class·Foo |
| 15 | { | 8 | { |
| 16 | » static·Foo·() | 9 | » static·Foo·() |
| 17 | » { | 10 | » { |
| Offset 23, 14 lines modified | Offset 16, 21 lines modified | ||
| 23 | » } | 16 | » } |
| 24 | » static·void·Main·() | 17 | » static·void·Main·() |
| 25 | » { | 18 | » { |
| 26 | » } | 19 | » } |
| 27 | }</string> | 20 | }</string> |
| 28 | ····<string>//·CS0132:·`X.X(int)':·The·static·constructor·must·be·parameterless | 21 | ····<string>//·CS0132:·`X.X(int)':·The·static·constructor·must·be·parameterless |
| 22 | //·Line:·4 | ||
| 23 | class·X·{ | ||
| 24 | » static·X·(int·x) | ||
| 25 | » { | ||
| 26 | » } | ||
| 27 | }</string> | ||
| 28 | ····<string>//·CS0132:·`X.X(int)':·The·static·constructor·must·be·parameterless | ||
| 29 | //·Line:·5 | 29 | //·Line:·5 |
| 30 | class·X·{ | 30 | class·X·{ |
| 31 | ····static·int·ii·=·55; | 31 | ····static·int·ii·=·55; |
| 32 | » static·X·(int·x) | 32 | » static·X·(int·x) |
| 33 | » { | 33 | » { |
| 34 | » } | 34 | » } |
| 35 | }</string> | 35 | }</string> |
| Offset 1, 63 lines modified | Offset 1, 41 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0133</ErrorName> | 3 | ··<ErrorName>CS0133</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0133:·The·expression·being·assigned·to·` | 5 | ····<string>//·CS0133:·The·expression·being·assigned·to·`Foo'·must·be·a·constant·or·default·value |
| 6 | //·Line:· | 6 | //·Line:·8 |
| 7 | class· | 7 | class·T |
| 8 | { | 8 | { |
| 9 | ····public·void·FooBar·() | ||
| 10 | ····{ | ||
| 11 | ········const·string·Foo·=·Foo; | ||
| 12 | ····} | ||
| 9 | » void·Foo·() | ||
| 10 | » { | ||
| 11 | » » int[]·array; | ||
| 12 | » » int·idx; | ||
| 13 | » » const·int·c·=·array·[idx]; | ||
| 14 | » } | ||
| 15 | }</string> | 13 | }</string> |
| 16 | ····<string>//·CS0133:·The·expression·being·assigned·to·`o'·must·be·a·constant·or·default·value | 14 | ····<string>//·CS0133:·The·expression·being·assigned·to·`o'·must·be·a·constant·or·default·value |
| 17 | //·Line:·8 | 15 | //·Line:·8 |
| 18 | class·X | 16 | class·X |
| 19 | { | 17 | { |
| 20 | » void·Foo·() | 18 | » void·Foo·() |
| 21 | » { | 19 | » { |
| 22 | » » const·object·o·=·""·??·null; | 20 | » » const·object·o·=·""·??·null; |
| 23 | » } | 21 | » } |
| 24 | }</string> | 22 | }</string> |
| 25 | ····<string>//·CS0133:·The·expression·being·assigned·to·` | 23 | ····<string>//·CS0133:·The·expression·being·assigned·to·`c'·must·be·a·constant·or·default·value |
| 26 | //·Line:·1 | 24 | //·Line:·10 |
| 27 | //·Compiler·options:·-unsafe | ||
| 28 | class·C | 25 | class·C |
| 29 | { | 26 | { |
| 27 | » void·Foo·() | ||
| 30 | ····public·static·int·i·=·4; | ||
| 31 | } | ||
| 32 | public·unsafe·struct·S | ||
| 33 | { | ||
| 34 | ····private·fixed·char·pathName·[C.i]; | ||
| 35 | }</string> | ||
| 36 | ····<string>//·CS0133:·The·expression·being·assigned·to·`Foo'·must·be·a·constant·or·default·value | ||
| 37 | //·Line:·8 | ||
| 38 | class·T | ||
| 39 | { | ||
| 40 | ····public·void·FooBar·() | ||
| 41 | ····{ | ||
| 42 | ········const·string·Foo·=·Foo; | ||
| 43 | ····} | ||
| 44 | }</string> | ||
| 45 | ····<string>//·CS0133:·The·expression·being·assigned·to·`x'·must·be·a·constant·or·default·value | ||
| 46 | //·Line:·7 | ||
| 47 | class·X·{ | ||
| 48 | » X·(int·arg) | ||
| 49 | » { | 28 | » { |
| 29 | » » int[]·array; | ||
| 30 | » » int·idx; | ||
| 50 | » » const·int· | 31 | » » const·int·c·=·array·[idx]; |
| 51 | » } | 32 | » } |
| 52 | }</string> | 33 | }</string> |
| 53 | ····<string>//·CS0133:·The·expression·being·assigned·to·`b'·must·be·a·constant·or·default·value | 34 | ····<string>//·CS0133:·The·expression·being·assigned·to·`b'·must·be·a·constant·or·default·value |
| 54 | //·Line:·8 | 35 | //·Line:·8 |
| 55 | class·X | 36 | class·X |
| 56 | { | 37 | { |
| Offset 72, 9 lines modified | Offset 50, 31 lines modified | ||
| 72 | class·X | 50 | class·X |
| 73 | { | 51 | { |
| 74 | » void·Foo·() | 52 | » void·Foo·() |
| 75 | » { | 53 | » { |
| 76 | » » const·object·o·=·null·??·""; | 54 | » » const·object·o·=·null·??·""; |
| 77 | » } | 55 | » } |
| 78 | }</string> | 56 | }</string> |
| 57 | ····<string>//·CS0133:·The·expression·being·assigned·to·`x'·must·be·a·constant·or·default·value | ||
| 58 | //·Line:·7 | ||
| 59 | class·X·{ | ||
| 60 | » X·(int·arg) | ||
| 61 | » { | ||
| 62 | » » const·int·x·=·arg; | ||
| 63 | » } | ||
| 64 | }</string> | ||
| 65 | ····<string>//·CS0133:·The·expression·being·assigned·to·`S.pathName'·must·be·a·constant·or·default·value | ||
| 66 | //·Line:·12 | ||
| 67 | //·Compiler·options:·-unsafe | ||
| 68 | class·C | ||
| 69 | { | ||
| 70 | ····public·static·int·i·=·4; | ||
| 71 | } | ||
| 72 | public·unsafe·struct·S | ||
| 73 | { | ||
| 74 | ····private·fixed·char·pathName·[C.i]; | ||
| 75 | }</string> | ||
| 79 | ··</Examples> | 76 | ··</Examples> |
| 80 | </ErrorDocumentation> | 77 | </ErrorDocumentation> |
| Offset 1, 44 lines modified | Offset 1, 44 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0134</ErrorName> | 3 | ··<ErrorName>CS0134</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0134:·A·constant·`o'·of·reference·type·`object'·can·only·be·initialized·with·null | ||
| 6 | //·Line:·8 | ||
| 7 | public·class·C | ||
| 8 | { | ||
| 9 | » public·static·void·Main·() | ||
| 10 | » { | ||
| 11 | » » const·object·o·=·1;· | ||
| 12 | » } | ||
| 13 | }</string> | ||
| 5 | ····<string>//·CS0134:·A·constant·`C.b'·of·reference·type·`object'·can·only·be·initialized·with·null | 14 | ····<string>//·CS0134:·A·constant·`C.b'·of·reference·type·`object'·can·only·be·initialized·with·null |
| 6 | //·Line:·6 | 15 | //·Line:·6 |
| 7 | class·C | 16 | class·C |
| 8 | { | 17 | { |
| 9 | » const·object·a·=·null,·b·=·1; | 18 | » const·object·a·=·null,·b·=·1; |
| 10 | }</string> | 19 | }</string> |
| 11 | ····<string>//·CS0134:·A·constant·`C.b'·of·reference·type·`bool[]'·can·only·be·initialized·with·null | 20 | ····<string>//·CS0134:·A·constant·`C.b'·of·reference·type·`bool[]'·can·only·be·initialized·with·null |
| 12 | //·Line:·6 | 21 | //·Line:·6 |
| 13 | class·C | 22 | class·C |
| 14 | { | 23 | { |
| 15 | » const·bool·[]·b·=·{·true·}; | 24 | » const·bool·[]·b·=·{·true·}; |
| 16 | }</string> | 25 | }</string> |
| 17 | ····<string>//·CS0134:·A·constant·`C.o'·of·reference·type·`object'·can·only·be·initialized·with·null | ||
| 18 | //·Line:·6 | ||
| 19 | public·class·C | ||
| 20 | { | ||
| 21 | ····public·const·object·o·=·"12345"; | ||
| 22 | }</string> | ||
| 23 | ····<string>//·CS0134:·A·constant·`T.i'·of·reference·type·`decimal[]'·can·only·be·initialized·with·null | 26 | ····<string>//·CS0134:·A·constant·`T.i'·of·reference·type·`decimal[]'·can·only·be·initialized·with·null |
| 24 | //·Line:·12 | 27 | //·Line:·12 |
| 25 | class·T | 28 | class·T |
| 26 | { | 29 | { |
| 27 | » const·decimal[]·i·=·new·decimal·[]·{·2m·}; | 30 | » const·decimal[]·i·=·new·decimal·[]·{·2m·}; |
| 28 | }</string> | 31 | }</string> |
| 29 | ····<string>//·CS0134:·A·constant·`o'·of·reference·type·`object'·can·only·be·initialized·with·null | 32 | ····<string>//·CS0134:·A·constant·`C.o'·of·reference·type·`object'·can·only·be·initialized·with·null |
| 30 | //·Line:· | 33 | //·Line:·6 |
| 31 | public·class·C | 34 | public·class·C |
| 32 | { | 35 | { |
| 36 | ····public·const·object·o·=·"12345"; | ||
| 33 | » public·static·void·Main·() | ||
| 34 | » { | ||
| 35 | » » const·object·o·=·1;· | ||
| 36 | » } | ||
| 37 | }</string> | 37 | }</string> |
| 38 | ··</Examples> | 38 | ··</Examples> |
| 39 | </ErrorDocumentation> | 39 | </ErrorDocumentation> |
| Offset 18, 80 lines modified | Offset 18, 47 lines modified | ||
| 18 | » » Hello·hello·=·delegate·(Test·t)·{ | 18 | » » Hello·hello·=·delegate·(Test·t)·{ |
| 19 | » » » t.Whatever·(); | 19 | » » » t.Whatever·(); |
| 20 | » » }; | 20 | » » }; |
| 21 | » » Test·t·=·new·Test·(); | 21 | » » Test·t·=·new·Test·(); |
| 22 | » » hello·(t); | 22 | » » hello·(t); |
| 23 | » } | 23 | » } |
| 24 | }</string> | 24 | }</string> |
| 25 | ····<string>//·CS0136:·A·local·variable·named·` | 25 | ····<string>//·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 |
| 26 | //·Line:· | 26 | //·Line:·9 |
| 27 | class·X·{ | ||
| 28 | » void·b·() | ||
| 27 | internal·class·Program | ||
| 28 | { | ||
| 29 | » public·static·void·Main·() | ||
| 30 | » { | 29 | » { |
| 31 | » » object·o·=·null; | ||
| 32 | » » if·(o·is·string·s)·{ | ||
| 33 | » » | 30 | » » int·i; |
| 31 | » » { | ||
| 32 | » » » string·i; | ||
| 34 | » » } | 33 | » » } |
| 35 | » } | 34 | » } |
| 36 | }</string> | 35 | }</string> |
| 37 | ····<string>//·CS0136:·A·local·variable·named·` | 36 | ····<string>//·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 |
| 38 | //·Line:·1 | 37 | //·Line:·18 |
| 39 | using·System.Linq; | ||
| 40 | class·C | ||
| 41 | { | ||
| 42 | » public·static·void·Main·() | ||
| 43 | » { | ||
| 44 | » » var·l·=·from·v·in·"abcd"·select·v; | ||
| 45 | » » int·v; | ||
| 46 | » } | ||
| 47 | }</string> | ||
| 48 | ····<string>//·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 | ||
| 49 | //·Line:·15 | ||
| 50 | using·System; | 38 | using·System; |
| 51 | public·delegate·void·Hello·(Test·test); | 39 | public·delegate·void·Hello·(Test·test); |
| 52 | public·class·Test | 40 | public·class·Test |
| 53 | { | 41 | { |
| 54 | » public·void·Whatever·() | 42 | » public·void·Whatever·() |
| 55 | » {·} | 43 | » {·} |
| 56 | » static·void· | 44 | » static·void·Main·() |
| 57 | » { | 45 | » { |
| 58 | » » Hello·hello·=·delegate·(Test·test)·{ | 46 | » » Hello·hello·=·delegate·(Test·test)·{ |
| 59 | » » » Test·t·=·test; | 47 | » » » Test·t·=·test; |
| 60 | » » » t.Whatever·(); | 48 | » » » t.Whatever·(); |
| 61 | » » }; | 49 | » » }; |
| 62 | » » hello·(t); | ||
| 63 | » } | ||
| 64 | » static·void·Main·() | ||
| 65 | » { | ||
| 66 | » » Test·t·=·new·Test·(); | 50 | » » Test·t·=·new·Test·(); |
| 67 | » » | 51 | » » hello·(t); |
| 68 | » } | 52 | » } |
| 69 | }</string> | 53 | }</string> |
| 70 | ····<string>//·CS0136:·A·local·variable·named·`arg'·cannot·be·declared·in·this·scope·because·it·would·give·a·different·meaning·to·`arg',·which·is·already·used·in·a·`parent·or·current'·scope·to·denote·something·else | ||
| 71 | //·Line:·11 | ||
| 72 | //·Compiler·options:·-langversion:experimental | ||
| 73 | using·System; | ||
| 74 | class·A·(Func<int,·int>·barg) | ||
| 75 | { | ||
| 76 | } | ||
| 77 | class·B·(int·arg)· | ||
| 78 | » :·A·((arg)·=>·1) | ||
| 79 | { | ||
| 80 | }</string> | ||
| 81 | ····<string>//·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 | 54 | ····<string>//·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 |
| 82 | //·Line:·10 | 55 | //·Line:·10 |
| 83 | delegate·string·Fun·(int·i); | 56 | delegate·string·Fun·(int·i); |
| 84 | class·X | 57 | class·X |
| 85 | { | 58 | { |
| 86 | » static·void·Main·() | 59 | » static·void·Main·() |
| Offset 99, 131 lines modified | Offset 66, 142 lines modified | ||
| 99 | » » for·(int·i·=·0;·i·<·5;·i++)·{ | 66 | » » for·(int·i·=·0;·i·<·5;·i++)·{ |
| 100 | » » » Fun·m·=·delegate·(int·i)·{ | 67 | » » » Fun·m·=·delegate·(int·i)·{ |
| 101 | » » » » return·"<<"·+·i·+·">>"; | 68 | » » » » return·"<<"·+·i·+·">>"; |
| 102 | » » » }; | 69 | » » » }; |
| 103 | » » } | 70 | » » } |
| 104 | » } | 71 | » } |
| 105 | }</string> | 72 | }</string> |
| 73 | ····<string>//·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 | ||
| 74 | //·Line:·15 | ||
| 75 | class·C | ||
| 76 | { | ||
| 77 | » public·void·Foo·(int·i,·int·v) | ||
| 78 | » { | ||
| 79 | » » switch·(i)·{ | ||
| 80 | » » » case·1: | ||
| 81 | » » » » if·(v·>·0)·{ | ||
| 82 | » » » » » int·res·=·1; | ||
| 83 | » » » » } | ||
| 84 | » » » » break; | ||
| 85 | » » » case·2: | ||
| 86 | » » » » int·res·=·2; | ||
| 87 | » » » » break; | ||
| 88 | » » } | ||
| 89 | » } | ||
| 90 | }</string> | ||
| 91 | ····<string>//·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 | ||
| 92 | //·Line:·7 | ||
| 93 | class·X·{ | ||
| 94 | » public·static·void·Bar·(int·j,·params·int·[]·args) | ||
| 95 | » { | ||
| 96 | » » foreach·(int·j·in·args) | ||
| 97 | » » » ; | ||
| 98 | » } | ||
| 99 | }</string> | ||
| 106 | ····<string>//·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 | 100 | ····<string>//·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 |
| 107 | //·Line:·13 | 101 | //·Line:·13 |
| 108 | using·System.Linq; | 102 | using·System.Linq; |
| 109 | public·class·Test | 103 | public·class·Test |
| Max diff block lines reached; 8394/12207 bytes (68.76%) of diff not shown. | |||
| Offset 1, 32 lines modified | Offset 1, 28 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0139</ErrorName> | 3 | ··<ErrorName>CS0139</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0139:·No·enclosing·loop·out·of·which·to·break·or·continue | 5 | ····<string>//·CS0139:·No·enclosing·loop·out·of·which·to·break·or·continue |
| 6 | //·Line:· | 6 | //·Line:·6 |
| 7 | class· | 7 | class·X·{ |
| 8 | » | 8 | » void·A·() |
| 9 | » { | 9 | » { |
| 10 | » » try·{ | ||
| 11 | » » | 10 | » » continue; |
| 12 | » » }·finally·{ | ||
| 13 | » » » throw·new·System.Exception·(); | ||
| 14 | » » } | ||
| 15 | » } | 11 | » } |
| 16 | }</string> | 12 | }</string> |
| 17 | ····<string>//·CS0139:·No·enclosing·loop·out·of·which·to·break·or·continue | 13 | ····<string>//·CS0139:·No·enclosing·loop·out·of·which·to·break·or·continue |
| 18 | //·Line:· | 14 | //·Line:·9 |
| 19 | class·Foo·{ | 15 | class·Foo·{ |
| 20 | » static·void·Main·() | 16 | » static·void·Main·() |
| 21 | » { | 17 | » { |
| 22 | » » try·{ | 18 | » » try·{ |
| 23 | » » | 19 | » » }·catch·{ |
| 20 | » » » continue; | ||
| 24 | » » }·finally·{ | 21 | » » }·finally·{ |
| 25 | » » » throw·new·System.Exception·(); | 22 | » » » throw·new·System.Exception·(); |
| 26 | » » } | 23 | » » } |
| 27 | » } | 24 | » } |
| 28 | }</string> | 25 | }</string> |
| 29 | ····<string>//·CS0139:·No·enclosing·loop·out·of·which·to·break·or·continue | 26 | ····<string>//·CS0139:·No·enclosing·loop·out·of·which·to·break·or·continue |
| 30 | //·Line:·10 | 27 | //·Line:·10 |
| Offset 40, 67 lines modified | Offset 36, 71 lines modified | ||
| 40 | ································continue; | 36 | ································continue; |
| 41 | ························System.Console.WriteLine·(); | 37 | ························System.Console.WriteLine·(); |
| 42 | ························break; | 38 | ························break; |
| 43 | ················} | 39 | ················} |
| 44 | ········} | 40 | ········} |
| 45 | }</string> | 41 | }</string> |
| 46 | ····<string>//·CS0139:·No·enclosing·loop·out·of·which·to·break·or·continue | 42 | ····<string>//·CS0139:·No·enclosing·loop·out·of·which·to·break·or·continue |
| 47 | //·Line:· | 43 | //·Line:·8 |
| 48 | class·Foo·{ | 44 | class·Foo·{ |
| 49 | » static·void·Main·() | 45 | » static·void·Main·() |
| 50 | » { | 46 | » { |
| 51 | » » try·{ | 47 | » » try·{ |
| 48 | » » » break; | ||
| 52 | » » finally·{ | 49 | » » }·finally·{ |
| 53 | » » » | 50 | » » » throw·new·System.Exception·(); |
| 54 | » » } | 51 | » » } |
| 55 | » } | 52 | » } |
| 56 | }</string> | 53 | }</string> |
| 57 | ····<string>//·CS0139:·No·enclosing·loop·out·of·which·to·break·or·continue | 54 | ····<string>//·CS0139:·No·enclosing·loop·out·of·which·to·break·or·continue |
| 58 | //·Line:· | 55 | //·Line:·9 |
| 59 | class· | 56 | class·Foo·{ |
| 60 | » void· | 57 | » static·void·Main·() |
| 61 | » { | 58 | » { |
| 62 | » » | 59 | » » try·{ |
| 60 | » » }·catch·{ | ||
| 61 | » » » break; | ||
| 62 | » » }·finally·{ | ||
| 63 | » » » throw·new·System.Exception·(); | ||
| 64 | » » } | ||
| 63 | » } | 65 | » } |
| 64 | }</string> | 66 | }</string> |
| 65 | ····<string>//·CS0139:·No·enclosing·loop·out·of·which·to·break·or·continue | 67 | ····<string>//·CS0139:·No·enclosing·loop·out·of·which·to·break·or·continue |
| 66 | //·Line:·9 | 68 | //·Line:·9 |
| 67 | class·Foo·{ | 69 | class·Foo·{ |
| 68 | » static·void·Main·() | 70 | » static·void·Main·() |
| 69 | » { | 71 | » { |
| 70 | » » try·{} | 72 | » » try·{} |
| 71 | » » finally·{ | 73 | » » finally·{ |
| 72 | » » » | 74 | » » » continue; |
| 73 | » » } | 75 | » » } |
| 74 | » } | 76 | » } |
| 75 | }</string> | 77 | }</string> |
| 76 | ····<string>//·CS0139:·No·enclosing·loop·out·of·which·to·break·or·continue | 78 | ····<string>//·CS0139:·No·enclosing·loop·out·of·which·to·break·or·continue |
| 77 | //·Line:·9 | 79 | //·Line:·9 |
| 78 | class·Foo·{ | 80 | class·Foo·{ |
| 79 | » static·void·Main·() | 81 | » static·void·Main·() |
| 80 | » { | 82 | » { |
| 81 | » » try·{ | 83 | » » try·{} |
| 82 | » » | 84 | » » finally·{ |
| 83 | » » » break; | 85 | » » » break; |
| 84 | » » }·finally·{ | ||
| 85 | » » » throw·new·System.Exception·(); | ||
| 86 | » » } | 86 | » » } |
| 87 | » } | 87 | » } |
| 88 | }</string> | 88 | }</string> |
| 89 | ····<string>//·CS0139:·No·enclosing·loop·out·of·which·to·break·or·continue | 89 | ····<string>//·CS0139:·No·enclosing·loop·out·of·which·to·break·or·continue |
| 90 | //·Line:· | 90 | //·Line:·8 |
| 91 | class·Foo·{ | 91 | class·Foo·{ |
| 92 | » static·void·Main·() | 92 | » static·void·Main·() |
| 93 | » { | 93 | » { |
| 94 | » » try·{ | 94 | » » try·{ |
| 95 | » » }·catch·{ | ||
| 96 | » » » continue; | 95 | » » » continue; |
| 97 | » » }·finally·{ | 96 | » » }·finally·{ |
| 98 | » » » throw·new·System.Exception·(); | 97 | » » » throw·new·System.Exception·(); |
| 99 | » » } | 98 | » » } |
| 100 | » } | 99 | » } |
| 101 | }</string> | 100 | }</string> |
| 102 | ··</Examples> | 101 | ··</Examples> |
| Offset 1, 43 lines modified | Offset 1, 43 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0144</ErrorName> | 3 | ··<ErrorName>CS0144</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0144:·Cannot·create·an·instance·of·the·abstract·class·or·interface·`ITest' | ||
| 6 | //·Line:·9 | ||
| 7 | //·Compiler·options:·-r:CS0144-3-lib.dll | ||
| 8 | public·class·SampleClass·{ | ||
| 9 | » » public·void·Main·() | ||
| 10 | » » { | ||
| 11 | » » » ITest·modelo; | ||
| 12 | » » » modelo=·new·ITest·(); | ||
| 13 | » » } | ||
| 14 | }</string> | ||
| 5 | ····<string>//·CS0144:·Cannot·create·an·instance·of·the·abstract·class·or·interface·`X' | 15 | ····<string>//·CS0144:·Cannot·create·an·instance·of·the·abstract·class·or·interface·`X' |
| 6 | //·Line:·11 | 16 | //·Line:·11 |
| 7 | interface·X·{ | ||
| 8 | 17 | abstract·class·X·{ | |
| 18 | » public·abstract·void·B·(); | ||
| 9 | } | 19 | } |
| 10 | class·Demo·{ | 20 | class·Demo·{ |
| 11 | » static·void·Main·() | 21 | » static·void·Main·() |
| 12 | » { | 22 | » { |
| 13 | » » object·x·=·new·X·(); | 23 | » » object·x·=·new·X·(); |
| 14 | » } | 24 | » } |
| 15 | }</string> | 25 | }</string> |
| 16 | ····<string>//·CS0144:·Cannot·create·an·instance·of·the·abstract·class·or·interface·`X' | 26 | ····<string>//·CS0144:·Cannot·create·an·instance·of·the·abstract·class·or·interface·`X' |
| 17 | //·Line:·11 | 27 | //·Line:·11 |
| 18 | abstract·class·X·{ | ||
| 19 | 28 | interface·X·{ | |
| 29 | » void·A·(); | ||
| 20 | } | 30 | } |
| 21 | class·Demo·{ | 31 | class·Demo·{ |
| 22 | » static·void·Main·() | 32 | » static·void·Main·() |
| 23 | » { | 33 | » { |
| 24 | » » object·x·=·new·X·(); | 34 | » » object·x·=·new·X·(); |
| 25 | » } | 35 | » } |
| 26 | }</string> | 36 | }</string> |
| 27 | ····<string>//·CS0144:·Cannot·create·an·instance·of·the·abstract·class·or·interface·`ITest' | ||
| 28 | //·Line:·9 | ||
| 29 | //·Compiler·options:·-r:CS0144-3-lib.dll | ||
| 30 | public·class·SampleClass·{ | ||
| 31 | » » public·void·Main·() | ||
| 32 | » » { | ||
| 33 | » » » ITest·modelo; | ||
| 34 | » » » modelo=·new·ITest·(); | ||
| 35 | » » } | ||
| 36 | }</string> | ||
| 37 | ··</Examples> | 37 | ··</Examples> |
| 38 | </ErrorDocumentation> | 38 | </ErrorDocumentation> |
| Offset 1, 48 lines modified | Offset 1, 36 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0146</ErrorName> | 3 | ··<ErrorName>CS0146</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0146:·Circular·base·class·dependency·involving·`Foo'·and·`Foo.Bar' | ||
| 6 | //·Line:·5 | ||
| 7 | class·Foo·:·Foo.Bar·{ | ||
| 8 | » public·class·Bar·{} | ||
| 9 | }</string> | ||
| 10 | ····<string>//·CS0146:·Circular·base·class·dependency·involving·`Baz'·and·`Foo.Bar' | ||
| 11 | //·Line:·5 | ||
| 12 | class·Foo·:·Baz·{ | ||
| 13 | » public·class·Bar·{} | ||
| 14 | } | ||
| 15 | class·Baz·:·Foo.Bar·{}</string> | ||
| 16 | ····<string>//·CS0146:·Circular·base·class·dependency·involving·`A'·and·`A' | 5 | ····<string>//·CS0146:·Circular·base·class·dependency·involving·`A'·and·`A' |
| 17 | //·Line:·4 | 6 | //·Line:·4 |
| 18 | class·A·:·A·{}</string> | 7 | class·A·:·A·{}</string> |
| 19 | ····<string>//·CS0146:·Circular·base·class·dependency·involving·`B'·and·`A' | 8 | ····<string>//·CS0146:·Circular·base·class·dependency·involving·`B'·and·`A' |
| 20 | //·Line:·7 | 9 | //·Line:·7 |
| 21 | class·A·:·B·{ | 10 | class·A·:·B·{ |
| 22 | } | 11 | } |
| 23 | class·B·:·A·{ | 12 | class·B·:·A·{ |
| 24 | }</string> | 13 | }</string> |
| 25 | ····<string>//·CS0146:·Circular·base·class·dependency·involving·` | 14 | ····<string>//·CS0146:·Circular·base·class·dependency·involving·`Foo'·and·`Foo.Bar' |
| 26 | //·Line:· | 15 | //·Line:·5 |
| 16 | class·Foo·:·Foo.Bar·{ | ||
| 17 | » public·class·Bar·{} | ||
| 27 | public·class·Generic<P> | ||
| 28 | { | ||
| 29 | » public·class·Status·:·Status | ||
| 30 | » { | ||
| 31 | » » Status·(Foo·foo)·:·base·(foo) | ||
| 32 | » » { | ||
| 33 | » » } | ||
| 34 | » } | ||
| 35 | }</string> | 18 | }</string> |
| 19 | ····<string>//·CS0146:·Circular·base·class·dependency·involving·`Baz'·and·`Foo.Bar' | ||
| 20 | //·Line:·5 | ||
| 21 | class·Foo·:·Baz·{ | ||
| 22 | » public·class·Bar·{} | ||
| 23 | } | ||
| 24 | class·Baz·:·Foo.Bar·{}</string> | ||
| 36 | ····<string>//·CS0146:·Circular·base·class·dependency·involving·`B<T>'·and·`A<float>' | 25 | ····<string>//·CS0146:·Circular·base·class·dependency·involving·`B<T>'·and·`A<float>' |
| 37 | //·Line:·8 | 26 | //·Line:·8 |
| 38 | class·A<T>·:·B<int> | 27 | class·A<T>·:·B<int> |
| 39 | { | 28 | { |
| 40 | } | 29 | } |
| Offset 50, 14 lines modified | Offset 38, 26 lines modified | ||
| 50 | {·} | 38 | {·} |
| 51 | class·X | 39 | class·X |
| 52 | { | 40 | { |
| 53 | » static·void·Main·() | 41 | » static·void·Main·() |
| 54 | » {·} | 42 | » {·} |
| 55 | }</string> | 43 | }</string> |
| 44 | ····<string>//·CS0146:·Circular·base·class·dependency·involving·`Generic<P>.Status'·and·`Generic<P>.Status' | ||
| 45 | //·Line:·6 | ||
| 46 | public·class·Generic<P> | ||
| 47 | { | ||
| 48 | » public·class·Status·:·Status | ||
| 49 | » { | ||
| 50 | » » Status·(Foo·foo)·:·base·(foo) | ||
| 51 | » » { | ||
| 52 | » » } | ||
| 53 | » } | ||
| 54 | }</string> | ||
| 56 | ····<string>//·CS0146:·Circular·base·class·dependency·involving·`C'·and·`A' | 55 | ····<string>//·CS0146:·Circular·base·class·dependency·involving·`C'·and·`A' |
| 57 | //·Line:·4 | 56 | //·Line:·4 |
| 58 | class·A·:·B | 57 | class·A·:·B |
| 59 | {·} | 58 | {·} |
| 60 | class·B·:·C | 59 | class·B·:·C |
| Offset 1, 24 lines modified | Offset 1, 12 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0149</ErrorName> | 3 | ··<ErrorName>CS0149</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0149:·Method·name·expected | 5 | ····<string>//·CS0149:·Method·name·expected |
| 6 | //·Line:·10 | ||
| 7 | delegate·void·D·(); | ||
| 8 | public·class·MainClass | ||
| 9 | { | ||
| 10 | » public·static·void·Main·() | ||
| 11 | » { | ||
| 12 | » » D·delegateInstance·=·new·D·(Main,·null); | ||
| 13 | » } | ||
| 14 | }</string> | ||
| 15 | ····<string>//·CS0149:·Method·name·expected | ||
| 16 | //·Line:·17 | 6 | //·Line:·17 |
| 17 | public·class·Blah·{ | 7 | public·class·Blah·{ |
| 18 | » public·delegate·int·MyDelegate·(int·i,·int·j); | 8 | » public·delegate·int·MyDelegate·(int·i,·int·j); |
| 19 | » public·int·Foo·(int·i,·int·j) | 9 | » public·int·Foo·(int·i,·int·j) |
| Offset 41, 9 lines modified | Offset 29, 21 lines modified | ||
| 41 | public·class·MainClass | 29 | public·class·MainClass |
| 42 | { | 30 | { |
| 43 | » public·static·void·Main·() | 31 | » public·static·void·Main·() |
| 44 | » { | 32 | » { |
| 45 | » » TestDelegate·delegateInstance·=·new·TestDelegate·(); | 33 | » » TestDelegate·delegateInstance·=·new·TestDelegate·(); |
| 46 | » } | 34 | » } |
| 47 | }</string> | 35 | }</string> |
| 36 | ····<string>//·CS0149:·Method·name·expected | ||
| 37 | //·Line:·10 | ||
| 38 | delegate·void·D·(); | ||
| 39 | public·class·MainClass | ||
| 40 | { | ||
| 41 | » public·static·void·Main·() | ||
| 42 | » { | ||
| 43 | » » D·delegateInstance·=·new·D·(Main,·null); | ||
| 44 | » } | ||
| 45 | }</string> | ||
| 48 | ··</Examples> | 46 | ··</Examples> |
| 49 | </ErrorDocumentation> | 47 | </ErrorDocumentation> |
| Offset 1, 12 lines modified | Offset 1, 22 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0150</ErrorName> | 3 | ··<ErrorName>CS0150</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0150:·A·constant·value·is·expected | 5 | ····<string>//·CS0150:·A·constant·value·is·expected |
| 6 | //·Line:·8 | ||
| 7 | public·class·C | ||
| 8 | { | ||
| 9 | » void·Test·() | ||
| 10 | » { | ||
| 11 | » » var·zCoords·=·new·double[uint.MaxValue]·{·0·}; | ||
| 12 | » } | ||
| 13 | }</string> | ||
| 14 | ····<string>//·CS0150:·A·constant·value·is·expected | ||
| 6 | //·Line:·13 | 15 | //·Line:·13 |
| 7 | class·Program | 16 | class·Program |
| 8 | { | 17 | { |
| 9 | » static·int·Arg·() | 18 | » static·int·Arg·() |
| 10 | » { | 19 | » { |
| 11 | » » return·4; | 20 | » » return·4; |
| Offset 14, 21 lines modified | Offset 24, 29 lines modified | ||
| 14 | » static·void·Main() | 24 | » static·void·Main() |
| 15 | » { | 25 | » { |
| 16 | » » var·s·=·$"{1,Arg()}"; | 26 | » » var·s·=·$"{1,Arg()}"; |
| 17 | » } | 27 | » } |
| 18 | }</string> | 28 | }</string> |
| 19 | ····<string>//·CS0150:·A·constant·value·is·expected | 29 | ····<string>//·CS0150:·A·constant·value·is·expected |
| 20 | //·Line:· | 30 | //·Line·:·14 |
| 31 | using·System; | ||
| 21 | public·class· | 32 | public·class·Blah |
| 22 | { | 33 | { |
| 23 | » | 34 | » static·readonly·string·Test; |
| 35 | » | ||
| 36 | » public·static·void·Main·() | ||
| 24 | » { | 37 | » { |
| 25 | » » | 38 | » » string·s·=·null; |
| 39 | » » switch·(s)·{ | ||
| 40 | » » » case·Blah.Test: | ||
| 41 | » » » » break; | ||
| 42 | » » } | ||
| 26 | » } | 43 | » } |
| 27 | }</string> | 44 | }</string> |
| 28 | ····<string>//·CS0150:·A·constant·value·is·expected | 45 | ····<string>//·CS0150:·A·constant·value·is·expected |
| 29 | //·Line·:·12 | 46 | //·Line·:·12 |
| 30 | using·System; | 47 | using·System; |
| Offset 37, 27 lines modified | Offset 55, 9 lines modified | ||
| 37 | » public·static·void·Main·() | 55 | » public·static·void·Main·() |
| 38 | » { | 56 | » { |
| 39 | » » int·foo·=·6; | 57 | » » int·foo·=·6; |
| 40 | » » | 58 | » » |
| 41 | » » int·[]·i·=·new·int·[foo]·{·0,·1,·2,·3,·4,·5·}; | 59 | » » int·[]·i·=·new·int·[foo]·{·0,·1,·2,·3,·4,·5·}; |
| 42 | » } | 60 | » } |
| 43 | }</string> | 61 | }</string> |
| 44 | ····<string>//·CS0150:·A·constant·value·is·expected | ||
| 45 | //·Line·:·14 | ||
| 46 | using·System; | ||
| 47 | public·class·Blah | ||
| 48 | { | ||
| 49 | » static·readonly·string·Test; | ||
| 50 | » | ||
| 51 | » public·static·void·Main·() | ||
| 52 | » { | ||
| 53 | » » string·s·=·null; | ||
| 54 | » » switch·(s)·{ | ||
| 55 | » » » case·Blah.Test: | ||
| 56 | » » » » break; | ||
| 57 | » » } | ||
| 58 | » } | ||
| 59 | }</string> | ||
| 60 | ··</Examples> | 62 | ··</Examples> |
| 61 | </ErrorDocumentation> | 63 | </ErrorDocumentation> |
| Offset 1, 32 lines modified | Offset 1, 12 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0151</ErrorName> | 3 | ··<ErrorName>CS0151</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0151:·A·switch·expression·of·type·`Y'·cannot·be·converted·to·an·integral·type,·bool,·char,·string,·enum·or·nullable·type | 5 | ····<string>//·CS0151:·A·switch·expression·of·type·`Y'·cannot·be·converted·to·an·integral·type,·bool,·char,·string,·enum·or·nullable·type |
| 6 | //·Line:·13 | ||
| 7 | class·Y·{ | ||
| 8 | » byte·b; | ||
| 9 | } | ||
| 10 | class·X·{ | ||
| 11 | » static·void·Main·() | ||
| 12 | » { | ||
| 13 | » » Y·y·=·new·Y·(); | ||
| 14 | » » switch·(y){ | ||
| 15 | » » case·0: | ||
| 16 | » » » break; | ||
| 17 | » » case·1: | ||
| 18 | » » » break; | ||
| 19 | » » } | ||
| 20 | » } | ||
| 21 | }</string> | ||
| 22 | ····<string>//·CS0151:·A·switch·expression·of·type·`Y'·cannot·be·converted·to·an·integral·type,·bool,·char,·string,·enum·or·nullable·type | ||
| 23 | //·Line:·28 | 6 | //·Line:·28 |
| 24 | class·Y·{ | 7 | class·Y·{ |
| 25 | » byte·b; | 8 | » byte·b; |
| 26 | » | 9 | » |
| 27 | » public·static·implicit·operator·int·(Y·i) | 10 | » public·static·implicit·operator·int·(Y·i) |
| 28 | » { | 11 | » { |
| Offset 56, 22 lines modified | Offset 36, 22 lines modified | ||
| 56 | » » » break; | 36 | » » » break; |
| 57 | » » } | 37 | » » } |
| 58 | » » int·a·=·y; | 38 | » » int·a·=·y; |
| 59 | » } | 39 | » } |
| 60 | }</string> | 40 | }</string> |
| 61 | ····<string>//·CS0151:·A·switch·expression·of·type·`X?'·cannot·be·converted·to·an·integral·type,·bool,·char,·string,·enum·or·nullable·type | 41 | ····<string>//·CS0151:·A·switch·expression·of·type·`X?'·cannot·be·converted·to·an·integral·type,·bool,·char,·string,·enum·or·nullable·type |
| 62 | //·Line:·1 | 42 | //·Line:·15 |
| 63 | struct·X· | 43 | struct·X· |
| 64 | { | 44 | { |
| 65 | 45 | ····public·static·implicit·operator·int·(X·x) | |
| 66 | » { | ||
| 67 | » » return·1; | ||
| 68 | 46 | ····{ | |
| 47 | ········return·1; | ||
| 48 | ····} | ||
| 69 | » static·void·Main·() | 49 | » static·void·Main·() |
| 70 | » { | 50 | » { |
| 71 | » » X?·x·=·null; | 51 | » » X?·x·=·null; |
| 72 | » » switch·(x)·{ | 52 | » » switch·(x)·{ |
| 73 | » » default: | 53 | » » default: |
| 74 | » » » break; | 54 | » » » break; |
| Offset 105, 23 lines modified | Offset 85, 43 lines modified | ||
| 105 | » » switch·(s1) | 85 | » » switch·(s1) |
| 106 | » » { | 86 | » » { |
| 107 | » » » default: | 87 | » » » default: |
| 108 | » » » » return·1; | 88 | » » » » return·1; |
| 109 | » » } | 89 | » » } |
| 110 | » } | 90 | » } |
| 111 | }</string> | 91 | }</string> |
| 92 | ····<string>//·CS0151:·A·switch·expression·of·type·`Y'·cannot·be·converted·to·an·integral·type,·bool,·char,·string,·enum·or·nullable·type | ||
| 93 | //·Line:·13 | ||
| 94 | class·Y·{ | ||
| 95 | » byte·b; | ||
| 96 | } | ||
| 97 | class·X·{ | ||
| 98 | » static·void·Main·() | ||
| 99 | » { | ||
| 100 | » » Y·y·=·new·Y·(); | ||
| 101 | » » switch·(y){ | ||
| 102 | » » case·0: | ||
| 103 | » » » break; | ||
| 104 | » » case·1: | ||
| 105 | » » » break; | ||
| 106 | » » } | ||
| 107 | » } | ||
| 108 | }</string> | ||
| 112 | ····<string>//·CS0151:·A·switch·expression·of·type·`X?'·cannot·be·converted·to·an·integral·type,·bool,·char,·string,·enum·or·nullable·type | 109 | ····<string>//·CS0151:·A·switch·expression·of·type·`X?'·cannot·be·converted·to·an·integral·type,·bool,·char,·string,·enum·or·nullable·type |
| 113 | //·Line:·1 | 110 | //·Line:·19 |
| 114 | struct·X· | 111 | struct·X· |
| 115 | { | 112 | { |
| 116 | 113 | » public·static·implicit·operator·int?·(X·x) | |
| 117 | ····{ | ||
| 118 | ········return·1; | ||
| 119 | 114 | » { | |
| 115 | » » return·1; | ||
| 116 | » } | ||
| 120 | » static·void·Main·() | 117 | » static·void·Main·() |
| 121 | » { | 118 | » { |
| 122 | » » X?·x·=·null; | 119 | » » X?·x·=·null; |
| 123 | » » switch·(x)·{ | 120 | » » switch·(x)·{ |
| 124 | » » default: | 121 | » » default: |
| 125 | » » » break; | 122 | » » » break; |
| Offset 14, 27 lines modified | Offset 14, 14 lines modified | ||
| 14 | ··{ | 14 | ··{ |
| 15 | ····switch·(f)·{ | 15 | ····switch·(f)·{ |
| 16 | ····case·Foo.MUL:·break; | 16 | ····case·Foo.MUL:·break; |
| 17 | ····case·Foo.MUL:·break; | 17 | ····case·Foo.MUL:·break; |
| 18 | ····} | 18 | ····} |
| 19 | ··} | 19 | ··} |
| 20 | }</string> | 20 | }</string> |
| 21 | ····<string>//·CS0152:·The·label·`case·1:'·already·occurs·in·this·switch·statement | ||
| 22 | //·Line:·9 | ||
| 23 | class·X·{ | ||
| 24 | » void·f·(int·i) | ||
| 25 | » { | ||
| 26 | » » switch·(i){ | ||
| 27 | » » case·1: | ||
| 28 | » » » break; | ||
| 29 | » » case·1:» | ||
| 30 | » » » break; | ||
| 31 | » » } | ||
| 32 | » } | ||
| 33 | }</string> | ||
| 34 | ····<string>//·CS0152:·The·label·`case·2:'·already·occurs·in·this·switch·statement | 21 | ····<string>//·CS0152:·The·label·`case·2:'·already·occurs·in·this·switch·statement |
| 35 | //·Line:·19 | 22 | //·Line:·19 |
| 36 | using·System; | 23 | using·System; |
| 37 | enum·E | 24 | enum·E |
| 38 | { | 25 | { |
| Offset 50, 9 lines modified | Offset 37, 22 lines modified | ||
| 50 | » » » case·E.Foo: | 37 | » » » case·E.Foo: |
| 51 | » » » » break; | 38 | » » » » break; |
| 52 | » » » case·E.Foo: | 39 | » » » case·E.Foo: |
| 53 | » » » » break; | 40 | » » » » break; |
| 54 | » » } | 41 | » » } |
| 55 | » } | 42 | » } |
| 56 | }</string> | 43 | }</string> |
| 44 | ····<string>//·CS0152:·The·label·`case·1:'·already·occurs·in·this·switch·statement | ||
| 45 | //·Line:·9 | ||
| 46 | class·X·{ | ||
| 47 | » void·f·(int·i) | ||
| 48 | » { | ||
| 49 | » » switch·(i){ | ||
| 50 | » » case·1: | ||
| 51 | » » » break; | ||
| 52 | » » case·1:» | ||
| 53 | » » » break; | ||
| 54 | » » } | ||
| 55 | » } | ||
| 56 | }</string> | ||
| 57 | ··</Examples> | 57 | ··</Examples> |
| 58 | </ErrorDocumentation> | 58 | </ErrorDocumentation> |
| Offset 1, 57 lines modified | Offset 1, 44 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0154</ErrorName> | 3 | ··<ErrorName>CS0154</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0154:·The·property·or·indexer·` | 5 | ····<string>//·CS0154:·The·property·or·indexer·`Test.this[bool]'·cannot·be·used·in·this·context·because·it·lacks·the·`get'·accessor |
| 6 | //·Line:·1 | 6 | //·Line:·13 |
| 7 | 7 | class·Test | |
| 8 | { | 8 | { |
| 9 | » public·int·this[bool·b]·{·set·{}·} | ||
| 10 | } | ||
| 9 | » static·float·MyProperty·{ | ||
| 10 | » » set·{·} | ||
| 11 | » } | ||
| 12 | » static·void·MyExtension·(this·float·val) | ||
| 13 | » { | ||
| 14 | » } | ||
| 11 | class·C | ||
| 12 | { | ||
| 15 | » public·static·void·Main·() | 13 | » public·static·void·Main·() |
| 16 | » { | 14 | » { |
| 17 | » » | 15 | » » int·i·=·new·Test()[false]; |
| 18 | » } | 16 | » } |
| 19 | }</string> | 17 | }</string> |
| 20 | ····<string>//·CS0154:·The·property·or·indexer·` | 18 | ····<string>//·CS0154:·The·property·or·indexer·`A.this[int]'·cannot·be·used·in·this·context·because·it·lacks·the·`get'·accessor |
| 21 | //·Line:·1 | 19 | //·Line:·18 |
| 22 | //·this·is·bug·55780. | ||
| 23 | class·A·{ | ||
| 24 | 20 | public·class·A | |
| 21 | { | ||
| 22 | » public·int·this[int·i]·{·set·{·}·} | ||
| 25 | } | 23 | } |
| 24 | public·class·B·:·A | ||
| 26 | class·B·:·A·{ | ||
| 27 | » public·new·int·Foo·{·set·{·}·} | ||
| 28 | » static·void·Main·() | ||
| 29 | » { | ||
| 30 | » » System.Console.WriteLine·(new·B·().Foo); | ||
| 31 | » } | ||
| 32 | }</string> | ||
| 33 | ····<string>//·CS0154:·The·property·or·indexer·`Test.this[bool]'·cannot·be·used·in·this·context·because·it·lacks·the·`get'·accessor | ||
| 34 | //·Line:·13 | ||
| 35 | class·Test | ||
| 36 | { | 25 | { |
| 37 | » public·int·this[ | 26 | » public·int·this[string·i]·{·get·{·return·9;·}·} |
| 38 | } | 27 | } |
| 39 | class· | 28 | class·Test |
| 40 | { | 29 | { |
| 41 | » public·static·void·Main·() | 30 | » public·static·void·Main·() |
| 42 | » { | 31 | » { |
| 43 | » » int·i·=·new· | 32 | » » int·i·=·new·B·()[1]; |
| 44 | » } | 33 | » } |
| 45 | }</string> | 34 | }</string> |
| 46 | ····<string>//·CS0154:·The·property·or·indexer·`A.name'·cannot·be·used·in·this·context·because·it·lacks·the·`get'·accessor | 35 | ····<string>//·CS0154:·The·property·or·indexer·`A.name'·cannot·be·used·in·this·context·because·it·lacks·the·`get'·accessor |
| 47 | //·Line:·21 | 36 | //·Line:·21 |
| 48 | public·class·A | 37 | public·class·A |
| 49 | { | 38 | { |
| Offset 68, 29 lines modified | Offset 55, 42 lines modified | ||
| 68 | { | 55 | { |
| 69 | » public·static·void·Main·() | 56 | » public·static·void·Main·() |
| 70 | » { | 57 | » { |
| 71 | » » A·a·=·new·A·(); | 58 | » » A·a·=·new·A·(); |
| 72 | » » string·b·=·a.name; | 59 | » » string·b·=·a.name; |
| 73 | » } | 60 | » } |
| 74 | }</string> | 61 | }</string> |
| 75 | ····<string>//·CS0154:·The·property·or·indexer·` | 62 | ····<string>//·CS0154:·The·property·or·indexer·`B.Foo'·cannot·be·used·in·this·context·because·it·lacks·the·`get'·accessor |
| 76 | //·Line:·1 | 63 | //·Line:·13 |
| 64 | //·this·is·bug·55780. | ||
| 65 | class·A·{ | ||
| 66 | » public·int·Foo·{·get·{·return·1;·}·} | ||
| 77 | public·class·A | ||
| 78 | { | ||
| 79 | » public·int·this[int·i]·{·set·{·}·} | ||
| 80 | } | 67 | } |
| 81 | public·class·B·:·A | ||
| 82 | { | ||
| 83 | » public·int·this[string·i]·{·get·{·return·9;·}·} | ||
| 84 | 68 | class·B·:·A·{ | |
| 69 | » public·new·int·Foo·{·set·{·}·} | ||
| 70 | » static·void·Main·() | ||
| 71 | » { | ||
| 72 | » » System.Console.WriteLine·(new·B·().Foo); | ||
| 73 | » } | ||
| 74 | }</string> | ||
| 75 | ····<string>//·CS0154:·The·property·or·indexer·`BugReport.MyProperty'·cannot·be·used·in·this·context·because·it·lacks·the·`get'·accessor | ||
| 76 | //·Line:·16 | ||
| 85 | class· | 77 | static·class·BugReport |
| 86 | { | 78 | { |
| 79 | » static·float·MyProperty·{ | ||
| 80 | » » set·{·} | ||
| 81 | » } | ||
| 82 | » static·void·MyExtension·(this·float·val) | ||
| 83 | » { | ||
| 84 | » } | ||
| 87 | » public·static·void·Main·() | 85 | » public·static·void·Main·() |
| 88 | » { | 86 | » { |
| 89 | » » | 87 | » » MyProperty.MyExtension·(); |
| 90 | » } | 88 | » } |
| 91 | }</string> | 89 | }</string> |
| 92 | ··</Examples> | 90 | ··</Examples> |
| 93 | </ErrorDocumentation> | 91 | </ErrorDocumentation> |
| Offset 6, 50 lines modified | Offset 6, 50 lines modified | ||
| 6 | //·Line:·9 | 6 | //·Line:·9 |
| 7 | class·X | 7 | class·X |
| 8 | { | 8 | { |
| 9 | ····public·int·Test·()·=>·throw·""; | 9 | ····public·int·Test·()·=>·throw·""; |
| 10 | }</string> | 10 | }</string> |
| 11 | ····<string>//·CS0155:·The·type·caught·or·thrown·must·be·derived·from·System.Exception | 11 | ····<string>//·CS0155:·The·type·caught·or·thrown·must·be·derived·from·System.Exception |
| 12 | //·Line:· | 12 | //·Line:·7 |
| 13 | class·X·{ | ||
| 13 | class·Test | ||
| 14 | { | ||
| 15 | 14 | » static·void·Main·() | |
| 16 | ····{ | ||
| 17 | ····» try·{} | ||
| 18 | ····» catch·(bool·b)·{} | ||
| 19 | 15 | » { | |
| 16 | » » int·a·=·9; | ||
| 17 | » » throw·a; | ||
| 18 | » } | ||
| 20 | }</string> | 19 | }</string> |
| 21 | ····<string>//·CS0155:·The·type·caught·or·thrown·must·be·derived·from·System.Exception | 20 | ····<string>//·CS0155:·The·type·caught·or·thrown·must·be·derived·from·System.Exception |
| 22 | //·Line:·9 | 21 | //·Line:·9 |
| 23 | class·Test | 22 | class·Test |
| 24 | { | 23 | { |
| 25 | ····public·static·void·Main·() | 24 | ····public·static·void·Main·() |
| 26 | ····{ | 25 | ····{ |
| 27 | ····» try·{} | 26 | ····» try·{} |
| 28 | ····» catch·( | 27 | ····» catch·(bool·b)·{} |
| 29 | ····} | 28 | ····} |
| 30 | }</string> | 29 | }</string> |
| 31 | ····<string>//·CS0155:·The·type·caught·or·thrown·must·be·derived·from·System.Exception | 30 | ····<string>//·CS0155:·The·type·caught·or·thrown·must·be·derived·from·System.Exception |
| 32 | //·Line:·7 | ||
| 33 | class·X·{ | ||
| 34 | » static·void·Main·() | ||
| 35 | » { | ||
| 36 | » » int·a·=·9; | ||
| 37 | » » throw·a; | ||
| 38 | » } | ||
| 39 | }</string> | ||
| 40 | ····<string>//·CS0155:·The·type·caught·or·thrown·must·be·derived·from·System.Exception | ||
| 41 | //·Line:·8 | 31 | //·Line:·8 |
| 42 | class·X·{ | 32 | class·X·{ |
| 43 | » static·void·Main·() | 33 | » static·void·Main·() |
| 44 | » { | 34 | » { |
| 45 | » » try·{ | 35 | » » try·{ |
| 46 | » » }·catch·(object·e)·{ | 36 | » » }·catch·(object·e)·{ |
| 47 | » » » throw; | 37 | » » » throw; |
| 48 | » » } | 38 | » » } |
| 49 | » } | 39 | » } |
| 50 | }</string> | 40 | }</string> |
| 41 | ····<string>//·CS0155:·The·type·caught·or·thrown·must·be·derived·from·System.Exception | ||
| 42 | //·Line:·9 | ||
| 43 | class·Test | ||
| 44 | { | ||
| 45 | ····public·static·void·Main·() | ||
| 46 | ····{ | ||
| 47 | ····» try·{} | ||
| 48 | ····» catch·(int[])·{} | ||
| 49 | ····} | ||
| 50 | }</string> | ||
| 51 | ··</Examples> | 51 | ··</Examples> |
| 52 | </ErrorDocumentation> | 52 | </ErrorDocumentation> |
| Offset 1, 40 lines modified | Offset 1, 40 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0156</ErrorName> | 3 | ··<ErrorName>CS0156</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0156:·A·throw·statement·with·no·arguments·is·not·allowed·outside·of·a·catch·clause | 5 | ····<string>//·CS0156:·A·throw·statement·with·no·arguments·is·not·allowed·outside·of·a·catch·clause |
| 6 | //·Line:·1 | 6 | //·Line:·12 |
| 7 | using·System; | 7 | using·System; |
| 8 | class·Foo | 8 | class·Foo |
| 9 | { | 9 | { |
| 10 | » static·void·Main·() | 10 | » static·void·Main·() |
| 11 | » { | 11 | » { |
| 12 | » » try·{ | 12 | » » try·{ |
| 13 | » » | 13 | » » » Console.WriteLine·("Test·CS0156"); |
| 14 | » » } | ||
| 15 | » » finally·{ | ||
| 16 | » » » throw; | 14 | » » » throw; |
| 17 | » » } | 15 | » » } |
| 16 | » » catch·{ | ||
| 17 | » » }» » » | ||
| 18 | » } | 18 | » } |
| 19 | }</string> | 19 | }</string> |
| 20 | ····<string>//·CS0156:·A·throw·statement·with·no·arguments·is·not·allowed·outside·of·a·catch·clause | 20 | ····<string>//·CS0156:·A·throw·statement·with·no·arguments·is·not·allowed·outside·of·a·catch·clause |
| 21 | //·Line:·1 | 21 | //·Line:·14 |
| 22 | using·System; | 22 | using·System; |
| 23 | class·Foo | 23 | class·Foo |
| 24 | { | 24 | { |
| 25 | » static·void·Main·() | 25 | » static·void·Main·() |
| 26 | » { | 26 | » { |
| 27 | » » try·{ | 27 | » » try·{ |
| 28 | » » | 28 | » » ····Console.WriteLine·("TEST"); |
| 29 | » » } | ||
| 30 | » » finally·{ | ||
| 29 | » » » throw; | 31 | » » » throw; |
| 30 | » » } | 32 | » » } |
| 31 | » » catch·{ | ||
| 32 | » » }» » » | ||
| 33 | » } | 33 | » } |
| 34 | }</string> | 34 | }</string> |
| 35 | ··</Examples> | 35 | ··</Examples> |
| 36 | </ErrorDocumentation> | 36 | </ErrorDocumentation> |
| Offset 1, 41 lines modified | Offset 1, 37 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0157</ErrorName> | 3 | ··<ErrorName>CS0157</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0157:·Control·cannot·leave·the·body·of·a·finally·clause | 5 | ····<string>//·CS0157:·Control·cannot·leave·the·body·of·a·finally·clause |
| 6 | //·Line:·1 | 6 | //·Line:·11 |
| 7 | class·T·{ | 7 | class·T·{ |
| 8 | » static·void·Main·() | 8 | » static·void·Main·() |
| 9 | » { | 9 | » { |
| 10 | » » while·(true)·{ | 10 | » » while·(true)·{ |
| 11 | » » » try·{ | 11 | » » » try·{ |
| 12 | » » » » System.Console.WriteLine·("trying"); | 12 | » » » » System.Console.WriteLine·("trying"); |
| 13 | » » » }·finally·{ | 13 | » » » }·finally·{ |
| 14 | » » » » goto·foo; | ||
| 14 | » » » » try·{ | ||
| 15 | » » » » ····break; | ||
| 16 | » » » » } | ||
| 17 | » » » » catch·{} | ||
| 18 | » » » } | 15 | » » » } |
| 16 | » » foo·: | ||
| 17 | » » » ; | ||
| 19 | » » } | 18 | » » } |
| 20 | » } | 19 | » } |
| 21 | }</string> | 20 | }</string> |
| 22 | ····<string>//·CS0157:·Control·cannot·leave·the·body·of·a·finally·clause | 21 | ····<string>//·CS0157:·Control·cannot·leave·the·body·of·a·finally·clause |
| 23 | //·Line:· | 22 | //·Line:·9 |
| 24 | class· | 23 | class·X·{ |
| 25 | » | 24 | » void·A·() |
| 26 | » { | 25 | » { |
| 27 | » » while·(true)·{· | ||
| 28 | » » | 26 | » » try·{ |
| 29 | » » » » System.Console.WriteLine·("trying"); | ||
| 30 | » » | 27 | » » }·finally·{ |
| 28 | » » » return; | ||
| 31 | » » » » break; | ||
| 32 | » » » } | ||
| 33 | » » } | 29 | » » } |
| 34 | » } | 30 | » } |
| 35 | }</string> | 31 | }</string> |
| 36 | ····<string>//·CS0157:·Control·cannot·leave·the·body·of·a·finally·clause | 32 | ····<string>//·CS0157:·Control·cannot·leave·the·body·of·a·finally·clause |
| 37 | //·Line:·11 | 33 | //·Line:·11 |
| 38 | class·T·{ | 34 | class·T·{ |
| Offset 47, 39 lines modified | Offset 43, 43 lines modified | ||
| 47 | » » » }·finally·{ | 43 | » » » }·finally·{ |
| 48 | » » » » continue; | 44 | » » » » continue; |
| 49 | » » » } | 45 | » » » } |
| 50 | » » } | 46 | » » } |
| 51 | » } | 47 | » } |
| 52 | }</string> | 48 | }</string> |
| 53 | ····<string>//·CS0157:·Control·cannot·leave·the·body·of·a·finally·clause | 49 | ····<string>//·CS0157:·Control·cannot·leave·the·body·of·a·finally·clause |
| 54 | //·Line:· | 50 | //·Line:·11 |
| 55 | class· | 51 | class·T·{ |
| 56 | » void· | 52 | » static·void·Main·() |
| 57 | » { | 53 | » { |
| 54 | » » while·(true)·{· | ||
| 58 | » » try·{ | 55 | » » » try·{ |
| 56 | » » » » System.Console.WriteLine·("trying"); | ||
| 59 | » » }·finally·{ | 57 | » » » }·finally·{ |
| 60 | » » » | 58 | » » » » break; |
| 59 | » » » } | ||
| 61 | » » } | 60 | » » } |
| 62 | » } | 61 | » } |
| 63 | }</string> | 62 | }</string> |
| 64 | ····<string>//·CS0157:·Control·cannot·leave·the·body·of·a·finally·clause | 63 | ····<string>//·CS0157:·Control·cannot·leave·the·body·of·a·finally·clause |
| 65 | //·Line:·1 | 64 | //·Line:·12 |
| 66 | class·T·{ | 65 | class·T·{ |
| 67 | » static·void·Main·() | 66 | » static·void·Main·() |
| 68 | » { | 67 | » { |
| 69 | » » while·(true)·{ | 68 | » » while·(true)·{· |
| 70 | » » » try·{ | 69 | » » » try·{ |
| 71 | » » » » System.Console.WriteLine·("trying"); | 70 | » » » » System.Console.WriteLine·("trying"); |
| 72 | » » » }·finally·{ | 71 | » » » }·finally·{ |
| 73 | » » » » | 72 | » » » » try·{ |
| 73 | » » » » ····break; | ||
| 74 | » » » » } | ||
| 75 | » » » » catch·{} | ||
| 74 | » » » } | 76 | » » » } |
| 75 | » » foo·: | ||
| 76 | » » » ; | ||
| 77 | » » } | 77 | » » } |
| 78 | » } | 78 | » } |
| 79 | }</string> | 79 | }</string> |
| 80 | ····<string>//·CS0157:·Control·cannot·leave·the·body·of·a·finally·clause | 80 | ····<string>//·CS0157:·Control·cannot·leave·the·body·of·a·finally·clause |
| 81 | //·Line:·10 | 81 | //·Line:·10 |
| 82 | class·Foo·{ | 82 | class·Foo·{ |
| Offset 28, 74 lines modified | Offset 28, 14 lines modified | ||
| 28 | » static·void·Main·() | 28 | » static·void·Main·() |
| 29 | » { | 29 | » { |
| 30 | » » Test·t·=·new·Test·(); | 30 | » » Test·t·=·new·Test·(); |
| 31 | » » RunIt·(t); | 31 | » » RunIt·(t); |
| 32 | » } | 32 | » } |
| 33 | }</string> | 33 | }</string> |
| 34 | ····<string>//·CS0158:·The·label·`Foo'·shadows·another·label·by·the·same·name·in·a·contained·scope | ||
| 35 | //·Line:·17 | ||
| 36 | using·System; | ||
| 37 | public·delegate·void·Hello·(Test·test); | ||
| 38 | public·class·Test | ||
| 39 | { | ||
| 40 | » public·void·Whatever·() | ||
| 41 | » {·} | ||
| 42 | » static·void·RunIt·(Test·t) | ||
| 43 | » { | ||
| 44 | » Foo: | ||
| 45 | » » Hello·hello·=·delegate·(Test·test)·{ | ||
| 46 | » » » Hello·hello2·=·delegate·(Test·test2)·{ | ||
| 47 | » » » » Foo: | ||
| 48 | » » » » test2.Whatever·(); | ||
| 49 | » » » }; | ||
| 50 | » » » hello2·(test); | ||
| 51 | » » }; | ||
| 52 | » » hello·(t); | ||
| 53 | » } | ||
| 54 | » static·void·Main·() | ||
| 55 | » { | ||
| 56 | » » Test·t·=·new·Test·(); | ||
| 57 | » » RunIt·(t); | ||
| 58 | » } | ||
| 59 | }</string> | ||
| 60 | ····<string>//·CS0158:·The·label·`Foo'·shadows·another·label·by·the·same·name·in·a·contained·scope | ||
| 61 | //·Line:·17 | ||
| 62 | using·System; | ||
| 63 | public·delegate·void·Hello·(Test·test); | ||
| 64 | public·class·Test | ||
| 65 | { | ||
| 66 | » public·void·Whatever·() | ||
| 67 | » {·} | ||
| 68 | » static·void·RunIt·(Test·t) | ||
| 69 | » { | ||
| 70 | » » Hello·hello·=·delegate·(Test·test)·{ | ||
| 71 | » » » Foo: | ||
| 72 | » » » Hello·hello2·=·delegate·(Test·test2)·{ | ||
| 73 | » » » » Foo: | ||
| 74 | » » » » test2.Whatever·(); | ||
| 75 | » » » }; | ||
| 76 | » » » hello2·(test); | ||
| 77 | » » }; | ||
| 78 | » » hello·(t); | ||
| 79 | » } | ||
| 80 | » static·void·Main·() | ||
| 81 | » { | ||
| 82 | » » Test·t·=·new·Test·(); | ||
| 83 | » » RunIt·(t); | ||
| 84 | » } | ||
| 85 | }</string> | ||
| 86 | ····<string>//·CS0158:·The·label·`start'·shadows·another·label·by·the·same·name·in·a·contained·scope | 34 | ····<string>//·CS0158:·The·label·`start'·shadows·another·label·by·the·same·name·in·a·contained·scope |
| 87 | //·Line:·9 | 35 | //·Line:·9 |
| 88 | class·ClassMain·{ | 36 | class·ClassMain·{ |
| 89 | ········public·static·void·Main()·{ | 37 | ········public·static·void·Main()·{ |
| 90 | ················start: | 38 | ················start: |
| 91 | ················{ | 39 | ················{ |
| Offset 146, 9 lines modified | Offset 86, 69 lines modified | ||
| 146 | » » » » return·0; | 86 | » » » » return·0; |
| 147 | » » } | 87 | » » } |
| 148 | » LBL4: | 88 | » LBL4: |
| 149 | » » Console.WriteLine("4"); | 89 | » » Console.WriteLine("4"); |
| 150 | » » return·1; | 90 | » » return·1; |
| 151 | » } | 91 | » } |
| 152 | }</string> | 92 | }</string> |
| 93 | ····<string>//·CS0158:·The·label·`Foo'·shadows·another·label·by·the·same·name·in·a·contained·scope | ||
| 94 | //·Line:·17 | ||
| 95 | using·System; | ||
| 96 | public·delegate·void·Hello·(Test·test); | ||
| 97 | public·class·Test | ||
| 98 | { | ||
| 99 | » public·void·Whatever·() | ||
| 100 | » {·} | ||
| 101 | » static·void·RunIt·(Test·t) | ||
| 102 | » { | ||
| 103 | » » Hello·hello·=·delegate·(Test·test)·{ | ||
| 104 | » » » Foo: | ||
| 105 | » » » Hello·hello2·=·delegate·(Test·test2)·{ | ||
| 106 | » » » » Foo: | ||
| 107 | » » » » test2.Whatever·(); | ||
| 108 | » » » }; | ||
| 109 | » » » hello2·(test); | ||
| 110 | » » }; | ||
| 111 | » » hello·(t); | ||
| 112 | » } | ||
| 113 | » static·void·Main·() | ||
| 114 | » { | ||
| 115 | » » Test·t·=·new·Test·(); | ||
| 116 | » » RunIt·(t); | ||
| 117 | » } | ||
| 118 | }</string> | ||
| 119 | ····<string>//·CS0158:·The·label·`Foo'·shadows·another·label·by·the·same·name·in·a·contained·scope | ||
| 120 | //·Line:·17 | ||
| 121 | using·System; | ||
| 122 | public·delegate·void·Hello·(Test·test); | ||
| 123 | public·class·Test | ||
| 124 | { | ||
| 125 | » public·void·Whatever·() | ||
| 126 | » {·} | ||
| 127 | » static·void·RunIt·(Test·t) | ||
| 128 | » { | ||
| 129 | » Foo: | ||
| 130 | » » Hello·hello·=·delegate·(Test·test)·{ | ||
| Max diff block lines reached; 23/2540 bytes (0.91%) of diff not shown. | |||
| Offset 1, 61 lines modified | Offset 1, 47 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0159</ErrorName> | 3 | ··<ErrorName>CS0159</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0159:·The·label·` | 5 | ····<string>//·CS0159:·The·label·`a:'·could·not·be·found·within·the·scope·of·the·goto·statement |
| 6 | //·Line:· | 6 | //·Line:·9 |
| 7 | class·X·{ | ||
| 8 | » static·int·m·(int·n) | ||
| 9 | » { | ||
| 10 | » » switch·(n){ | ||
| 11 | » » case·0: | ||
| 12 | » » » goto·default; | ||
| 13 | » » case·1: | ||
| 14 | » » » return·1; | ||
| 15 | » » } | ||
| 7 | class·Foo·{ | ||
| 16 | » » return·10; | ||
| 17 | » } | ||
| 18 | » | ||
| 19 | » static·void·Main·() | 8 | » static·void·Main·() |
| 20 | » { | 9 | » { |
| 21 | » » | 10 | » » int·i·=·9; |
| 11 | » » goto·a; | ||
| 12 | » » do·{ | ||
| 13 | » » a: | ||
| 14 | » » » throw·new·System.Exception·("huh?"); | ||
| 15 | » » }·while·(i·!=·9); | ||
| 22 | » } | 16 | » } |
| 23 | }</string> | 17 | }</string> |
| 24 | ····<string>//·CS0159:·The·label·`case· | 18 | ····<string>//·CS0159:·The·label·`case·null:'·could·not·be·found·within·the·scope·of·the·goto·statement |
| 25 | //·Line:·1 | 19 | //·Line:·1 |
| 26 | class·y·{ | 20 | class·y·{ |
| 27 | » enum·X·{·A·=·1,·B·=·1,·C·=·1·} | ||
| 28 | » static·void·Main·() | 21 | » static·void·Main·() |
| 29 | » { | 22 | » { |
| 30 | » » in | 23 | » » string·x·=·null; |
| 31 | » » switch·(x){ | 24 | » » switch·(x){ |
| 32 | » » » case·1:·break; | ||
| 33 | » » » case· | 25 | » » » case·"":·goto·case·null; |
| 34 | » » } | 26 | » » } |
| 35 | » } | 27 | » } |
| 36 | }</string> | 28 | }</string> |
| 37 | ····<string>//·CS0159:·The·label·` | 29 | ····<string>//·CS0159:·The·label·`skip:'·could·not·be·found·within·the·scope·of·the·goto·statement |
| 38 | //·Line:·9 | 30 | //·Line:·9 |
| 39 | class·Foo·{ | 31 | class·Foo·{ |
| 40 | » static·void·Main·() | 32 | » static·void·Main·() |
| 41 | » { | 33 | » { |
| 34 | » » try·{} | ||
| 35 | » » finally·{ | ||
| 36 | » » » goto·skip; | ||
| 42 | » » int·i·=·9; | ||
| 43 | » » goto·a; | ||
| 44 | » » while·(i·!=·9)·{ | ||
| 45 | » » a: | ||
| 46 | » » » throw·new·System.Exception·("huh?"); | ||
| 47 | » » } | 37 | » » } |
| 48 | » } | 38 | » } |
| 49 | }</string> | 39 | }</string> |
| 50 | ····<string>//·CS0159:·The·label·`a:'·could·not·be·found·within·the·scope·of·the·goto·statement | 40 | ····<string>//·CS0159:·The·label·`a:'·could·not·be·found·within·the·scope·of·the·goto·statement |
| 51 | //·Line:·9 | 41 | //·Line:·9 |
| 52 | public·class·A | 42 | public·class·A |
| Offset 67, 39 lines modified | Offset 53, 51 lines modified | ||
| 67 | » » switch·(i)·{ | 53 | » » switch·(i)·{ |
| 68 | » » case·9: | 54 | » » case·9: |
| 69 | » » a: | 55 | » » a: |
| 70 | » » » break; | 56 | » » » break; |
| 71 | » » } | 57 | » » } |
| 72 | » } | 58 | » } |
| 73 | }</string> | 59 | }</string> |
| 74 | ····<string>//·CS0159:·The·label·`a:'·could·not·be·found·within·the·scope·of·the·goto·statement | 60 | ····<string>//·CS0159:·The·label·`case·20:'·could·not·be·found·within·the·scope·of·the·goto·statement |
| 75 | //·Line:· | 61 | //·Line:·13 |
| 62 | class·y·{ | ||
| 63 | » enum·X·{·A·=·1,·B·=·1,·C·=·1·} | ||
| 76 | class·Foo·{ | ||
| 77 | » static·void·Main·() | 64 | » static·void·Main·() |
| 78 | » { | 65 | » { |
| 79 | » » int· | 66 | » » int·x·=·1; |
| 80 | » » goto·a; | ||
| 81 | » » do·{ | ||
| 82 | » » a: | ||
| 83 | » » » throw·new·System.Exception·("huh?"); | ||
| 84 | » » }·while·(i·!=·9); | ||
| 67 | » » switch·(x){ | ||
| 68 | » » » case·1:·break; | ||
| 69 | » » » case·2:·goto·case·20; | ||
| 70 | » » } | ||
| 85 | » } | 71 | » } |
| 86 | }</string> | 72 | }</string> |
| 87 | ····<string>//·CS0159:·The·label·` | 73 | ····<string>//·CS0159:·The·label·`default:'·could·not·be·found·within·the·scope·of·the·goto·statement |
| 88 | //·Line:·1 | 74 | //·Line:·10 |
| 89 | class· | 75 | class·X·{ |
| 90 | » static·void·Main·() | ||
| 76 | » static·int·m·(int·n) | ||
| 91 | » { | 77 | » { |
| 92 | » » s | 78 | » » switch·(n){ |
| 79 | » » case·0: | ||
| 80 | » » » goto·default; | ||
| 93 | » » switch·(x){ | ||
| 94 | » » | 81 | » » case·1: |
| 82 | » » » return·1; | ||
| 95 | » » } | 83 | » » } |
| 84 | » » return·10; | ||
| 85 | » } | ||
| 86 | » | ||
| 87 | » static·void·Main·() | ||
| 88 | » { | ||
| 89 | » » m·(1); | ||
| 96 | » } | 90 | » } |
| 97 | }</string> | 91 | }</string> |
| 98 | ····<string>//·CS0159:·The·label·`a:'·could·not·be·found·within·the·scope·of·the·goto·statement | 92 | ····<string>//·CS0159:·The·label·`a:'·could·not·be·found·within·the·scope·of·the·goto·statement |
| 99 | //·Line:·8 | 93 | //·Line:·8 |
| 100 | class·Foo·{ | 94 | class·Foo·{ |
| Max diff block lines reached; 557/3560 bytes (15.65%) of diff not shown. | |||
| Offset 8, 14 lines modified | Offset 8, 24 lines modified | ||
| 8 | class·ClassMain·{ | 8 | class·ClassMain·{ |
| 9 | ········public·static·void·Main()·{ | 9 | ········public·static·void·Main()·{ |
| 10 | ················try·{·} | 10 | ················try·{·} |
| 11 | ················catch·(System.Exception)·{·} | 11 | ················catch·(System.Exception)·{·} |
| 12 | ················catch·(System.Exception)·{·} | 12 | ················catch·(System.Exception)·{·} |
| 13 | ········} | 13 | ········} |
| 14 | }</string> | 14 | }</string> |
| 15 | ····<string>//·CS0160:·A·previous·catch·clause·already·catches·all·exceptions·of·this·or·a·super·type·`System.Exception' | ||
| 16 | //·Line:·8 | ||
| 17 | class·ClassMain·{ | ||
| 18 | ········public·static·void·Main()·{ | ||
| 19 | ················try·{·} | ||
| 20 | ················catch·(System.Exception)·{·} | ||
| 21 | ················catch·(System.ApplicationException)·{·} | ||
| 22 | ········} | ||
| 23 | }</string> | ||
| 15 | ····<string>//·CS0160:·A·previous·catch·clause·already·catches·all·exceptions·of·this·or·a·super·type·`C<dynamic>' | 24 | ····<string>//·CS0160:·A·previous·catch·clause·already·catches·all·exceptions·of·this·or·a·super·type·`C<dynamic>' |
| 16 | //·Line:·17 | 25 | //·Line:·17 |
| 17 | class·D<T>·:·C<object> | 26 | class·D<T>·:·C<object> |
| 18 | { | 27 | { |
| 19 | } | 28 | } |
| Offset 28, 19 lines modified | Offset 38, 9 lines modified | ||
| 28 | » public·static·void·Main·() | 38 | » public·static·void·Main·() |
| 29 | » { | 39 | » { |
| 30 | » » try·{·} | 40 | » » try·{·} |
| 31 | » » catch·(C<dynamic>)·{·} | 41 | » » catch·(C<dynamic>)·{·} |
| 32 | » » catch·(D<object>)·{·} | 42 | » » catch·(D<object>)·{·} |
| 33 | » } | 43 | » } |
| 34 | }</string> | 44 | }</string> |
| 35 | ····<string>//·CS0160:·A·previous·catch·clause·already·catches·all·exceptions·of·this·or·a·super·type·`System.Exception' | ||
| 36 | //·Line:·8 | ||
| 37 | class·ClassMain·{ | ||
| 38 | ········public·static·void·Main()·{ | ||
| 39 | ················try·{·} | ||
| 40 | ················catch·(System.Exception)·{·} | ||
| 41 | ················catch·(System.ApplicationException)·{·} | ||
| 42 | ········} | ||
| 43 | }</string> | ||
| 44 | ··</Examples> | 45 | ··</Examples> |
| 45 | </ErrorDocumentation> | 46 | </ErrorDocumentation> |
| Offset 1, 28 lines modified | Offset 1, 11 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0161</ErrorName> | 3 | ··<ErrorName>CS0161</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0161:·`A.Test()':·not·all·code·paths·return·a·value | ||
| 6 | //·Line:·8 | ||
| 7 | using·System.Threading.Tasks; | ||
| 8 | class·A | ||
| 9 | { | ||
| 10 | » static·async·Task<string>·Test·() | ||
| 11 | » { | ||
| 12 | » » await·CallAsync·(); | ||
| 13 | » } | ||
| 14 | » | ||
| 15 | » static·Task<string>·CallAsync·() | ||
| 16 | » { | ||
| 17 | » » return·null; | ||
| 18 | » } | ||
| 19 | }</string> | ||
| 20 | ····<string>//·CS0161:·`Test.Main()':·not·all·code·paths·return·a·value | 5 | ····<string>//·CS0161:·`Test.Main()':·not·all·code·paths·return·a·value |
| 21 | //·Line:·4 | 6 | //·Line:·4 |
| 22 | class·Test·{ | 7 | class·Test·{ |
| 23 | » static·int·Main·()·{ | 8 | » static·int·Main·()·{ |
| 24 | » » bool·b·=·false; | 9 | » » bool·b·=·false; |
| 25 | » » while·(true)·{ | 10 | » » while·(true)·{ |
| 26 | » » » if·(b) | 11 | » » » if·(b) |
| Offset 37, 9 lines modified | Offset 20, 26 lines modified | ||
| 37 | class·A | 20 | class·A |
| 38 | { | 21 | { |
| 39 | » public·static·int·Main·()· | 22 | » public·static·int·Main·()· |
| 40 | » { | 23 | » { |
| 41 | » } | 24 | » } |
| 42 | }</string> | 25 | }</string> |
| 26 | ····<string>//·CS0161:·`A.Test()':·not·all·code·paths·return·a·value | ||
| 27 | //·Line:·8 | ||
| 28 | using·System.Threading.Tasks; | ||
| 29 | class·A | ||
| 30 | { | ||
| 31 | » static·async·Task<string>·Test·() | ||
| 32 | » { | ||
| 33 | » » await·CallAsync·(); | ||
| 34 | » } | ||
| 35 | » | ||
| 36 | » static·Task<string>·CallAsync·() | ||
| 37 | » { | ||
| 38 | » » return·null; | ||
| 39 | » } | ||
| 40 | }</string> | ||
| 43 | ··</Examples> | 41 | ··</Examples> |
| 44 | </ErrorDocumentation> | 42 | </ErrorDocumentation> |
| Offset 1, 154 lines modified | Offset 1, 118 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0162</ErrorName> | 3 | ··<ErrorName>CS0162</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0162:·Unreachable·code·detected | 5 | ····<string>//·CS0162:·Unreachable·code·detected |
| 6 | //·Line:· | 6 | //·Line:·9 |
| 7 | //·Compiler·options:·-warnaserror·-warn:2 | ||
| 8 | using·System; | ||
| 9 | class·E | ||
| 10 | { | ||
| 11 | ···public·void·Method<T>·()·where·T·:·class | ||
| 12 | ···{ | ||
| 13 | ······if·(default·(T)·!=·null) | ||
| 14 | ·········throw·new·ArgumentNullException·(); | ||
| 15 | ···} | ||
| 16 | }</string> | ||
| 17 | ····<string>//·CS0162:·Unreachable·code·detected | ||
| 18 | //·Line:·10 | ||
| 19 | //·Compiler·options:·-warnaserror·-warn:2 | 7 | //·Compiler·options:·-warnaserror·-warn:2 |
| 20 | class·C | 8 | class·C |
| 21 | { | 9 | { |
| 22 | » static·int·Main·() | 10 | » public·static·int·Main·() |
| 23 | » { | 11 | » { |
| 24 | » » | 12 | » » if·(true·==·false) |
| 25 | » » return·1; | 13 | » » » return·1; |
| 14 | » » | ||
| 15 | » » return·2; | ||
| 26 | » } | 16 | » } |
| 27 | }</string> | 17 | }</string> |
| 28 | ····<string>//·CS0162:·Unreachable·code·detected | 18 | ····<string>//·CS0162:·Unreachable·code·detected |
| 29 | //·Line:·9 | 19 | //·Line:·9 |
| 30 | //·Compiler·options:·-warnaserror·-warn:2 | 20 | //·Compiler·options:·-warnaserror·-warn:2 |
| 21 | class·Foo·{ | ||
| 22 | » static·void·Main·() | ||
| 31 | class·Error | ||
| 32 | { | ||
| 33 | » void·Test·() | ||
| 34 | » { | ||
| 35 | » » if·(1·==·0)·{ | ||
| 36 | » » » try·{ | ||
| 37 | » » » }·catch·(System.Net.Sockets.SocketException·sex)·{ | ||
| 38 | » » » » int·x·=·(int)sex.SocketErrorCode; | ||
| 39 | » » » } | ||
| 40 | » » } | ||
| 41 | » } | ||
| 42 | }</string> | ||
| 43 | ····<string>//·CS0162:·Unreachable·code·detected | ||
| 44 | //·Line:·10 | ||
| 45 | //·Compiler·options:·-warnaserror | ||
| 46 | class·C | ||
| 47 | { | ||
| 48 | » void·Test·(int·a) | ||
| 49 | » { | 23 | » { |
| 24 | » » goto·skip; | ||
| 25 | » a: | ||
| 26 | » » throw·new·System.Exception·(); | ||
| 27 | » » goto·a; | ||
| 28 | » skip: | ||
| 50 | » » return; | 29 | » » return; |
| 51 | » » if·(a·>·0)·{ | ||
| 52 | » » » int·x·=·a·+·20; | ||
| 53 | » » » return; | ||
| 54 | » » } | ||
| 55 | » } | 30 | » } |
| 56 | }</string> | 31 | }</string> |
| 57 | ····<string>//·CS0162:·Unreachable·code·detected | 32 | ····<string>//·CS0162:·Unreachable·code·detected |
| 58 | //·Line:·1 | 33 | //·Line:·18 |
| 59 | //·Compiler·options:·-warnaserror | 34 | //·Compiler·options:·-warnaserror·-warn:2 |
| 60 | using·System; | 35 | using·System; |
| 36 | class·C·{ | ||
| 37 | » public·enum·Flags·{ | ||
| 38 | » » Removed»=·0, | ||
| 39 | » » Public» =·1 | ||
| 61 | public·class·Driver | ||
| 62 | { | ||
| 63 | » public·static·void·Main·() | ||
| 64 | » { | ||
| 65 | » » int·yyTop·=·0; | ||
| 66 | » » for·(;·;·++yyTop)·{ | ||
| 67 | » » » if·(yyTop·>·0) | ||
| 68 | » » » » break; | ||
| 69 | » » » else | ||
| 70 | » » » » return; | ||
| 71 | » | 40 | » } |
| 41 | » public·Flags» _enumFlags; | ||
| 42 | » » | ||
| 43 | » internal·void·Close() | ||
| 44 | » {» | ||
| 45 | » » if·((_enumFlags·&·Flags.Removed)·!=·0) | ||
| 46 | » » » Console.WriteLine·("error"); | ||
| 72 | » } | 47 | » } |
| 73 | }</string> | 48 | }</string> |
| 74 | ····<string>//·CS0162:·Unreachable·code·detected | 49 | ····<string>//·CS0162:·Unreachable·code·detected |
| 75 | //·Line:·1 | 50 | //·Line:·10 |
| 76 | //·Compiler·options:·-warnaserror·-warn:2 | 51 | //·Compiler·options:·-warnaserror·-warn:2 |
| 77 | using·System; | ||
| 78 | class· | 52 | class·C |
| 79 | { | 53 | { |
| 80 | » | 54 | » static·int·Main·()· |
| 81 | » { | 55 | » { |
| 56 | » » while·(!new·bool·{}); | ||
| 82 | » » try·{ | ||
| 83 | » » » throw·new·ApplicationException·(); | ||
| 84 | » » }·catch·when·(false)·{ | ||
| 85 | » » | 57 | » » return·1; |
| 86 | » » } | ||
| 87 | » } | 58 | » } |
| 88 | }</string> | 59 | }</string> |
| 89 | ····<string>//·CS0162:·Unreachable·code·detected | 60 | ····<string>//·CS0162:·Unreachable·code·detected |
| 90 | //·Line:·12 | 61 | //·Line:·12 |
| 91 | //·Compiler·options:·-warnaserror·-warn:2 | 62 | //·Compiler·options:·-warnaserror·-warn:2 |
| 92 | using·System; | 63 | using·System; |
| 93 | class·E | 64 | class·E |
| 94 | { | 65 | { |
| Max diff block lines reached; 5503/8073 bytes (68.17%) of diff not shown. | |||
| Offset 1, 28 lines modified | Offset 1, 11 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0165</ErrorName> | 3 | ··<ErrorName>CS0165</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0165:·Use·of·unassigned·local·variable·`s' | ||
| 6 | //·Line:·14 | ||
| 7 | using·System; | ||
| 8 | class·Program | ||
| 9 | { | ||
| 10 | » public·static·void·Main·() | ||
| 11 | » { | ||
| 12 | » » string·s; | ||
| 13 | » » object·o·=·null; | ||
| 14 | » » while·(o·!=·null·&&·string.IsNullOrEmpty·(s·=·(string)·o.ToString·()))·{ | ||
| 15 | » » } | ||
| 16 | » » | ||
| 17 | » » Console.WriteLine·(s); | ||
| 18 | » } | ||
| 19 | }</string> | ||
| 20 | ····<string>//·CS0165:·Use·of·unassigned·local·variable·`a' | 5 | ····<string>//·CS0165:·Use·of·unassigned·local·variable·`a' |
| 21 | //·Line:·14 | 6 | //·Line:·14 |
| 22 | class·X | 7 | class·X |
| 23 | { | 8 | { |
| 24 | » public·static·void·Main·() | 9 | » public·static·void·Main·() |
| 25 | » { | 10 | » { |
| Offset 33, 81 lines modified | Offset 16, 142 lines modified | ||
| 33 | » » » break; | 16 | » » » break; |
| 34 | » » default: | 17 | » » default: |
| 35 | » » » float·b·=·a·+·99.0f; | 18 | » » » float·b·=·a·+·99.0f; |
| 36 | » » » break; | 19 | » » » break; |
| 37 | » » } | 20 | » » } |
| 38 | » } | 21 | » } |
| 39 | }</string> | 22 | }</string> |
| 40 | ····<string>//·CS0165:·Use·of·unassigned·local·variable·` | 23 | ····<string>//·CS0165:·Use·of·unassigned·local·variable·`a' |
| 41 | //·Line:· | 24 | //·Line:·17 |
| 42 | 25 | class·Test | |
| 43 | { | 26 | { |
| 44 | » public· | 27 | » public·static·bool·Foo·(out·int·v) |
| 45 | » { | 28 | » { |
| 46 | » » int·i; | ||
| 47 | » » | 29 | » » v·=·0; |
| 30 | » » return·false; | ||
| 48 | » } | 31 | » } |
| 49 | }</string> | ||
| 50 | ····<string>//·CS0165:·Use·of·unassigned·local·variable·`x' | ||
| 51 | //·Line:·19 | ||
| 52 | struct·S | ||
| 53 | { | ||
| 54 | » public·object·O; | ||
| 55 | 32 | » static·void·Main() | |
| 33 | » { | ||
| 34 | » » int·a; | ||
| 35 | » » bool·b·=·false; | ||
| 56 | class·X | ||
| 57 | { | ||
| 58 | » public·S·s; | ||
| 59 | 36 | » » if·((b·&&·Foo·(out·a))·||·b)·{ | |
| 37 | » » » System.Console.WriteLine·(a); | ||
| 38 | » » } | ||
| 39 | » } | ||
| 40 | }</string> | ||
| 41 | ····<string>//·CS0165:·Use·of·unassigned·local·variable·`a' | ||
| 42 | //·Line:·9 | ||
| 60 | class·C | ||
| 61 | 43 | using·System; | |
| 44 | class·Test·{ | ||
| 45 | » | ||
| 62 | » | 46 | » static·void·Main·()·{ |
| 47 | » » Action·a·=·()·=>·a(); | ||
| 63 | » { | ||
| 64 | » » X·x; | ||
| 65 | » » x.s.O·=·2; | ||
| 66 | » } | 48 | » } |
| 67 | }</string> | 49 | }</string> |
| 68 | ····<string>//·CS0165:·Use·of·unassigned·local·variable·`v' | 50 | ····<string>//·CS0165:·Use·of·unassigned·local·variable·`v' |
| 69 | //·Line:·1 | 51 | //·Line:·19 |
| 70 | using·System; | 52 | using·System; |
| 71 | class· | 53 | class·X |
| 72 | { | 54 | { |
| 73 | » void· | 55 | » void·Foo·(out·int·value) |
| 56 | » { | ||
| 57 | » » value·=·1; | ||
| 58 | » } | ||
| 59 | » public·static·void·Main·() | ||
| 74 | » { | 60 | » { |
| 75 | » » int·v; | 61 | » » int·v; |
| 62 | » » X[]·x·=·null; | ||
| 76 | » » switch·(arg)·{ | ||
| 77 | » » » case·1: | ||
| 78 | » » » » v·=·0; | ||
| 79 | » » » » break; | ||
| 80 | » » } | ||
| 63 | » » x?[0].Foo·(out·v); | ||
| 81 | » » Console.WriteLine·(v); | 64 | » » Console.WriteLine·(v); |
| 82 | » } | 65 | » } |
| 83 | }</string> | 66 | }</string> |
| 84 | ····<string>//·CS0165:·Use·of·unassigned·local·variable·` | 67 | ····<string>//·CS0165:·Use·of·unassigned·local·variable·`s' |
| 68 | //·Line:·10 | ||
| 69 | //·Compiler·options:·-r:CS0165-19-lib.dll | ||
| 70 | class·Program | ||
| 71 | { | ||
| 72 | » static·void·Main·() | ||
| 73 | » { | ||
| 74 | » » S·s; | ||
| 75 | » » s.Test·(); | ||
| 76 | » } | ||
| 77 | }</string> | ||
| 78 | ····<string>//·CS0165:·Use·of·unassigned·local·variable·`x' | ||
| 85 | //·Line:·16 | 79 | //·Line:·16 |
| 86 | 80 | class·T·{ | |
| 81 | » void·fun·(ref·int·a) | ||
| 82 | » { | ||
| 83 | » » if·(a·==·3) | ||
| Max diff block lines reached; 24646/27061 bytes (91.08%) of diff not shown. | |||
| Offset 1, 22 lines modified | Offset 1, 11 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0168</ErrorName> | 3 | ··<ErrorName>CS0168</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0168:·The·variable·`p'·is·declared·but·never·used | ||
| 6 | //·Line:·9 | ||
| 7 | //·Compiler·options:·-warn:3·-warnaserror | ||
| 8 | class·Main | ||
| 9 | { | ||
| 10 | ···public·void·Method·(int·i) | ||
| 11 | ···{ | ||
| 12 | ·······long·p; | ||
| 13 | ···} | ||
| 14 | }</string> | ||
| 15 | ····<string>//·CS0168:·The·variable·`y2'·is·declared·but·never·used | 5 | ····<string>//·CS0168:·The·variable·`y2'·is·declared·but·never·used |
| 16 | //·Line:·9 | 6 | //·Line:·9 |
| 17 | //·Compiler·options:·-warn:3·-warnaserror | 7 | //·Compiler·options:·-warn:3·-warnaserror |
| 18 | class·CompilerBugDemo | 8 | class·CompilerBugDemo |
| 19 | { | 9 | { |
| 20 | » public·static·object·Wrong() | 10 | » public·static·object·Wrong() |
| Offset 34, 9 lines modified | Offset 23, 20 lines modified | ||
| 34 | public·class·ConsoleStub·{ | 23 | public·class·ConsoleStub·{ |
| 35 | ··public·static·void·Main(string[]·args)·{ | 24 | ··public·static·void·Main(string[]·args)·{ |
| 36 | ····try·{ | 25 | ····try·{ |
| 37 | ····}·catch·(Exception·e)·{ | 26 | ····}·catch·(Exception·e)·{ |
| 38 | ····} | 27 | ····} |
| 39 | ··} | 28 | ··} |
| 40 | }</string> | 29 | }</string> |
| 30 | ····<string>//·CS0168:·The·variable·`p'·is·declared·but·never·used | ||
| 31 | //·Line:·9 | ||
| 32 | //·Compiler·options:·-warn:3·-warnaserror | ||
| 33 | class·Main | ||
| 34 | { | ||
| 35 | ···public·void·Method·(int·i) | ||
| 36 | ···{ | ||
| 37 | ·······long·p; | ||
| 38 | ···} | ||
| 39 | }</string> | ||
| 41 | ··</Examples> | 40 | ··</Examples> |
| 42 | </ErrorDocumentation> | 41 | </ErrorDocumentation> |
| Offset 1, 33 lines modified | Offset 1, 43 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0170</ErrorName> | 3 | ··<ErrorName>CS0170</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0170:·Use·of·possibly·unassigned·field·` | 5 | ····<string>//·CS0170:·Use·of·possibly·unassigned·field·`c' |
| 6 | //·Line:· | 6 | //·Line:·11 |
| 7 | struct·A | ||
| 8 | { | ||
| 9 | » public·long·b; | ||
| 10 | » public·float·c; | ||
| 11 | » public·A·(int·foo) | ||
| 12 | » { | ||
| 13 | » » b·=·(long)·c; | ||
| 14 | » » c·=·1; | ||
| 15 | » } | ||
| 16 | }</string> | ||
| 17 | ····<string>//·CS0170:·Use·of·possibly·unassigned·field·`a' | ||
| 18 | //·Line:·17 | ||
| 7 | using·System; | 19 | using·System; |
| 8 | struct·S | 20 | public·struct·S |
| 9 | { | 21 | { |
| 10 | » public·i | 22 | » public·Action·a; |
| 11 | } | 23 | } |
| 12 | struct·S | ||
| 13 | { | ||
| 14 | » public·S2·s2; | ||
| 15 | } | ||
| 16 | class· | 24 | public·class·Test |
| 17 | { | 25 | { |
| 18 | 26 | » static·void·Main·() | |
| 19 | 27 | » { | |
| 20 | » » S·s; | 28 | » » S·s; |
| 21 | » » Console.WriteLine·(s.s2.p); | ||
| 22 | ····} | 29 | » » s.a·+=·delegate·{·}; |
| 30 | » } | ||
| 23 | }</string> | 31 | }</string> |
| 24 | ····<string>//·CS0170:·Use·of·possibly·unassigned·field·`c' | 32 | ····<string>//·CS0170:·Use·of·possibly·unassigned·field·`c' |
| 25 | //·Line:·24 | 33 | //·Line:·24 |
| 26 | public·class·C | 34 | public·class·C |
| 27 | { | 35 | { |
| 28 | » public·int·v; | 36 | » public·int·v; |
| Offset 47, 50 lines modified | Offset 57, 36 lines modified | ||
| 47 | { | 57 | { |
| 48 | » static·void·Main·() | 58 | » static·void·Main·() |
| 49 | » { | 59 | » { |
| 50 | » » S·s; | 60 | » » S·s; |
| 51 | » » int·xx·=·s.c.v; | 61 | » » int·xx·=·s.c.v; |
| 52 | » } | 62 | » } |
| 53 | }</string> | 63 | }</string> |
| 54 | ····<string>//·CS0170:·Use·of·possibly·unassigned·field·` | 64 | ····<string>//·CS0170:·Use·of·possibly·unassigned·field·`p' |
| 55 | //·Line:·21 | 65 | //·Line:·21 |
| 56 | 66 | using·System; | |
| 67 | struct·S2 | ||
| 57 | { | 68 | { |
| 58 | » public·int· | 69 | » public·int·p; |
| 59 | } | 70 | } |
| 60 | 71 | struct·S | |
| 61 | { | 72 | { |
| 62 | » public·int·a; | ||
| 63 | » public· | 73 | » public·S2·s2; |
| 64 | } | 74 | } |
| 65 | 75 | class·C | |
| 66 | { | 76 | { |
| 67 | 77 | ····static·void·Main() | |
| 68 | 78 | ····{ | |
| 69 | » » S·s; | 79 | » » S·s; |
| 80 | » » Console.WriteLine·(s.s2.p); | ||
| 81 | ····} | ||
| 70 | » » s.a·=·2; | ||
| 71 | » » int·xx·=·s.c.v; | ||
| 72 | » } | ||
| 73 | }</string> | ||
| 74 | ····<string>//·CS0170:·Use·of·possibly·unassigned·field·`c' | ||
| 75 | //·Line:·11 | ||
| 76 | struct·A | ||
| 77 | { | ||
| 78 | » public·long·b; | ||
| 79 | » public·float·c; | ||
| 80 | » public·A·(int·foo) | ||
| 81 | » { | ||
| 82 | » » b·=·(long)·c; | ||
| 83 | » » c·=·1; | ||
| 84 | » } | ||
| 85 | }</string> | 82 | }</string> |
| 86 | ····<string>//·CS0170:·Use·of·possibly·unassigned·field·`a' | 83 | ····<string>//·CS0170:·Use·of·possibly·unassigned·field·`a' |
| 87 | //·Line:·21 | 84 | //·Line:·21 |
| 88 | namespace·CS0170 | 85 | namespace·CS0170 |
| 89 | { | 86 | { |
| 90 | » public·struct·Foo·{ | 87 | » public·struct·Foo·{ |
| Offset 108, 28 lines modified | Offset 104, 32 lines modified | ||
| 108 | » » { | 104 | » » { |
| 109 | » » » Foo·f; | 105 | » » » Foo·f; |
| 110 | » » » Bar·b·=·new·Bar(); | 106 | » » » Bar·b·=·new·Bar(); |
| 111 | » » » b.Inc·(f.a); | 107 | » » » b.Inc·(f.a); |
| 112 | » » } | 108 | » » } |
| 113 | » } | 109 | » } |
| 114 | }</string> | 110 | }</string> |
| 115 | ····<string>//·CS0170:·Use·of·possibly·unassigned·field·` | 111 | ····<string>//·CS0170:·Use·of·possibly·unassigned·field·`c' |
| 116 | //·Line:· | 112 | //·Line:·21 |
| 117 | u | 113 | public·class·C |
| 114 | { | ||
| 115 | » public·int·v; | ||
| 116 | } | ||
| 118 | public·struct·S | 117 | public·struct·S |
| 119 | { | 118 | { |
| 120 | » public· | 119 | » public·int·a; |
| 120 | » public·C·c; | ||
| 121 | } | 121 | } |
| 122 | public·class·Test | 122 | public·class·Test |
| Max diff block lines reached; 143/2410 bytes (5.93%) of diff not shown. | |||
| Offset 1, 11 lines modified | Offset 1, 29 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0171</ErrorName> | 3 | ··<ErrorName>CS0171</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0171:·Field·`S1.s2'·must·be·fully·assigned·before·control·leaves·the·constructor | ||
| 6 | //·Line:·11 | ||
| 7 | using·System; | ||
| 8 | struct·S1 | ||
| 9 | { | ||
| 10 | » S2·s2; | ||
| 11 | » public·S1·(int·arg) | ||
| 12 | » { | ||
| 13 | » } | ||
| 14 | } | ||
| 15 | struct·S2 | ||
| 16 | { | ||
| 17 | » int·field; | ||
| 18 | }</string> | ||
| 5 | ····<string>//·CS0171:·Field·`S<TKey>.key'·must·be·fully·assigned·before·control·leaves·the·constructor | 19 | ····<string>//·CS0171:·Field·`S<TKey>.key'·must·be·fully·assigned·before·control·leaves·the·constructor |
| 6 | //·Line:·13 | 20 | //·Line:·13 |
| 7 | public·struct·S<TKey>·{ | 21 | public·struct·S<TKey>·{ |
| 8 | » internal·TKey·key; | 22 | » internal·TKey·key; |
| 9 | » public·TKey·Key·{ | 23 | » public·TKey·Key·{ |
| Offset 14, 55 lines modified | Offset 32, 31 lines modified | ||
| 14 | » } | 32 | » } |
| 15 | » » | 33 | » » |
| 16 | » public·S·(TKey·key) | 34 | » public·S·(TKey·key) |
| 17 | » { | 35 | » { |
| 18 | » » Key·=·key; | 36 | » » Key·=·key; |
| 19 | » } | 37 | » } |
| 20 | }</string> | 38 | }</string> |
| 21 | ····<string>//·CS0171:·Field·` | 39 | ····<string>//·CS0171:·Field·`Test.x'·must·be·fully·assigned·before·control·leaves·the·constructor |
| 22 | //·Line:· | ||
| 23 | struct·X·{ | ||
| 24 | » public·readonly·int·x; | ||
| 25 | » X·(int·a) | ||
| 26 | » { | ||
| 27 | » } | ||
| 28 | » static·void·Main·()·{} | ||
| 29 | }</string> | ||
| 30 | ····<string>//·CS0171:·Field·`S.ev'·must·be·fully·assigned·before·control·leaves·the·constructor | ||
| 31 | //·Line:·1 | 40 | //·Line:·10 |
| 32 | using·System; | ||
| 33 | struct· | 41 | public·struct·Test |
| 34 | { | 42 | { |
| 35 | » public·event·EventHandler·ev; | ||
| 36 | » | 43 | » internal·int·x; |
| 37 | » public· | 44 | » public·Test·(int·x) |
| 38 | » { | 45 | » { |
| 46 | » » X·=·x; | ||
| 39 | » } | 47 | » } |
| 40 | }</string> | ||
| 41 | ····<string>//·CS0171:·Field·`S1.s2'·must·be·fully·assigned·before·control·leaves·the·constructor | ||
| 42 | //·Line:·11 | ||
| 43 | using·System; | ||
| 44 | struct·S1 | ||
| 45 | { | ||
| 46 | » S2·s2; | ||
| 47 | » public· | 48 | » public·int·X |
| 48 | » { | 49 | » { |
| 50 | » » get·{·return·x;·} | ||
| 51 | » » set·{·x·=·value;·} | ||
| 49 | » } | 52 | » } |
| 50 | } | ||
| 51 | struct·S2 | ||
| 52 | { | ||
| 53 | » int·field; | ||
| 54 | }</string> | 53 | }</string> |
| 55 | ····<string>//·CS0171:·Field·`S.value'·must·be·fully·assigned·before·control·leaves·the·constructor | 54 | ····<string>//·CS0171:·Field·`S.value'·must·be·fully·assigned·before·control·leaves·the·constructor |
| 56 | //·Line:·10 | 55 | //·Line:·10 |
| 57 | using·System; | 56 | using·System; |
| 58 | struct·S | 57 | struct·S |
| Offset 96, 27 lines modified | Offset 90, 33 lines modified | ||
| 96 | » » v1·=·new·V·(); | 90 | » » v1·=·new·V·(); |
| 97 | » } | 91 | » } |
| 98 | » public·static·void·Main·() | 92 | » public·static·void·Main·() |
| 99 | » { | 93 | » { |
| 100 | » } | 94 | » } |
| 101 | }</string> | 95 | }</string> |
| 102 | ····<string>//·CS0171:·Field·` | 96 | ····<string>//·CS0171:·Field·`X.x'·must·be·fully·assigned·before·control·leaves·the·constructor |
| 103 | //·Line:· | 97 | //·Line:· |
| 98 | struct·X·{ | ||
| 99 | » public·readonly·int·x; | ||
| 104 | public·struct·Test | ||
| 105 | { | ||
| 106 | » internal·int·x; | ||
| 107 | » | 100 | » X·(int·a) |
| 108 | » { | 101 | » { |
| 109 | » » X·=·x; | ||
| 110 | » } | 102 | » } |
| 103 | » static·void·Main·()·{} | ||
| 104 | }</string> | ||
| 105 | ····<string>//·CS0171:·Field·`S.ev'·must·be·fully·assigned·before·control·leaves·the·constructor | ||
| 106 | //·Line:·12 | ||
| 107 | using·System; | ||
| 108 | struct·S | ||
| 109 | { | ||
| 110 | » public·event·EventHandler·ev; | ||
| 111 | » | ||
| 111 | » public·int· | 112 | » public·S·(int·i) |
| 112 | » { | 113 | » { |
| 113 | » » get·{·return·x;·} | ||
| 114 | » » set·{·x·=·value;·} | ||
| 115 | » } | 114 | » } |
| Max diff block lines reached; 38/2579 bytes (1.47%) of diff not shown. | |||
| Offset 1, 11 lines modified | Offset 1, 39 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0172</ErrorName> | 3 | ··<ErrorName>CS0172</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0172:·Type·of·conditional·expression·cannot·be·determined·as·`X'·and·`Y'·convert·implicitly·to·each·other | ||
| 6 | //·Line:·25 | ||
| 7 | class·X·{ | ||
| 8 | » public·static·implicit·operator·X·(Y·y) | ||
| 9 | » { | ||
| 10 | » » return·null; | ||
| 11 | » } | ||
| 12 | } | ||
| 13 | class·Y·{ | ||
| 14 | » public·static·implicit·operator·Y·(X·x) | ||
| 15 | » { | ||
| 16 | » » return·null; | ||
| 17 | » } | ||
| 18 | } | ||
| 19 | class·Z | ||
| 20 | { | ||
| 21 | » static·void·Main·() | ||
| 22 | » { | ||
| 23 | » » X·x·=·new·X·(); | ||
| 24 | » » Y·y·=·new·Y·(); | ||
| 25 | » » object·d·=·(x·==·x)·?·x·:·y; | ||
| 26 | » } | ||
| 27 | » | ||
| 28 | }</string> | ||
| 5 | ····<string>//·CS0172:·Type·of·conditional·expression·cannot·be·determined·as·`ClassA'·and·`ClassB'·convert·implicitly·to·each·other | 29 | ····<string>//·CS0172:·Type·of·conditional·expression·cannot·be·determined·as·`ClassA'·and·`ClassB'·convert·implicitly·to·each·other |
| 6 | //·Line:·29 | 30 | //·Line:·29 |
| 7 | class·ClassA·{ | 31 | class·ClassA·{ |
| 8 | ········public·static·implicit·operator·ClassB·(ClassA·value)·{ | 32 | ········public·static·implicit·operator·ClassB·(ClassA·value)·{ |
| 9 | ················return·null; | 33 | ················return·null; |
| 10 | ········} | 34 | ········} |
| Offset 29, 37 lines modified | Offset 57, 9 lines modified | ||
| 29 | ········public·static·void·Main()·{ | 57 | ········public·static·void·Main()·{ |
| 30 | ················ClassA·a·=·new·ClassA(); | 58 | ················ClassA·a·=·new·ClassA(); |
| 31 | ················ClassB·b·=·new·ClassB(); | 59 | ················ClassB·b·=·new·ClassB(); |
| 32 | ············ | 60 | ············ |
| 33 | ················System.Console.WriteLine(true·?·a·:·b); | 61 | ················System.Console.WriteLine(true·?·a·:·b); |
| 34 | ···} | 62 | ···} |
| 35 | }</string> | 63 | }</string> |
| 36 | ····<string>//·CS0172:·Type·of·conditional·expression·cannot·be·determined·as·`X'·and·`Y'·convert·implicitly·to·each·other | ||
| 37 | //·Line:·25 | ||
| 38 | class·X·{ | ||
| 39 | » public·static·implicit·operator·X·(Y·y) | ||
| 40 | » { | ||
| 41 | » » return·null; | ||
| 42 | » } | ||
| 43 | } | ||
| 44 | class·Y·{ | ||
| 45 | » public·static·implicit·operator·Y·(X·x) | ||
| 46 | » { | ||
| 47 | » » return·null; | ||
| 48 | » } | ||
| 49 | } | ||
| 50 | class·Z | ||
| 51 | { | ||
| 52 | » static·void·Main·() | ||
| 53 | » { | ||
| 54 | » » X·x·=·new·X·(); | ||
| 55 | » » Y·y·=·new·Y·(); | ||
| 56 | » » object·d·=·(x·==·x)·?·x·:·y; | ||
| 57 | » } | ||
| 58 | » | ||
| 59 | }</string> | ||
| 60 | ··</Examples> | 64 | ··</Examples> |
| 61 | </ErrorDocumentation> | 65 | </ErrorDocumentation> |
| Offset 1, 41 lines modified | Offset 1, 38 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0173</ErrorName> | 3 | ··<ErrorName>CS0173</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0173:·Type·of·conditional·expression·cannot·be·determined·because·there·is·no·implicit·conversion·between·` | 5 | ····<string>//·CS0173:·Type·of·conditional·expression·cannot·be·determined·because·there·is·no·implicit·conversion·between·`int'·and·`null' |
| 6 | //·Line:· | 6 | //·Line:·29 |
| 7 | using·System; | ||
| 7 | public·class·MainClass·{ | ||
| 8 | class·Test | ||
| 9 | { | ||
| 10 | 8 | ········public·static·void·Main()·{ | |
| 9 | ················bool·result·=·false; | ||
| 10 | ················System.Console.WriteLine·(result·?·1·:·null); | ||
| 11 | » { | ||
| 12 | » » bool·descending·=·false; | ||
| 13 | » » Comparison<int>·comp·=·descending·?·((e1,·e2)·=>·e2·<·e1)·:·((e1,·e2)·=>·e1·<·e2); | ||
| 14 | » } | 11 | » } |
| 15 | }</string> | 12 | }</string> |
| 16 | ····<string>//·CS0173:·Type·of·conditional·expression·cannot·be·determined·because·there·is·no·implicit·conversion·between·`null'·and·`null' | 13 | ····<string>//·CS0173:·Type·of·conditional·expression·cannot·be·determined·because·there·is·no·implicit·conversion·between·`null'·and·`null' |
| 17 | //·Line:·8 | 14 | //·Line:·8 |
| 18 | class·X | 15 | class·X |
| 19 | { | 16 | { |
| 20 | » static·void·Main·(string[]·args) | 17 | » static·void·Main·(string[]·args) |
| 21 | » { | 18 | » { |
| 22 | » » bool·b·=·args.Length·>·0·?·null·:·null; | 19 | » » bool·b·=·args.Length·>·0·?·null·:·null; |
| 23 | » } | 20 | » } |
| 24 | }</string> | 21 | }</string> |
| 25 | ····<string>//·CS0173:·Type·of·conditional·expression·cannot·be·determined·because·there·is·no·implicit·conversion·between·`i | 22 | ····<string>//·CS0173:·Type·of·conditional·expression·cannot·be·determined·because·there·is·no·implicit·conversion·between·`throw·expression'·and·`throw·expression' |
| 26 | //·Line:· | 23 | //·Line:·8 |
| 27 | public·class·MainClass·{ | ||
| 28 | ········public·static·void·Main()·{ | ||
| 29 | ················bool·result·=·false; | ||
| 30 | 24 | class·C | |
| 25 | { | ||
| 26 | » public·static·void·Test·(bool·b) | ||
| 27 | » { | ||
| 28 | » » var·s·=·b·?·throw·null·:·throw·null; | ||
| 31 | » } | 29 | » } |
| 32 | }</string> | 30 | }</string> |
| 33 | ····<string>//·CS0173:·Type·of·conditional·expression·cannot·be·determined·because·there·is·no·implicit·conversion·between·`null'·and·`null' | 31 | ····<string>//·CS0173:·Type·of·conditional·expression·cannot·be·determined·because·there·is·no·implicit·conversion·between·`null'·and·`null' |
| 34 | //·Line:·10 | 32 | //·Line:·10 |
| 35 | using·System; | 33 | using·System; |
| Offset 54, 19 lines modified | Offset 51, 22 lines modified | ||
| 54 | { | 51 | { |
| 55 | » static·void·Main·() | 52 | » static·void·Main·() |
| 56 | » { | 53 | » { |
| 57 | » » dynamic·d·=·null; | 54 | » » dynamic·d·=·null; |
| 58 | » » dynamic·t·=·true·?·d·:·Main·(); | 55 | » » dynamic·t·=·true·?·d·:·Main·(); |
| 59 | » } | 56 | » } |
| 60 | }</string> | 57 | }</string> |
| 61 | ····<string>//·CS0173:·Type·of·conditional·expression·cannot·be·determined·because·there·is·no·implicit·conversion·between·` | 58 | ····<string>//·CS0173:·Type·of·conditional·expression·cannot·be·determined·because·there·is·no·implicit·conversion·between·`anonymous·method'·and·`anonymous·method' |
| 62 | //·Line:· | 59 | //·Line:·11 |
| 63 | 60 | using·System; | |
| 61 | class·Test | ||
| 64 | { | 62 | { |
| 65 | » public·static·void· | 63 | » public·static·void·Main·() |
| 66 | » { | 64 | » { |
| 67 | » » | 65 | » » bool·descending·=·false; |
| 66 | » » Comparison<int>·comp·=·descending·?·((e1,·e2)·=>·e2·<·e1)·:·((e1,·e2)·=>·e1·<·e2); | ||
| 68 | » } | 67 | » } |
| 69 | }</string> | 68 | }</string> |
| 70 | ··</Examples> | 69 | ··</Examples> |
| 71 | </ErrorDocumentation> | 70 | </ErrorDocumentation> |
| Offset 1, 46 lines modified | Offset 1, 38 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0176</ErrorName> | 3 | ··<ErrorName>CS0176</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0176:·Static·member·` | 5 | ····<string>//·CS0176:·Static·member·`string.Empty'·cannot·be·accessed·with·an·instance·reference,·qualify·it·with·a·type·name·instead |
| 6 | //·Line:· | 6 | //·Line:·9 |
| 7 | using·System; | ||
| 8 | class· | 7 | class·X |
| 9 | { | 8 | { |
| 10 | » public·static·int·X·{·get·{·return·2;·}·} | ||
| 11 | } | ||
| 12 | class·T | ||
| 13 | » { | ||
| 14 | » static·void·Main·() | 9 | » public·static·void·Main·() |
| 15 | » { | 10 | » { |
| 16 | » » A·T·=·new·A·(); | ||
| 17 | » » | 11 | » » string·y·=·null; |
| 12 | » » var·x·=·y?.Empty; | ||
| 18 | » } | 13 | » } |
| 19 | }</string> | 14 | }</string> |
| 20 | ····<string>//·CS0176:·Static·member·` | 15 | ····<string>//·CS0176:·Static·member·`X.void_method()'·cannot·be·accessed·with·an·instance·reference,·qualify·it·with·a·type·name·instead |
| 21 | //·Line:·1 | 16 | //·Line:·15 |
| 17 | class·X·{ | ||
| 18 | » public·static·void·void_method·() | ||
| 19 | » { | ||
| 20 | » } | ||
| 21 | » public·void·void_method·(int·i) | ||
| 22 | » { | ||
| 23 | » } | ||
| 22 | using·System; | ||
| 23 | class·TestIt· | ||
| 24 | { | ||
| 25 | ········public·static·void·Main()· | ||
| 26 | ········{ | ||
| 27 | ················MyClass·p·=·new·MyClass(); | ||
| 28 | ················p.Start·("hi"); | ||
| 29 | ········} | ||
| 30 | } | 24 | } |
| 31 | class·MyClass | ||
| 32 | { | ||
| 33 | ········public·static·void·Start·(string·info)· | ||
| 34 | ········{ | ||
| 35 | 25 | class·Y·{ | |
| 26 | » void·m·(X·arg) | ||
| 27 | » { | ||
| 28 | » » arg.void_method·(); | ||
| 29 | » } | ||
| 36 | }</string> | 30 | }</string> |
| 37 | ····<string>//·CS0176:·Static·member·`A.X'·cannot·be·accessed·with·an·instance·reference,·qualify·it·with·a·type·name·instead | 31 | ····<string>//·CS0176:·Static·member·`A.X'·cannot·be·accessed·with·an·instance·reference,·qualify·it·with·a·type·name·instead |
| 38 | //·Line:·12 | 32 | //·Line:·12 |
| 39 | using·System; | 33 | using·System; |
| 40 | class·A·{ | 34 | class·A·{ |
| 41 | » public·static·int·X; | 35 | » public·static·int·X; |
| Offset 48, 73 lines modified | Offset 40, 63 lines modified | ||
| 48 | class·T·{ | 40 | class·T·{ |
| 49 | » static·void·Main·()·{ | 41 | » static·void·Main·()·{ |
| 50 | » » A·T·=·new·A·(); | 42 | » » A·T·=·new·A·(); |
| 51 | » » System.Console.WriteLine·(T.X); | 43 | » » System.Console.WriteLine·(T.X); |
| 52 | » } | 44 | » } |
| 53 | }</string> | 45 | }</string> |
| 46 | ····<string>//·CS0176:·Static·member·`A.X'·cannot·be·accessed·with·an·instance·reference,·qualify·it·with·a·type·name·instead | ||
| 47 | //·Line:·12 | ||
| 48 | using·System; | ||
| 49 | class·A | ||
| 50 | { | ||
| 51 | » public·static·int·X·{·get·{·return·2;·}·} | ||
| 52 | } | ||
| 53 | class·T | ||
| 54 | » { | ||
| 55 | » static·void·Main·() | ||
| 56 | » { | ||
| 57 | » » A·T·=·new·A·(); | ||
| 58 | » » System.Console.WriteLine·(T.X); | ||
| 59 | » } | ||
| 60 | }</string> | ||
| 54 | ····<string>//·CS0176:·Static·member·`X.CONST'·cannot·be·accessed·with·an·instance·reference,·qualify·it·with·a·type·name·instead | 61 | ····<string>//·CS0176:·Static·member·`X.CONST'·cannot·be·accessed·with·an·instance·reference,·qualify·it·with·a·type·name·instead |
| 55 | //·Line:·12 | 62 | //·Line:·12 |
| 56 | public·class·X·{ | 63 | public·class·X·{ |
| 57 | » public·const·double·CONST·=·1; | 64 | » public·const·double·CONST·=·1; |
| 58 | } | 65 | } |
| 59 | public·class·Y:·X·{ | 66 | public·class·Y:·X·{ |
| 60 | » void·D·(X·x) | 67 | » void·D·(X·x) |
| 61 | » { | 68 | » { |
| 62 | » » double·d·=·x.CONST; | 69 | » » double·d·=·x.CONST; |
| 63 | » } | 70 | » } |
| 64 | }</string> | 71 | }</string> |
| 65 | ····<string>//·CS0176:·Static·member·`My | 72 | ····<string>//·CS0176:·Static·member·`MyClass.Start(string)'·cannot·be·accessed·with·an·instance·reference,·qualify·it·with·a·type·name·instead |
| 66 | //·Line:·1 | 73 | //·Line:·10 |
| 74 | using·System; | ||
| 67 | public·enum·MyEnum | ||
| 68 | { | ||
| 69 | » Foo·=·1 | ||
| 70 | } | ||
| 71 | 75 | class·TestIt· | |
| 72 | { | 76 | { |
| 77 | ········public·static·void·Main()· | ||
| 78 | ········{ | ||
| 79 | ················MyClass·p·=·new·MyClass(); | ||
| 80 | ················p.Start·("hi"); | ||
| 81 | ········} | ||
| 73 | » static·void·Main·() | ||
| 74 | » { | ||
| 75 | » » MyEnum·theEnum·=·MyEnum.Foo; | ||
| 76 | » » if·(theEnum·==·theEnum.Foo) | ||
| 77 | » » { | ||
| 78 | » » } | ||
| 79 | » } | ||
| 80 | }</string> | ||
| 81 | ····<string>//·CS0176:·Static·member·`X.void_method()'·cannot·be·accessed·with·an·instance·reference,·qualify·it·with·a·type·name·instead | ||
| 82 | //·Line:·15 | ||
| 83 | class·X·{ | ||
| 84 | » public·static·void·void_method·() | ||
| 85 | » { | ||
| 86 | » } | ||
| Max diff block lines reached; 1063/4412 bytes (24.09%) of diff not shown. | |||
| Offset 1, 43 lines modified | Offset 1, 56 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0177</ErrorName> | 3 | ··<ErrorName>CS0177</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0177:·The·out·parameter·` | 5 | ····<string>//·CS0177:·The·out·parameter·`a'·must·be·assigned·to·before·control·leaves·the·current·method |
| 6 | //·Line:· | 6 | //·Line:·21 |
| 7 | 7 | using·System; | |
| 8 | class·OutputParam | ||
| 8 | { | 9 | { |
| 9 | 10 | ····public·static·void·Main(string[]·args) | |
| 11 | ····{ | ||
| 12 | » ·int·a; | ||
| 13 | » ·Method(out·a); | ||
| 14 | » ·Console.WriteLine(a); | ||
| 15 | ····} | ||
| 16 | ····public·static·void·Method(out·int·a) | ||
| 17 | ····{ | ||
| 18 | » int·b; | ||
| 19 | » try·{ | ||
| 20 | » ····b·=·5; | ||
| 21 | » }·catch·(Exception)·{·return;·} | ||
| 22 | » a·=·b; | ||
| 23 | ····} | ||
| 24 | }</string> | ||
| 25 | ····<string>//·CS0177:·The·out·parameter·`val'·must·be·assigned·to·before·control·leaves·the·current·method | ||
| 26 | //·Line:·12 | ||
| 27 | public·class·A | ||
| 28 | { | ||
| 29 | » public·bool·GetValue·(out·int·val) | ||
| 10 | » { | 30 | » { |
| 11 | » » if·(cond) | ||
| 12 | » » { | ||
| 13 | » » » goto·Label2; | ||
| 14 | » » } | ||
| 15 | » » else | ||
| 16 | » » { | ||
| 17 | » » » goto·Label; | ||
| 18 | » » } | ||
| 19 | » » Label: | ||
| 20 | » » | 31 | » » val·=·0; |
| 21 | » » Label2: | ||
| 22 | » » return; | 32 | » » return·true; |
| 23 | » } | 33 | » } |
| 24 | }</string> | ||
| 25 | ····<string>//·CS0177:·The·out·parameter·`f'·must·be·assigned·to·before·control·leaves·the·current·method | ||
| 26 | //·Line:·5 | ||
| 34 | » public·void·ReallyGetValue·(out·int·val) | ||
| 27 | class·ClassMain·{ | ||
| 28 | » public·static·void·test2·(int·a,·out·float·f) | ||
| 29 | » { | 35 | » { |
| 30 | » » //·CS0177 | ||
| 31 | » » if·(a·==·5) | ||
| 32 | » » | 36 | » » if·(AlwaysReturnTrue·()·||·GetValue·(out·val))·{ |
| 37 | » » } | ||
| 38 | » } | ||
| 33 | » | 39 | » public·bool·AlwaysReturnTrue·() |
| 40 | » { | ||
| 41 | » » return·true; | ||
| 34 | » } | 42 | » } |
| 35 | }</string> | 43 | }</string> |
| 36 | ····<string>//·CS0177:·The·out·parameter·`f'·must·be·assigned·to·before·control·leaves·the·current·method | 44 | ····<string>//·CS0177:·The·out·parameter·`f'·must·be·assigned·to·before·control·leaves·the·current·method |
| 37 | //·Line:·5 | 45 | //·Line:·5 |
| 38 | class·C·{ | 46 | class·C·{ |
| 39 | » public·static·void·test3·(out·float·f) | 47 | » public·static·void·test3·(out·float·f) |
| Offset 45, 14 lines modified | Offset 58, 54 lines modified | ||
| 45 | » » try·{ | 58 | » » try·{ |
| 46 | » » » f·=·8.53F; | 59 | » » » f·=·8.53F; |
| 47 | » » }·catch·{ | 60 | » » }·catch·{ |
| 48 | » » » return; | 61 | » » » return; |
| 49 | » » } | 62 | » » } |
| 50 | » } | 63 | » } |
| 51 | }</string> | 64 | }</string> |
| 65 | ····<string>//·CS0177:·The·out·parameter·`o'·must·be·assigned·to·before·control·leaves·the·current·method | ||
| 66 | //·Line:·4 | ||
| 67 | //·Compiler·options:·-langversion:experimental | ||
| 68 | class·Test(out·int·o)· | ||
| 69 | { | ||
| 70 | }</string> | ||
| 71 | ····<string>//·CS0177:·The·out·parameter·`output'·must·be·assigned·to·before·control·leaves·the·current·method | ||
| 72 | //·Line:·10 | ||
| 73 | class·Test | ||
| 74 | { | ||
| 75 | » delegate·T·Creator<T>·(); | ||
| 76 | » static·bool·TryAction<T>·(Creator<T>·creator,·out·T·output)·where·T·:·struct | ||
| 77 | » { | ||
| 78 | » » return·false; | ||
| 79 | » } | ||
| 80 | }</string> | ||
| 81 | ····<string>//·CS0177:·The·out·parameter·`x'·must·be·assigned·to·before·control·leaves·the·current·method | ||
| 82 | //·Line:·6 | ||
| 83 | public·class·GotoWithOut | ||
| 84 | { | ||
| 85 | » public·static·void·Test·(bool·cond,·out·int·x) | ||
| 86 | » { | ||
| 87 | » » if·(cond) | ||
| 88 | » » { | ||
| 89 | » » » goto·Label2; | ||
| 90 | » » } | ||
| 91 | » » else | ||
| 92 | » » { | ||
| 93 | » » » goto·Label; | ||
| 94 | » » } | ||
| 95 | » » Label: | ||
| 96 | » » x·=·0; | ||
| 97 | » » Label2: | ||
| 98 | » » return; | ||
| 99 | » } | ||
| 100 | }</string> | ||
| 52 | ····<string>//·CS0177:·The·out·parameter·`arg'·must·be·assigned·to·before·control·leaves·the·current·method | 101 | ····<string>//·CS0177:·The·out·parameter·`arg'·must·be·assigned·to·before·control·leaves·the·current·method |
| 53 | //·Line:·12 | 102 | //·Line:·12 |
| 54 | class·C | 103 | class·C |
| 55 | { | 104 | { |
| 56 | » delegate·void·D·(string·s,·out·int·arg); | 105 | » delegate·void·D·(string·s,·out·int·arg); |
| Max diff block lines reached; 4438/7336 bytes (60.50%) of diff not shown. | |||
| Offset 1, 11 lines modified | Offset 1, 20 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0179</ErrorName> | 3 | ··<ErrorName>CS0179</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0179:·`Bar.Foo.set'·cannot·declare·a·body·because·it·is·marked·extern | ||
| 6 | //·Line:·5 | ||
| 7 | class·Bar·{ | ||
| 8 | » extern·int·Foo·{ | ||
| 9 | » » set·{·} | ||
| 10 | » » get·{·} | ||
| 11 | » } | ||
| 12 | }</string> | ||
| 5 | ····<string>//·CS0179:·`Bar.OnFoo.add'·cannot·declare·a·body·because·it·is·marked·extern | 13 | ····<string>//·CS0179:·`Bar.OnFoo.add'·cannot·declare·a·body·because·it·is·marked·extern |
| 6 | //·Line:·9 | 14 | //·Line:·9 |
| 7 | using·System; | 15 | using·System; |
| 8 | public·delegate·void·FooHandler·(); | 16 | public·delegate·void·FooHandler·(); |
| Offset 24, 18 lines modified | Offset 33, 9 lines modified | ||
| 24 | » » { | 33 | » » { |
| 25 | » » } | 34 | » » } |
| 26 | » | 35 | » |
| 27 | » public·static·void·Main·() | 36 | » public·static·void·Main·() |
| 28 | » » { | 37 | » » { |
| 29 | » » } | 38 | » » } |
| 30 | }</string> | 39 | }</string> |
| 31 | ····<string>//·CS0179:·`Bar.Foo.set'·cannot·declare·a·body·because·it·is·marked·extern | ||
| 32 | //·Line:·5 | ||
| 33 | class·Bar·{ | ||
| 34 | » extern·int·Foo·{ | ||
| 35 | » » set·{·} | ||
| 36 | » » get·{·} | ||
| 37 | » } | ||
| 38 | }</string> | ||
| 39 | ··</Examples> | 40 | ··</Examples> |
| 40 | </ErrorDocumentation> | 41 | </ErrorDocumentation> |
| Offset 1, 31 lines modified | Offset 1, 26 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0181</ErrorName> | 3 | ··<ErrorName>CS0181</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0181:·Attribute·constructor·parameter·has·type·`System. | 5 | ····<string>//·CS0181:·Attribute·constructor·parameter·has·type·`System.Attribute',·which·is·not·a·valid·attribute·parameter·type |
| 6 | //·Line:· | 6 | //·Line:·6 |
| 7 | using·System; | 7 | using·System; |
| 8 | [BAttribute·(null)] | ||
| 8 | enum·E | ||
| 9 | {· | ||
| 10 | » Value | ||
| 11 | } | ||
| 12 | class· | 9 | public·class·BAttribute·:·Attribute |
| 13 | {· | ||
| 14 | 10 | { | |
| 11 | » public·BAttribute·(Attribute·a) | ||
| 12 | » { | ||
| 13 | » } | ||
| 14 | » | ||
| 15 | » public·static·void·Main·() | ||
| 15 | » { | 16 | » { |
| 16 | » } | 17 | » } |
| 17 | } | ||
| 18 | [A·(E.Value)] | ||
| 19 | class·Test | ||
| 20 | { | ||
| 21 | }</string> | 18 | }</string> |
| 22 | ····<string>//·CS0181:·Attribute·constructor·parameter·has·type·`int[][]',·which·is·not·a·valid·attribute·parameter·type | 19 | ····<string>//·CS0181:·Attribute·constructor·parameter·has·type·`int[][]',·which·is·not·a·valid·attribute·parameter·type |
| 23 | //·Line:·13 | 20 | //·Line:·13 |
| 24 | using·System; | 21 | using·System; |
| 25 | class·TestAttribute:·Attribute | 22 | class·TestAttribute:·Attribute |
| Offset 37, 30 lines modified | Offset 32, 14 lines modified | ||
| 37 | { | 32 | { |
| 38 | » [Test·(null)] | 33 | » [Test·(null)] |
| 39 | » public·static·void·Main·() | 34 | » public·static·void·Main·() |
| 40 | » { | 35 | » { |
| 41 | » » System.Reflection.MethodBase.GetCurrentMethod().GetCustomAttributes·(true); | 36 | » » System.Reflection.MethodBase.GetCurrentMethod().GetCustomAttributes·(true); |
| 42 | » } | 37 | » } |
| 43 | }</string> | 38 | }</string> |
| 44 | ····<string>//·CS0181:·Attribute·constructor·parameter·has·type·`System.Attribute',·which·is·not·a·valid·attribute·parameter·type | ||
| 45 | //·Line:·6 | ||
| 46 | using·System; | ||
| 47 | [BAttribute·(null)] | ||
| 48 | public·class·BAttribute·:·Attribute | ||
| 49 | { | ||
| 50 | » public·BAttribute·(Attribute·a) | ||
| 51 | » { | ||
| 52 | » } | ||
| 53 | » | ||
| 54 | » public·static·void·Main·() | ||
| 55 | » { | ||
| 56 | » } | ||
| 57 | }</string> | ||
| 58 | ····<string>//·CS0181:·Attribute·constructor·parameter·has·type·`int[,]',·which·is·not·a·valid·attribute·parameter·type | 39 | ····<string>//·CS0181:·Attribute·constructor·parameter·has·type·`int[,]',·which·is·not·a·valid·attribute·parameter·type |
| 59 | //·Line:·13 | 40 | //·Line:·13 |
| 60 | using·System; | 41 | using·System; |
| 61 | class·TestAttribute:·Attribute | 42 | class·TestAttribute:·Attribute |
| 62 | { | 43 | { |
| Offset 68, 9 lines modified | Offset 47, 30 lines modified | ||
| 68 | } | 47 | } |
| 69 | public·class·E | 48 | public·class·E |
| 70 | { | 49 | { |
| 71 | ····[Test·(null)] | 50 | ····[Test·(null)] |
| 72 | ····public·void·Method·()·{} | 51 | ····public·void·Method·()·{} |
| 73 | }</string> | 52 | }</string> |
| 53 | ····<string>//·CS0181:·Attribute·constructor·parameter·has·type·`System.Enum',·which·is·not·a·valid·attribute·parameter·type | ||
| 54 | //·Line:·18 | ||
| 55 | using·System; | ||
| 56 | enum·E | ||
| 57 | {· | ||
| 58 | » Value | ||
| 59 | } | ||
| 60 | class·AAttribute·:·Attribute | ||
| 61 | {· | ||
| 62 | » public·AAttribute·(Enum·e) | ||
| 63 | » { | ||
| 64 | » } | ||
| 65 | } | ||
| 66 | [A·(E.Value)] | ||
| 67 | class·Test | ||
| 68 | { | ||
| 69 | }</string> | ||
| 74 | ··</Examples> | 70 | ··</Examples> |
| 75 | </ErrorDocumentation> | 71 | </ErrorDocumentation> |
| Offset 1, 30 lines modified | Offset 1, 46 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0182</ErrorName> | 3 | ··<ErrorName>CS0182</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0182:·An·attribute·argument·must·be·a·constant·expression,·typeof·expression·or·array·creation·expression | 5 | ····<string>//·CS0182:·An·attribute·argument·must·be·a·constant·expression,·typeof·expression·or·array·creation·expression |
| 6 | //·Line:·4 | 6 | //·Line:·14 |
| 7 | using·System; | ||
| 8 | using·System.Reflection; | ||
| 9 | [AttributeUsage·(AttributeTargets.All)] | ||
| 10 | public·class·MineAttribute·:·Attribute·{ | ||
| 7 | [A·(false·?·new·object·()·:·null)] | ||
| 8 | class·AAttribute·:·System.Attribute | ||
| 9 | { | ||
| 10 | » public· | 11 | » public·MineAttribute·(object·t) |
| 11 | » { | 12 | » { |
| 12 | » } | 13 | » } |
| 14 | } | ||
| 15 | [Mine(new·Type·[2,2])] | ||
| 16 | public·class·Foo·{» | ||
| 17 | » public·static·int·Main·() | ||
| 18 | » { | ||
| 19 | » » return·0; | ||
| 20 | » } | ||
| 13 | }</string> | 21 | }</string> |
| 14 | ····<string>//·CS0182:·An·attribute·argument·must·be·a·constant·expression,·typeof·expression·or·array·creation·expression | 22 | ····<string>//·CS0182:·An·attribute·argument·must·be·a·constant·expression,·typeof·expression·or·array·creation·expression |
| 15 | //·Line:· | 23 | //·Line:·13 |
| 16 | [A·(true·is·bool)] | ||
| 17 | class·AAttribute·:·System.Attribute | ||
| 18 | { | ||
| 19 | 24 | using·System; | |
| 25 | [AttributeUsage·(AttributeTargets.All)] | ||
| 26 | public·class·MineAttribute·:·Attribute·{ | ||
| 27 | » public·MineAttribute·(Type·[]·t) | ||
| 20 | » { | 28 | » { |
| 21 | » } | 29 | » } |
| 30 | } | ||
| 31 | [Mine(new·Type·[(ulong)·3])] | ||
| 32 | public·class·Foo | ||
| 33 | { | ||
| 22 | }</string> | 34 | }</string> |
| 23 | ····<string>//·CS0182:·An·attribute·argument·must·be·a·constant·expression,·typeof·expression·or·array·creation·expression | 35 | ····<string>//·CS0182:·An·attribute·argument·must·be·a·constant·expression,·typeof·expression·or·array·creation·expression |
| 24 | //·Line:·13 | 36 | //·Line:·13 |
| 25 | using·System; | 37 | using·System; |
| 26 | class·TestAttribute:·Attribute | 38 | class·TestAttribute:·Attribute |
| Offset 43, 39 lines modified | Offset 59, 21 lines modified | ||
| 43 | ····<string>//·CS0182:·An·attribute·argument·must·be·a·constant·expression,·typeof·expression·or·array·creation·expression | 59 | ····<string>//·CS0182:·An·attribute·argument·must·be·a·constant·expression,·typeof·expression·or·array·creation·expression |
| 44 | //·Line:·6 | 60 | //·Line:·6 |
| 45 | using·System.Reflection; | 61 | using·System.Reflection; |
| 46 | [assembly:·AssemblyKeyFile(string.Empty)]</string> | 62 | [assembly:·AssemblyKeyFile(string.Empty)]</string> |
| 47 | ····<string>//·CS0182:·An·attribute·argument·must·be·a·constant·expression,·typeof·expression·or·array·creation·expression | 63 | ····<string>//·CS0182:·An·attribute·argument·must·be·a·constant·expression,·typeof·expression·or·array·creation·expression |
| 48 | //·Line:·13 | ||
| 49 | using·System; | ||
| 50 | [AttributeUsage·(AttributeTargets.All)] | ||
| 51 | public·class·MineAttribute·:·Attribute·{ | ||
| 52 | » public·MineAttribute·(Type·[]·t) | ||
| 53 | » { | ||
| 54 | » } | ||
| 55 | } | ||
| 56 | [Mine(new·Type·[(ulong)·3])] | ||
| 57 | public·class·Foo | ||
| 58 | { | ||
| 59 | }</string> | ||
| 60 | ····<string>//·CS0182:·An·attribute·argument·must·be·a·constant·expression,·typeof·expression·or·array·creation·expression | ||
| 61 | //·Line:· | 64 | //·Line:·4 |
| 62 | using·System.Runtime.CompilerServices; | ||
| 63 | 65 | [A·(false·?·new·object·()·:·null)] | |
| 66 | class·AAttribute·:·System.Attribute | ||
| 64 | { | 67 | { |
| 68 | » public·AAttribute·(object·value) | ||
| 69 | » { | ||
| 65 | » [IndexerName·("1"·+·2)] | ||
| 66 | » public·string·this·[int·i]·{ | ||
| 67 | » » set·{·} | ||
| 68 | » } | 70 | » } |
| 69 | }</string> | 71 | }</string> |
| 70 | ····<string>//·CS0182:·An·attribute·argument·must·be·a·constant·expression,·typeof·expression·or·array·creation·expression | 72 | ····<string>//·CS0182:·An·attribute·argument·must·be·a·constant·expression,·typeof·expression·or·array·creation·expression |
| 71 | //·Line:·10 | 73 | //·Line:·10 |
| 72 | using·System.Runtime.InteropServices; | 74 | using·System.Runtime.InteropServices; |
| Offset 91, 67 lines modified | Offset 89, 59 lines modified | ||
| 91 | using·System.Runtime.InteropServices; | 89 | using·System.Runtime.InteropServices; |
| 92 | class·X·{ | 90 | class·X·{ |
| 93 | » [DllImport·("1"·+·9)] | 91 | » [DllImport·("1"·+·9)] |
| 94 | » extern·static·void·Blah·(); | 92 | » extern·static·void·Blah·(); |
| 95 | }</string> | 93 | }</string> |
| 96 | ····<string>//·CS0182:·An·attribute·argument·must·be·a·constant·expression,·typeof·expression·or·array·creation·expression | 94 | ····<string>//·CS0182:·An·attribute·argument·must·be·a·constant·expression,·typeof·expression·or·array·creation·expression |
| 97 | //·Line:· | 95 | //·Line:·8 |
| 98 | using·System; | ||
| 99 | class·MyAttribute·:·Attribute·{ | ||
| 100 | » public·MyAttribute·(string·s) | ||
| 101 | » { | ||
| 102 | » } | ||
| 103 | } | ||
| 96 | using·System.Runtime.CompilerServices; | ||
| 104 | [My·(null·as·string)] | ||
| 105 | class·X·{ | ||
| 106 | » static·void·Main·() | ||
| 107 | 97 | public·class·C | |
| 98 | { | ||
| 99 | » [IndexerName·("1"·+·2)] | ||
| 100 | » public·string·this·[int·i]·{ | ||
| 101 | » » set·{·} | ||
| 108 | » } | 102 | » } |
| 109 | }</string> | 103 | }</string> |
| 110 | ····<string>//·CS0182:·An·attribute·argument·must·be·a·constant·expression,·typeof·expression·or·array·creation·expression | 104 | ····<string>//·CS0182:·An·attribute·argument·must·be·a·constant·expression,·typeof·expression·or·array·creation·expression |
| Max diff block lines reached; 1417/4756 bytes (29.79%) of diff not shown. | |||
| Offset 1, 11 lines modified | Offset 1, 51 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0183</ErrorName> | 3 | ··<ErrorName>CS0183</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0183:·The·given·expression·is·always·of·the·provided·(`object')·type | ||
| 6 | //·Line:·10 | ||
| 7 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| 8 | class·X | ||
| 9 | { | ||
| 10 | » public·void·Foo·() | ||
| 11 | » { | ||
| 12 | » » int·x·=·1; | ||
| 13 | » » if·(x·is·object)·{ | ||
| 14 | » » } | ||
| 15 | » } | ||
| 16 | }</string> | ||
| 17 | ····<string>//·CS0183:·The·given·expression·is·always·of·the·provided·(`int')·type | ||
| 18 | //·Line: | ||
| 19 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| 20 | class·X·{ | ||
| 21 | » static·void·Main·() | ||
| 22 | » { | ||
| 23 | » » int·i·=·5; | ||
| 24 | » » if·(i·is·int){ | ||
| 25 | » » } | ||
| 26 | » } | ||
| 27 | }</string> | ||
| 28 | ····<string>//·CS0183:·The·given·expression·is·always·of·the·provided·(`int?')·type | ||
| 29 | //·Line:·10 | ||
| 30 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| 31 | class·X | ||
| 32 | { | ||
| 33 | » public·void·Foo·() | ||
| 34 | » { | ||
| 35 | » » int?·x·=·null; | ||
| 36 | » » if·(x·is·int?)·{ | ||
| 37 | » » } | ||
| 38 | » } | ||
| 39 | }</string> | ||
| 5 | ····<string>//·CS0183:·The·given·expression·is·always·of·the·provided·(`System.Enum')·type | 40 | ····<string>//·CS0183:·The·given·expression·is·always·of·the·provided·(`System.Enum')·type |
| 6 | //·Line:·13 | 41 | //·Line:·13 |
| 7 | //·Compiler·options:·-warnaserror | 42 | //·Compiler·options:·-warnaserror |
| 8 | using·System; | 43 | using·System; |
| 9 | enum·E·{·Item·}; | 44 | enum·E·{·Item·}; |
| Offset 25, 27 lines modified | Offset 65, 14 lines modified | ||
| 25 | { | 65 | { |
| 26 | » static·bool·Foo<T>·()·where·T·:·struct | 66 | » static·bool·Foo<T>·()·where·T·:·struct |
| 27 | » { | 67 | » { |
| 28 | » » T·o·=·default·(T); | 68 | » » T·o·=·default·(T); |
| 29 | » » return·o·is·T; | 69 | » » return·o·is·T; |
| 30 | » } | 70 | » } |
| 31 | }</string> | 71 | }</string> |
| 32 | ····<string>//·CS0183:·The·given·expression·is·always·of·the·provided·(`object')·type | ||
| 33 | //·Line:·10 | ||
| 34 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| 35 | class·X | ||
| 36 | { | ||
| 37 | » public·void·Foo·() | ||
| 38 | » { | ||
| 39 | » » int·x·=·1; | ||
| 40 | » » if·(x·is·object)·{ | ||
| 41 | » » } | ||
| 42 | » } | ||
| 43 | }</string> | ||
| 44 | ····<string>//·CS0183:·The·given·expression·is·always·of·the·provided·(`U')·type | 72 | ····<string>//·CS0183:·The·given·expression·is·always·of·the·provided·(`U')·type |
| 45 | //·Line:·14 | 73 | //·Line:·14 |
| 46 | //·Compiler·options:·-warnaserror | 74 | //·Compiler·options:·-warnaserror |
| 47 | abstract·class·A<T> | 75 | abstract·class·A<T> |
| 48 | { | 76 | { |
| 49 | » public·abstract·bool·Foo<U>·(U·arg)·where·U·:·T; | 77 | » public·abstract·bool·Foo<U>·(U·arg)·where·U·:·T; |
| Offset 54, 36 lines modified | Offset 81, 9 lines modified | ||
| 54 | class·B·:·A<int> | 81 | class·B·:·A<int> |
| 55 | { | 82 | { |
| 56 | » public·override·bool·Foo<U>·(U·arg) | 83 | » public·override·bool·Foo<U>·(U·arg) |
| 57 | » { | 84 | » { |
| 58 | » » return·arg·is·U; | 85 | » » return·arg·is·U; |
| 59 | » } | 86 | » } |
| 60 | }</string> | 87 | }</string> |
| 61 | ····<string>//·CS0183:·The·given·expression·is·always·of·the·provided·(`int')·type | ||
| 62 | //·Line: | ||
| 63 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| 64 | class·X·{ | ||
| 65 | » static·void·Main·() | ||
| 66 | » { | ||
| 67 | » » int·i·=·5; | ||
| 68 | » » if·(i·is·int){ | ||
| 69 | » » } | ||
| 70 | » } | ||
| 71 | }</string> | ||
| 72 | ····<string>//·CS0183:·The·given·expression·is·always·of·the·provided·(`int?')·type | ||
| 73 | //·Line:·10 | ||
| 74 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| 75 | class·X | ||
| 76 | { | ||
| 77 | » public·void·Foo·() | ||
| 78 | » { | ||
| 79 | » » int?·x·=·null; | ||
| 80 | » » if·(x·is·int?)·{ | ||
| 81 | » » } | ||
| 82 | » } | ||
| 83 | }</string> | ||
| 84 | ··</Examples> | 88 | ··</Examples> |
| 85 | </ErrorDocumentation> | 89 | </ErrorDocumentation> |
| Offset 1, 142 lines modified | Offset 1, 142 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0184</ErrorName> | 3 | ··<ErrorName>CS0184</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0184:·The·given·expression·is·never·of·the·provided·(` | 5 | ····<string>//·CS0184:·The·given·expression·is·never·of·the·provided·(`B')·type |
| 6 | //·Line: | 6 | //·Line:·9 |
| 7 | //·Compiler·options:·-warnaserror·-warn:1 | 7 | //·Compiler·options:·-warnaserror·-warn:1 |
| 8 | class· | 8 | class·B |
| 9 | { | ||
| 9 | » static·void· | 10 | » static·void·Foo·() |
| 10 | » { | 11 | » { |
| 11 | » » int·a·=·1; | ||
| 12 | » » | ||
| 13 | » » if·( | 12 | » » if·(1·is·B)·{ |
| 14 | » » } | 13 | » » } |
| 15 | » } | 14 | » } |
| 16 | }</string> | 15 | }</string> |
| 17 | ····<string>//·CS0184:·The·given·expression·is·never·of·the·provided·(` | 16 | ····<string>//·CS0184:·The·given·expression·is·never·of·the·provided·(`int')·type |
| 18 | //·Line:·1 | 17 | //·Line:·10 |
| 19 | //·Compiler·options:·-warnaserror·-warn:1 | 18 | //·Compiler·options:·-warnaserror·-warn:1 |
| 20 | 19 | class·X | |
| 21 | { | 20 | { |
| 21 | » public·void·Foo<T>·()·where·T·:·class | ||
| 22 | » static·void·Foo·() | ||
| 23 | » { | ||
| 24 | » } | ||
| 25 | » | ||
| 26 | » public·static·void·Main() | ||
| 27 | » { | 22 | » { |
| 28 | » » | 23 | » » T·t·=·default·(T); |
| 24 | » » if·(t·is·int)·{ | ||
| 25 | » » } | ||
| 29 | » } | 26 | » } |
| 30 | }</string> | 27 | }</string> |
| 31 | ····<string>//·CS0184:·The·given·expression·is·never·of·the·provided·(`bool')·type | 28 | ····<string>//·CS0184:·The·given·expression·is·never·of·the·provided·(`bool?')·type |
| 32 | //·Line:·13 | 29 | //·Line:·13 |
| 33 | //·Compiler·options:·-warnaserror·-warn:1 | 30 | //·Compiler·options:·-warnaserror·-warn:1 |
| 34 | using·System; | 31 | using·System; |
| 35 | class·X | 32 | class·X |
| 36 | { | 33 | { |
| 37 | » void·Foo·() | 34 | » void·Foo·() |
| 38 | » { | 35 | » { |
| 39 | » » int?·i·=·null; | 36 | » » int?·i·=·null; |
| 40 | » » | 37 | » » |
| 41 | » » if·(i·is·bool)·{ | 38 | » » if·(i·is·bool?)·{ |
| 42 | » » } | 39 | » » } |
| 43 | » } | 40 | » } |
| 44 | }</string> | 41 | }</string> |
| 45 | ····<string>//·CS0184:·The·given·expression·is·never·of·the·provided·(` | 42 | ····<string>//·CS0184:·The·given·expression·is·never·of·the·provided·(`byte')·type |
| 46 | //·Line: | 43 | //·Line: |
| 47 | //·Compiler·options:·-warnaserror·-warn:1 | 44 | //·Compiler·options:·-warnaserror·-warn:1 |
| 48 | class·X<T>·where·T·:·class | ||
| 49 | { | 45 | class·X·{ |
| 50 | » static·void· | 46 | » static·void·Main·() |
| 51 | » { | 47 | » { |
| 48 | » » int·a·=·1; | ||
| 49 | » » | ||
| 52 | » » if·( | 50 | » » if·(a·is·byte){ |
| 53 | » » } | 51 | » » } |
| 54 | » } | 52 | » } |
| 55 | }</string> | 53 | }</string> |
| 56 | ····<string>//·CS0184:·The·given·expression·is·never·of·the·provided·(` | 54 | ····<string>//·CS0184:·The·given·expression·is·never·of·the·provided·(`byte')·type |
| 57 | //·Line:·1 | 55 | //·Line:·13 |
| 58 | //·Compiler·options:·-warnaserror·-warn:1 | 56 | //·Compiler·options:·-warnaserror·-warn:1 |
| 57 | class·S·{} | ||
| 58 | » | ||
| 59 | class·X | 59 | class·X |
| 60 | { | 60 | { |
| 61 | » | 61 | » static·void·Main·() |
| 62 | » { | 62 | » { |
| 63 | » » | 63 | » » const·S·x·=·null; |
| 64 | » » | ||
| 64 | » » if·( | 65 | » » if·(x·is·byte)·{ |
| 65 | » » } | 66 | » » } |
| 66 | » } | 67 | » } |
| 67 | }</string> | 68 | }</string> |
| 68 | ····<string>//·CS0184:·The·given·expression·is·never·of·the·provided·(`decimal')·type | ||
| 69 | //·Line:·7 | ||
| 70 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| 71 | class·A | ||
| 72 | { | ||
| 73 | » static·void·Main·() | ||
| 74 | » {· | ||
| 75 | » » System.Console.WriteLine·(1·is·decimal); | ||
| 76 | » } | ||
| 77 | }</string> | ||
| 78 | ····<string>//·CS0184:·The·given·expression·is·never·of·the·provided·(`string')·type | 69 | ····<string>//·CS0184:·The·given·expression·is·never·of·the·provided·(`string')·type |
| 79 | //·Line:·7 | 70 | //·Line:·7 |
| 80 | //·Compiler·options:·-warnaserror·-warn:1 | 71 | //·Compiler·options:·-warnaserror·-warn:1 |
| 81 | class·A·{ | 72 | class·A·{ |
| 82 | » static·void·Main·()·{· | 73 | » static·void·Main·()·{· |
| 83 | » » System.Console.WriteLine·(null·is·string); | 74 | » » System.Console.WriteLine·(null·is·string); |
| 84 | » } | 75 | » } |
| 85 | }</string> | 76 | }</string> |
| 86 | ····<string>//·CS0184:·The·given·expression·is·never·of·the·provided·(`b | 77 | ····<string>//·CS0184:·The·given·expression·is·never·of·the·provided·(`object')·type |
| 87 | //·Line:·13 | 78 | //·Line:·13 |
| 88 | //·Compiler·options:·-warnaserror·-warn:1 | 79 | //·Compiler·options:·-warnaserror·-warn:1 |
| 80 | public·class·Test | ||
| 89 | using·System; | ||
| 90 | class·X | ||
| 91 | { | 81 | { |
| 92 | » void·Foo·() | 82 | » static·void·Foo·() |
| 93 | » { | 83 | » { |
| 94 | » » int?·i·=·null; | ||
| 95 | » » | ||
| 96 | » » if·(i·is·bool?)·{ | ||
| 97 | » | 84 | » } |
| 85 | » | ||
| 86 | » public·static·void·Main() | ||
| 87 | » { | ||
| 88 | » » bool·b·=·Foo·()·is·object; | ||
| 98 | » } | 89 | » } |
| 99 | }</string> | 90 | }</string> |
| 91 | ····<string>//·CS0184:·The·given·expression·is·never·of·the·provided·(`decimal')·type | ||
| 92 | //·Line:·7 | ||
| 93 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| Max diff block lines reached; 724/4360 bytes (16.61%) of diff not shown. | |||
| Offset 1, 14 lines modified | Offset 1, 32 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0188</ErrorName> | 3 | ··<ErrorName>CS0188</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0188:·The·`this'·object·cannot·be·used·before·all·of·its·fields·are·assigned·to | 5 | ····<string>//·CS0188:·The·`this'·object·cannot·be·used·before·all·of·its·fields·are·assigned·to |
| 6 | //·Line:·10 | 6 | //·Line:·10 |
| 7 | public·struct·Test | ||
| 8 | { | ||
| 9 | » internal·int·x; | ||
| 10 | » public·Test·(int·x) | ||
| 11 | » { | ||
| 12 | » » X·=·x; | ||
| 13 | » } | ||
| 14 | » public·int·X | ||
| 15 | » { | ||
| 16 | » » get·{·return·x;·} | ||
| 17 | » » set·{·x·=·value;·} | ||
| 18 | » } | ||
| 19 | }</string> | ||
| 20 | ····<string>//·CS0188:·The·`this'·object·cannot·be·used·before·all·of·its·fields·are·assigned·to | ||
| 21 | //·Line:·10 | ||
| 7 | struct·B | 22 | struct·B |
| 8 | { | 23 | { |
| 9 | » public·int·a; | 24 | » public·int·a; |
| 10 | » public·B·(int·foo) | 25 | » public·B·(int·foo) |
| 11 | » { | 26 | » { |
| 12 | » » Test·(); | 27 | » » Test·(); |
| Offset 33, 58 lines modified | Offset 51, 26 lines modified | ||
| 33 | » public·Foo·(int·baz) | 51 | » public·Foo·(int·baz) |
| 34 | » { | 52 | » { |
| 35 | » » this.baz·=·baz; | 53 | » » this.baz·=·baz; |
| 36 | » » bar·=·Bar·-·1; | 54 | » » bar·=·Bar·-·1; |
| 37 | » } | 55 | » } |
| 38 | }</string> | 56 | }</string> |
| 39 | ····<string>//·CS0188:·The·`this'·object·cannot·be·used·before·all·of·its·fields·are·assigned·to | 57 | ····<string>//·CS0188:·The·`this'·object·cannot·be·used·before·all·of·its·fields·are·assigned·to |
| 40 | //·Line:·10 | ||
| 41 | public·struct·Test | ||
| 42 | { | ||
| 43 | » internal·int·x; | ||
| 44 | » public·Test·(int·x) | ||
| 45 | » { | ||
| 46 | » » X·=·x; | ||
| 47 | » } | ||
| 48 | » public·int·X | ||
| 49 | » { | ||
| 50 | » » get·{·return·x;·} | ||
| 51 | » » set·{·x·=·value;·} | ||
| 52 | » } | ||
| 53 | }</string> | ||
| 54 | ····<string>//·CS0188:·The·`this'·object·cannot·be·used·before·all·of·its·fields·are·assigned·to | ||
| 55 | //·Line:·8 | 58 | //·Line:·8 |
| 56 | struct·Sample | 59 | struct·Sample |
| 57 | { | 60 | { |
| 58 | » public·Sample·(int·arg) | 61 | » public·Sample·(int·arg) |
| 59 | » { | 62 | » { |
| 60 | » » text·=·base.ToString·(); | 63 | » » text·=·base.ToString·(); |
| 61 | » } | 64 | » } |
| 62 | » internal·string·text; | 65 | » internal·string·text; |
| 63 | }</string> | 66 | }</string> |
| 64 | ····<string>//·CS0188:·The·`this'·object·cannot·be·used·before·all·of·its·fields·are·assigned·to | 67 | ····<string>//·CS0188:·The·`this'·object·cannot·be·used·before·all·of·its·fields·are·assigned·to |
| 65 | //·Line:·8 | ||
| 66 | struct·Sample | ||
| 67 | { | ||
| 68 | » public·Sample·(int·arg) | ||
| 69 | » { | ||
| 70 | » » text·=·this.Prop; | ||
| 71 | » } | ||
| 72 | » | ||
| 73 | » int·Prop·{·get·{·return·1;·}·} | ||
| 74 | » public·int·text; | ||
| 75 | }</string> | ||
| 76 | ····<string>//·CS0188:·The·`this'·object·cannot·be·used·before·all·of·its·fields·are·assigned·to | ||
| 77 | //·Line:·10 | 68 | //·Line:·10 |
| 78 | struct·B | 69 | struct·B |
| 79 | { | 70 | { |
| 80 | » public·int·a; | 71 | » public·int·a; |
| 81 | » public·B·(int·foo) | 72 | » public·B·(int·foo) |
| Offset 94, 29 lines modified | Offset 80, 28 lines modified | ||
| 94 | » } | 80 | » } |
| 95 | » static·void·Test·(B·b) | 81 | » static·void·Test·(B·b) |
| 96 | » { | 82 | » { |
| 97 | » } | 83 | » } |
| 98 | }</string> | 84 | }</string> |
| 99 | ····<string>//·CS0188:·The·`this'·object·cannot·be·used·before·all·of·its·fields·are·assigned·to | 85 | ····<string>//·CS0188:·The·`this'·object·cannot·be·used·before·all·of·its·fields·are·assigned·to |
| 100 | //·Line:·1 | 86 | //·Line:·10 |
| 101 | struct· | 87 | struct·S |
| 102 | { | 88 | { |
| 103 | » public·int· | 89 | » public·int·x; |
| 104 | » public·int·baz; | ||
| 105 | » public·int·this·[int·i]·{ | ||
| 106 | » | 90 | » |
| 91 | » S·(dynamic·d) | ||
| 92 | » { | ||
| 93 | » » Foo·(d); | ||
| 94 | » » x·=·44; | ||
| 107 | » } | 95 | » } |
| 108 | » | 96 | » void·Foo·(int·a) |
| 109 | » { | 97 | » { |
| 110 | » » this.baz·=·baz; | ||
| 111 | » » bar·=·this·[2]·-·1; | ||
| 112 | » } | 98 | » } |
| 113 | }</string> | 99 | }</string> |
| 114 | ····<string>//·CS0188:·The·`this'·object·cannot·be·used·before·all·of·its·fields·are·assigned·to | 100 | ····<string>//·CS0188:·The·`this'·object·cannot·be·used·before·all·of·its·fields·are·assigned·to |
| 115 | //·Line:·6 | 101 | //·Line:·6 |
| 116 | struct·Sample·{ | 102 | struct·Sample·{ |
| 117 | ········public·Sample(string·text)·{ | 103 | ········public·Sample(string·text)·{ |
| Offset 126, 25 lines modified | Offset 111, 40 lines modified | ||
| Max diff block lines reached; 762/3173 bytes (24.02%) of diff not shown. | |||
| Offset 1, 29 lines modified | Offset 1, 29 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0191</ErrorName> | 3 | ··<ErrorName>CS0191</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0191:·A·readonly·field·`X.a'·cannot·be·assigned·to·(except·in·a·constructor·or·a·variable·initializer) | ||
| 6 | //·Line:·8 | ||
| 7 | class·X·{ | ||
| 8 | » readonly·int·a; | ||
| 9 | » void·Y·() | ||
| 10 | » { | ||
| 11 | » » a·=·1; | ||
| 12 | » } | ||
| 13 | }</string> | ||
| 14 | ····<string>//·CS0191:·A·readonly·field·`Foo.i'·cannot·be·assigned·to·(except·in·a·constructor·or·a·variable·initializer) | 5 | ····<string>//·CS0191:·A·readonly·field·`Foo.i'·cannot·be·assigned·to·(except·in·a·constructor·or·a·variable·initializer) |
| 15 | //·Line:·10· | 6 | //·Line:·10· |
| 16 | class·Foo·{ | 7 | class·Foo·{ |
| 17 | » readonly·int·i; | 8 | » readonly·int·i; |
| 18 | » Foo·()·{·} | 9 | » Foo·()·{·} |
| 19 | » Foo·(int·i) | 10 | » Foo·(int·i) |
| 20 | » { | 11 | » { |
| 21 | » » Foo·x·=·new·Foo·(); | 12 | » » Foo·x·=·new·Foo·(); |
| 22 | » » x.i·=·i; | 13 | » » x.i·=·i; |
| 23 | » } | 14 | » } |
| 24 | » static·void·Main·()·{·Foo·y·=·new·Foo·(0);·} | 15 | » static·void·Main·()·{·Foo·y·=·new·Foo·(0);·} |
| 25 | }</string> | 16 | }</string> |
| 17 | ····<string>//·CS0191:·A·readonly·field·`X.a'·cannot·be·assigned·to·(except·in·a·constructor·or·a·variable·initializer) | ||
| 18 | //·Line:·8 | ||
| 19 | class·X·{ | ||
| 20 | » readonly·int·a; | ||
| 21 | » void·Y·() | ||
| 22 | » { | ||
| 23 | » » a·=·1; | ||
| 24 | » } | ||
| 25 | }</string> | ||
| 26 | ··</Examples> | 26 | ··</Examples> |
| 27 | </ErrorDocumentation> | 27 | </ErrorDocumentation> |
| Offset 1, 11 lines modified | Offset 1, 23 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0199</ErrorName> | 3 | ··<ErrorName>CS0199</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0199:·A·static·readonly·field·`X.f'·cannot·be·passed·ref·or·out·(except·in·a·static·constructor) | ||
| 6 | //·Line:·10 | ||
| 7 | class·X | ||
| 8 | { | ||
| 9 | » static·readonly·int·f·=·0; | ||
| 10 | » public·static·void·Main·() | ||
| 11 | » { | ||
| 12 | » » ref·int·j·=·ref·f; | ||
| 13 | » } | ||
| 14 | }</string> | ||
| 5 | ····<string>//·CS0199:·A·static·readonly·field·`ClassMain.index'·cannot·be·passed·ref·or·out·(except·in·a·static·constructor) | 15 | ····<string>//·CS0199:·A·static·readonly·field·`ClassMain.index'·cannot·be·passed·ref·or·out·(except·in·a·static·constructor) |
| 6 | //·Line:·19 | 16 | //·Line:·19 |
| 7 | class·ClassMain·{ | 17 | class·ClassMain·{ |
| 8 | ········static·readonly·int·index; | 18 | ········static·readonly·int·index; |
| 9 | ········static·ClassMain·() | 19 | ········static·ClassMain·() |
| Offset 19, 21 lines modified | Offset 31, 9 lines modified | ||
| 19 | ········} | 31 | ········} |
| 20 | ········public·static·void·Main·() | 32 | ········public·static·void·Main·() |
| 21 | ········{ | 33 | ········{ |
| 22 | ················GetMaxIndex·(ref·index); | 34 | ················GetMaxIndex·(ref·index); |
| 23 | ········} | 35 | ········} |
| 24 | }</string> | 36 | }</string> |
| 25 | ····<string>//·CS0199:·A·static·readonly·field·`X.f'·cannot·be·passed·ref·or·out·(except·in·a·static·constructor) | ||
| 26 | //·Line:·10 | ||
| 27 | class·X | ||
| 28 | { | ||
| 29 | » static·readonly·int·f·=·0; | ||
| 30 | » public·static·void·Main·() | ||
| 31 | » { | ||
| 32 | » » ref·int·j·=·ref·f; | ||
| 33 | » } | ||
| 34 | }</string> | ||
| 35 | ··</Examples> | 37 | ··</Examples> |
| 36 | </ErrorDocumentation> | 38 | </ErrorDocumentation> |
| Offset 1, 11 lines modified | Offset 1, 37 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0200</ErrorName> | 3 | ··<ErrorName>CS0200</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0200:·Property·or·indexer·`C.S'·cannot·be·assigned·to·(it·is·read-only) | ||
| 6 | //·Line:·10 | ||
| 7 | class·C | ||
| 8 | { | ||
| 9 | » public·static·int·S·{·get;·} | ||
| 10 | » public·C·() | ||
| 11 | » { | ||
| 12 | » » S·=·3; | ||
| 13 | » } | ||
| 14 | }</string> | ||
| 15 | ····<string>//·CS0200:·Property·or·indexer·`MyClass.Type'·cannot·be·assigned·to·(it·is·read-only) | ||
| 16 | //·Line:·12 | ||
| 17 | using·System; | ||
| 18 | ·public·class·MyClass | ||
| 19 | ·{ | ||
| 20 | » Type·Type·{·get;·} | ||
| 21 | » public·void·Test·() | ||
| 22 | » { | ||
| 23 | » » Type·=·typeof·(string); | ||
| 24 | » } | ||
| 25 | }</string> | ||
| 5 | ····<string>//·CS0200:·Property·or·indexer·`A.X'·cannot·be·assigned·to·(it·is·read-only) | 26 | ····<string>//·CS0200:·Property·or·indexer·`A.X'·cannot·be·assigned·to·(it·is·read-only) |
| 6 | //·Line:·13 | 27 | //·Line:·13 |
| 7 | public·class·A | 28 | public·class·A |
| 8 | { | 29 | { |
| 9 | » public·int·X·{·get;·} | 30 | » public·int·X·{·get;·} |
| 10 | } | 31 | } |
| Offset 13, 32 lines modified | Offset 39, 14 lines modified | ||
| 13 | public·class·B·:·A | 39 | public·class·B·:·A |
| 14 | { | 40 | { |
| 15 | » public·B·() | 41 | » public·B·() |
| 16 | » { | 42 | » { |
| 17 | » » base.X·=·1; | 43 | » » base.X·=·1; |
| 18 | » } | 44 | » } |
| 19 | }</string> | 45 | }</string> |
| 20 | ····<string>//·CS0200:·Property·or·indexer·`A.Counter'·cannot·be·assigned·to·(it·is·read-only) | ||
| 21 | //·Line:·9 | ||
| 22 | class·Program | ||
| 23 | { | ||
| 24 | » static·void·Main() | ||
| 25 | » { | ||
| 26 | » » A·a·=·new·A(); | ||
| 27 | » » a.Counter++; | ||
| 28 | » } | ||
| 29 | } | ||
| 30 | class·A·{ | ||
| 31 | » private·int?·_counter; | ||
| 32 | » public·int?·Counter·{ | ||
| 33 | » » get·{·return·_counter;·} | ||
| 34 | » } | ||
| 35 | }</string> | ||
| 36 | ····<string>//·CS0200:·Property·or·indexer·`X.P'·cannot·be·assigned·to·(it·is·read-only) | 46 | ····<string>//·CS0200:·Property·or·indexer·`X.P'·cannot·be·assigned·to·(it·is·read-only) |
| 37 | //·Line:·13 | 47 | //·Line:·13 |
| 38 | class·X·{ | 48 | class·X·{ |
| 39 | » static·int·P·{ | 49 | » static·int·P·{ |
| 40 | » » get·{ | 50 | » » get·{ |
| 41 | » » » return·1; | 51 | » » » return·1; |
| Offset 64, 47 lines modified | Offset 72, 39 lines modified | ||
| 64 | » static·int·Main·() | 72 | » static·int·Main·() |
| 65 | » { | 73 | » { |
| 66 | » » X·x·=·new·X·(); | 74 | » » X·x·=·new·X·(); |
| 67 | » » x[0]·=·10; | 75 | » » x[0]·=·10; |
| 68 | » » return·1; | 76 | » » return·1; |
| 69 | » } | 77 | » } |
| 70 | }</string> | 78 | }</string> |
| 71 | ····<string>//·CS0200:·Property·or·indexer·` | 79 | ····<string>//·CS0200:·Property·or·indexer·`A.Counter'·cannot·be·assigned·to·(it·is·read-only) |
| 72 | //·Line:· | 80 | //·Line:·9 |
| 73 | using·System; | ||
| 74 | ·public·class·MyClass | ||
| 75 | ·{ | ||
| 76 | » Type·Type·{·get;·} | ||
| 77 | 81 | class·Program | |
| 82 | { | ||
| 83 | » static·void·Main() | ||
| 78 | » { | 84 | » { |
| 79 | » » | 85 | » » A·a·=·new·A(); |
| 86 | » » a.Counter++; | ||
| 87 | » } | ||
| 88 | } | ||
| 89 | class·A·{ | ||
| 90 | » private·int?·_counter; | ||
| 91 | » public·int?·Counter·{ | ||
| 92 | » » get·{·return·_counter;·} | ||
| 80 | » } | 93 | » } |
| 81 | }</string> | 94 | }</string> |
| 82 | ····<string>//·CS0200:·Property·or·indexer·`C.P'·cannot·be·assigned·to·(it·is·read-only) | 95 | ····<string>//·CS0200:·Property·or·indexer·`C.P'·cannot·be·assigned·to·(it·is·read-only) |
| 83 | //·Line:·10 | 96 | //·Line:·10 |
| 84 | class·C | 97 | class·C |
| 85 | { | 98 | { |
| 86 | » public·int·P·{·get;·} | 99 | » public·int·P·{·get;·} |
| 87 | » public·void·Foo·() | 100 | » public·void·Foo·() |
| 88 | » { | 101 | » { |
| 89 | » » P·=·10; | 102 | » » P·=·10; |
| 90 | » } | 103 | » } |
| 91 | }</string> | 104 | }</string> |
| 92 | ····<string>//·CS0200:·Property·or·indexer·`C.S'·cannot·be·assigned·to·(it·is·read-only) | ||
| 93 | //·Line:·10 | ||
| 94 | class·C | ||
| 95 | { | ||
| 96 | » public·static·int·S·{·get;·} | ||
| 97 | » public·C·() | ||
| 98 | » { | ||
| 99 | » » S·=·3; | ||
| 100 | » } | ||
| 101 | }</string> | ||
| 102 | ··</Examples> | 105 | ··</Examples> |
| Max diff block lines reached; 0/2431 bytes (0.00%) of diff not shown. | |||
| Offset 1, 24 lines modified | Offset 1, 57 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0201</ErrorName> | 3 | ··<ErrorName>CS0201</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0201:·Only·assignment,·call,·increment,·decrement,·await,·and·new·object·expressions·can·be·used·as·a·statement | 5 | ····<string>//·CS0201:·Only·assignment,·call,·increment,·decrement,·await,·and·new·object·expressions·can·be·used·as·a·statement |
| 6 | //·Line:·7 | ||
| 7 | class·T·{ | ||
| 8 | ········static·string·XX; | ||
| 9 | ········static·void·Main·()·{ | ||
| 10 | ················T.XX; | ||
| 11 | ········} | ||
| 12 | }</string> | ||
| 13 | ····<string>//·CS0201:·Only·assignment,·call,·increment,·decrement,·await,·and·new·object·expressions·can·be·used·as·a·statement | ||
| 6 | //·Line:·11 | 14 | //·Line:·11 |
| 7 | using·System; | 15 | using·System; |
| 16 | using·System.Threading.Tasks; | ||
| 8 | 17 | class·C | |
| 9 | { | 18 | { |
| 10 | » | 19 | » async·Task<int>·Test·() |
| 11 | » { | 20 | » { |
| 12 | » » | 21 | » » Func<int>·r·=·await·Task.Factory.StartNew·(()·=>·()·=>·1); |
| 22 | » } | ||
| 23 | }</string> | ||
| 24 | ····<string>//·CS0201:·Only·assignment,·call,·increment,·decrement,·await,·and·new·object·expressions·can·be·used·as·a·statement | ||
| 25 | //·Line:·10 | ||
| 26 | class·TestClass | ||
| 27 | { | ||
| 28 | » delegate·void·test_delegate·(int·arg); | ||
| 29 | » public·TestClass·() | ||
| 30 | » { | ||
| 31 | » » test_delegate·D·=·(b)·=>·"a"; | ||
| 13 | » } | 32 | » } |
| 14 | }</string> | 33 | }</string> |
| 15 | ····<string>//·CS0201:·Only·assignment,·call,·increment,·decrement,·await,·and·new·object·expressions·can·be·used·as·a·statement | 34 | ····<string>//·CS0201:·Only·assignment,·call,·increment,·decrement,·await,·and·new·object·expressions·can·be·used·as·a·statement |
| 35 | //·Line:·7 | ||
| 36 | class·T·{ | ||
| 37 | ········static·string·XX·{ | ||
| 38 | ················get·{return·"";} | ||
| 39 | ········} | ||
| 40 | ········static·void·Main·()·{ | ||
| 41 | ················T.XX; | ||
| 42 | ········} | ||
| 43 | }</string> | ||
| 44 | ····<string>//·CS0201:·Only·assignment,·call,·increment,·decrement,·await,·and·new·object·expressions·can·be·used·as·a·statement | ||
| 16 | //·Line:·10 | 45 | //·Line:·10 |
| 17 | using·System.Linq; | 46 | using·System.Linq; |
| 18 | class·C | 47 | class·C |
| 19 | { | 48 | { |
| 20 | » public·static·void·Main·() | 49 | » public·static·void·Main·() |
| Offset 49, 87 lines modified | Offset 82, 54 lines modified | ||
| 49 | » | 82 | » |
| 50 | » public·static·void·Main·() | 83 | » public·static·void·Main·() |
| 51 | » { | 84 | » { |
| 52 | » » Test·().Foo; | 85 | » » Test·().Foo; |
| 53 | » } | 86 | » } |
| 54 | }</string> | 87 | }</string> |
| 55 | ····<string>//·CS0201:·Only·assignment,·call,·increment,·decrement,·await,·and·new·object·expressions·can·be·used·as·a·statement | 88 | ····<string>//·CS0201:·Only·assignment,·call,·increment,·decrement,·await,·and·new·object·expressions·can·be·used·as·a·statement |
| 56 | //·Line:·7 | ||
| 57 | class·T·{ | ||
| 58 | ········static·string·XX; | ||
| 59 | ········static·void·Main·()·{ | ||
| 60 | ················T.XX; | ||
| 61 | ········} | ||
| 62 | }</string> | ||
| 63 | ····<string>//·CS0201:·Only·assignment,·call,·increment,·decrement,·await,·and·new·object·expressions·can·be·used·as·a·statement | ||
| 64 | //·Line:·1 | 89 | //·Line:·10 |
| 65 | using·System; | 90 | using·System; |
| 66 | using·System.Threading.Tasks; | ||
| 67 | class·C | ||
| 68 | { | ||
| 69 | » async·Task<int>·Test·() | ||
| 70 | » { | ||
| 71 | » » Func<int>·r·=·await·Task.Factory.StartNew·(()·=>·()·=>·1); | ||
| 72 | » } | ||
| 73 | }</string> | ||
| 74 | ····<string>//·CS0201:·Only·assignment,·call,·increment,·decrement,·await,·and·new·object·expressions·can·be·used·as·a·statement | ||
| 75 | //·Line:·7 | ||
| 76 | class·T·{ | ||
| 77 | ········static·string·XX·{ | ||
| 78 | ················get·{return·"";} | ||
| 79 | ········} | ||
| 80 | ········static·void·Main·()·{ | ||
| 81 | ················T.XX; | ||
| 82 | ········} | ||
| 83 | }</string> | ||
| 84 | ····<string>//·CS0201:·Only·assignment,·call,·increment,·decrement,·await,·and·new·object·expressions·can·be·used·as·a·statement | ||
| 85 | //·Line:·8 | ||
| 86 | class· | 91 | class·X |
| 87 | { | 92 | { |
| 88 | » public·static·void·Main·() | 93 | » public·static·void·Main·() |
| 89 | » { | 94 | » { |
| 95 | » » new·Func<int>·(()·=>·0); | ||
| 90 | » » for·(int·i·=·0;·i++;·i·<·8)·{ | ||
| 91 | » » } | ||
| 92 | » } | 96 | » } |
| 93 | }</string> | 97 | }</string> |
| 94 | ····<string>//·CS0201:·Only·assignment,·call,·increment,·decrement,·await,·and·new·object·expressions·can·be·used·as·a·statement | 98 | ····<string>//·CS0201:·Only·assignment,·call,·increment,·decrement,·await,·and·new·object·expressions·can·be·used·as·a·statement |
| 95 | //·Line:· | 99 | //·Line:·9 |
| 96 | class· | 100 | class·D |
| 97 | { | 101 | { |
| 102 | » void·Foo·() | ||
| 98 | » delegate·void·test_delegate·(int·arg); | ||
| 99 | » public·TestClass·() | ||
| 100 | » { | 103 | » { |
| 101 | » » te | 104 | » » System.Threading.Tasks.TaskFactory·m·=·null; |
| 105 | » » m.StartNew·(()·=>·delegate·{·}); | ||
| 102 | » } | 106 | » } |
| 103 | }</string> | 107 | }</string> |
| 104 | ····<string>//·CS0201:·Only·assignment,·call,·increment,·decrement,·await,·and·new·object·expressions·can·be·used·as·a·statement | 108 | ····<string>//·CS0201:·Only·assignment,·call,·increment,·decrement,·await,·and·new·object·expressions·can·be·used·as·a·statement |
| 105 | //·Line:·1 | 109 | //·Line:·11 |
| 106 | using·System; | 110 | using·System; |
| Max diff block lines reached; 538/4087 bytes (13.16%) of diff not shown. | |||
| Offset 1, 11 lines modified | Offset 1, 29 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0202</ErrorName> | 3 | ··<ErrorName>CS0202</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·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 | ||
| 6 | //·Line:·10 | ||
| 7 | using·System; | ||
| 8 | using·System.Collections.Generic; | ||
| 9 | class·Test·{ | ||
| 10 | ········static·void·Main·() | ||
| 11 | ········{ | ||
| 12 | ················Test·obj·=·new·Test·(); | ||
| 13 | ················foreach·(string·s·in·obj)·{ | ||
| 14 | ················} | ||
| 15 | ········} | ||
| 16 | ········public·IEnumerable<string>·GetEnumerator·() | ||
| 17 | ········{ | ||
| 18 | » » return·null; | ||
| 19 | ········} | ||
| 20 | }</string> | ||
| 5 | ····<string>//·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 | 21 | ····<string>//·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 |
| 6 | //·Line:·18 | 22 | //·Line:·18 |
| 7 | public·class·Foo | 23 | public·class·Foo |
| 8 | { | 24 | { |
| 9 | ········public·class·E·{} | 25 | ········public·class·E·{} |
| 10 | ············ | 26 | ············ |
| Offset 21, 27 lines modified | Offset 39, 9 lines modified | ||
| 21 | ········{ | 39 | ········{ |
| 22 | ············P·o·=·new·P·(); | 40 | ············P·o·=·new·P·(); |
| 23 | ············foreach·(P·p·in·o) | 41 | ············foreach·(P·p·in·o) |
| 24 | ············{ | 42 | ············{ |
| 25 | ············} | 43 | ············} |
| 26 | ········} | 44 | ········} |
| 27 | }</string> | 45 | }</string> |
| 28 | ····<string>//·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 | ||
| 29 | //·Line:·10 | ||
| 30 | using·System; | ||
| 31 | using·System.Collections.Generic; | ||
| 32 | class·Test·{ | ||
| 33 | ········static·void·Main·() | ||
| 34 | ········{ | ||
| 35 | ················Test·obj·=·new·Test·(); | ||
| 36 | ················foreach·(string·s·in·obj)·{ | ||
| 37 | ················} | ||
| 38 | ········} | ||
| 39 | ········public·IEnumerable<string>·GetEnumerator·() | ||
| 40 | ········{ | ||
| 41 | » » return·null; | ||
| 42 | ········} | ||
| 43 | }</string> | ||
| 44 | ··</Examples> | 46 | ··</Examples> |
| 45 | </ErrorDocumentation> | 47 | </ErrorDocumentation> |
| Offset 23, 14 lines modified | Offset 23, 54 lines modified | ||
| 23 | » static·void·Main·() | 23 | » static·void·Main·() |
| 24 | » { | 24 | » { |
| 25 | » » B·b·=·new·B·(); | 25 | » » B·b·=·new·B·(); |
| 26 | » » if·(b.Foobar·==·1)·{ | 26 | » » if·(b.Foobar·==·1)·{ |
| 27 | » » } | 27 | » » } |
| 28 | » } | 28 | » } |
| 29 | }</string> | 29 | }</string> |
| 30 | ····<string>//·CS0205:·Cannot·call·an·abstract·base·member·`A.Foobar.set' | ||
| 31 | //·Line:·13 | ||
| 32 | public·abstract·class·A | ||
| 33 | { | ||
| 34 | ········public·abstract·int·Foobar·{·set;·} | ||
| 35 | } | ||
| 36 | public·class·B:·A | ||
| 37 | { | ||
| 38 | » » public·override·int·Foobar··{ | ||
| 39 | » » » set·{ | ||
| 40 | » » » » base.Foobar·=·value; | ||
| 41 | » » » } | ||
| 42 | » » } | ||
| 43 | }</string> | ||
| 44 | ····<string>//·CS0205:·Cannot·call·an·abstract·base·member·`A.OnUpdate' | ||
| 45 | //·Line:·17 | ||
| 46 | public·delegate·int·TestDelegate1·(); | ||
| 47 | public·abstract·class·A | ||
| 48 | { | ||
| 49 | » public·abstract·event·TestDelegate1·OnUpdate; | ||
| 50 | } | ||
| 51 | public·class·B·:·A | ||
| 52 | { | ||
| 53 | » public·override·event·TestDelegate1·OnUpdate | ||
| 54 | » { | ||
| 55 | » » add | ||
| 56 | » » { | ||
| 57 | » » » base.OnUpdate·+=·value; | ||
| 58 | » » } | ||
| 59 | » » remove | ||
| 60 | » » { | ||
| 61 | » » » base.OnUpdate·-=·value; | ||
| 62 | » » } | ||
| 63 | » } | ||
| 64 | }</string> | ||
| 30 | ····<string>//·CS0205:·Cannot·call·an·abstract·base·member·`A.Foobar()' | 65 | ····<string>//·CS0205:·Cannot·call·an·abstract·base·member·`A.Foobar()' |
| 31 | //·Line:·21 | 66 | //·Line:·21 |
| 32 | using·System; | 67 | using·System; |
| 33 | public·abstract·class·A | 68 | public·abstract·class·A |
| 34 | { | 69 | { |
| Offset 67, 30 lines modified | Offset 107, 14 lines modified | ||
| 67 | » static·void·Main·() | 107 | » static·void·Main·() |
| 68 | » { | 108 | » { |
| 69 | » » B·b·=·new·B·(); | 109 | » » B·b·=·new·B·(); |
| 70 | » » if·(b.Foobar·==·1)·{ | 110 | » » if·(b.Foobar·==·1)·{ |
| 71 | » » } | 111 | » » } |
| 72 | » } | 112 | » } |
| 73 | }</string> | 113 | }</string> |
| 74 | ····<string>//·CS0205:·Cannot·call·an·abstract·base·member·`A.Foobar.set' | ||
| 75 | //·Line:·13 | ||
| 76 | public·abstract·class·A | ||
| 77 | { | ||
| 78 | ········public·abstract·int·Foobar·{·set;·} | ||
| 79 | } | ||
| 80 | public·class·B:·A | ||
| 81 | { | ||
| 82 | » » public·override·int·Foobar··{ | ||
| 83 | » » » set·{ | ||
| 84 | » » » » base.Foobar·=·value; | ||
| 85 | » » » } | ||
| 86 | » » } | ||
| 87 | }</string> | ||
| 88 | ····<string>//·CS0205:·Cannot·call·an·abstract·base·member·`A.this[int].set' | 114 | ····<string>//·CS0205:·Cannot·call·an·abstract·base·member·`A.this[int].set' |
| 89 | //·Line:·13 | 115 | //·Line:·13 |
| 90 | public·abstract·class·A | 116 | public·abstract·class·A |
| 91 | { | 117 | { |
| 92 | ········public·abstract·int·this[int·i]·{·set;·} | 118 | ········public·abstract·int·this[int·i]·{·set;·} |
| 93 | } | 119 | } |
| Offset 99, 33 lines modified | Offset 123, 9 lines modified | ||
| 99 | { | 123 | { |
| 100 | » » public·override·int·this[int·i]··{ | 124 | » » public·override·int·this[int·i]··{ |
| 101 | » » » set·{ | 125 | » » » set·{ |
| 102 | » » » » base[i]·=·value; | 126 | » » » » base[i]·=·value; |
| 103 | » » » } | 127 | » » » } |
| 104 | » » } | 128 | » » } |
| 105 | }</string> | 129 | }</string> |
| 106 | ····<string>//·CS0205:·Cannot·call·an·abstract·base·member·`A.OnUpdate' | ||
| 107 | //·Line:·17 | ||
| 108 | public·delegate·int·TestDelegate1·(); | ||
| 109 | public·abstract·class·A | ||
| 110 | { | ||
| 111 | » public·abstract·event·TestDelegate1·OnUpdate; | ||
| 112 | } | ||
| 113 | public·class·B·:·A | ||
| 114 | { | ||
| 115 | » public·override·event·TestDelegate1·OnUpdate | ||
| 116 | » { | ||
| 117 | » » add | ||
| 118 | » » { | ||
| 119 | » » » base.OnUpdate·+=·value; | ||
| 120 | » » } | ||
| 121 | » » remove | ||
| 122 | » » { | ||
| 123 | » » » base.OnUpdate·-=·value; | ||
| 124 | » » } | ||
| 125 | » } | ||
| 126 | }</string> | ||
| 127 | ··</Examples> | 130 | ··</Examples> |
| 128 | </ErrorDocumentation> | 131 | </ErrorDocumentation> |
| Offset 15, 31 lines modified | Offset 15, 14 lines modified | ||
| 15 | » { | 15 | » { |
| 16 | » » var·v·=·new·{·Foo·=·"Bar"·}; | 16 | » » var·v·=·new·{·Foo·=·"Bar"·}; |
| 17 | » » | 17 | » » |
| 18 | » » Foo·(ref·v.Foo); | 18 | » » Foo·(ref·v.Foo); |
| 19 | » } | 19 | » } |
| 20 | }</string> | 20 | }</string> |
| 21 | ····<string>//·CS0206:·A·property,·indexer·or·dynamic·member·access·may·not·be·passed·as·`ref'·or·`out'·parameter | 21 | ····<string>//·CS0206:·A·property,·indexer·or·dynamic·member·access·may·not·be·passed·as·`ref'·or·`out'·parameter |
| 22 | //·Line:·15 | ||
| 23 | class·X·{ | ||
| 24 | » static·int·P·{·get·{·return·1;·}·set·{·}·} | ||
| 25 | » static·int·m·(out·int·v) | ||
| 26 | » { | ||
| 27 | » » v·=·1; | ||
| 28 | » » return·1; | ||
| 29 | » } | ||
| 30 | » | ||
| 31 | » static·void·Main·() | ||
| 32 | » { | ||
| 33 | » » m·(out·P); | ||
| 34 | » } | ||
| 35 | }</string> | ||
| 36 | ····<string>//·CS0206:·A·property,·indexer·or·dynamic·member·access·may·not·be·passed·as·`ref'·or·`out'·parameter | ||
| 37 | //·Line:·22 | 22 | //·Line:·22 |
| 38 | using·System; | 23 | using·System; |
| 39 | namespace·N | 24 | namespace·N |
| 40 | { | 25 | { |
| 41 | » public·class·Test | 26 | » public·class·Test |
| Offset 76, 14 lines modified | Offset 59, 31 lines modified | ||
| 76 | » public·static·void·Main·(string[]·args) | 59 | » public·static·void·Main·(string[]·args) |
| 77 | » { | 60 | » { |
| 78 | » » dynamic·d·=·null; | 61 | » » dynamic·d·=·null; |
| 79 | » » WriteOutData·(out·d.Foo); | 62 | » » WriteOutData·(out·d.Foo); |
| 80 | » } | 63 | » } |
| 81 | }</string> | 64 | }</string> |
| 82 | ····<string>//·CS0206:·A·property,·indexer·or·dynamic·member·access·may·not·be·passed·as·`ref'·or·`out'·parameter | 65 | ····<string>//·CS0206:·A·property,·indexer·or·dynamic·member·access·may·not·be·passed·as·`ref'·or·`out'·parameter |
| 66 | //·Line:·15 | ||
| 67 | class·X·{ | ||
| 68 | » static·int·P·{·get·{·return·1;·}·set·{·}·} | ||
| 69 | » static·int·m·(out·int·v) | ||
| 70 | » { | ||
| 71 | » » v·=·1; | ||
| 72 | » » return·1; | ||
| 73 | » } | ||
| 74 | » | ||
| 75 | » static·void·Main·() | ||
| 76 | » { | ||
| 77 | » » m·(out·P); | ||
| 78 | » } | ||
| 79 | }</string> | ||
| 80 | ····<string>//·CS0206:·A·property,·indexer·or·dynamic·member·access·may·not·be·passed·as·`ref'·or·`out'·parameter | ||
| 83 | //·Line:·10 | 81 | //·Line:·10 |
| 84 | class·X | 82 | class·X |
| 85 | { | 83 | { |
| 86 | » static·int·P·{·get;·set;·} | 84 | » static·int·P·{·get;·set;·} |
| 87 | » static·void·Main·() | 85 | » static·void·Main·() |
| Offset 1, 76 lines modified | Offset 1, 67 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0208</ErrorName> | 3 | ··<ErrorName>CS0208</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0208:·Cannot·take·the·address·of,·get·the·size·of,·or·declare·a·pointer·to·a·managed·type·` | 5 | ····<string>//·CS0208:·Cannot·take·the·address·of,·get·the·size·of,·or·declare·a·pointer·to·a·managed·type·`T' |
| 6 | //·Line:· | 6 | //·Line:·8 |
| 7 | //·Compiler·options:·-unsafe | ||
| 8 | struct·foo·{ | ||
| 9 | » public·delegate·void·bar·(int·x); | ||
| 10 | » public·bar·barf; | ||
| 11 | } | ||
| 12 | unsafe·class·t·{ | ||
| 13 | » static·void·Main·()·{ | ||
| 14 | 7 | class·X | |
| 8 | { | ||
| 9 | » public·static·void·Foo<T>·(T·t) | ||
| 10 | » { | ||
| 11 | » » object·o·=·sizeof·(T); | ||
| 15 | » } | 12 | » } |
| 16 | }</string> | 13 | }</string> |
| 17 | ····<string>//·CS0208:·Cannot·take·the·address·of,·get·the·size·of,·or·declare·a·pointer·to·a·managed·type·` | 14 | ····<string>//·CS0208:·Cannot·take·the·address·of,·get·the·size·of,·or·declare·a·pointer·to·a·managed·type·`Splay<T>.Node' |
| 18 | //·Line:· | 15 | //·Line:·9 |
| 19 | //·Compiler·options:· | 16 | //·Compiler·options:·/unsafe |
| 20 | class·X·<Y>·{ | ||
| 21 | } | ||
| 22 | 17 | public·class·Splay<T> | |
| 18 | { | ||
| 19 | ··unsafe·private·struct·Node | ||
| 20 | ··{ | ||
| 21 | ····private·Node·*············parent; | ||
| 22 | ····private·T·················data; | ||
| 23 | ··}· | ||
| 24 | }</string> | ||
| 25 | ····<string>//·CS0208:·Cannot·take·the·address·of,·get·the·size·of,·or·declare·a·pointer·to·a·managed·type·`Splay<T>.Node' | ||
| 26 | //·Line:·9 | ||
| 27 | //·Compiler·options:·/unsafe | ||
| 23 | » static·void·Main·() | ||
| 24 | » { | ||
| 25 | » » int·size·=·sizeof·(X<A>); | ||
| 26 | 28 | public·class·Splay<T> | |
| 29 | { | ||
| 30 | ··unsafe·private·class·Node | ||
| 31 | ··{ | ||
| 32 | ····private·Node·*············parent; | ||
| 33 | ····private·T·················data; | ||
| 34 | ··}· | ||
| 27 | }</string> | 35 | }</string> |
| 28 | ····<string>//·CS0208:·Cannot·take·the·address·of,·get·the·size·of,·or·declare·a·pointer·to·a·managed·type·`X' | 36 | ····<string>//·CS0208:·Cannot·take·the·address·of,·get·the·size·of,·or·declare·a·pointer·to·a·managed·type·`X' |
| 29 | //·Line:·8 | 37 | //·Line:·8 |
| 30 | //·Compiler·options:·-unsafe | 38 | //·Compiler·options:·-unsafe |
| 31 | unsafe·struct·X·{ | 39 | unsafe·struct·X·{ |
| 32 | » string·a; | 40 | » string·a; |
| 33 | » static·void·Main·()·{ | 41 | » static·void·Main·()·{ |
| 34 | » » X*·y; | 42 | » » X*·y; |
| 35 | » } | 43 | » } |
| 36 | }</string> | 44 | }</string> |
| 37 | ····<string>//·CS0208:·Cannot·take·the·address·of,·get·the·size·of,·or·declare·a·pointer·to·a·managed·type·`S<int>.N' | ||
| 38 | //·Line:·16 | ||
| 39 | //·Compiler·options:·-unsafe | ||
| 40 | struct·S<T> | ||
| 41 | { | ||
| 42 | » public·struct·N | ||
| 43 | » { | ||
| 44 | » } | ||
| 45 | } | ||
| 46 | unsafe·class·Test | ||
| 47 | { | ||
| 48 | » public·static·void·Main() | ||
| 49 | » { | ||
| 50 | » » S<int>.N*·a; | ||
| 51 | » } | ||
| 52 | }</string> | ||
| 53 | ····<string>//·CS0208:·Cannot·take·the·address·of,·get·the·size·of,·or·declare·a·pointer·to·a·managed·type·`CS208.Foo' | 45 | ····<string>//·CS0208:·Cannot·take·the·address·of,·get·the·size·of,·or·declare·a·pointer·to·a·managed·type·`CS208.Foo' |
| 54 | //·Line:· | 46 | //·Line:·20 |
| 55 | //·Compiler·options:·-unsafe | 47 | //·Compiler·options:·-unsafe |
| 56 | namespace·CS208 | 48 | namespace·CS208 |
| 57 | { | 49 | { |
| 58 | » public· | 50 | » public·class·Foo |
| 59 | » { | 51 | » { |
| 60 | » » public· | 52 | » » public·int·Add·(int·a,·int·b) |
| 53 | » » { | ||
| 54 | » » » return·a·+·b; | ||
| 55 | » » } | ||
| 61 | » } | 56 | » } |
| 62 | » public·class·Bar | 57 | » public·class·Bar |
| 63 | » { | 58 | » { |
| 64 | » » unsafe·static·void·Main·() | 59 | » » unsafe·static·void·Main·() |
| 65 | » » {» » » | 60 | » » {» » » |
| 66 | » » » Foo·f·=·new·Foo·(); | 61 | » » » Foo·f·=·new·Foo·(); |
| Offset 93, 48 lines modified | Offset 84, 97 lines modified | ||
| 93 | » » unsafe·static·void·Main·() | 84 | » » unsafe·static·void·Main·() |
| 94 | » » {» » » | 85 | » » {» » » |
| 95 | » » » Foo·f·=·new·Foo·(); | 86 | » » » Foo·f·=·new·Foo·(); |
| 96 | » » » Foo·*s·=·&f; | 87 | » » » Foo·*s·=·&f; |
| 97 | » » } | 88 | » » } |
| 98 | » } | 89 | » } |
| 99 | }</string> | 90 | }</string> |
| 91 | ····<string>//·CS0208:·Cannot·take·the·address·of,·get·the·size·of,·or·declare·a·pointer·to·a·managed·type·`Splay<T>.Node' | ||
| 92 | //·Line:·10 | ||
| 93 | //·Compiler·options:·/unsafe | ||
| 94 | //·Similar·code·to·#75772,·but·without·field·of·type·T. | ||
| 95 | public·class·Splay<T> | ||
| 96 | { | ||
| 97 | ··unsafe·private·struct·Node | ||
| 98 | ··{ | ||
| 99 | ····private·Node·*············parent; | ||
| 100 | ··}· | ||
| 101 | }</string> | ||
| 102 | ····<string>//·CS0208:·Cannot·take·the·address·of,·get·the·size·of,·or·declare·a·pointer·to·a·managed·type·`foo' | ||
| 103 | //·Line:·11 | ||
| 104 | //·Compiler·options:·-unsafe | ||
| 105 | struct·foo·{ | ||
| 106 | » public·delegate·void·bar·(int·x); | ||
| 107 | » public·bar·barf; | ||
| 108 | } | ||
| Max diff block lines reached; 6053/9623 bytes (62.90%) of diff not shown. | |||
| Offset 1, 33 lines modified | Offset 1, 12 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0212</ErrorName> | 3 | ··<ErrorName>CS0212</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0212:·You·can·only·take·the·address·of·unfixed·expression·inside·of·a·fixed·statement·initializer | 5 | ····<string>//·CS0212:·You·can·only·take·the·address·of·unfixed·expression·inside·of·a·fixed·statement·initializer |
| 6 | //·Line:·10 | ||
| 7 | //·Compiler·options:·-unsafe | ||
| 8 | struct·Foo·{ | ||
| 9 | » public·float·f; | ||
| 10 | » public·void·foo·() | ||
| 11 | » { | ||
| 12 | » » unsafe·{ | ||
| 13 | » » » float·*pf1·=·&f; | ||
| 14 | » » } | ||
| 15 | » } | ||
| 16 | } | ||
| 17 | class·Test·{ | ||
| 18 | » static·void·Main·() | ||
| 19 | » { | ||
| 20 | » » Foo·x·=·new·Foo·(); | ||
| 21 | » » x.foo·(); | ||
| 22 | » } | ||
| 23 | }</string> | ||
| 24 | ····<string>//·CS0212:·You·can·only·take·the·address·of·unfixed·expression·inside·of·a·fixed·statement·initializer | ||
| 25 | //·Line:·19 | 6 | //·Line:·19 |
| 26 | //·Compiler·options:·-unsafe | 7 | //·Compiler·options:·-unsafe |
| 27 | using·System; | 8 | using·System; |
| 28 | class·X | 9 | class·X |
| 29 | { | 10 | { |
| Offset 58, 9 lines modified | Offset 37, 30 lines modified | ||
| 58 | » } | 37 | » } |
| 59 | » | 38 | » |
| 60 | » static·void·Blah·(ref·int·mptr) | 39 | » static·void·Blah·(ref·int·mptr) |
| 61 | » { | 40 | » { |
| 62 | » » int*·x·=·&mptr; | 41 | » » int*·x·=·&mptr; |
| 63 | » } | 42 | » } |
| 64 | }</string> | 43 | }</string> |
| 44 | ····<string>//·CS0212:·You·can·only·take·the·address·of·unfixed·expression·inside·of·a·fixed·statement·initializer | ||
| 45 | //·Line:·10 | ||
| 46 | //·Compiler·options:·-unsafe | ||
| 47 | struct·Foo·{ | ||
| 48 | » public·float·f; | ||
| 49 | » public·void·foo·() | ||
| 50 | » { | ||
| 51 | » » unsafe·{ | ||
| 52 | » » » float·*pf1·=·&f; | ||
| 53 | » » } | ||
| 54 | » } | ||
| 55 | } | ||
| 56 | class·Test·{ | ||
| 57 | » static·void·Main·() | ||
| 58 | » { | ||
| 59 | » » Foo·x·=·new·Foo·(); | ||
| 60 | » » x.foo·(); | ||
| 61 | » } | ||
| 62 | }</string> | ||
| 65 | ··</Examples> | 63 | ··</Examples> |
| 66 | </ErrorDocumentation> | 64 | </ErrorDocumentation> |
| Offset 1, 78 lines modified | Offset 1, 57 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0214</ErrorName> | 3 | ··<ErrorName>CS0214</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0214:·Pointers·and·fixed·size·buffers·may·only·be·used·in·an·unsafe·context | 5 | ····<string>//·CS0214:·Pointers·and·fixed·size·buffers·may·only·be·used·in·an·unsafe·context |
| 6 | //·Line:· | 6 | //·Line:·8· |
| 7 | //·Compiler·options:·-unsafe | ||
| 8 | u | 7 | public·class·G<T>·{} |
| 9 | 8 | abstract·class·A | |
| 10 | { | 9 | { |
| 10 | » public·abstract·G<int*[]>·Foo1·(); | ||
| 11 | » public·static·unsafe·byte*·Frob· | ||
| 12 | » { | ||
| 13 | » » get·{·return·(byte·*)·0;·} | ||
| 14 | » } | ||
| 15 | ·· | ||
| 16 | » public·static·void·Main·()· | ||
| 17 | » { | ||
| 18 | » » IntPtr·q·=·(IntPtr)·Frob; | ||
| 19 | » } | ||
| 20 | }</string> | 11 | }</string> |
| 21 | ····<string>//·CS0214:·Pointers·and·fixed·size·buffers·may·only·be·used·in·an·unsafe·context | 12 | ····<string>//·CS0214:·Pointers·and·fixed·size·buffers·may·only·be·used·in·an·unsafe·context |
| 22 | //·Line:·6 | 13 | //·Line:·6 |
| 23 | //·Compiler·options:·-unsafe | 14 | //·Compiler·options:·-unsafe |
| 15 | class·X·{ | ||
| 16 | » void·*a; | ||
| 24 | class·Test | ||
| 25 | { | ||
| 26 | ········public·void·Main·() | ||
| 27 | ········{ | ||
| 28 | ················byte*·arr·=·stackalloc·byte·[4]; | ||
| 29 | ········} | ||
| 30 | }</string> | 17 | }</string> |
| 31 | ····<string>//·CS214:·Pointers·and·fixed·size·buffers·may·only·be·used·in·an·unsafe·context | 18 | ····<string>//·CS0214:·Pointers·and·fixed·size·buffers·may·only·be·used·in·an·unsafe·context |
| 32 | //·Line:· | 19 | //·Line:·13 |
| 33 | //·Compiler·options:·-unsafe | 20 | //·Compiler·options:·-unsafe |
| 34 | public·unsafe·delegate·int*·Bar·(); | ||
| 35 | class· | 21 | class·C |
| 36 | { | 22 | { |
| 37 | » unsafe· | 23 | » public·static·unsafe·void·Write·(params·int*[]·args) |
| 38 | » { | 24 | » { |
| 39 | » » return·null; | ||
| 40 | » } | 25 | » } |
| 26 | » | ||
| 41 | » static·void·Main·() | 27 | » public·static·void·Main·() |
| 42 | » { | 28 | » { |
| 29 | » » Write·(); | ||
| 43 | » » Bar·b; | ||
| 44 | » » unsafe·{ | ||
| 45 | » » » b·=·Test; | ||
| 46 | » » } | ||
| 47 | » » | ||
| 48 | » » b·(); | ||
| 49 | » } | 30 | » } |
| 50 | }</string> | 31 | }</string> |
| 51 | ····<string>//·CS0214:·Pointers·and·fixed·size·buffers·may·only·be·used·in·an·unsafe·context | 32 | ····<string>//·CS0214:·Pointers·and·fixed·size·buffers·may·only·be·used·in·an·unsafe·context |
| 52 | //·Line:·1 | 33 | //·Line:·12 |
| 53 | //·Compiler·options:·-unsafe | 34 | //·Compiler·options:·-unsafe |
| 35 | using·System; | ||
| 54 | struct·X·{ | ||
| 55 | » static·unsafe·void·*a·() | ||
| 56 | » » { | ||
| 57 | » » » return·null; | ||
| 58 | » » } | ||
| 36 | class·X·{ | ||
| 37 | » public·unsafe·int*·A·{·set·{·}·} | ||
| 59 | » static·void·Main·() | ||
| 60 | » » { | ||
| 61 | » » » a·(); | ||
| 62 | » » } | ||
| 63 | » | 38 | » |
| 39 | » void·Foo·() | ||
| 40 | » { | ||
| 41 | » » A·=·null; | ||
| 42 | » } | ||
| 43 | » static·void·Main·()·{} | ||
| 64 | }</string> | 44 | }</string> |
| 65 | ····<string>//·CS0214:·Pointers·and·fixed·size·buffers·may·only·be·used·in·an·unsafe·context | 45 | ····<string>//·CS0214:·Pointers·and·fixed·size·buffers·may·only·be·used·in·an·unsafe·context |
| 66 | //·Line:·11 | 46 | //·Line:·11 |
| 67 | //·Compiler·options:·-unsafe | 47 | //·Compiler·options:·-unsafe |
| 68 | public·class·C | 48 | public·class·C |
| 69 | { | 49 | { |
| Offset 83, 84 lines modified | Offset 62, 89 lines modified | ||
| 83 | » » var·v·=·new·C().i; | 62 | » » var·v·=·new·C().i; |
| 84 | » } | 63 | » } |
| 85 | }</string> | 64 | }</string> |
| 86 | ····<string>//·CS0214:·Pointers·and·fixed·size·buffers·may·only·be·used·in·an·unsafe·context | 65 | ····<string>//·CS0214:·Pointers·and·fixed·size·buffers·may·only·be·used·in·an·unsafe·context |
| 87 | //·Line:·9 | 66 | //·Line:·9 |
| 88 | //·Compiler·options:·-unsafe | 67 | //·Compiler·options:·-unsafe |
| 89 | public·class· | 68 | public·class·aClass |
| 90 | { | 69 | { |
| 70 | » public·struct·foo_t | ||
| 71 | » { | ||
| 72 | » » public·fixed·char·b[16]; | ||
| 73 | » } | ||
| 91 | ········public·void·Foo·() | ||
| 92 | ········{ | ||
| 93 | ················Foo·(null); | ||
| 94 | ········} | ||
| 95 | ········public·static·unsafe·void·Foo·(int*·buf)·{·} | ||
| 96 | }</string> | 74 | }</string> |
| 97 | ····<string>//·CS | 75 | ····<string>//·CS214:·Pointers·and·fixed·size·buffers·may·only·be·used·in·an·unsafe·context |
| 98 | //·Line:· | 76 | //·Line:·21 |
| 99 | //·Compiler·options:·-unsafe | 77 | //·Compiler·options:·-unsafe |
| 78 | public·unsafe·delegate·int*·Bar·(); | ||
| 100 | class·X | 79 | class·X |
| 101 | 80 | { | |
| 81 | » unsafe·static·int*·Test·() | ||
| 82 | » { | ||
| 83 | » » return·null; | ||
| 84 | » } | ||
| 85 | » static·void·Main·() | ||
| 86 | » { | ||
| Max diff block lines reached; 3113/6092 bytes (51.10%) of diff not shown. | |||
| Offset 1, 39 lines modified | Offset 1, 11 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0216</ErrorName> | 3 | ··<ErrorName>CS0216</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0216:·The·operator·`Test.operator·==(Test,·bool)'·requires·a·matching·operator·`!='·to·also·be·defined | ||
| 6 | //·Line:·11 | ||
| 7 | public·abstract·class·Test | ||
| 8 | { | ||
| 9 | » public·static·bool·operator·==·(Test·lhs,·bool·rhs) | ||
| 10 | » { | ||
| 11 | » » return·false; | ||
| 12 | » } | ||
| 13 | » public·static·bool·operator·!=·(Test·lhs,·IDoNotExist·rhs) | ||
| 14 | » { | ||
| 15 | » » return·!(lhs·==·rhs); | ||
| 16 | » } | ||
| 17 | }</string> | ||
| 18 | ····<string>//·CS0216:·The·operator·`X.operator·true(X)'·requires·a·matching·operator·`false'·to·also·be·defined | ||
| 19 | //·Line:·5 | ||
| 20 | class·X·{ | ||
| 21 | » public·static·bool·operator·true·(X·i) | ||
| 22 | » { | ||
| 23 | » » return·true; | ||
| 24 | » } | ||
| 25 | » static·void·Main·() | ||
| 26 | » { | ||
| 27 | » } | ||
| 28 | }</string> | ||
| 29 | ····<string>//·CS0216:·The·operator·`MyType.operator·>(MyType,·MyType)'·requires·a·matching·operator·`<'·to·also·be·defined | 5 | ····<string>//·CS0216:·The·operator·`MyType.operator·>(MyType,·MyType)'·requires·a·matching·operator·`<'·to·also·be·defined |
| 30 | //·Line:·23 | 6 | //·Line:·23 |
| 31 | public·struct·MyType | 7 | public·struct·MyType |
| 32 | { | 8 | { |
| 33 | » int·value; | 9 | » int·value; |
| Offset 75, 23 lines modified | Offset 47, 51 lines modified | ||
| 75 | » { | 47 | » { |
| 76 | » » return·null; | 48 | » » return·null; |
| 77 | » } | 49 | » } |
| 78 | » static·void·Main·()·{ | 50 | » static·void·Main·()·{ |
| 79 | » } | 51 | » } |
| 80 | }</string> | 52 | }</string> |
| 53 | ····<string>//·CS0216:·The·operator·`X.operator·true(X)'·requires·a·matching·operator·`false'·to·also·be·defined | ||
| 54 | //·Line:·5 | ||
| 55 | class·X·{ | ||
| 56 | » public·static·bool·operator·true·(X·i) | ||
| 57 | » { | ||
| 58 | » » return·true; | ||
| 59 | » } | ||
| 60 | » static·void·Main·() | ||
| 61 | » { | ||
| 62 | » } | ||
| 63 | }</string> | ||
| 81 | ····<string>//·CS0216:·The·operator·`Test.operator·==(Test,·bool)'·requires·a·matching·operator·`!='·to·also·be·defined | 64 | ····<string>//·CS0216:·The·operator·`Test.operator·==(Test,·bool)'·requires·a·matching·operator·`!='·to·also·be·defined |
| 82 | //·Line:·10 | 65 | //·Line:·10 |
| 83 | partial·class·Test | 66 | partial·class·Test |
| 84 | { | 67 | { |
| 85 | } | 68 | } |
| 86 | partial·class·Test | 69 | partial·class·Test |
| 87 | { | 70 | { |
| 88 | » public·static·bool·operator·==·(Test·lhs,·bool·rhs) | 71 | » public·static·bool·operator·==·(Test·lhs,·bool·rhs) |
| 89 | » { | 72 | » { |
| 90 | » » return·false; | 73 | » » return·false; |
| 91 | » } | 74 | » } |
| 92 | }</string> | 75 | }</string> |
| 76 | ····<string>//·CS0216:·The·operator·`Test.operator·==(Test,·bool)'·requires·a·matching·operator·`!='·to·also·be·defined | ||
| 77 | //·Line:·11 | ||
| 78 | public·abstract·class·Test | ||
| 79 | { | ||
| 80 | » public·static·bool·operator·==·(Test·lhs,·bool·rhs) | ||
| 81 | » { | ||
| 82 | » » return·false; | ||
| 83 | » } | ||
| 84 | » public·static·bool·operator·!=·(Test·lhs,·IDoNotExist·rhs) | ||
| 85 | » { | ||
| 86 | » » return·!(lhs·==·rhs); | ||
| 87 | » } | ||
| 88 | }</string> | ||
| 93 | ··</Examples> | 89 | ··</Examples> |
| 94 | </ErrorDocumentation> | 90 | </ErrorDocumentation> |
| Offset 1, 11 lines modified | Offset 1, 35 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0217</ErrorName> | 3 | ··<ErrorName>CS0217</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·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 | ||
| 6 | //·Line:·22 | ||
| 7 | public·class·UserOperatorClass | ||
| 8 | { | ||
| 9 | ········public·static·bool·operator·&·(UserOperatorClass·u1,·UserOperatorClass·u2)·{ | ||
| 10 | ················return·true; | ||
| 11 | ········} | ||
| 12 | ···· | ||
| 13 | ········public·static·bool·operator·true·(UserOperatorClass·u)·{ | ||
| 14 | ················return·true; | ||
| 15 | ········} | ||
| 16 | ········public·static·bool·operator·false·(UserOperatorClass·u)·{ | ||
| 17 | ················return·false; | ||
| 18 | ········} | ||
| 19 | ········public·static·void·Main·()·{ | ||
| 20 | ················ | ||
| 21 | ················UserOperatorClass·x·=·new·UserOperatorClass(); | ||
| 22 | ················UserOperatorClass·y·=·new·UserOperatorClass(); | ||
| 23 | ················UserOperatorClass·z·=·x·&&·y; | ||
| 24 | ········} | ||
| 25 | }</string> | ||
| 5 | ····<string>//·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 | 26 | ····<string>//·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 |
| 6 | //·Line:·25 | 27 | //·Line:·25 |
| 7 | public·class·UserOperatorClass | 28 | public·class·UserOperatorClass |
| 8 | { | 29 | { |
| 9 | » public·static·UserOperatorClass·operator·&·(UserOperatorClass·u1,·bool·u2) | 30 | » public·static·UserOperatorClass·operator·&·(UserOperatorClass·u1,·bool·u2) |
| 10 | » { | 31 | » { |
| Offset 25, 33 lines modified | Offset 49, 9 lines modified | ||
| 25 | » public·static·void·Main·() | 49 | » public·static·void·Main·() |
| 26 | » { | 50 | » { |
| 27 | » » UserOperatorClass·x·=·new·UserOperatorClass·(); | 51 | » » UserOperatorClass·x·=·new·UserOperatorClass·(); |
| 28 | » » bool·y·=·true; | 52 | » » bool·y·=·true; |
| 29 | » » UserOperatorClass·z·=·x·&&·y; | 53 | » » UserOperatorClass·z·=·x·&&·y; |
| 30 | » } | 54 | » } |
| 31 | }</string> | 55 | }</string> |
| 32 | ····<string>//·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 | ||
| 33 | //·Line:·22 | ||
| 34 | public·class·UserOperatorClass | ||
| 35 | { | ||
| 36 | ········public·static·bool·operator·&·(UserOperatorClass·u1,·UserOperatorClass·u2)·{ | ||
| 37 | ················return·true; | ||
| 38 | ········} | ||
| 39 | ···· | ||
| 40 | ········public·static·bool·operator·true·(UserOperatorClass·u)·{ | ||
| 41 | ················return·true; | ||
| 42 | ········} | ||
| 43 | ········public·static·bool·operator·false·(UserOperatorClass·u)·{ | ||
| 44 | ················return·false; | ||
| 45 | ········} | ||
| 46 | ········public·static·void·Main·()·{ | ||
| 47 | ················ | ||
| 48 | ················UserOperatorClass·x·=·new·UserOperatorClass(); | ||
| 49 | ················UserOperatorClass·y·=·new·UserOperatorClass(); | ||
| 50 | ················UserOperatorClass·z·=·x·&&·y; | ||
| 51 | ········} | ||
| 52 | }</string> | ||
| 53 | ··</Examples> | 56 | ··</Examples> |
| 54 | </ErrorDocumentation> | 57 | </ErrorDocumentation> |
| Offset 5, 19 lines modified | Offset 5, 48 lines modified | ||
| 5 | ····<string>//·CS0219:·The·variable·`o'·is·assigned·but·its·value·is·never·used | 5 | ····<string>//·CS0219:·The·variable·`o'·is·assigned·but·its·value·is·never·used |
| 6 | //·Line:·10 | 6 | //·Line:·10 |
| 7 | //·Compiler·options:·-warn:3·-warnaserror | 7 | //·Compiler·options:·-warn:3·-warnaserror |
| 8 | public·class·MyClass2 | 8 | public·class·MyClass2 |
| 9 | { | 9 | { |
| 10 | » static·public·bool·b; | 10 | » static·public·bool·b; |
| 11 | 11 | ········static·public·void·Main·() | |
| 12 | ········{ | ||
| 13 | ················object·o; | ||
| 14 | ················switch·(b)·{ | ||
| 15 | » » case·true: | ||
| 16 | » » » o·=·"yo"; | ||
| 17 | » » » break; | ||
| 18 | ················} | ||
| 19 | ········} | ||
| 20 | }</string> | ||
| 21 | ····<string>//·CS0219:·The·constant·`C'·is·never·used | ||
| 22 | //·Line:·9 | ||
| 23 | //·Compiler·options:·-warn:3·-warnaserror | ||
| 24 | class·C | ||
| 25 | { | ||
| 26 | » public·static·void·Main·() | ||
| 12 | » { | 27 | » { |
| 13 | » » object·o; | ||
| 14 | » » i | 28 | » » const·int·C·=·1; |
| 29 | » } | ||
| 30 | }</string> | ||
| 31 | ····<string>//·CS0219:·The·variable·`e'·is·assigned·but·its·value·is·never·used | ||
| 32 | //·Line:·12 | ||
| 33 | //·Compiler·options:·-warn:3·-warnaserror | ||
| 34 | using·System; | ||
| 35 | public·class·ConsoleStub | ||
| 36 | { | ||
| 37 | » public·static·void·Main() | ||
| 38 | » { | ||
| 39 | » » try·{ | ||
| 40 | » » }·catch·(Exception·e)·{ | ||
| 15 | » » » | 41 | » » » e·=·null; |
| 42 | » » } | ||
| 16 | » } | 43 | » } |
| 17 | }</string> | 44 | }</string> |
| 18 | ····<string>//·CS0219:·The·variable·`p'·is·assigned·but·its·value·is·never·used | 45 | ····<string>//·CS0219:·The·variable·`p'·is·assigned·but·its·value·is·never·used |
| 19 | //·Line:·9 | 46 | //·Line:·9 |
| 20 | //·Compiler·options:·-warn:3·-warnaserror | 47 | //·Compiler·options:·-warn:3·-warnaserror |
| 21 | class·Main | 48 | class·Main |
| Offset 40, 25 lines modified | Offset 69, 14 lines modified | ||
| 40 | » » try·{ | 69 | » » try·{ |
| 41 | » » » yield·return·1; | 70 | » » » yield·return·1; |
| 42 | » » }·finally·{ | 71 | » » }·finally·{ |
| 43 | » » » int·i·=·100; | 72 | » » » int·i·=·100; |
| 44 | » » } | 73 | » » } |
| 45 | » } | 74 | » } |
| 46 | }</string> | 75 | }</string> |
| 47 | ····<string>//·CS0219:·The·constant·`C'·is·never·used | ||
| 48 | //·Line:·9 | ||
| 49 | //·Compiler·options:·-warn:3·-warnaserror | ||
| 50 | class·C | ||
| 51 | { | ||
| 52 | » public·static·void·Main·() | ||
| 53 | » { | ||
| 54 | » » const·int·C·=·1; | ||
| 55 | » } | ||
| 56 | }</string> | ||
| 57 | ····<string>//·CS0219:·The·variable·`next'·is·assigned·but·its·value·is·never·used | 76 | ····<string>//·CS0219:·The·variable·`next'·is·assigned·but·its·value·is·never·used |
| 58 | //·Line:·9 | 77 | //·Line:·9 |
| 59 | //·Compiler·options:·-warn:3·-warnaserror | 78 | //·Compiler·options:·-warn:3·-warnaserror |
| 60 | class·A | 79 | class·A |
| 61 | { | 80 | { |
| 62 | » public·static·void·Main·() | 81 | » public·static·void·Main·() |
| Offset 69, 34 lines modified | Offset 87, 16 lines modified | ||
| 69 | ····<string>//·CS0219:·The·variable·`o'·is·assigned·but·its·value·is·never·used | 87 | ····<string>//·CS0219:·The·variable·`o'·is·assigned·but·its·value·is·never·used |
| 70 | //·Line:·10 | 88 | //·Line:·10 |
| 71 | //·Compiler·options:·-warn:3·-warnaserror | 89 | //·Compiler·options:·-warn:3·-warnaserror |
| 72 | public·class·MyClass2 | 90 | public·class·MyClass2 |
| 73 | { | 91 | { |
| 74 | » static·public·bool·b; | 92 | » static·public·bool·b; |
| 75 | 93 | » static·public·void·Main·() | |
| 76 | ········{ | ||
| 77 | ················object·o; | ||
| 78 | ················switch·(b)·{ | ||
| 79 | » » case·true: | ||
| 80 | » » » o·=·"yo"; | ||
| 81 | » » » break; | ||
| 82 | ················} | ||
| 83 | ········} | ||
| 84 | }</string> | ||
| 85 | ····<string>//·CS0219:·The·variable·`e'·is·assigned·but·its·value·is·never·used | ||
| 86 | //·Line:·12 | ||
| 87 | //·Compiler·options:·-warn:3·-warnaserror | ||
| 88 | using·System; | ||
| 89 | public·class·ConsoleStub | ||
| 90 | { | ||
| 91 | » public·static·void·Main() | ||
| 92 | » { | 94 | » { |
| 93 | » » try·{ | ||
| 94 | » » | 95 | » » object·o; |
| 96 | » » if·(b) | ||
| 95 | » » » | 97 | » » » o·=·null; |
| 96 | » » } | ||
| 97 | » } | 98 | » } |
| 98 | }</string> | 99 | }</string> |
| 99 | ··</Examples> | 100 | ··</Examples> |
| 100 | </ErrorDocumentation> | 101 | </ErrorDocumentation> |
| Offset 1, 23 lines modified | Offset 1, 22 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0220</ErrorName> | 3 | ··<ErrorName>CS0220</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0220:·The·operation·overflows·at·compile·time·in·checked·mode | 5 | ····<string>//·CS0220:·The·operation·overflows·at·compile·time·in·checked·mode |
| 6 | //·Line:· | 6 | //·Line:·10 |
| 7 | //·Compiler·options:·-unsafe | ||
| 7 | enum·E1·:·byte | ||
| 8 | { | ||
| 9 | ··A·=·2 | ||
| 10 | } | ||
| 11 | 8 | class·TestClass | |
| 12 | { | 9 | { |
| 13 | ··A·=·ulong.MaxValue·-·1, | ||
| 14 | ·· | 10 | » public·unsafe·static·void·Main·() |
| 11 | » { | ||
| 12 | » » int*·arr·=·null; | ||
| 13 | » » var·i·=·arr[long.MaxValue]; | ||
| 14 | » } | ||
| 15 | }</string> | 15 | }</string> |
| 16 | ····<string>//·CS0220:·The·operation·overflows·at·compile·time·in·checked·mode | 16 | ····<string>//·CS0220:·The·operation·overflows·at·compile·time·in·checked·mode |
| 17 | //·Line:·7 | 17 | //·Line:·7 |
| 18 | public·class·MainClass·{ | 18 | public·class·MainClass·{ |
| 19 | ········static·void·Main·()·{ | 19 | ········static·void·Main·()·{ |
| 20 | ················int·a·=·-int.MinValue; | 20 | ················int·a·=·-int.MinValue; |
| Offset 29, 20 lines modified | Offset 28, 21 lines modified | ||
| 29 | public·class·MainClass·{ | 28 | public·class·MainClass·{ |
| 30 | ········static·void·Main·()·{ | 29 | ········static·void·Main·()·{ |
| 31 | ················const·long·a·=·long.MaxValue; | 30 | ················const·long·a·=·long.MaxValue; |
| 32 | ················long·b·=·2·*·a; | 31 | ················long·b·=·2·*·a; |
| 33 | ········} | 32 | ········} |
| 34 | }</string> | 33 | }</string> |
| 35 | ····<string>//·CS0220:·The·operation·overflows·at·compile·time·in·checked·mode | 34 | ····<string>//·CS0220:·The·operation·overflows·at·compile·time·in·checked·mode |
| 36 | //·Line:· | 35 | //·Line:·7 |
| 37 | //·Compiler·options:·-unsafe | ||
| 38 | 36 | enum·E1·:·byte | |
| 39 | { | 37 | { |
| 40 | » public·unsafe·static·void·Main·() | ||
| 41 | » { | ||
| 42 | » » int*·arr·=·null; | ||
| 43 | » » var·i·=·arr[long.MaxValue]; | ||
| 44 | 38 | ··A·=·2 | |
| 39 | } | ||
| 40 | enum·E2·:·ulong | ||
| 41 | { | ||
| 42 | ··A·=·ulong.MaxValue·-·1, | ||
| 43 | ··B·=·E1.A·*·E2.A | ||
| 45 | }</string> | 44 | }</string> |
| 46 | ··</Examples> | 45 | ··</Examples> |
| 47 | </ErrorDocumentation> | 46 | </ErrorDocumentation> |
| Offset 1, 99 lines modified | Offset 1, 80 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0221</ErrorName> | 3 | ··<ErrorName>CS0221</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0221:·Constant·value·` | 5 | ····<string>//·CS0221:·Constant·value·`3.402823E+38'·cannot·be·converted·to·a·`ulong'·(use·`unchecked'·syntax·to·override) |
| 6 | //·Line:·6 | 6 | //·Line:·6 |
| 7 | class·X·{ | 7 | class·X·{ |
| 8 | » static·void·Main·()·{ | 8 | » static·void·Main·()·{ |
| 9 | » » | 9 | » » const·float·d·=·float.MaxValue; |
| 10 | » » ulong·b·=·(ulong)·d; | ||
| 10 | » } | 11 | » } |
| 11 | }</string> | 12 | }</string> |
| 12 | ····<string>//·CS0221:·Constant·value·` | 13 | ····<string>//·CS0221:·Constant·value·`256'·cannot·be·converted·to·a·`byte'·(use·`unchecked'·syntax·to·override) |
| 13 | //·Line:·1 | 14 | //·Line:·13 |
| 14 | using·System; | ||
| 15 | public·class·My3Attribute·:·Attribute | ||
| 16 | { | ||
| 17 | » public·My3Attribute·(byte·b)·{} | ||
| 18 | } | ||
| 19 | [My3((byte)-1)] | ||
| 20 | public·class·Test·{·}</string> | ||
| 21 | ····<string>//·CS0221:·Constant·value·`-3'·cannot·be·converted·to·a·`ushort'·(use·`unchecked'·syntax·to·override) | ||
| 22 | //·Line:·12 | ||
| 23 | class· | 15 | class·Test |
| 24 | { | 16 | { |
| 25 | » | 17 | » public·static·explicit·operator·Test·(byte·b) |
| 18 | » { | ||
| 19 | » » return·null; | ||
| 20 | » } | ||
| 26 | » static·void·Main·() | 21 | » static·void·Main·() |
| 27 | » { | 22 | » { |
| 23 | » » var·a·=·(Test)·256UL; | ||
| 28 | » » D·d·=·checked·(delegate·{ | ||
| 29 | » » » const·ushort·s·=·(ushort)·-3; | ||
| 30 | » » }); | ||
| 31 | » } | 24 | » } |
| 32 | }</string> | 25 | }</string> |
| 33 | ····<string>//·CS0221:· | 26 | ····<string>//·CS0221:·Constant·value·`NaN'·cannot·be·converted·to·a·`int'·(use·`unchecked'·syntax·to·override) |
| 34 | //·Line:· | 27 | //·Line:·6 |
| 35 | class· | 28 | class·X·{ |
| 36 | { | ||
| 37 | » static·void·Main·() | 29 | » static·void·Main·()·{ |
| 30 | » » System.Console.WriteLine·((int)double.NaN); | ||
| 38 | » { | ||
| 39 | » » unchecked·{ | ||
| 40 | » » » checked·{ | ||
| 41 | » » » » const·char·c·=·(char)·-1; | ||
| 42 | » » » } | ||
| 43 | » » } | ||
| 44 | » } | 31 | » } |
| 45 | }</string> | 32 | }</string> |
| 46 | ····<string>//·CS0221:·Constant·value·`-1'·cannot·be·converted·to·a·` | 33 | ····<string>//·CS0221:·Constant·value·`-10.1'·cannot·be·converted·to·a·`byte'·(use·`unchecked'·syntax·to·override) |
| 47 | //·Line:· | 34 | //·Line:·6 |
| 48 | class· | 35 | class·T·{ |
| 49 | { | ||
| 50 | » | 36 | » static·void·Main·()·{ |
| 37 | » » byte·d·=·(byte)-10.1d; | ||
| 38 | » } | ||
| 39 | }</string> | ||
| 40 | ····<string>//·CS0221:·Constant·value·`4294967295'·cannot·be·converted·to·a·`int'·(use·`unchecked'·syntax·to·override) | ||
| 41 | //·Line:·5 | ||
| 42 | class·X·{ | ||
| 43 | » int·a·=·(int)·0xffffffff; | ||
| 44 | » | ||
| 51 | » static·void·Main·() | 45 | » static·void·Main·() |
| 52 | » { | 46 | » { |
| 47 | » » | ||
| 53 | » » D·d·=·unchecked·(delegate·{ | ||
| 54 | » » » const·ushort·s·=·(ushort)·-1; | ||
| 55 | » » }); | ||
| 56 | » } | 48 | » } |
| 57 | }</string> | 49 | }</string> |
| 58 | ····<string>//·CS0221:·Constant·value·` | 50 | ····<string>//·CS0221:·Constant·value·`NaN'·cannot·be·converted·to·a·`char'·(use·`unchecked'·syntax·to·override) |
| 59 | //·Line:· | 51 | //·Line:·6 |
| 60 | enum·E:byte·{ | ||
| 61 | » Min·=·9 | ||
| 62 | } | ||
| 63 | class· | 52 | class·X·{ |
| 64 | » static·void·Main·()·{ | 53 | » static·void·Main·()·{ |
| 65 | » » » E·error·=·E.Min·-·100; | ||
| 66 | » » | 54 | » » System.Console.WriteLine·((char)float.NaN); |
| 67 | » } | 55 | » } |
| 68 | }</string> | 56 | }</string> |
| 69 | ····<string>//·CS0221:·Constant·value·`2 | 57 | ····<string>//·CS0221:·Constant·value·`-200'·cannot·be·converted·to·a·`byte'·(use·`unchecked'·syntax·to·override) |
| 70 | //·Line:· | 58 | //·Line:·6 |
| 59 | enum·AA·:·byte·{·a,·b·=·200·} | ||
| 71 | class·Test | ||
| 72 | { | ||
| 73 | » public·static·explicit·operator·Test·(byte·b) | ||
| 74 | » { | ||
| 75 | » » return·null; | ||
| 76 | » } | ||
| 60 | public·class·C | ||
| 61 | { | ||
| 77 | » static·void·Main·() | 62 | » public·static·void·Main·() |
| 78 | » { | 63 | » { |
| 79 | » » | 64 | » » const·int·b·=·AA.a·-·AA.b; |
| 80 | » } | 65 | » } |
| 81 | }</string> | 66 | }</string> |
| 82 | ····<string>//·CS0221:·Constant·value·`-9'·cannot·be·converted·to·a·`E'·(use·`unchecked'·syntax·to·override) | 67 | ····<string>//·CS0221:·Constant·value·`-9'·cannot·be·converted·to·a·`E'·(use·`unchecked'·syntax·to·override) |
| 83 | //·Line:·10 | 68 | //·Line:·10 |
| 84 | enum·E:byte·{ | 69 | enum·E:byte·{ |
| 85 | » Min·=·9 | 70 | » Min·=·9 |
| Offset 101, 73 lines modified | Offset 82, 92 lines modified | ||
| 101 | class·T·{ | 82 | class·T·{ |
| 102 | » static·void·Main·()·{ | 83 | » static·void·Main·()·{ |
| 103 | » » » E·error·=·(E)(-9); | 84 | » » » E·error·=·(E)(-9); |
| 104 | » » » System.Console.WriteLine·(error); | 85 | » » » System.Console.WriteLine·(error); |
| 105 | » } | 86 | » } |
| 106 | }</string> | 87 | }</string> |
| 107 | ····<string>//·CS0221:·Constant·value·` | 88 | ····<string>//·CS0221:·Constant·value·`Infinity'·cannot·be·converted·to·a·`uint'·(use·`unchecked'·syntax·to·override) |
| 108 | //·Line:·6 | 89 | //·Line:·6 |
| Max diff block lines reached; 3032/7096 bytes (42.73%) of diff not shown. | |||
| Offset 2, 20 lines modified | Offset 2, 20 lines modified | ||
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0227</ErrorName> | 3 | ··<ErrorName>CS0227</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0227:·Unsafe·code·requires·the·`unsafe'·command·line·option·to·be·specified | 5 | ····<string>//·CS0227:·Unsafe·code·requires·the·`unsafe'·command·line·option·to·be·specified |
| 6 | //·Line:·5 | 6 | //·Line:·5 |
| 7 | class·UnsafeClass·{ | 7 | class·UnsafeClass·{ |
| 8 | ········UnsafeClass·()· | 8 | ········unsafe·UnsafeClass·()·{} |
| 9 | » { | ||
| 10 | » ····unsafe·{} | ||
| 11 | » } | ||
| 12 | }</string> | 9 | }</string> |
| 13 | ····<string>//·CS0227:·Unsafe·code·requires·the·`unsafe'·command·line·option·to·be·specified | 10 | ····<string>//·CS0227:·Unsafe·code·requires·the·`unsafe'·command·line·option·to·be·specified |
| 14 | //·Line:·5 | 11 | //·Line:·5 |
| 15 | class·UnsafeClass·{ | 12 | class·UnsafeClass·{ |
| 16 | ········ | 13 | ········UnsafeClass·()· |
| 14 | » { | ||
| 15 | » ····unsafe·{} | ||
| 16 | » } | ||
| 17 | }</string> | 17 | }</string> |
| 18 | ··</Examples> | 18 | ··</Examples> |
| 19 | </ErrorDocumentation> | 19 | </ErrorDocumentation> |
| Offset 1, 11 lines modified | Offset 1, 22 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0229</ErrorName> | 3 | ··<ErrorName>CS0229</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0229:·Ambiguity·between·`TestLib.FOO'·and·`TestLib.FOO' | ||
| 6 | //·Line:·9 | ||
| 7 | //·Compiler·options:·-r:CS0229-3-lib.dll | ||
| 8 | public·class·Test | ||
| 9 | { | ||
| 10 | ···public·static·void·Main() | ||
| 11 | ···{ | ||
| 12 | ······System.Console.WriteLine(TestLib.FOO); | ||
| 13 | ···} | ||
| 14 | }</string> | ||
| 5 | ····<string>//·CS0229:·Ambiguity·between·`Program.I1.Id'·and·`Program.I2.Id' | 15 | ····<string>//·CS0229:·Ambiguity·between·`Program.I1.Id'·and·`Program.I2.Id' |
| 6 | //·Line:·18 | 16 | //·Line:·18 |
| 7 | static·class·Program | 17 | static·class·Program |
| 8 | { | 18 | { |
| 9 | » public·interface·I1 | 19 | » public·interface·I1 |
| 10 | » { | 20 | » { |
| Offset 18, 14 lines modified | Offset 29, 53 lines modified | ||
| 18 | » } | 29 | » } |
| 19 | » static·void·Generic<T>·(T·item)·where·T·:·I1,·I2 | 30 | » static·void·Generic<T>·(T·item)·where·T·:·I1,·I2 |
| 20 | » { | 31 | » { |
| 21 | » » var·a·=·item.Id; | 32 | » » var·a·=·item.Id; |
| 22 | » } | 33 | » } |
| 23 | }</string> | 34 | }</string> |
| 35 | ····<string>//·CS0229:·Ambiguity·between·`A.N'·and·`B.N' | ||
| 36 | //·Line:·26 | ||
| 37 | using·static·A; | ||
| 38 | using·static·B; | ||
| 39 | class·A | ||
| 40 | { | ||
| 41 | » public·class·N | ||
| 42 | » { | ||
| 43 | » » public·static·void·Foo·() | ||
| 44 | » » { | ||
| 45 | » » } | ||
| 46 | » } | ||
| 47 | } | ||
| 48 | class·B | ||
| 49 | { | ||
| 50 | » public·static·int·N; | ||
| 51 | } | ||
| 52 | class·Test | ||
| 53 | { | ||
| 54 | » public·static·void·Main·() | ||
| 55 | » { | ||
| 56 | » » N.Foo·(); | ||
| 57 | » } | ||
| 58 | }</string> | ||
| 59 | ····<string>//·CS0229:·Ambiguity·between·`TestLib.FOO()'·and·`TestLib.FOO' | ||
| 60 | //·Line:·9 | ||
| 61 | //·Compiler·options:·-r:CS0229-4-lib.dll | ||
| 62 | public·class·Test | ||
| 63 | { | ||
| 64 | ···public·static·void·Main() | ||
| 65 | ···{ | ||
| 66 | ······System.Console.WriteLine(TestLib.FOO); | ||
| 67 | ···} | ||
| 68 | }</string> | ||
| 24 | ····<string>//·CS0229:·Ambiguity·between·`IList.Test'·and·`ICounter.Test' | 69 | ····<string>//·CS0229:·Ambiguity·between·`IList.Test'·and·`ICounter.Test' |
| 25 | //·Line:·26 | 70 | //·Line:·26 |
| 26 | using·System; | 71 | using·System; |
| 27 | delegate·void·Foo·(); | 72 | delegate·void·Foo·(); |
| Offset 72, 59 lines modified | Offset 122, 9 lines modified | ||
| 72 | class·Test | 122 | class·Test |
| 73 | { | 123 | { |
| 74 | » static·void·Foo·(IListCounter·t) | 124 | » static·void·Foo·(IListCounter·t) |
| 75 | » { | 125 | » { |
| 76 | » » t.Count·=·9;· | 126 | » » t.Count·=·9;· |
| 77 | » } | 127 | » } |
| 78 | }</string> | 128 | }</string> |
| 79 | ····<string>//·CS0229:·Ambiguity·between·`TestLib.FOO'·and·`TestLib.FOO' | ||
| 80 | //·Line:·9 | ||
| 81 | //·Compiler·options:·-r:CS0229-3-lib.dll | ||
| 82 | public·class·Test | ||
| 83 | { | ||
| 84 | ···public·static·void·Main() | ||
| 85 | ···{ | ||
| 86 | ······System.Console.WriteLine(TestLib.FOO); | ||
| 87 | ···} | ||
| 88 | }</string> | ||
| 89 | ····<string>//·CS0229:·Ambiguity·between·`A.N'·and·`B.N' | ||
| 90 | //·Line:·26 | ||
| 91 | using·static·A; | ||
| 92 | using·static·B; | ||
| 93 | class·A | ||
| 94 | { | ||
| 95 | » public·class·N | ||
| 96 | » { | ||
| 97 | » » public·static·void·Foo·() | ||
| 98 | » » { | ||
| 99 | » » } | ||
| 100 | » } | ||
| 101 | } | ||
| 102 | class·B | ||
| 103 | { | ||
| 104 | » public·static·int·N; | ||
| 105 | } | ||
| 106 | class·Test | ||
| 107 | { | ||
| 108 | » public·static·void·Main·() | ||
| 109 | » { | ||
| 110 | » » N.Foo·(); | ||
| 111 | » } | ||
| 112 | }</string> | ||
| 113 | ····<string>//·CS0229:·Ambiguity·between·`TestLib.FOO()'·and·`TestLib.FOO' | ||
| 114 | //·Line:·9 | ||
| 115 | //·Compiler·options:·-r:CS0229-4-lib.dll | ||
| Max diff block lines reached; 23/2396 bytes (0.96%) of diff not shown. | |||
| Offset 2, 29 lines modified | Offset 2, 29 lines modified | ||
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0231</ErrorName> | 3 | ··<ErrorName>CS0231</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0231:·A·params·parameter·must·be·the·last·parameter·in·a·formal·parameter·list | 5 | ····<string>//·CS0231:·A·params·parameter·must·be·the·last·parameter·in·a·formal·parameter·list |
| 6 | //·Line:·5 | 6 | //·Line:·5 |
| 7 | class·Test | 7 | class·Test |
| 8 | { | 8 | { |
| 9 | ········void·Foo·(params·object[]·o,·bool·b)·{} | 9 | ········void·Foo·(int·i,·params·object[]·o,·bool·b)·{} |
| 10 | }</string> | 10 | }</string> |
| 11 | ····<string>//·CS0231:·A·params·parameter·must·be·the·last·parameter·in·a·formal·parameter·list | 11 | ····<string>//·CS0231:·A·params·parameter·must·be·the·last·parameter·in·a·formal·parameter·list |
| 12 | //·Line:·5 | 12 | //·Line:·5 |
| 13 | class·Test | 13 | class·Test |
| 14 | { | 14 | { |
| 15 | » void·Foo·( | 15 | » void·Foo·(params·object[]·o,·params·bool[]·b)·{} |
| 16 | }</string> | 16 | }</string> |
| 17 | ····<string>//·CS0231:·A·params·parameter·must·be·the·last·parameter·in·a·formal·parameter·list | 17 | ····<string>//·CS0231:·A·params·parameter·must·be·the·last·parameter·in·a·formal·parameter·list |
| 18 | //·Line:·5 | 18 | //·Line:·5 |
| 19 | class·Test | 19 | class·Test |
| 20 | { | 20 | { |
| 21 | 21 | » void·Foo·(int·i,·params·object[]·o,·params·bool[]·b)·{} | |
| 22 | }</string> | 22 | }</string> |
| 23 | ····<string>//·CS0231:·A·params·parameter·must·be·the·last·parameter·in·a·formal·parameter·list | 23 | ····<string>//·CS0231:·A·params·parameter·must·be·the·last·parameter·in·a·formal·parameter·list |
| 24 | //·Line:·5 | 24 | //·Line:·5 |
| 25 | class·Test | 25 | class·Test |
| 26 | { | 26 | { |
| 27 | 27 | ········void·Foo·(params·object[]·o,·bool·b)·{} | |
| 28 | }</string> | 28 | }</string> |
| 29 | ··</Examples> | 29 | ··</Examples> |
| 30 | </ErrorDocumentation> | 30 | </ErrorDocumentation> |
| Offset 9, 14 lines modified | Offset 9, 26 lines modified | ||
| 9 | namespace·A.B.System·{ | 9 | namespace·A.B.System·{ |
| 10 | » public·class·Test·{· | 10 | » public·class·Test·{· |
| 11 | » » public·static·void·Main·()·{ | 11 | » » public·static·void·Main·()·{ |
| 12 | » » » Console.WriteLine·(typeof·(System.Enum)); | 12 | » » » Console.WriteLine·(typeof·(System.Enum)); |
| 13 | » » }· | 13 | » » }· |
| 14 | » }· | 14 | » }· |
| 15 | }</string> | 15 | }</string> |
| 16 | ····<string>//·CS0234:·The·type·or·namespace·name·`Linq'·does·not·exist·in·the·namespace·`System'.·Are·you·missing·`System.Core'·assembly·reference? | ||
| 17 | //·Line:·5 | ||
| 18 | //·Compiler·options:·-noconfig | ||
| 19 | using·System.Linq; | ||
| 20 | class·C | ||
| 21 | { | ||
| 22 | » public·static·void·Main·() | ||
| 23 | » { | ||
| 24 | » } | ||
| 25 | }</string> | ||
| 16 | ····<string>//·CS0234:·The·type·or·namespace·name·`Type'·does·not·exist·in·the·namespace·`MonoTests.System'.·Are·you·missing·an·assembly·reference? | 26 | ····<string>//·CS0234:·The·type·or·namespace·name·`Type'·does·not·exist·in·the·namespace·`MonoTests.System'.·Are·you·missing·an·assembly·reference? |
| 17 | //·Line:·12 | 27 | //·Line:·12 |
| 18 | using·System; | 28 | using·System; |
| 19 | namespace·MonoTests.System | 29 | namespace·MonoTests.System |
| 20 | { | 30 | { |
| Offset 24, 21 lines modified | Offset 36, 9 lines modified | ||
| 24 | » { | 36 | » { |
| 25 | » » public·static·void·Main·() | 37 | » » public·static·void·Main·() |
| 26 | » » { | 38 | » » { |
| 27 | » » » Console.WriteLine·(System.Type.GetType·("System.String")); | 39 | » » » Console.WriteLine·(System.Type.GetType·("System.String")); |
| 28 | » » } | 40 | » » } |
| 29 | » } | 41 | » } |
| 30 | }</string> | 42 | }</string> |
| 31 | ····<string>//·CS0234:·The·type·or·namespace·name·`Linq'·does·not·exist·in·the·namespace·`System'.·Are·you·missing·`System.Core'·assembly·reference? | ||
| 32 | //·Line:·5 | ||
| 33 | //·Compiler·options:·-noconfig | ||
| 34 | using·System.Linq; | ||
| 35 | class·C | ||
| 36 | { | ||
| 37 | » public·static·void·Main·() | ||
| 38 | » { | ||
| 39 | » } | ||
| 40 | }</string> | ||
| 41 | ··</Examples> | 43 | ··</Examples> |
| 42 | </ErrorDocumentation> | 44 | </ErrorDocumentation> |
| Offset 1, 26 lines modified | Offset 1, 26 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0244</ErrorName> | 3 | ··<ErrorName>CS0244</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0244:·The·`is'·operator·cannot·be·applied·to·an·operand·of·pointer·type | 5 | ····<string>//·CS0244:·The·`is'·operator·cannot·be·applied·to·an·operand·of·pointer·type |
| 6 | //·Line:·7 | ||
| 7 | //·Compiler·options:·-unsafe | ||
| 8 | class·UnsafeClass·{ | ||
| 9 | ········unsafe·UnsafeClass·(int*·pointer)·{ | ||
| 10 | ················if·(pointer·is·string)·{} | ||
| 11 | ········} | ||
| 12 | }</string> | ||
| 13 | ····<string>//·CS0244:·The·`is'·operator·cannot·be·applied·to·an·operand·of·pointer·type | ||
| 6 | //·Line:·9 | 14 | //·Line:·9 |
| 7 | //·Compiler·options:·-unsafe | 15 | //·Compiler·options:·-unsafe |
| 8 | class·C | 16 | class·C |
| 9 | { | 17 | { |
| 10 | ····static·unsafe·void·Main() | 18 | ····static·unsafe·void·Main() |
| 11 | ····{ | 19 | ····{ |
| 12 | ········bool·p·=·null·is·int*; | 20 | ········bool·p·=·null·is·int*; |
| 13 | ····} | 21 | ····} |
| 14 | }</string> | 22 | }</string> |
| 15 | ····<string>//·CS0244:·The·`is'·operator·cannot·be·applied·to·an·operand·of·pointer·type | ||
| 16 | //·Line:·7 | ||
| 17 | //·Compiler·options:·-unsafe | ||
| 18 | class·UnsafeClass·{ | ||
| 19 | ········unsafe·UnsafeClass·(int*·pointer)·{ | ||
| 20 | ················if·(pointer·is·string)·{} | ||
| 21 | ········} | ||
| 22 | }</string> | ||
| 23 | ··</Examples> | 23 | ··</Examples> |
| 24 | </ErrorDocumentation> | 24 | </ErrorDocumentation> |
| Offset 1, 91 lines modified | Offset 1, 84 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0246</ErrorName> | 3 | ··<ErrorName>CS0246</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0246:·The·type·or·namespace·name·` | 5 | ····<string>//·CS0246:·The·type·or·namespace·name·`ErrorType'·could·not·be·found.·Are·you·missing·an·assembly·reference? |
| 6 | //·Line:·5 | 6 | //·Line:·5 |
| 7 | using·C·=·Cks.Runtime.Data; | ||
| 8 | 7 | interface·A·{ | |
| 8 | ········ErrorType·Method(); | ||
| 9 | }</string> | ||
| 10 | ····<string>//·CS0246:·The·type·or·namespace·name·`dynamic'·could·not·be·found.·Are·you·missing·an·assembly·reference? | ||
| 11 | //·Line:·4 | ||
| 9 | 12 | using·dynamic;</string> | |
| 13 | ····<string>//·CS0246:·The·type·or·namespace·name·`NotExist'·could·not·be·found.·Are·you·missing·an·assembly·reference? | ||
| 14 | //·Line:·6 | ||
| 15 | class·X | ||
| 10 | { | 16 | { |
| 11 | » | 17 | » NotExist<float>·foo; |
| 12 | }</string> | 18 | }</string> |
| 13 | ····<string>//·CS0246:·The·type·or·namespace·name·`ErrorType'·could·not·be·found.·Are·you·missing·an·assembly·reference? | 19 | ····<string>//·CS0246:·The·type·or·namespace·name·`ErrorType'·could·not·be·found.·Are·you·missing·an·assembly·reference? |
| 14 | //·Line:·5 | 20 | //·Line:·5 |
| 15 | interface·A·{ | 21 | interface·A·{ |
| 16 | ········event·ErrorType·Test; | 22 | ········event·ErrorType·Test; |
| 17 | }</string> | 23 | }</string> |
| 18 | ····<string>//·CS0246:·The·type·or·namespace·name·`Foo'·could·not·be·found.·Are·you·missing·an·assembly·reference? | 24 | ····<string>//·CS0246:·The·type·or·namespace·name·`Foo'·could·not·be·found.·Are·you·missing·an·assembly·reference? |
| 19 | //·Line:·8 | ||
| 20 | class·Crashy | ||
| 21 | { | ||
| 22 | » void·Call·(System.Action<object>·action)·{·} | ||
| 23 | » public·void·DoCrash·()·=>·Call·(f·=>·f·as·Foo); | ||
| 24 | }</string> | ||
| 25 | ····<string>//·CS0246:·The·type·or·namespace·name·`Foo'·could·not·be·found.·Are·you·missing·an·assembly·reference? | ||
| 26 | //·Line:·4 | 25 | //·Line:·4 |
| 27 | using·Foo;</string> | 26 | using·Foo;</string> |
| 28 | ····<string>//·CS0246:·The·type·or·namespace·name·` | 27 | ····<string>//·CS0246:·The·type·or·namespace·name·`T'·could·not·be·found.·Are·you·missing·an·assembly·reference? |
| 29 | //·Line:·13 | 28 | //·Line:·13 |
| 30 | using·System; | 29 | using·System; |
| 30 | using·System.Collections.Generic; | ||
| 31 | class· | 31 | class·X |
| 32 | { | 32 | { |
| 33 | » public·static·void·Main·() | 33 | » public·static·void·Main·() |
| 34 | » { | 34 | » { |
| 35 | » » Foo·(()·=>·{ | ||
| 36 | » » » IEnumerable<object>·f·=·null; | ||
| 37 | » » » foreach·(KeyValuePair<int,·T>·e·in·f)·{ | ||
| 35 | » » try·{ | ||
| 36 | » » » throw·null; | ||
| 37 | » » }·catch·(ArgumentException)·{ | ||
| 38 | » » }·catch·(aGgt)·{ | ||
| 39 | » » } | 38 | » » » } |
| 39 | » » }); | ||
| 40 | » } | 40 | » } |
| 41 | }</string> | ||
| 42 | ····<string>//·CS0246:·The·type·or·namespace·name·`Reflection'·could·not·be·found.·Are·you·missing·an·assembly·reference? | ||
| 43 | //·Line:·7 | ||
| 44 | using·System; | ||
| 41 | » static·void·Foo·(Action·a) | ||
| 42 | » { | ||
| 43 | » } | ||
| 45 | class·foo·{ | ||
| 46 | ····static·void·Main(string[]·args·)·{···· | ||
| 47 | ········Reflection.ConstructorInfo·ci;········ | ||
| 48 | ····} | ||
| 49 | }</string> | 44 | }</string> |
| 50 | ····<string>//·CS0246:·The·type·or·namespace·name·` | 45 | ····<string>//·CS0246:·The·type·or·namespace·name·`dynamic'·could·not·be·found.·Are·you·missing·an·assembly·reference? |
| 51 | //·Line:· | 46 | //·Line:·4 |
| 52 | using·System; | ||
| 53 | public·class·classAttribute·:·Attribute | ||
| 54 | { | ||
| 55 | 47 | using·static·dynamic;</string> | |
| 48 | ····<string>//·CS0246:·The·type·or·namespace·name·`var'·could·not·be·found.·Are·you·missing·an·assembly·reference? | ||
| 49 | //·Line:·8 | ||
| 56 | [@class] | ||
| 57 | class· | 50 | class·C |
| 58 | { | 51 | { |
| 52 | » public·static·void·Main·() | ||
| 53 | » { | ||
| 54 | » » var[]·v·=·new·int[0]; | ||
| 55 | » } | ||
| 59 | }</string> | 56 | }</string> |
| 60 | ····<string>//·CS0246:·The·type·or·namespace·name·`ErrorType'·could·not·be·found.·Are·you·missing·an·assembly·reference? | 57 | ····<string>//·CS0246:·The·type·or·namespace·name·`ErrorType'·could·not·be·found.·Are·you·missing·an·assembly·reference? |
| 61 | //·Line:·5 | ||
| 62 | interface·A·{ | ||
| 63 | ········ErrorType·Method(); | ||
| 64 | }</string> | ||
| 65 | ····<string>//·CS0246:·The·type·or·namespace·name·`B'·could·not·be·found.·Are·you·missing·an·assembly·reference? | ||
| 66 | //·Line:·4 | 58 | //·Line:·4 |
| 67 | interface·A·:·B·{ | ||
| 68 | } | ||
| 69 | class·X·{ | ||
| 70 | » static·void·Main·()·{ | ||
| 71 | 59 | public·delegate·ErrorType·Delegate·();</string> | |
| 60 | ····<string>//·CS0246:·The·type·or·namespace·name·`aa'·could·not·be·found.·Are·you·missing·an·assembly·reference? | ||
| 61 | //·Line:·6 | ||
| 62 | public·class·Test | ||
| 63 | { | ||
| 64 | » [aa.bb]·int·dummy; | ||
| 72 | }</string> | 65 | }</string> |
| 73 | ····<string>//·CS0246:·The·type·or·namespace·name·`IBase'·could·not·be·found.·Are·you·missing·`Foo'·using·directive? | 66 | ····<string>//·CS0246:·The·type·or·namespace·name·`IBase'·could·not·be·found.·Are·you·missing·`Foo'·using·directive? |
| 74 | //·Line:·15 | 67 | //·Line:·15 |
| 75 | namespace·Foo·{ | 68 | namespace·Foo·{ |
| 76 | ········public·interface·IBase·{ | 69 | ········public·interface·IBase·{ |
| 77 | ················object·X·{·get;·} | 70 | ················object·X·{·get;·} |
| Offset 119, 235 lines modified | Offset 112, 252 lines modified | ||
| 119 | » { | 112 | » { |
| 120 | » } | 113 | » } |
| 121 | » | 114 | » |
| 122 | » public·static·void·Main·() | 115 | » public·static·void·Main·() |
| 123 | » { | 116 | » { |
| 124 | » } | 117 | » } |
| Max diff block lines reached; 11679/15693 bytes (74.42%) of diff not shown. | |||
| Offset 1, 11 lines modified | Offset 1, 23 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0252</ErrorName> | 3 | ··<ErrorName>CS0252</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0252:·Possible·unintended·reference·comparison.·Consider·casting·the·left·side·expression·to·type·`string'·to·get·value·comparison | ||
| 6 | //·Line:·10 | ||
| 7 | //·Compiler·options:·-warn:2·-warnaserror | ||
| 8 | using·System; | ||
| 9 | class·X·{ | ||
| 10 | » static·void·Main()·{ | ||
| 11 | » » object·a·=·"11"; | ||
| 12 | » » Console.WriteLine(a·==·"11"); | ||
| 13 | » } | ||
| 14 | }</string> | ||
| 5 | ····<string>//·CS0252:·Possible·unintended·reference·comparison.·Consider·casting·the·left·side·expression·to·type·`A'·to·get·value·comparison | 15 | ····<string>//·CS0252:·Possible·unintended·reference·comparison.·Consider·casting·the·left·side·expression·to·type·`A'·to·get·value·comparison |
| 6 | //·Line:·15 | 16 | //·Line:·15 |
| 7 | //·Compiler·options:·-warnaserror | 17 | //·Compiler·options:·-warnaserror |
| 8 | using·System; | 18 | using·System; |
| 9 | class·A | 19 | class·A |
| Offset 26, 21 lines modified | Offset 38, 9 lines modified | ||
| 26 | » } | 38 | » } |
| 27 | » | 39 | » |
| 28 | » public·static·bool·operator·!=·(A·left,·A·right) | 40 | » public·static·bool·operator·!=·(A·left,·A·right) |
| 29 | » { | 41 | » { |
| 30 | » » return·false; | 42 | » » return·false; |
| 31 | » } | 43 | » } |
| 32 | }</string> | 44 | }</string> |
| 33 | ····<string>//·CS0252:·Possible·unintended·reference·comparison.·Consider·casting·the·left·side·expression·to·type·`string'·to·get·value·comparison | ||
| 34 | //·Line:·10 | ||
| 35 | //·Compiler·options:·-warn:2·-warnaserror | ||
| 36 | using·System; | ||
| 37 | class·X·{ | ||
| 38 | » static·void·Main()·{ | ||
| 39 | » » object·a·=·"11"; | ||
| 40 | » » Console.WriteLine(a·==·"11"); | ||
| 41 | » } | ||
| 42 | }</string> | ||
| 43 | ··</Examples> | 45 | ··</Examples> |
| 44 | </ErrorDocumentation> | 46 | </ErrorDocumentation> |
| Offset 1, 26 lines modified | Offset 1, 11 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0253</ErrorName> | 3 | ··<ErrorName>CS0253</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0253:·Possible·unintended·reference·comparison.·Consider·casting·the·right·side·expression·to·type·`System.Action'·to·get·value·comparison | ||
| 6 | //·Line:·13 | ||
| 7 | //·Compiler·options:·-warnaserror | ||
| 8 | using·System; | ||
| 9 | class·MainClass | ||
| 10 | { | ||
| 11 | » public·static·void·Main·() | ||
| 12 | » { | ||
| 13 | » » Action·a·=·null; | ||
| 14 | » » object·b·=·null; | ||
| 15 | » » var·x·=·a·==·b; | ||
| 16 | » } | ||
| 17 | }</string> | ||
| 18 | ····<string>//·CS0253:·Possible·unintended·reference·comparison.·Consider·casting·the·right·side·expression·to·type·`A'·to·get·value·comparison | 5 | ····<string>//·CS0253:·Possible·unintended·reference·comparison.·Consider·casting·the·right·side·expression·to·type·`A'·to·get·value·comparison |
| 19 | //·Line:·16 | 6 | //·Line:·16 |
| 20 | //·Compiler·options:·-warnaserror | 7 | //·Compiler·options:·-warnaserror |
| 21 | using·System; | 8 | using·System; |
| 22 | class·A | 9 | class·A |
| Offset 41, 14 lines modified | Offset 26, 29 lines modified | ||
| 41 | » } | 26 | » } |
| 42 | » | 27 | » |
| 43 | » public·static·bool·operator·!=·(A·left,·A·right) | 28 | » public·static·bool·operator·!=·(A·left,·A·right) |
| 44 | » { | 29 | » { |
| 45 | » » return·false; | 30 | » » return·false; |
| 46 | » } | 31 | » } |
| 47 | }</string> | 32 | }</string> |
| 33 | ····<string>//·CS0253:·Possible·unintended·reference·comparison.·Consider·casting·the·right·side·expression·to·type·`System.Action'·to·get·value·comparison | ||
| 34 | //·Line:·13 | ||
| 35 | //·Compiler·options:·-warnaserror | ||
| 36 | using·System; | ||
| 37 | class·MainClass | ||
| 38 | { | ||
| 39 | » public·static·void·Main·() | ||
| 40 | » { | ||
| 41 | » » Action·a·=·null; | ||
| 42 | » » object·b·=·null; | ||
| 43 | » » var·x·=·a·==·b; | ||
| 44 | » } | ||
| 45 | }</string> | ||
| 48 | ····<string>//·CS0253:·Possible·unintended·reference·comparison.·Consider·casting·the·right·side·expression·to·type·`string'·to·get·value·comparison | 46 | ····<string>//·CS0253:·Possible·unintended·reference·comparison.·Consider·casting·the·right·side·expression·to·type·`string'·to·get·value·comparison |
| 49 | //·Line:·10 | 47 | //·Line:·10 |
| 50 | //·Compiler·options:·-warn:2·-warnaserror | 48 | //·Compiler·options:·-warn:2·-warnaserror |
| 51 | using·System; | 49 | using·System; |
| 52 | class·X·{ | 50 | class·X·{ |
| Offset 1, 148 lines modified | Offset 1, 164 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0266</ErrorName> | 3 | ··<ErrorName>CS0266</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0266:·Cannot·implicitly·convert·type·` | 5 | ····<string>//·CS0266:·Cannot·implicitly·convert·type·`int'·to·`char'.·An·explicit·conversion·exists·(are·you·missing·a·cast?) |
| 6 | //·Line:·12 | 6 | //·Line:·12 |
| 7 | using·System.Collections; | ||
| 8 | class·X | 7 | class·X |
| 9 | { | 8 | { |
| 10 | » static·Hashtable·h·=·new·Hashtable·(); | ||
| 11 | » public·static·void·Main·() | 9 | » public·static·void·Main·() |
| 12 | » { | 10 | » { |
| 13 | » » | 11 | » » char·x·=·'A'; |
| 12 | » » char·b·=·+x; | ||
| 14 | » } | 13 | » } |
| 15 | }</string> | 14 | }</string> |
| 16 | ····<string>//·CS0266:·Cannot·implicitly·convert·type·` | 15 | ····<string>//·CS0266:·Cannot·implicitly·convert·type·`long'·to·`int'.·An·explicit·conversion·exists·(are·you·missing·a·cast?) |
| 17 | //·Line:· | 16 | //·Line·:·6 |
| 18 | public·class·Foo·{ | ||
| 19 | ··enum·MyEnumType·{·MyValue·} | ||
| 20 | ··public·void·Bar·() | ||
| 21 | ··{ | ||
| 22 | ····uint·my_uint_var·=·0; | ||
| 23 | ····switch·(my_uint_var)·{ | ||
| 24 | ····case·MyEnumType.MyValue: | ||
| 25 | ······break; | ||
| 26 | ····default: | ||
| 27 | ······break; | ||
| 28 | ····} | ||
| 29 | ··} | ||
| 30 | 17 | class·X·{ | |
| 18 | ····const·uint·a·=·2; | ||
| 19 | ····const·int·b·=·-a; | ||
| 31 | }</string> | 20 | }</string> |
| 32 | ····<string>//·CS0266:·Cannot·implicitly·convert·type·`int | 21 | ····<string>//·CS0266:·Cannot·implicitly·convert·type·`int'·to·`sbyte'.·An·explicit·conversion·exists·(are·you·missing·a·cast?) |
| 33 | //·Line:· | 22 | //·Line:·33 |
| 34 | 23 | class·A3 | |
| 35 | { | 24 | { |
| 25 | » public·static·implicit·operator·sbyte·(A3·mask) | ||
| 26 | » { | ||
| 27 | » » return·1; | ||
| 28 | » } | ||
| 29 | » public·static·implicit·operator·uint·(A3·mask) | ||
| 30 | » { | ||
| 31 | » » return·6; | ||
| 32 | » } | ||
| 33 | » | ||
| 34 | » public·static·implicit·operator·long·(A3·mask) | ||
| 35 | » { | ||
| 36 | » » return·7; | ||
| 37 | » } | ||
| 38 | » public·static·implicit·operator·ulong·(A3·mask) | ||
| 39 | » { | ||
| 40 | » » return·8; | ||
| 41 | » } | ||
| 36 | } | 42 | } |
| 37 | class·C | ||
| 43 | public·class·C | ||
| 38 | { | 44 | { |
| 39 | » public·static· | 45 | » public·static·int·Main·() |
| 40 | » { | 46 | » { |
| 41 | » » E·e·=·0; | ||
| 42 | » » | 47 | » » A3·a3·=·null; |
| 48 | » » sbyte·sa3·=·-a3; | ||
| 43 | » } | 49 | » } |
| 44 | }</string> | 50 | }</string> |
| 45 | ····<string>//·CS0266:·Cannot·implicitly·convert·type·` | 51 | ····<string>//·CS0266:··Cannot·implicitly·convert·type·`int'·to·`sbyte'.·An·explicit·conversion·exists·(are·you·missing·a·cast?) |
| 46 | //·Line:· | 52 | //·Line:·9 |
| 47 | 53 | class·S | |
| 48 | { | 54 | { |
| 55 | » static·void·Main·() | ||
| 56 | » { | ||
| 57 | » » sbyte·s·=·1; | ||
| 58 | » » sbyte·r·=·+s; | ||
| 59 | » } | ||
| 60 | }</string> | ||
| 61 | ····<string>//·CS0266:·Cannot·implicitly·convert·type·`Foo<int>.FooEvent'·to·`Foo<string>.FooEvent'.·An·explicit·conversion·exists·(are·you·missing·a·cast?) | ||
| 62 | //·Line:·12 | ||
| 63 | class·Foo<T>·{ | ||
| 64 | » public·event·FooEvent·Event; | ||
| 65 | » public·delegate·T·FooEvent(); | ||
| 49 | } | 66 | } |
| 50 | class·C | 67 | class·CompilerCrashTest·{ |
| 68 | » static·void·Main()·{ | ||
| 69 | » » Foo<string>·foo·=·new·Foo<string>(); | ||
| 70 | » » foo.Event·+=·new·Foo<int>.FooEvent·(()·=>·0); | ||
| 71 | » } | ||
| 72 | }</string> | ||
| 73 | ····<string>//·CS0266:·Cannot·implicitly·convert·type·`double'·to·`int'.·An·explicit·conversion·exists·(are·you·missing·a·cast?) | ||
| 74 | //·Line:·8 | ||
| 75 | class·Program | ||
| 51 | { | 76 | { |
| 52 | » | 77 | » static·void·Main() |
| 53 | » { | 78 | » { |
| 79 | » » var·s·=·$"{1,·0.0}"; | ||
| 54 | » » E·e·=·0; | ||
| 55 | » » E·r·=·e·+·null; | ||
| 56 | » } | 80 | » } |
| 57 | }</string> | 81 | }</string> |
| 58 | ····<string>//·CS0266:·Cannot·implicitly·convert·type·`S | 82 | ····<string>//·CS0266:·Cannot·implicitly·convert·type·`S?'·to·`A'.·An·explicit·conversion·exists·(are·you·missing·a·cast?) |
| 59 | //·Line:· | 83 | //·Line:·9 |
| 60 | //·Compiler·options:·-unsafe | ||
| 61 | using·System; | ||
| 62 | public·class·Pixbuf·{ | ||
| 63 | 84 | struct·S | |
| 85 | { | ||
| 86 | » public·static·int·Main·() | ||
| 64 | » { | 87 | » { |
| 65 | » » | 88 | » » S?·s·=·null; |
| 89 | » » A·a·=·s; | ||
| 90 | » » return·0; | ||
| Max diff block lines reached; 12700/16451 bytes (77.20%) of diff not shown. | |||
| Offset 1, 25 lines modified | Offset 1, 25 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0267</ErrorName> | 3 | ··<ErrorName>CS0267</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0267:·The·`partial'·modifier·can·be·used·only·immediately·before·`class',·`struct',·`interface',·or·`void'·keyword | 5 | ····<string>//·CS0267:·The·`partial'·modifier·can·be·used·only·immediately·before·`class',·`struct',·`interface',·or·`void'·keyword |
| 6 | //·Line:·4 | 6 | //·Line:·4 |
| 7 | partial·enum·e·{}</string> | ||
| 8 | ····<string>//·CS0267:·The·`partial'·modifier·can·be·used·only·immediately·before·`class',·`struct',·`interface',·or·`void'·keyword | ||
| 9 | //·Line:·4 | ||
| 10 | public·partial·static·class·Test | 7 | public·partial·static·class·Test |
| 11 | { | 8 | { |
| 12 | }</string> | 9 | }</string> |
| 13 | ····<string>//·CS0267:·The·`partial'·modifier·can·be·used·only·immediately·before·`class',·`struct',·`interface',·or·`void'·keyword | 10 | ····<string>//·CS0267:·The·`partial'·modifier·can·be·used·only·immediately·before·`class',·`struct',·`interface',·or·`void'·keyword |
| 14 | //·Line:·6 | 11 | //·Line:·6 |
| 15 | public·partial·class·C | 12 | public·partial·class·C |
| 16 | { | 13 | { |
| 17 | » partial·virtual·void·Foo·() | 14 | » partial·virtual·void·Foo·() |
| 18 | » { | 15 | » { |
| 19 | » } | 16 | » } |
| 20 | }</string> | 17 | }</string> |
| 18 | ····<string>//·CS0267:·The·`partial'·modifier·can·be·used·only·immediately·before·`class',·`struct',·`interface',·or·`void'·keyword | ||
| 19 | //·Line:·4 | ||
| 20 | partial·enum·e·{}</string> | ||
| 21 | ··</Examples> | 21 | ··</Examples> |
| 22 | </ErrorDocumentation> | 22 | </ErrorDocumentation> |
| Offset 1, 31 lines modified | Offset 1, 28 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0272</ErrorName> | 3 | ··<ErrorName>CS0272</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0272:·The·property·or·indexer·` | 5 | ····<string>//·CS0272:·The·property·or·indexer·`Test.A.B'·cannot·be·used·in·this·context·because·the·set·accessor·is·inaccessible |
| 6 | //·Line:·1 | 6 | //·Line:·16 |
| 7 | using·System; | ||
| 7 | class·P | ||
| 8 | { | ||
| 9 | ····public·static·int·Prop | ||
| 10 | ····{ | ||
| 11 | » get·{ | ||
| 12 | » ····return·4; | ||
| 13 | » } | ||
| 14 | » private·set·{} | ||
| 15 | ····} | ||
| 16 | } | ||
| 17 | public·class· | 8 | public·class·Test |
| 18 | { | 9 | { |
| 10 | » private·class·A | ||
| 11 | » { | ||
| 12 | » » public·string·B·{·get;·private·set;·} | ||
| 13 | » } | ||
| 14 | » | ||
| 19 | 15 | » static·void·Main·() | |
| 20 | ····{ | ||
| 21 | » P.Prop·=·453422; | ||
| 22 | 16 | » { | |
| 17 | » » A·a·=·new·A·(); | ||
| 18 | » » a.B·=·"Foo"; | ||
| 19 | » } | ||
| 23 | }</string> | 20 | }</string> |
| 24 | ····<string>//·CS0272:·The·property·or·indexer·`C.this[string]'·cannot·be·used·in·this·context·because·the·set·accessor·is·inaccessible | 21 | ····<string>//·CS0272:·The·property·or·indexer·`C.this[string]'·cannot·be·used·in·this·context·because·the·set·accessor·is·inaccessible |
| 25 | //·Line:·13 | 22 | //·Line:·13 |
| 26 | class·C | 23 | class·C |
| 27 | { | 24 | { |
| 28 | » public·int·this·[string·i]·{·private·set·{·}·get·{·return·1;·}·} | 25 | » public·int·this·[string·i]·{·private·set·{·}·get·{·return·1;·}·} |
| Offset 34, 27 lines modified | Offset 31, 30 lines modified | ||
| 34 | public·class·Test | 31 | public·class·Test |
| 35 | { | 32 | { |
| 36 | » void·Foo·() | 33 | » void·Foo·() |
| 37 | » {» C·c·=·new·C·(); | 34 | » {» C·c·=·new·C·(); |
| 38 | » » c·[""]·=·9; | 35 | » » c·[""]·=·9; |
| 39 | » } | 36 | » } |
| 40 | }</string> | 37 | }</string> |
| 41 | ····<string>//·CS0272:·The·property·or·indexer·` | 38 | ····<string>//·CS0272:·The·property·or·indexer·`P.Prop'·cannot·be·used·in·this·context·because·the·set·accessor·is·inaccessible |
| 42 | //·Line:·1 | 39 | //·Line:·19 |
| 43 | using·System; | ||
| 44 | 40 | class·P | |
| 45 | { | 41 | { |
| 42 | ····public·static·int·Prop | ||
| 43 | ····{ | ||
| 44 | » get·{ | ||
| 45 | » ····return·4; | ||
| 46 | » private·class·A | ||
| 47 | » { | ||
| 48 | » » public·string·B·{·get;·private·set;·} | ||
| 49 | » } | ||
| 50 | » | ||
| 51 | » static·void·Main·() | ||
| 52 | » { | ||
| 53 | » » A·a·=·new·A·(); | ||
| 54 | » » a.B·=·"Foo"; | ||
| 55 | » } | 46 | » } |
| 47 | » private·set·{} | ||
| 48 | ····} | ||
| 49 | } | ||
| 50 | public·class·C | ||
| 51 | { | ||
| 52 | ····public·static·void·Main·() | ||
| 53 | ····{ | ||
| 54 | » P.Prop·=·453422; | ||
| 55 | ····} | ||
| 56 | }</string> | 56 | }</string> |
| 57 | ··</Examples> | 57 | ··</Examples> |
| 58 | </ErrorDocumentation> | 58 | </ErrorDocumentation> |
| Offset 1, 11 lines modified | Offset 1, 19 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0273</ErrorName> | 3 | ··<ErrorName>CS0273</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0273:·The·accessibility·modifier·of·the·`C.S2.set'·accessor·must·be·more·restrictive·than·the·modifier·of·the·property·or·indexer·`C.S2' | ||
| 6 | //·Line:·7 | ||
| 7 | //·Compiler·options:·-langversion:7.2 | ||
| 8 | ·class·C | ||
| 9 | ·{ | ||
| 10 | » private·string·S2·{·get;·private·protected·set;·} | ||
| 11 | ·}</string> | ||
| 5 | ····<string>//·CS0273:·The·accessibility·modifier·of·the·`Error0273.Message.get'·accessor·must·be·more·restrictive·than·the·modifier·of·the·property·or·indexer·`Error0273.Message' | 12 | ····<string>//·CS0273:·The·accessibility·modifier·of·the·`Error0273.Message.get'·accessor·must·be·more·restrictive·than·the·modifier·of·the·property·or·indexer·`Error0273.Message' |
| 6 | //·Line:·8 | 13 | //·Line:·8 |
| 7 | //·Compiler·options:·-t:library | 14 | //·Compiler·options:·-t:library |
| 8 | ·class·Error0273 | 15 | ·class·Error0273 |
| 9 | ·{ | 16 | ·{ |
| 10 | » ·protected·internal·string·Message·{ | 17 | » ·protected·internal·string·Message·{ |
| Offset 13, 17 lines modified | Offset 21, 9 lines modified | ||
| 13 | » » » ·return·"Hi"; | 21 | » » » ·return·"Hi"; |
| 14 | » » ·} | 22 | » » ·} |
| 15 | » » ·set·{ | 23 | » » ·set·{ |
| 16 | » » ·} | 24 | » » ·} |
| 17 | » ·} | 25 | » ·} |
| 18 | ·}</string> | 26 | ·}</string> |
| 19 | ····<string>//·CS0273:·The·accessibility·modifier·of·the·`C.S2.set'·accessor·must·be·more·restrictive·than·the·modifier·of·the·property·or·indexer·`C.S2' | ||
| 20 | //·Line:·7 | ||
| 21 | //·Compiler·options:·-langversion:7.2 | ||
| 22 | ·class·C | ||
| 23 | ·{ | ||
| 24 | » private·string·S2·{·get;·private·protected·set;·} | ||
| 25 | ·}</string> | ||
| 26 | ··</Examples> | 27 | ··</Examples> |
| 27 | </ErrorDocumentation> | 28 | </ErrorDocumentation> |
| Offset 12, 24 lines modified | Offset 12, 14 lines modified | ||
| 12 | class·C | 12 | class·C |
| 13 | { | 13 | { |
| 14 | » public·void·Foo·() | 14 | » public·void·Foo·() |
| 15 | » { | 15 | » { |
| 16 | » » const·S·s·=·new·S(); | 16 | » » const·S·s·=·new·S(); |
| 17 | » } | 17 | » } |
| 18 | }</string> | 18 | }</string> |
| 19 | ····<string>//·CS0283:·The·type·`int?'·cannot·be·declared·const | ||
| 20 | //·Line:·8 | ||
| 21 | class·C | ||
| 22 | { | ||
| 23 | » void·Test·() | ||
| 24 | » { | ||
| 25 | » » const·int?·ac·=·null; | ||
| 26 | » } | ||
| 27 | }</string> | ||
| 28 | ····<string>//·CS0283:·The·type·`int*'·cannot·be·declared·const | 19 | ····<string>//·CS0283:·The·type·`int*'·cannot·be·declared·const |
| 29 | //·Line:·10 | 20 | //·Line:·10 |
| 30 | //·Compiler·options:·-unsafe | 21 | //·Compiler·options:·-unsafe |
| 31 | unsafe·class·Test | 22 | unsafe·class·Test |
| 32 | { | 23 | { |
| 33 | » const·int*·o·=·null; | 24 | » const·int*·o·=·null; |
| Offset 41, 9 lines modified | Offset 31, 19 lines modified | ||
| 41 | { | 31 | { |
| 42 | } | 32 | } |
| 43 | class·C | 33 | class·C |
| 44 | { | 34 | { |
| 45 | » const·S·s·=·new·S(); | 35 | » const·S·s·=·new·S(); |
| 46 | }</string> | 36 | }</string> |
| 37 | ····<string>//·CS0283:·The·type·`int?'·cannot·be·declared·const | ||
| 38 | //·Line:·8 | ||
| 39 | class·C | ||
| 40 | { | ||
| 41 | » void·Test·() | ||
| 42 | » { | ||
| 43 | » » const·int?·ac·=·null; | ||
| 44 | » } | ||
| 45 | }</string> | ||
| 47 | ··</Examples> | 46 | ··</Examples> |
| 48 | </ErrorDocumentation> | 47 | </ErrorDocumentation> |
| Offset 1, 11 lines modified | Offset 1, 30 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0305</ErrorName> | 3 | ··<ErrorName>CS0305</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0305:·Using·the·generic·method·`X.G<T>()'·requires·`1'·type·argument(s) | ||
| 6 | //·Line:·17 | ||
| 7 | using·System; | ||
| 8 | delegate·int·E·(); | ||
| 9 | class·X | ||
| 10 | { | ||
| 11 | » public·static·T·G<T>·() | ||
| 12 | » { | ||
| 13 | » » throw·new·ArgumentException·(); | ||
| 14 | » } | ||
| 15 | » static·void·Main·() | ||
| 16 | » { | ||
| 17 | » » E·e2·=·new·E·(G); | ||
| 18 | » } | ||
| 19 | }</string> | ||
| 5 | ····<string>//·CS0305:·Using·the·generic·type·`Stack<T>'·requires·`1'·type·argument(s) | 20 | ····<string>//·CS0305:·Using·the·generic·type·`Stack<T>'·requires·`1'·type·argument(s) |
| 6 | //·Line:·11 | 21 | //·Line:·11 |
| 7 | class·Stack<T>·{ | 22 | class·Stack<T>·{ |
| 8 | } | 23 | } |
| 9 | class·Test·{ | 24 | class·Test·{ |
| Offset 14, 51 lines modified | Offset 33, 35 lines modified | ||
| 14 | class·T·{ | 33 | class·T·{ |
| 15 | » Stack<Test,Test>·a; | 34 | » Stack<Test,Test>·a; |
| 16 | » static·void·Main() | 35 | » static·void·Main() |
| 17 | » { | 36 | » { |
| 18 | » } | 37 | » } |
| 19 | }</string> | 38 | }</string> |
| 20 | ····<string>//·CS0305:·Using·the·generic·type·`Stack<T>'·requires·`1'·type·argument(s) | ||
| 21 | //·Line:·9 | ||
| 22 | class·Stack<T> | ||
| 23 | {·} | ||
| 24 | class·X | ||
| 25 | { | ||
| 26 | » Stack·stack; | ||
| 27 | }</string> | ||
| 28 | ····<string>//·CS0305:·Using·the·generic·type·`System.Collections.Generic.List<T>'·requires·`1'·type·argument(s) | 39 | ····<string>//·CS0305:·Using·the·generic·type·`System.Collections.Generic.List<T>'·requires·`1'·type·argument(s) |
| 29 | //·Line:·8 | 40 | //·Line:·8 |
| 30 | using·System.Collections.Generic; | 41 | using·System.Collections.Generic; |
| 31 | class·X | 42 | class·X |
| 32 | { | 43 | { |
| 33 | » List<int,long>·list; | 44 | » List<int,long>·list; |
| 34 | }</string> | 45 | }</string> |
| 35 | ····<string>//·CS0305:·Using·the·generic·type·` | 46 | ····<string>//·CS0305:·Using·the·generic·type·`A.B<T>'·requires·`1'·type·argument(s) |
| 36 | //·Line:·12 | 47 | //·Line:·12 |
| 37 | namespace·N1 | ||
| 38 | { | ||
| 39 | » class·A<T> | ||
| 40 | » { | ||
| 41 | » } | ||
| 42 | } | ||
| 43 | 48 | class·A· | |
| 44 | { | 49 | { |
| 45 | » using·W·=·N1.A; | ||
| 46 | » class· | 50 | » class·B<T>· |
| 51 | » {· | ||
| 52 | » } | ||
| 53 | » | ||
| 54 | » static·void·Main()· | ||
| 47 | » { | 55 | » { |
| 56 | » » B·b·=·new·B<A>(); | ||
| 48 | » » static·void·Main·() | ||
| 49 | » » { | ||
| 50 | » » } | ||
| 51 | » } | 57 | » } |
| 52 | }</string> | 58 | }</string> |
| 53 | ····<string>//·CS0305:·Using·the·generic·method·`C.Test<T,Y>(C.Func<T>)'·requires·`2'·type·argument(s) | 59 | ····<string>//·CS0305:·Using·the·generic·method·`C.Test<T,Y>(C.Func<T>)'·requires·`2'·type·argument(s) |
| 54 | //·Line:·14 | 60 | //·Line:·14 |
| 55 | public·class·C | 61 | public·class·C |
| 56 | { | 62 | { |
| Offset 69, 56 lines modified | Offset 72, 53 lines modified | ||
| 69 | » } | 72 | » } |
| 70 | » public·static·void·Main·() | 73 | » public·static·void·Main·() |
| 71 | » { | 74 | » { |
| 72 | » » Test<int>·(delegate·(int·i)·{·return·i;·}); | 75 | » » Test<int>·(delegate·(int·i)·{·return·i;·}); |
| 73 | » } | 76 | » } |
| 74 | }</string> | 77 | }</string> |
| 75 | ····<string>//·CS0305:·Using·the·generic·type·`A.B<T>'·requires·`1'·type·argument(s) | ||
| 76 | //·Line:·12 | ||
| 77 | class·A· | ||
| 78 | { | ||
| 79 | » class·B<T>· | ||
| 80 | » {· | ||
| 81 | » } | ||
| 82 | » | ||
| 83 | » static·void·Main()· | ||
| 84 | » { | ||
| 85 | » » B·b·=·new·B<A>(); | ||
| 86 | » } | ||
| 87 | }</string> | ||
| 88 | ····<string>//·CS0305:·Using·the·generic·type·`N<T>'·requires·`1'·type·argument(s) | 78 | ····<string>//·CS0305:·Using·the·generic·type·`N<T>'·requires·`1'·type·argument(s) |
| 89 | //·Line:·12 | 79 | //·Line:·12 |
| 90 | class·N<T> | 80 | class·N<T> |
| 91 | { | 81 | { |
| 92 | } | 82 | } |
| 93 | class·C | 83 | class·C |
| 94 | { | 84 | { |
| 95 | » public·static·void·Main() | 85 | » public·static·void·Main() |
| 96 | » { | 86 | » { |
| 97 | » » global::N·n·=·null; | 87 | » » global::N·n·=·null; |
| 98 | » } | 88 | » } |
| 99 | }</string> | 89 | }</string> |
| 100 | ····<string>//·CS0305:·Using·the·generic· | 90 | ····<string>//·CS0305:·Using·the·generic·type·`N1.A<T>'·requires·`1'·type·argument(s) |
| 101 | //·Line:·1 | 91 | //·Line:·12 |
| 92 | namespace·N1 | ||
| Max diff block lines reached; 456/3071 bytes (14.85%) of diff not shown. | |||
| Offset 1, 11 lines modified | Offset 1, 20 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0306</ErrorName> | 3 | ··<ErrorName>CS0306</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0306:·The·type·`char*'·may·not·be·used·as·a·type·argument | ||
| 6 | //·Line:·9 | ||
| 7 | //·Compiler·options:·-unsafe | ||
| 8 | class·F<U>·{} | ||
| 9 | unsafe·class·O·{ | ||
| 10 | » F<char·*>·f; | ||
| 11 | » static·void·Main·()·{} | ||
| 12 | }</string> | ||
| 5 | ····<string>//·CS0306:·The·type·`S'·may·not·be·used·as·a·type·argument | 13 | ····<string>//·CS0306:·The·type·`S'·may·not·be·used·as·a·type·argument |
| 6 | //·Line:·13 | 14 | //·Line:·13 |
| 7 | //·Compiler·options:·-langversion:latest | 15 | //·Compiler·options:·-langversion:latest |
| 8 | public·ref·struct·S | 16 | public·ref·struct·S |
| 9 | { | 17 | { |
| 10 | } | 18 | } |
| Offset 21, 23 lines modified | Offset 30, 14 lines modified | ||
| 21 | //·Line:·6 | 30 | //·Line:·6 |
| 22 | class·G<T>·{} | 31 | class·G<T>·{} |
| 23 | class·C·:·G<System.ArgIterator> | 32 | class·C·:·G<System.ArgIterator> |
| 24 | { | 33 | { |
| 25 | }</string> | 34 | }</string> |
| 26 | ····<string>//·CS0306:·The·type·`char*'·may·not·be·used·as·a·type·argument | ||
| 27 | //·Line:·9 | ||
| 28 | //·Compiler·options:·-unsafe | ||
| 29 | class·F<U>·{} | ||
| 30 | unsafe·class·O·{ | ||
| 31 | » F<char·*>·f; | ||
| 32 | » static·void·Main·()·{} | ||
| 33 | }</string> | ||
| 34 | ····<string>//·CS0306:·The·type·`int*'·may·not·be·used·as·a·type·argument | 35 | ····<string>//·CS0306:·The·type·`int*'·may·not·be·used·as·a·type·argument |
| 35 | //·Line:·11 | 36 | //·Line:·11 |
| 36 | //·Compiler·options:·-unsafe | 37 | //·Compiler·options:·-unsafe |
| 37 | using·System.Linq; | 38 | using·System.Linq; |
| 38 | public·class·C | 39 | public·class·C |
| Offset 1, 49 lines modified | Offset 1, 49 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0307</ErrorName> | 3 | ··<ErrorName>CS0307</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0307:·The·property·`Test<T,U>.Value'·cannot·be·used·with·type·arguments | ||
| 6 | //·Line:·16 | ||
| 7 | class·Test<T,·U> | ||
| 8 | { | ||
| 9 | » public·object·Value·{ | ||
| 10 | » » get·{·return·null;·} | ||
| 11 | » } | ||
| 12 | » public·class·B | ||
| 13 | » { | ||
| 14 | » » public·B·(object·arg) | ||
| 15 | » » { | ||
| 16 | » » } | ||
| 17 | » » | ||
| 18 | » » public·static·B·Default·=·new·B·(Value<U>.Default); | ||
| 19 | » } | ||
| 20 | }</string> | ||
| 21 | ····<string>//·CS0307:·The·type·parameter·`a'·cannot·be·used·with·type·arguments | 5 | ····<string>//·CS0307:·The·type·parameter·`a'·cannot·be·used·with·type·arguments |
| 22 | //·Line:·9 | 6 | //·Line:·9 |
| 23 | public·class·Tests | 7 | public·class·Tests<a> |
| 24 | { | 8 | { |
| 25 | » public·static·void·Test | 9 | » public·static·void·Test·() |
| 26 | » { | 10 | » { |
| 27 | » » a<int>·(); | 11 | » » a<int>·(); |
| 28 | » } | 12 | » } |
| 29 | }</string> | 13 | }</string> |
| 30 | ····<string>//·CS0307:·The·variable·`a'·cannot·be·used·with·type·arguments | 14 | ····<string>//·CS0307:·The·variable·`a'·cannot·be·used·with·type·arguments |
| 31 | //·Line:·9 | 15 | //·Line:·9 |
| 32 | public·class·Tests | 16 | public·class·Tests |
| 33 | { | 17 | { |
| 34 | » public·static·void·Test·(int·a) | 18 | » public·static·void·Test·(int·a) |
| 35 | » { | 19 | » { |
| 36 | » » a<int>·(); | 20 | » » a<int>·(); |
| 37 | » } | 21 | » } |
| 38 | }</string> | 22 | }</string> |
| 23 | ····<string>//·CS0307:·The·property·`Test<T,U>.Value'·cannot·be·used·with·type·arguments | ||
| 24 | //·Line:·16 | ||
| 25 | class·Test<T,·U> | ||
| 26 | { | ||
| 27 | » public·object·Value·{ | ||
| 28 | » » get·{·return·null;·} | ||
| 29 | » } | ||
| 30 | » public·class·B | ||
| 31 | » { | ||
| 32 | » » public·B·(object·arg) | ||
| 33 | » » { | ||
| 34 | » » } | ||
| 35 | » » | ||
| 36 | » » public·static·B·Default·=·new·B·(Value<U>.Default); | ||
| 37 | » } | ||
| 38 | }</string> | ||
| 39 | ····<string>//·CS0307:·The·variable·`d'·cannot·be·used·with·type·arguments | 39 | ····<string>//·CS0307:·The·variable·`d'·cannot·be·used·with·type·arguments |
| 40 | //·Line:·9 | 40 | //·Line:·9 |
| 41 | public·class·Tests | 41 | public·class·Tests |
| 42 | { | 42 | { |
| 43 | » public·static·void·Main·() | 43 | » public·static·void·Main·() |
| 44 | » { | 44 | » { |
| Offset 71, 17 lines modified | Offset 71, 17 lines modified | ||
| 71 | » public·static·void·Main·() | 71 | » public·static·void·Main·() |
| 72 | » { | 72 | » { |
| 73 | » } | 73 | » } |
| 74 | }</string> | 74 | }</string> |
| 75 | ····<string>//·CS0307:·The·type·parameter·`a'·cannot·be·used·with·type·arguments | 75 | ····<string>//·CS0307:·The·type·parameter·`a'·cannot·be·used·with·type·arguments |
| 76 | //·Line:·9 | 76 | //·Line:·9 |
| 77 | public·class·Tests | 77 | public·class·Tests |
| 78 | { | 78 | { |
| 79 | » public·static·void·Test·() | 79 | » public·static·void·Test<a>·() |
| 80 | » { | 80 | » { |
| 81 | » » a<int>·(); | 81 | » » a<int>·(); |
| 82 | » } | 82 | » } |
| 83 | }</string> | 83 | }</string> |
| 84 | ····<string>//·CS0307:·The·namespace·`N.M'·cannot·be·used·with·type·arguments | 84 | ····<string>//·CS0307:·The·namespace·`N.M'·cannot·be·used·with·type·arguments |
| 85 | //·Line:·15 | 85 | //·Line:·15 |
| Offset 1, 11 lines modified | Offset 1, 26 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0308</ErrorName> | 3 | ··<ErrorName>CS0308</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0308:·The·non-generic·method·`C.TestCall(int)'·cannot·be·used·with·the·type·arguments | ||
| 6 | //·Line:·13 | ||
| 7 | class·C | ||
| 8 | { | ||
| 9 | » static·void·TestCall·(int·i) | ||
| 10 | » { | ||
| 11 | » } | ||
| 12 | » | ||
| 13 | » public·static·void·Main·() | ||
| 14 | » { | ||
| 15 | » » dynamic·d·=·0; | ||
| 16 | » » TestCall<int>·(d); | ||
| 17 | » } | ||
| 18 | }</string> | ||
| 5 | ····<string>//·CS0308:·The·non-generic·type·`BaseGeneric<T>.InnerDerived'·cannot·be·used·with·the·type·arguments | 19 | ····<string>//·CS0308:·The·non-generic·type·`BaseGeneric<T>.InnerDerived'·cannot·be·used·with·the·type·arguments |
| 6 | //·Line:·19 | 20 | //·Line:·19 |
| 7 | class·BaseGeneric<T> | 21 | class·BaseGeneric<T> |
| 8 | { | 22 | { |
| 9 | » public·class·InnerDerived | 23 | » public·class·InnerDerived |
| 10 | » { | 24 | » { |
| Offset 48, 28 lines modified | Offset 63, 14 lines modified | ||
| 48 | » class·X | 63 | » class·X |
| 49 | » { | 64 | » { |
| 50 | » » static·void·Main·() | 65 | » » static·void·Main·() |
| 51 | » » { | 66 | » » { |
| 52 | » » } | 67 | » » } |
| 53 | » } | 68 | » } |
| 54 | }</string> | 69 | }</string> |
| 55 | ····<string>//·CS0308:·The·non-generic·type·`Test.NonGeneric'·cannot·be·used·with·the·type·arguments | ||
| 56 | //·Line:·8 | ||
| 57 | public·class·Test | ||
| 58 | { | ||
| 59 | » public·static·void·Main·(string[]·args) | ||
| 60 | » { | ||
| 61 | » » NonGeneric·dummy·=·new·NonGeneric<string>·(); | ||
| 62 | » } | ||
| 63 | » internal·class·NonGeneric | ||
| 64 | » { | ||
| 65 | » } | ||
| 66 | }</string> | ||
| 67 | ····<string>//·CS0308:·The·non-generic·type·`System.DateTime'·cannot·be·used·with·the·type·arguments | 70 | ····<string>//·CS0308:·The·non-generic·type·`System.DateTime'·cannot·be·used·with·the·type·arguments |
| 68 | //·Line:·8 | 71 | //·Line:·8 |
| 69 | using·System; | 72 | using·System; |
| 70 | class·X | 73 | class·X |
| 71 | { | 74 | { |
| Offset 89, 27 lines modified | Offset 90, 40 lines modified | ||
| 89 | public·static·class·Driver | 90 | public·static·class·Driver |
| 90 | { | 91 | { |
| 91 | » static·object·UseBrokenType·() | 92 | » static·object·UseBrokenType·() |
| 92 | » { | 93 | » { |
| 93 | » » return·Foo<int>·().Test·(); | 94 | » » return·Foo<int>·().Test·(); |
| 94 | » } | 95 | » } |
| 95 | }</string> | 96 | }</string> |
| 96 | ····<string>//·CS0308:·The·non-generic·method·` | 97 | ····<string>//·CS0308:·The·non-generic·method·`X.Foo()'·cannot·be·used·with·the·type·arguments |
| 97 | //·Line:·1 | 98 | //·Line:·12 |
| 98 | class· | 99 | class·X |
| 99 | { | 100 | { |
| 100 | » | 101 | » public·void·Foo·() |
| 101 | » { | 102 | » { |
| 102 | » } | 103 | » } |
| 103 | » | 104 | » |
| 105 | » void·Test·() | ||
| 106 | » { | ||
| 107 | » » Foo<int>·(); | ||
| 108 | » } | ||
| 109 | }</string> | ||
| 110 | ····<string>//·CS0308:·The·non-generic·type·`Test.NonGeneric'·cannot·be·used·with·the·type·arguments | ||
| 111 | //·Line:·8 | ||
| 112 | public·class·Test | ||
| 113 | { | ||
| 104 | » public·static·void·Main·() | 114 | » public·static·void·Main·(string[]·args) |
| 115 | » { | ||
| 116 | » » NonGeneric·dummy·=·new·NonGeneric<string>·(); | ||
| 117 | » } | ||
| 118 | » internal·class·NonGeneric | ||
| 105 | » { | 119 | » { |
| 106 | » » dynamic·d·=·0; | ||
| 107 | » » TestCall<int>·(d); | ||
| 108 | » } | 120 | » } |
| 109 | }</string> | 121 | }</string> |
| 110 | ····<string>//·CS0308:·The·non-generic·type·`NamingContext'·cannot·be·used·with·the·type·arguments | 122 | ····<string>//·CS0308:·The·non-generic·type·`NamingContext'·cannot·be·used·with·the·type·arguments |
| 111 | //·Line:·6 | 123 | //·Line:·6 |
| 112 | class·Program | 124 | class·Program |
| 113 | { | 125 | { |
| Offset 118, 23 lines modified | Offset 132, 9 lines modified | ||
| 118 | » » return·null; | 132 | » » return·null; |
| 119 | » } | 133 | » } |
| 120 | } | 134 | } |
| 121 | class·NamingContext | 135 | class·NamingContext |
| 122 | { | 136 | { |
| 123 | }</string> | 137 | }</string> |
| 124 | ····<string>//·CS0308:·The·non-generic·method·`X.Foo()'·cannot·be·used·with·the·type·arguments | ||
| 125 | //·Line:·12 | ||
| 126 | class·X | ||
| 127 | { | ||
| 128 | » public·void·Foo·() | ||
| 129 | » { | ||
| 130 | » } | ||
| 131 | » | ||
| 132 | » void·Test·() | ||
| 133 | » { | ||
| 134 | » » Foo<int>·(); | ||
| 135 | » } | ||
| 136 | }</string> | ||
| 137 | ··</Examples> | 138 | ··</Examples> |
| 138 | </ErrorDocumentation> | 139 | </ErrorDocumentation> |
| Offset 1, 53 lines modified | Offset 1, 67 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0310</ErrorName> | 3 | ··<ErrorName>CS0310</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·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>()' | ||
| 6 | //·Line:·10 | ||
| 7 | public·static·class·Program | ||
| 8 | { | ||
| 9 | » static·void·Main·() | ||
| 10 | » { | ||
| 11 | » » Ret<string>·(); | ||
| 12 | » } | ||
| 13 | » static·T·Ret<T>·()·where·T·:·new·() | ||
| 14 | » { | ||
| 15 | » » return·new·T·(); | ||
| 16 | » } | ||
| 17 | }</string> | ||
| 5 | ····<string>//·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>' | 18 | ····<string>//·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>' |
| 6 | //·Line:· | 19 | //·Line:·18 |
| 7 | public·class·Foo<T> | 20 | public·class·Foo<T> |
| 8 | » where·T·:·new·() | 21 | » where·T·:·new·() |
| 9 | { | 22 | { |
| 10 | } | 23 | } |
| 11 | class·A | 24 | class·A |
| 12 | { | 25 | { |
| 13 | » private·A·() | 26 | » private·A·() |
| 14 | » {·} | 27 | » {·} |
| 15 | } | 28 | } |
| 16 | class·X | 29 | class·X |
| 17 | { | 30 | { |
| 31 | » Foo<A>·foo; | ||
| 18 | » static·void·Main·() | 32 | » static·void·Main·() |
| 19 | » { | 33 | » { |
| 20 | » » object·o·=·new·Foo<A>·(); | ||
| 21 | » } | 34 | » } |
| 22 | }</string> | 35 | }</string> |
| 23 | ····<string>//·CS0310:·The·type·` | 36 | ····<string>//·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>' |
| 24 | //·Line:·18 | 37 | //·Line:·18 |
| 38 | public·class·Class1 | ||
| 25 | public·class·Foo<T> | ||
| 26 | » where·T·:·new·() | ||
| 27 | { | 39 | { |
| 40 | » public·Class1·(int·i)·{·} | ||
| 28 | } | 41 | } |
| 29 | 42 | public·class·Class2<T> | |
| 30 | { | 43 | { |
| 31 | » public·A·() | ||
| 32 | » {·} | ||
| 33 | } | 44 | } |
| 34 | class· | 45 | public·class·Class3<T>·where·T·:·new·() |
| 35 | { | 46 | { |
| 36 | 47 | } | |
| 37 | » static·void·Main·() | ||
| 38 | » { | ||
| 39 | » } | ||
| 48 | class·A·:·Class2<Class3<Class1>> | ||
| 49 | { | ||
| 40 | }</string> | 50 | }</string> |
| 41 | ····<string>//·CS0310:·The·type·`Foo'·must·have·a·public·parameterless·constructor·in·order·to·use·it·as·parameter·`a'·in·the·generic·type·or·method·`C<a>' | 51 | ····<string>//·CS0310:·The·type·`Foo'·must·have·a·public·parameterless·constructor·in·order·to·use·it·as·parameter·`a'·in·the·generic·type·or·method·`C<a>' |
| 42 | //·Line:·14 | 52 | //·Line:·14 |
| 43 | class·C·<a>·where·a·:·new·()·{ | 53 | class·C·<a>·where·a·:·new·()·{ |
| 44 | } | 54 | } |
| 45 | class·Foo·{ | 55 | class·Foo·{ |
| Offset 57, 66 lines modified | Offset 71, 52 lines modified | ||
| 57 | class·X | 71 | class·X |
| 58 | { | 72 | { |
| 59 | ········static·void·Main·() | 73 | ········static·void·Main·() |
| 60 | ········{ | 74 | ········{ |
| 61 | ··········C<Foo>·x; | 75 | ··········C<Foo>·x; |
| 62 | ········} | 76 | ········} |
| 63 | }</string> | 77 | }</string> |
| 64 | ····<string>//·CS0310:·The·type·` | 78 | ····<string>//·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>' |
| 65 | //·Line:· | 79 | //·Line:·20 |
| 66 | public·class·Class1 | ||
| 67 | { | ||
| 68 | » public·Class1·(int·i)·{·} | ||
| 69 | } | ||
| 70 | public·class· | 80 | public·class·Foo<T> |
| 81 | » where·T·:·new·() | ||
| 71 | { | 82 | { |
| 72 | } | 83 | } |
| 73 | 84 | class·A | |
| 74 | { | 85 | { |
| 86 | » private·A·() | ||
| 87 | » {·} | ||
| 75 | } | 88 | } |
| 89 | class·X | ||
| 76 | class·A·:·Class2<Class3<Class1>> | ||
| 77 | { | 90 | { |
| 91 | » static·void·Main·() | ||
| 92 | » { | ||
| 93 | » » object·o·=·new·Foo<A>·(); | ||
| 94 | » } | ||
| 78 | }</string> | 95 | }</string> |
| 79 | ····<string>//·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>' | 96 | ····<string>//·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>' |
| 80 | //·Line:·18 | 97 | //·Line:·18 |
| 81 | public·class·Foo<T> | 98 | public·class·Foo<T> |
| 82 | » where·T·:·new·() | 99 | » where·T·:·new·() |
| 83 | { | 100 | { |
| 84 | } | 101 | } |
| 85 | class·A | 102 | abstract·class·A |
| 86 | { | 103 | { |
| 87 | » p | 104 | » public·A·() |
| 88 | » {·} | 105 | » {·} |
| 89 | } | 106 | } |
| 90 | class·X | 107 | class·X |
| 91 | { | 108 | { |
| 92 | » Foo<A>·foo; | 109 | » Foo<A>·foo; |
| Max diff block lines reached; 446/3552 bytes (12.56%) of diff not shown. | |||
| Offset 1, 59 lines modified | Offset 1, 11 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0311</ErrorName> | 3 | ··<ErrorName>CS0311</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·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>>' | ||
| 6 | //·Line:·3 | ||
| 7 | class·A·:·C<B<int>>·{} | ||
| 8 | class·B<X>·{} | ||
| 9 | interface·C<X>·where·X·:·D<X>·{} | ||
| 10 | interface·D<X>·{}</string> | ||
| 11 | ····<string>//·CS0311:·The·type·`object'·cannot·be·used·as·type·parameter·`U'·in·the·generic·type·or·method·`G<C>.Method<U>()'.·There·is·no·implicit·reference·conversion·from·`object'·to·`C' | ||
| 12 | //·Line:·9 | ||
| 13 | public·class·C | ||
| 14 | { | ||
| 15 | » public·static·void·Main·() | ||
| 16 | » { | ||
| 17 | » » var·mc·=·new·G<C>·(); | ||
| 18 | » » mc.Method<object>·(); | ||
| 19 | » } | ||
| 20 | } | ||
| 21 | public·class·G<T>·where·T·:·C | ||
| 22 | { | ||
| 23 | » public·void·Method<U>·()·where·U·:·T | ||
| 24 | » { | ||
| 25 | » } | ||
| 26 | }</string> | ||
| 27 | ····<string>//·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' | ||
| 28 | //·Line:·19 | ||
| 29 | public·class·Foo<T> | ||
| 30 | » where·T·:·A | ||
| 31 | { | ||
| 32 | } | ||
| 33 | public·class·A | ||
| 34 | { | ||
| 35 | } | ||
| 36 | public·class·B | ||
| 37 | { | ||
| 38 | } | ||
| 39 | class·X | ||
| 40 | { | ||
| 41 | » Foo<B>·foo; | ||
| 42 | » static·void·Main·() | ||
| 43 | » { | ||
| 44 | » } | ||
| 45 | }</string> | ||
| 46 | ····<string>//·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' | 5 | ····<string>//·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' |
| 47 | //·Line:·35 | 6 | //·Line:·35 |
| 48 | using·System; | 7 | using·System; |
| 49 | public·class·Foo<T> | 8 | public·class·Foo<T> |
| 50 | » where·T·:·A | 9 | » where·T·:·A |
| 51 | { | 10 | { |
| Offset 110, 9 lines modified | Offset 62, 57 lines modified | ||
| 110 | { | 62 | { |
| 111 | » Foo<B>·foo; | 63 | » Foo<B>·foo; |
| 112 | » static·void·Main·() | 64 | » static·void·Main·() |
| 113 | » { | 65 | » { |
| 114 | » } | 66 | » } |
| 115 | }</string> | 67 | }</string> |
| 68 | ····<string>//·CS0311:·The·type·`object'·cannot·be·used·as·type·parameter·`U'·in·the·generic·type·or·method·`G<C>.Method<U>()'.·There·is·no·implicit·reference·conversion·from·`object'·to·`C' | ||
| 69 | //·Line:·9 | ||
| 70 | public·class·C | ||
| 71 | { | ||
| 72 | » public·static·void·Main·() | ||
| 73 | » { | ||
| 74 | » » var·mc·=·new·G<C>·(); | ||
| 75 | » » mc.Method<object>·(); | ||
| 76 | » } | ||
| 77 | } | ||
| 78 | public·class·G<T>·where·T·:·C | ||
| 79 | { | ||
| 80 | » public·void·Method<U>·()·where·U·:·T | ||
| 81 | » { | ||
| 82 | » } | ||
| 83 | }</string> | ||
| 84 | ····<string>//·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' | ||
| 85 | //·Line:·19 | ||
| 86 | public·class·Foo<T> | ||
| 87 | » where·T·:·A | ||
| 88 | { | ||
| 89 | } | ||
| 90 | public·class·A | ||
| 91 | { | ||
| 92 | } | ||
| 93 | public·class·B | ||
| 94 | { | ||
| 95 | } | ||
| 96 | class·X | ||
| 97 | { | ||
| 98 | » Foo<B>·foo; | ||
| 99 | » static·void·Main·() | ||
| 100 | » { | ||
| 101 | » } | ||
| 102 | }</string> | ||
| 103 | ····<string>//·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>>' | ||
| 104 | //·Line:·3 | ||
| 105 | class·A·:·C<B<int>>·{} | ||
| 106 | class·B<X>·{} | ||
| 107 | interface·C<X>·where·X·:·D<X>·{} | ||
| 108 | interface·D<X>·{}</string> | ||
| 116 | ··</Examples> | 109 | ··</Examples> |
| 117 | </ErrorDocumentation> | 110 | </ErrorDocumentation> |
| Offset 1, 45 lines modified | Offset 1, 45 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0312</ErrorName> | 3 | ··<ErrorName>CS0312</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0312:·The·type·` | 5 | ····<string>//·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' |
| 6 | //·Line:·16 | 6 | //·Line:·16 |
| 7 | 7 | struct·S | |
| 8 | { | 8 | { |
| 9 | } | 9 | } |
| 10 | class·C<U> | 10 | class·C<U> |
| 11 | { | 11 | { |
| 12 | » static·void·Foo<T>·(T·value)·where·T·:·U | 12 | » static·void·Foo<T>·(T·value)·where·T·:·U |
| 13 | » { | 13 | » { |
| 14 | » } | 14 | » } |
| 15 | » static·void·Test·( | 15 | » static·void·Test·(S?·s) |
| 16 | » { | 16 | » { |
| 17 | » » C< | 17 | » » C<S>.Foo·(s); |
| 18 | » } | 18 | » } |
| 19 | }</string> | 19 | }</string> |
| 20 | ····<string>//·CS0312:·The·type·` | 20 | ····<string>//·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' |
| 21 | //·Line:·16 | 21 | //·Line:·16 |
| 22 | 22 | enum·E | |
| 23 | { | 23 | { |
| 24 | } | 24 | } |
| 25 | class·C<U> | 25 | class·C<U> |
| 26 | { | 26 | { |
| 27 | » static·void·Foo<T>·(T·value)·where·T·:·U | 27 | » static·void·Foo<T>·(T·value)·where·T·:·U |
| 28 | » { | 28 | » { |
| 29 | » } | 29 | » } |
| 30 | » static·void·Test·( | 30 | » static·void·Test·(E?·e) |
| 31 | » { | 31 | » { |
| 32 | » » C< | 32 | » » C<E>.Foo·(e); |
| 33 | » } | 33 | » } |
| 34 | }</string> | 34 | }</string> |
| 35 | ····<string>//·CS0312:·The·type·`E?'·cannot·be·used·as·type·parameter·`T'·in·the·generic·type·or·method·`C<System.Enum>.Foo<T>(T)'.·The·nullable·type·`E?'·does·not·satisfy·constraint·`System.Enum' | 35 | ····<string>//·CS0312:·The·type·`E?'·cannot·be·used·as·type·parameter·`T'·in·the·generic·type·or·method·`C<System.Enum>.Foo<T>(T)'.·The·nullable·type·`E?'·does·not·satisfy·constraint·`System.Enum' |
| 36 | //·Line:·16 | 36 | //·Line:·16 |
| 37 | enum·E | 37 | enum·E |
| 38 | { | 38 | { |
| Offset 1, 32 lines modified | Offset 1, 11 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0314</ErrorName> | 3 | ··<ErrorName>CS0314</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0314:·The·type·`U'·cannot·be·used·as·type·parameter·`T'·in·the·generic·type·or·method·`A<T>'.·There·is·no·boxing·or·type·parameter·conversion·from·`U'·to·`System.IComparable' | ||
| 6 | //·Line:·13 | ||
| 7 | using·System; | ||
| 8 | class·A<T> | ||
| 9 | » where·T:·IComparable | ||
| 10 | { | ||
| 11 | } | ||
| 12 | class·B<U,V> | ||
| 13 | » where·V:·A<U> | ||
| 14 | { | ||
| 15 | } | ||
| 16 | class·Driver | ||
| 17 | { | ||
| 18 | » public·static·void·Main·() | ||
| 19 | » { | ||
| 20 | » } | ||
| 21 | }</string> | ||
| 22 | ····<string>//·CS0314:·The·type·`T'·cannot·be·used·as·type·parameter·`T'·in·the·generic·type·or·method·`IB<K,T>'.·There·is·no·boxing·or·type·parameter·conversion·from·`T'·to·`System.IDisposable' | 5 | ····<string>//·CS0314:·The·type·`T'·cannot·be·used·as·type·parameter·`T'·in·the·generic·type·or·method·`IB<K,T>'.·There·is·no·boxing·or·type·parameter·conversion·from·`T'·to·`System.IDisposable' |
| 23 | //·Line:·20 | 6 | //·Line:·20 |
| 24 | public·interface·IA<K>· | 7 | public·interface·IA<K>· |
| 25 | » where·K·:·System.IComparable,·System.IComparable<K> | 8 | » where·K·:·System.IComparable,·System.IComparable<K> |
| 26 | { | 9 | { |
| 27 | } | 10 | } |
| Offset 45, 9 lines modified | Offset 24, 30 lines modified | ||
| 45 | » where·T·:·B<K,T>.Element,·new()· | 24 | » where·T·:·B<K,T>.Element,·new()· |
| 46 | » where·K·:·System.IComparable,·System.IComparable<K> | 25 | » where·K·:·System.IComparable,·System.IComparable<K> |
| 47 | { | 26 | { |
| 48 | » public·abstract·class·Element·:·A<K> | 27 | » public·abstract·class·Element·:·A<K> |
| 49 | » { | 28 | » { |
| 50 | » } | 29 | » } |
| 51 | }</string> | 30 | }</string> |
| 31 | ····<string>//·CS0314:·The·type·`U'·cannot·be·used·as·type·parameter·`T'·in·the·generic·type·or·method·`A<T>'.·There·is·no·boxing·or·type·parameter·conversion·from·`U'·to·`System.IComparable' | ||
| 32 | //·Line:·13 | ||
| 33 | using·System; | ||
| 34 | class·A<T> | ||
| 35 | » where·T:·IComparable | ||
| 36 | { | ||
| 37 | } | ||
| 38 | class·B<U,V> | ||
| 39 | » where·V:·A<U> | ||
| 40 | { | ||
| 41 | } | ||
| 42 | class·Driver | ||
| 43 | { | ||
| 44 | » public·static·void·Main·() | ||
| 45 | » { | ||
| 46 | » } | ||
| 47 | }</string> | ||
| 52 | ··</Examples> | 48 | ··</Examples> |
| 53 | </ErrorDocumentation> | 49 | </ErrorDocumentation> |
| Offset 1, 31 lines modified | Offset 1, 28 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0315</ErrorName> | 3 | ··<ErrorName>CS0315</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0315:·The·type·`int'·cannot·be·used·as·type·parameter·` | 5 | ····<string>//·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' |
| 6 | //·Line:· | 6 | //·Line:·8 |
| 7 | class· | 7 | class·X |
| 8 | { | 8 | { |
| 9 | » delegate·void·D<TEventArgs>·()·where·TEventArgs·:·System.EventArgs; | ||
| 9 | » public·static·void·Test<U>·()·where·U·:·T | ||
| 10 | » { | ||
| 11 | » } | ||
| 12 | } | ||
| 13 | class·B·:·A<int?> | ||
| 14 | { | ||
| 15 | 10 | » D<int>·x; | |
| 11 | }</string> | ||
| 12 | ····<string>//·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>' | ||
| 13 | //·Line:·4 | ||
| 16 | class· | 14 | public·class·A<T>·where·T·:·A<short>.N1<T> |
| 17 | { | 15 | { |
| 16 | ····public·class·N1<U> | ||
| 17 | ····{ | ||
| 18 | ····} | ||
| 18 | » public·static·void·Main·() | ||
| 19 | » { | ||
| 20 | » » B.Test<int>·(); | ||
| 21 | » } | ||
| 22 | }</string> | 19 | }</string> |
| 23 | ····<string>//·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' | 20 | ····<string>//·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' |
| 24 | //·Line:·27 | 21 | //·Line:·27 |
| 25 | using·System; | 22 | using·System; |
| 26 | interface·I | 23 | interface·I |
| Offset 49, 38 lines modified | Offset 46, 41 lines modified | ||
| 49 | » static·void·Main·() | 46 | » static·void·Main·() |
| 50 | » { | 47 | » { |
| 51 | » » Test·(()·=>·{ | 48 | » » Test·(()·=>·{ |
| 52 | » » » Foo<H<int>>·(); | 49 | » » » Foo<H<int>>·(); |
| 53 | » » }); | 50 | » » }); |
| 54 | » } | 51 | » } |
| 55 | }</string> | 52 | }</string> |
| 56 | ····<string>//·CS0315:·The·type·` | 53 | ····<string>//·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?' |
| 57 | //·Line:· | 54 | //·Line:·19 |
| 58 | 55 | class·A<T> | |
| 59 | { | 56 | { |
| 60 | ····public·class·N1<U> | ||
| 61 | ····{ | ||
| 62 | ···· | 57 | » public·static·void·Test<U>·()·where·U·:·T |
| 58 | » { | ||
| 59 | » } | ||
| 60 | } | ||
| 61 | class·B·:·A<int?> | ||
| 62 | { | ||
| 63 | } | ||
| 64 | class·Program | ||
| 65 | { | ||
| 66 | » public·static·void·Main·() | ||
| 67 | » { | ||
| 68 | » » B.Test<int>·(); | ||
| 69 | » } | ||
| 63 | }</string> | 70 | }</string> |
| 64 | ····<string>//·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>' | 71 | ····<string>//·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>' |
| 65 | //·Line:·9 | 72 | //·Line:·9 |
| 66 | //·Compiler·options:·-r:CS0315-2-lib.dll | 73 | //·Compiler·options:·-r:CS0315-2-lib.dll |
| 67 | public·class·Test | 74 | public·class·Test |
| 68 | { | 75 | { |
| 69 | » public·static·void·Main·() | 76 | » public·static·void·Main·() |
| 70 | » { | 77 | » { |
| 71 | » » A<ushort>.N1<ushort>·a·=·null; | 78 | » » A<ushort>.N1<ushort>·a·=·null; |
| 72 | » } | 79 | » } |
| 73 | }</string> | 80 | }</string> |
| 74 | ····<string>//·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' | ||
| 75 | //·Line:·8 | ||
| 76 | class·X | ||
| 77 | { | ||
| 78 | » delegate·void·D<TEventArgs>·()·where·TEventArgs·:·System.EventArgs; | ||
| 79 | » D<int>·x; | ||
| 80 | }</string> | ||
| 81 | ··</Examples> | 81 | ··</Examples> |
| 82 | </ErrorDocumentation> | 82 | </ErrorDocumentation> |
| Offset 16, 39 lines modified | Offset 16, 39 lines modified | ||
| 16 | { | 16 | { |
| 17 | » static·void·Main·() | 17 | » static·void·Main·() |
| 18 | » {·} | 18 | » {·} |
| 19 | }</string> | 19 | }</string> |
| 20 | ····<string>//·CS0403:·Cannot·convert·null·to·the·type·parameter·`T'·because·it·could·be·a·value·type.·Consider·using·`default·(T)'·instead | 20 | ····<string>//·CS0403:·Cannot·convert·null·to·the·type·parameter·`T'·because·it·could·be·a·value·type.·Consider·using·`default·(T)'·instead |
| 21 | //·Line:·8 | 21 | //·Line:·8 |
| 22 | 22 | struct·S | |
| 23 | { | 23 | { |
| 24 | » public· | 24 | » public·void·Foo<T>·()·where·T·:·struct |
| 25 | » { | 25 | » { |
| 26 | » » | 26 | » » T·t·=·null; |
| 27 | » } | 27 | » } |
| 28 | » static·void·Main·() | ||
| 29 | » {·} | ||
| 28 | }</string> | 30 | }</string> |
| 29 | ····<string>//·CS0403:·Cannot·convert·null·to·the·type·parameter·`T'·because·it·could·be·a·value·type.·Consider·using·`default·(T)'·instead | 31 | ····<string>//·CS0403:·Cannot·convert·null·to·the·type·parameter·`T'·because·it·could·be·a·value·type.·Consider·using·`default·(T)'·instead |
| 30 | //·Line:·8 | 32 | //·Line:·8 |
| 31 | class· | 33 | class·X |
| 32 | { | 34 | { |
| 33 | » public·T· | 35 | » public·static·T·CreateMethod<T>·() |
| 34 | » { | 36 | » { |
| 35 | » » return·(null | 37 | » » return·(T)null; |
| 36 | » } | 38 | » } |
| 37 | }</string> | 39 | }</string> |
| 38 | ····<string>//·CS0403:·Cannot·convert·null·to·the·type·parameter·`T'·because·it·could·be·a·value·type.·Consider·using·`default·(T)'·instead | 40 | ····<string>//·CS0403:·Cannot·convert·null·to·the·type·parameter·`T'·because·it·could·be·a·value·type.·Consider·using·`default·(T)'·instead |
| 39 | //·Line:·8 | 41 | //·Line:·8 |
| 40 | st | 42 | class·Test<T> |
| 41 | { | 43 | { |
| 42 | » public· | 44 | » public·T·Null·() |
| 43 | » { | 45 | » { |
| 44 | » » | 46 | » » return·(null); |
| 45 | » } | 47 | » } |
| 46 | » static·void·Main·() | ||
| 47 | » {·} | ||
| 48 | }</string> | 48 | }</string> |
| 49 | ··</Examples> | 49 | ··</Examples> |
| 50 | </ErrorDocumentation> | 50 | </ErrorDocumentation> |
| Offset 1, 25 lines modified | Offset 1, 25 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0406</ErrorName> | 3 | ··<ErrorName>CS0406</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0406:·The·class·type·constraint·` | 5 | ····<string>//·CS0406:·The·class·type·constraint·`A'·must·be·listed·before·any·other·constraints.·Consider·moving·type·constraint·to·the·beginning·of·the·constraint·list |
| 6 | //·Line:· | 6 | //·Line:·7 |
| 7 | class·A·{·} | 7 | class·A·{·} |
| 8 | 8 | interface·I·{·} | |
| 9 | class·Foo<T>·where·T·:·I,·A | ||
| 9 | class·Foo<T> | ||
| 10 | » where·T·:·A,·B | ||
| 11 | { | 10 | { |
| 12 | }</string> | 11 | }</string> |
| 13 | ····<string>//·CS0406:·The·class·type·constraint·` | 12 | ····<string>//·CS0406:·The·class·type·constraint·`B'·must·be·listed·before·any·other·constraints.·Consider·moving·type·constraint·to·the·beginning·of·the·constraint·list |
| 14 | //·Line:· | 13 | //·Line:·8 |
| 15 | class·A·{·} | 14 | class·A·{·} |
| 16 | 15 | class·B·{·} | |
| 17 | class·Foo<T> | 16 | class·Foo<T> |
| 17 | » where·T·:·A,·B | ||
| 18 | { | 18 | { |
| 19 | }</string> | 19 | }</string> |
| 20 | ··</Examples> | 20 | ··</Examples> |
| 21 | </ErrorDocumentation> | 21 | </ErrorDocumentation> |
| Offset 1, 42 lines modified | Offset 1, 40 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0407</ErrorName> | 3 | ··<ErrorName>CS0407</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0407:·A·method·or·delegate·` | 5 | ····<string>//·CS0407:·A·method·or·delegate·`TestDelegateA·MainClass.Method(bool)'·return·type·does·not·match·delegate·`int·TestDelegateA(bool)'·return·type |
| 6 | //·Line:·1 | 6 | //·Line:·12 |
| 7 | 7 | delegate·int·TestDelegateA·(bool·b); | |
| 8 | public·class· | 8 | public·class·MainClass |
| 9 | { | 9 | { |
| 10 | » static·TestDelegateA·Method·(bool·b) | ||
| 10 | » private·delegate·object·Conv(string·str); | ||
| 11 | » public·static·void·Main() | ||
| 12 | » { | 11 | » { |
| 13 | » » | 12 | » » return·Method; |
| 14 | » } | 13 | » } |
| 15 | }</string> | 14 | }</string> |
| 16 | ····<string>//·CS0407:·A·method·or·delegate·`int· | 15 | ····<string>//·CS0407:·A·method·or·delegate·`int·X.f(int)'·return·type·does·not·match·delegate·`object·X.Function(int)'·return·type |
| 17 | //·Line:·1 | 16 | //·Line:·17 |
| 17 | using·System; | ||
| 18 | delegate·int·TestDelegateA·(bool·b); | ||
| 19 | delegate·bool·TestDelegateB·(bool·b); | ||
| 20 | 18 | class·X | |
| 21 | { | 19 | { |
| 22 | » public· | 20 | » public·delegate·object·Function(int·arg1); |
| 21 | » static·void·Main·() | ||
| 23 | » { | 22 | » { |
| 24 | » » | 23 | » » Delegate·d·=·new·Function·(f); |
| 25 | » } | 24 | » } |
| 26 | » | 25 | » static·int·f·(int·a) |
| 27 | » { | 26 | » { |
| 27 | » » return·1; | ||
| 28 | » » TestDelegateA·a·=·new·TestDelegateA·(Delegate); | ||
| 29 | » » TestDelegateB·b·=·new·TestDelegateB·(a); | ||
| 30 | » } | 28 | » } |
| 31 | }</string> | 29 | }</string> |
| 32 | ····<string>//·CS0407:·A·method·or·delegate·`dynamic·Program.Foo()'·return·type·does·not·match·delegate·`string·System.Func<string>()'·return·type | 30 | ····<string>//·CS0407:·A·method·or·delegate·`dynamic·Program.Foo()'·return·type·does·not·match·delegate·`string·System.Func<string>()'·return·type |
| 33 | //·Line:·10 | 31 | //·Line:·10 |
| 34 | using·System; | 32 | using·System; |
| Offset 48, 60 lines modified | Offset 46, 62 lines modified | ||
| 48 | » } | 46 | » } |
| 49 | » static·dynamic·Foo·() | 47 | » static·dynamic·Foo·() |
| 50 | » { | 48 | » { |
| 51 | » » return·1; | 49 | » » return·1; |
| 52 | » } | 50 | » } |
| 53 | }</string> | 51 | }</string> |
| 54 | ····<string>//·CS0407:·A·method·or·delegate·`int· | 52 | ····<string>//·CS0407:·A·method·or·delegate·`int·Program.Foo(object)'·return·type·does·not·match·delegate·`void·System.Action<dynamic>(dynamic)'·return·type |
| 55 | //·Line:·1 | 53 | //·Line:·10 |
| 56 | using·System; | 54 | using·System; |
| 57 | class· | 55 | class·Program |
| 58 | { | 56 | { |
| 59 | » public·delegate·object·Function(int·arg1); | ||
| 60 | » static·void·Main | 57 | » static·void·Main() |
| 61 | » { | 58 | » { |
| 62 | » » | 59 | » » Action<dynamic>·d·=·Foo; |
| 63 | » } | 60 | » } |
| 64 | » static·int· | 61 | » static·int·Foo·(object·o) |
| 65 | » { | 62 | » { |
| 66 | » » return· | 63 | » » return·0; |
| 67 | » } | 64 | » } |
| 68 | }</string> | 65 | }</string> |
| 69 | ····<string>//·CS0407:·A·method·or·delegate·`int· | 66 | ····<string>//·CS0407:·A·method·or·delegate·`int·int.Parse(string)'·return·type·does·not·match·delegate·`object·Test.Conv(string)'·return·type |
| 70 | //·Line:·1 | 67 | //·Line:·17 |
| 71 | using·System; | 68 | using·System; |
| 72 | class· | 69 | public·class·Test |
| 73 | { | 70 | { |
| 71 | » private·delegate·object·Conv(string·str); | ||
| 74 | » static·void·Main() | ||
| 75 | » { | ||
| 76 | » » Action<dynamic>·d·=·Foo; | ||
| 77 | » } | ||
| 78 | » | 72 | » public·static·void·Main() |
| 79 | » { | 73 | » { |
| 80 | » » | 74 | » » Conv·c·=·new·Conv(int.Parse); |
| 81 | » } | 75 | » } |
| 82 | }</string> | 76 | }</string> |
| 83 | ····<string>//·CS0407:·A·method·or·delegate·`TestDelegateA | 77 | ····<string>//·CS0407:·A·method·or·delegate·`int·TestDelegateA(bool)'·return·type·does·not·match·delegate·`bool·TestDelegateB(bool)'·return·type |
| 84 | //·Line:·12 | 78 | //·Line:·12 |
| 85 | delegate·int·TestDelegateA·(bool·b); | 79 | delegate·int·TestDelegateA·(bool·b); |
| 80 | delegate·bool·TestDelegateB·(bool·b); | ||
| 86 | public·class·MainClass | 81 | public·class·MainClass |
| 87 | { | 82 | { |
| 88 | » static· | 83 | » public·static·int·Delegate(bool·b) |
| 89 | » { | 84 | » { |
| 90 | » » return· | 85 | » » return·0; |
| 86 | » } | ||
| 87 | » public·static·void·Main()· | ||
| 88 | » { | ||
| 89 | » » TestDelegateA·a·=·new·TestDelegateA·(Delegate); | ||
| 90 | » » TestDelegateB·b·=·new·TestDelegateB·(a); | ||
| 91 | » } | 91 | » } |
| 92 | }</string> | 92 | }</string> |
| 93 | ····<string>//·CS0407:·A·method·or·delegate·`int·MainClass.Delegate()'·return·type·does·not·match·delegate·`void·TestDelegate()'·return·type | 93 | ····<string>//·CS0407:·A·method·or·delegate·`int·MainClass.Delegate()'·return·type·does·not·match·delegate·`void·TestDelegate()'·return·type |
| 94 | //·Line:·12 | 94 | //·Line:·12 |
| 95 | delegate·void·TestDelegate(); | 95 | delegate·void·TestDelegate(); |
| Offset 1, 42 lines modified | Offset 1, 59 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0411</ErrorName> | 3 | ··<ErrorName>CS0411</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0411:·The·type·arguments·for·method·` | 5 | ····<string>//·CS0411:·The·type·arguments·for·method·`Test.Foo<A>(D<A>)'·cannot·be·inferred·from·the·usage.·Try·specifying·the·type·arguments·explicitly |
| 6 | //·Line:·1 | 6 | //·Line:·15 |
| 7 | 7 | delegate·void·D<T>·(T·t); | |
| 8 | class·Test | ||
| 8 | { | 9 | { |
| 9 | » public·static· | 10 | » public·static·D<A>·Foo<A>·(D<A>·a) |
| 10 | » { | 11 | » { |
| 12 | » » return·null; | ||
| 11 | » } | 13 | » } |
| 12 | » | 14 | » |
| 13 | » public·static·void·Main·() | 15 | » public·static·void·Main·() |
| 14 | » { | 16 | » { |
| 17 | » » Foo·(delegate·{}); | ||
| 15 | » » string·s·=·"a"; | ||
| 16 | » » object·o·=·null; | ||
| 17 | » » Foo·(ref·s,·ref·o); | ||
| 18 | » } | 18 | » } |
| 19 | }</string> | 19 | }</string> |
| 20 | ····<string>//·CS0411:·The·type·arguments·for·method·` | 20 | ····<string>//·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 |
| 21 | //·Line:·15 | 21 | //·Line:·15 |
| 22 | 22 | using·System; | |
| 23 | public·class·Foo<T> | ||
| 23 | { | 24 | { |
| 25 | » public·void·DoSomething<U>·(Func<U,·T>·valueExpression)·{·} | ||
| 24 | » public·void·Foo<V,W>·(V·v,·V·w) | ||
| 25 | » {·} | ||
| 26 | } | 26 | } |
| 27 | class· | 27 | public·class·Bar |
| 28 | { | 28 | { |
| 29 | » | 29 | » protected·void·DoAnything<T,·U>·(U·value) |
| 30 | » { | 30 | » { |
| 31 | » » Test<float>·test·=·new·Test<float>·(); | ||
| 32 | » » t | 31 | » » new·Foo<U>·().DoSomething·(value); |
| 32 | » } | ||
| 33 | }</string> | ||
| 34 | ····<string>//·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 | ||
| 35 | //·Line:·14 | ||
| 36 | class·C | ||
| 37 | { | ||
| 38 | » public·static·void·Foo<T>·(ref·T·t1,·ref·T·t2) | ||
| 39 | » { | ||
| 40 | » } | ||
| 41 | » | ||
| 42 | » public·static·void·Main·() | ||
| 43 | » { | ||
| 44 | » » string·s·=·"a"; | ||
| 45 | » » object·o·=·null; | ||
| 46 | » » Foo·(ref·s,·ref·o); | ||
| 33 | » } | 47 | » } |
| 34 | }</string> | 48 | }</string> |
| 35 | ····<string>//·CS0411:·The·type·arguments·for·method·`AsyncTypeInference.Test2<T>(System.Func<int,T>)'·cannot·be·inferred·from·the·usage.·Try·specifying·the·type·arguments·explicitly | 49 | ····<string>//·CS0411:·The·type·arguments·for·method·`AsyncTypeInference.Test2<T>(System.Func<int,T>)'·cannot·be·inferred·from·the·usage.·Try·specifying·the·type·arguments·explicitly |
| 36 | //·Line:·11 | 50 | //·Line:·11 |
| 37 | using·System; | 51 | using·System; |
| 38 | using·System.Threading.Tasks; | 52 | using·System.Threading.Tasks; |
| Offset 55, 100 lines modified | Offset 72, 67 lines modified | ||
| 55 | » } | 72 | » } |
| 56 | » static·void·Test2<T>·(Func<int,·T>·arg) | 73 | » static·void·Test2<T>·(Func<int,·T>·arg) |
| 57 | » { | 74 | » { |
| 58 | » » arg·(0); | 75 | » » arg·(0); |
| 59 | » } | 76 | » } |
| 60 | }</string> | 77 | }</string> |
| 61 | ····<string>//·CS0411:·The·type·arguments·for·method·`C.Foo<T>( | 78 | ····<string>//·CS0411:·The·type·arguments·for·method·`C.Foo<T>(I<T>)'·cannot·be·inferred·from·the·usage.·Try·specifying·the·type·arguments·explicitly |
| 62 | //·Line:· | 79 | //·Line:·17 |
| 63 | //·Compiler·options:·-langversion:experimental | ||
| 64 | 80 | interface·I<T> | |
| 65 | { | 81 | { |
| 82 | } | ||
| 66 | » public·static·void·Main·() | ||
| 67 | » { | ||
| 68 | » » Foo·(out·var·y); | ||
| 69 | » } | ||
| 70 | » static·void·Foo<T>·(out·T·t) | ||
| 71 | » { | ||
| 72 | » » t·=·default·(T); | ||
| 73 | » } | ||
| 74 | }</string> | ||
| 75 | ····<string>//·CS0411:·The·type·arguments·for·method·`Hello.World<U>(IFoo<U>)'·cannot·be·inferred·from·the·usage.·Try·specifying·the·type·arguments·explicitly | ||
| 76 | //·Line:·16 | ||
| 77 | public·interface·IFoo<T> | ||
| 78 | {·} | ||
| 79 | public·class·Foo·:·IFoo<int>,·IFoo<string> | ||
| 80 | {·} | ||
| 81 | 83 | class·C·:·I<long>,·I<int> | |
| 82 | { | 84 | { |
| 85 | » static·void·Foo<T>·(I<T>·i) | ||
| 83 | » public·void·World<U>·(IFoo<U>·foo) | ||
| 84 | » {·} | ||
| 85 | » public·void·Test·(Foo·foo) | ||
| 86 | » { | 86 | » { |
| 87 | » » World·(foo); | ||
| 88 | » } | 87 | » } |
| 89 | } | ||
| 90 | class·X | ||
| 91 | { | ||
| 92 | » static·void·Main·() | 88 | » static·void·Main·() |
| 93 | » { | 89 | » { |
| 90 | » » C·c·=·new·C·(); | ||
| 91 | » » Foo·(c); | ||
| 94 | » } | 92 | » } |
| 95 | }</string> | 93 | }</string> |
| 96 | ····<string>//·CS0411:·The·type·arguments·for·method·` | 94 | ····<string>//·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 |
| 97 | //·Line:· | 95 | //·Line:·20 |
| 98 | using·System; | ||
| 96 | using·System.Collections.Generic; | ||
| 97 | using·System.Linq; | ||
| 99 | public·class·Foo<T> | ||
| 100 | { | ||
| Max diff block lines reached; 8711/13031 bytes (66.85%) of diff not shown. | |||
| Offset 1, 23 lines modified | Offset 1, 14 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0412</ErrorName> | 3 | ··<ErrorName>CS0412</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0412:·The·type·parameter·name·`T'·is·the·same·as·local·variable·or·parameter·name | 5 | ····<string>//·CS0412:·The·type·parameter·name·`T'·is·the·same·as·local·variable·or·parameter·name |
| 6 | //·Line:·8 | 6 | //·Line:·8 |
| 7 | using·System; | ||
| 8 | interface·I | ||
| 9 | { | ||
| 10 | » T·Foo<T>(IComparable·T); | ||
| 11 | }</string> | ||
| 12 | ····<string>//·CS0412:·The·type·parameter·name·`T'·is·the·same·as·local·variable·or·parameter·name | ||
| 13 | //·Line:·8 | ||
| 14 | class·C | 7 | class·C |
| 15 | { | 8 | { |
| 16 | » public·void·Foo<T>·(int·value) | 9 | » public·void·Foo<T>·(int·value) |
| 17 | » { | 10 | » { |
| 18 | » » int·T; | 11 | » » int·T; |
| 19 | » } | 12 | » } |
| 20 | }</string> | 13 | }</string> |
| Offset 26, 9 lines modified | Offset 17, 18 lines modified | ||
| 26 | class·C | 17 | class·C |
| 27 | { | 18 | { |
| 28 | » public·void·Foo<T>·(string·T) | 19 | » public·void·Foo<T>·(string·T) |
| 29 | » { | 20 | » { |
| 30 | » } | 21 | » } |
| 31 | }</string> | 22 | }</string> |
| 23 | ····<string>//·CS0412:·The·type·parameter·name·`T'·is·the·same·as·local·variable·or·parameter·name | ||
| 24 | //·Line:·8 | ||
| 25 | using·System; | ||
| 26 | interface·I | ||
| 27 | { | ||
| 28 | » T·Foo<T>(IComparable·T); | ||
| 29 | }</string> | ||
| 32 | ··</Examples> | 30 | ··</Examples> |
| 33 | </ErrorDocumentation> | 31 | </ErrorDocumentation> |
| Offset 1, 22 lines modified | Offset 1, 11 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0414</ErrorName> | 3 | ··<ErrorName>CS0414</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0414:·The·private·field·`X.i'·is·assigned·but·its·value·is·never·used | ||
| 6 | //·Line:·6 | ||
| 7 | //·Compiler·options:·-warnaserror·-warn:3 | ||
| 8 | class·X·{ | ||
| 9 | » int·i·=·3; | ||
| 10 | » | ||
| 11 | » public·void·Y·() | ||
| 12 | » { | ||
| 13 | » } | ||
| 14 | }</string> | ||
| 15 | ····<string>//·CS0414:·The·private·field·`X.o'·is·assigned·but·its·value·is·never·used | 5 | ····<string>//·CS0414:·The·private·field·`X.o'·is·assigned·but·its·value·is·never·used |
| 16 | //·Line:·14 | 6 | //·Line:·14 |
| 17 | //·Compiler·options:·-warnaserror·-warn:3 | 7 | //·Compiler·options:·-warnaserror·-warn:3 |
| 18 | partial·class·X | 8 | partial·class·X |
| 19 | { | 9 | { |
| 20 | » public·static·void·Main·() | 10 | » public·static·void·Main·() |
| Offset 24, 9 lines modified | Offset 13, 20 lines modified | ||
| 24 | » } | 13 | » } |
| 25 | } | 14 | } |
| 26 | partial·class·X | 15 | partial·class·X |
| 27 | { | 16 | { |
| 28 | » int·o·=·4; | 17 | » int·o·=·4; |
| 29 | }</string> | 18 | }</string> |
| 19 | ····<string>//·CS0414:·The·private·field·`X.i'·is·assigned·but·its·value·is·never·used | ||
| 20 | //·Line:·6 | ||
| 21 | //·Compiler·options:·-warnaserror·-warn:3 | ||
| 22 | class·X·{ | ||
| 23 | » int·i·=·3; | ||
| 24 | » | ||
| 25 | » public·void·Y·() | ||
| 26 | » { | ||
| 27 | » } | ||
| 28 | }</string> | ||
| 30 | ··</Examples> | 29 | ··</Examples> |
| 31 | </ErrorDocumentation> | 30 | </ErrorDocumentation> |
| Offset 1, 11 lines modified | Offset 1, 30 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0416</ErrorName> | 3 | ··<ErrorName>CS0416</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0416:·`C<T>':·an·attribute·argument·cannot·use·type·parameters | ||
| 6 | //·Line:·15 | ||
| 7 | using·System; | ||
| 8 | public·class·TestAttribute·:·Attribute | ||
| 9 | { | ||
| 10 | ····public·TestAttribute(Type·type) | ||
| 11 | ····{ | ||
| 12 | ····} | ||
| 13 | } | ||
| 14 | class·C<T> | ||
| 15 | { | ||
| 16 | ····[Test(typeof(C<T>))] | ||
| 17 | ····public·static·void·Foo() | ||
| 18 | ····{ | ||
| 19 | ····} | ||
| 20 | }</string> | ||
| 5 | ····<string>//·CS0416:·`N.C<T>':·an·attribute·argument·cannot·use·type·parameters | 21 | ····<string>//·CS0416:·`N.C<T>':·an·attribute·argument·cannot·use·type·parameters |
| 6 | //·Line:·15 | 22 | //·Line:·15 |
| 7 | using·System; | 23 | using·System; |
| 8 | public·class·TestAttribute·:·Attribute | 24 | public·class·TestAttribute·:·Attribute |
| 9 | { | 25 | { |
| Offset 30, 33 lines modified | Offset 49, 14 lines modified | ||
| 30 | ····{ | 49 | ····{ |
| 31 | ········[Test(Type=typeof(C<T>))] | 50 | ········[Test(Type=typeof(C<T>))] |
| 32 | ········public·void·Foo() | 51 | ········public·void·Foo() |
| 33 | ········{ | 52 | ········{ |
| 34 | ········} | 53 | ········} |
| 35 | ····} | 54 | ····} |
| 36 | }</string> | 55 | }</string> |
| 37 | ····<string>//·CS0416:·`C<T>':·an·attribute·argument·cannot·use·type·parameters | ||
| 38 | //·Line:·15 | ||
| 39 | using·System; | ||
| 40 | public·class·TestAttribute·:·Attribute | ||
| 41 | { | ||
| 42 | ····public·TestAttribute(Type·type) | ||
| 43 | ····{ | ||
| 44 | ····} | ||
| 45 | } | ||
| 46 | class·C<T> | ||
| 47 | { | ||
| 48 | ····[Test(typeof(C<T>))] | ||
| 49 | ····public·static·void·Foo() | ||
| 50 | ····{ | ||
| 51 | ····} | ||
| 52 | }</string> | ||
| 53 | ····<string>//·CS0416:·`C<T>.N':·an·attribute·argument·cannot·use·type·parameters | 56 | ····<string>//·CS0416:·`C<T>.N':·an·attribute·argument·cannot·use·type·parameters |
| 54 | //·Line:·17 | 57 | //·Line:·17 |
| 55 | using·System; | 58 | using·System; |
| 56 | public·class·TestAttribute·:·Attribute | 59 | public·class·TestAttribute·:·Attribute |
| 57 | { | 60 | { |
| Offset 1, 31 lines modified | Offset 1, 38 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0418</ErrorName> | 3 | ··<ErrorName>CS0418</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0418:·`TestClass':·an·abstract·class·cannot·be·sealed·or·static | ||
| 6 | //·Line:·4 | ||
| 7 | public·abstract·sealed·class·TestClass | ||
| 8 | { | ||
| 9 | }</string> | ||
| 5 | ····<string>//·CS0418:·`Foo':·an·abstract·class·cannot·be·sealed·or·static | 10 | ····<string>//·CS0418:·`Foo':·an·abstract·class·cannot·be·sealed·or·static |
| 6 | //·Line:·3 | 11 | //·Line:·3 |
| 7 | public·abstract·partial·class·Foo | 12 | public·abstract·sealed·partial·class·Foo |
| 8 | { | 13 | { |
| 9 | » public·string·myId; | 14 | » public·string·myId; |
| 10 | } | 15 | } |
| 11 | public·static·partial·class·Foo | ||
| 12 | { | ||
| 13 | » public·string·Id·{·get·{·return·myId;·}·} | ||
| 14 | } | ||
| 15 | public·class·PartialAbstractCompilationError | 16 | public·class·PartialAbstractCompilationError |
| 16 | { | 17 | { |
| 17 | » public·static·void·Main·() | 18 | » public·static·void·Main·() |
| 18 | » { | 19 | » { |
| 19 | » » System.Console.WriteLine·(typeof·(Foo).IsSealed); | 20 | » » System.Console.WriteLine·(typeof·(Foo).IsSealed); |
| 20 | » » System.Console.WriteLine·(typeof·(Foo).IsAbstract); | 21 | » » System.Console.WriteLine·(typeof·(Foo).IsAbstract); |
| 21 | » } | 22 | » } |
| 22 | }</string> | 23 | }</string> |
| 24 | ····<string>//·CS0418:·`TestClass':·an·abstract·class·cannot·be·sealed·or·static | ||
| 25 | //·Line:·4 | ||
| 26 | public·abstract·static·class·TestClass | ||
| 27 | { | ||
| 28 | }</string> | ||
| 23 | ····<string>//·CS0418:·`Foo':·an·abstract·class·cannot·be·sealed·or·static | 29 | ····<string>//·CS0418:·`Foo':·an·abstract·class·cannot·be·sealed·or·static |
| 24 | //·Line:·3 | 30 | //·Line:·3 |
| 25 | public·abstract·partial·class·Foo | 31 | public·abstract·partial·class·Foo |
| 26 | { | 32 | { |
| 27 | » public·string·myId; | 33 | » public·string·myId; |
| 28 | } | 34 | } |
| Offset 38, 36 lines modified | Offset 45, 29 lines modified | ||
| 38 | { | 45 | { |
| 39 | » public·static·void·Main·() | 46 | » public·static·void·Main·() |
| 40 | » { | 47 | » { |
| 41 | » » System.Console.WriteLine·(typeof·(Foo).IsSealed); | 48 | » » System.Console.WriteLine·(typeof·(Foo).IsSealed); |
| 42 | » » System.Console.WriteLine·(typeof·(Foo).IsAbstract); | 49 | » » System.Console.WriteLine·(typeof·(Foo).IsAbstract); |
| 43 | » } | 50 | » } |
| 44 | }</string> | 51 | }</string> |
| 45 | ····<string>//·CS0418:·`TestClass':·an·abstract·class·cannot·be·sealed·or·static | ||
| 46 | //·Line:·4 | ||
| 47 | public·abstract·sealed·class·TestClass | ||
| 48 | { | ||
| 49 | }</string> | ||
| 50 | ····<string>//·CS0418:·`Foo':·an·abstract·class·cannot·be·sealed·or·static | 52 | ····<string>//·CS0418:·`Foo':·an·abstract·class·cannot·be·sealed·or·static |
| 51 | //·Line:·3 | 53 | //·Line:·3 |
| 52 | public·abstract· | 54 | public·abstract·partial·class·Foo |
| 53 | { | 55 | { |
| 54 | » public·string·myId; | 56 | » public·string·myId; |
| 55 | } | 57 | } |
| 58 | public·static·partial·class·Foo | ||
| 59 | { | ||
| 60 | » public·string·Id·{·get·{·return·myId;·}·} | ||
| 61 | } | ||
| 56 | public·class·PartialAbstractCompilationError | 62 | public·class·PartialAbstractCompilationError |
| 57 | { | 63 | { |
| 58 | » public·static·void·Main·() | 64 | » public·static·void·Main·() |
| 59 | » { | 65 | » { |
| 60 | » » System.Console.WriteLine·(typeof·(Foo).IsSealed); | 66 | » » System.Console.WriteLine·(typeof·(Foo).IsSealed); |
| 61 | » » System.Console.WriteLine·(typeof·(Foo).IsAbstract); | 67 | » » System.Console.WriteLine·(typeof·(Foo).IsAbstract); |
| 62 | » } | 68 | » } |
| 63 | }</string> | 69 | }</string> |
| 64 | ····<string>//·CS0418:·`TestClass':·an·abstract·class·cannot·be·sealed·or·static | ||
| 65 | //·Line:·4 | ||
| 66 | public·abstract·static·class·TestClass | ||
| 67 | { | ||
| 68 | }</string> | ||
| 69 | ··</Examples> | 70 | ··</Examples> |
| 70 | </ErrorDocumentation> | 71 | </ErrorDocumentation> |
| Offset 1, 11 lines modified | Offset 1, 27 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0419</ErrorName> | 3 | ··<ErrorName>CS0419</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0419:·Ambiguous·reference·in·cref·attribute·`DateTime.ToString'.·Assuming·`System.DateTime.ToString()'·but·other·overloads·including·`System.DateTime.ToString(string)'·have·also·matched | ||
| 6 | //·Line:·10 | ||
| 7 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:4 | ||
| 8 | //· | ||
| 9 | //·NOTE:·this·error·message·is·dependent·on·the·order·of·members,·so·feel·free·to·modify·the·message·if·is·going·not·to·match. | ||
| 10 | using·System; | ||
| 11 | ///·<summary> | ||
| 12 | ///·<see·cref="DateTime.ToString"·/> | ||
| 13 | ///·</summary> | ||
| 14 | public·class·EntryPoint | ||
| 15 | { | ||
| 16 | » static·void·Main·()·{ | ||
| 17 | » } | ||
| 18 | }</string> | ||
| 5 | ····<string>//·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 | 19 | ····<string>//·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 |
| 6 | //·Line:·10 | 20 | //·Line:·10 |
| 7 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:4 | 21 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:4 |
| 8 | //· | 22 | //· |
| 9 | //·NOTE:·this·error·message·is·dependent·on·the·order·of·members,·so·feel·free·to·modify·the·message·if·is·going·not·to·match. | 23 | //·NOTE:·this·error·message·is·dependent·on·the·order·of·members,·so·feel·free·to·modify·the·message·if·is·going·not·to·match. |
| 10 | using·System.Xml; | 24 | using·System.Xml; |
| Offset 56, 25 lines modified | Offset 72, 9 lines modified | ||
| 56 | //·Line:·1 | 72 | //·Line:·1 |
| 57 | //·Compiler·options:·-doc:dummy.xml·-warn:3·-warnaserror | 73 | //·Compiler·options:·-doc:dummy.xml·-warn:3·-warnaserror |
| 58 | ///·<summary> | 74 | ///·<summary> |
| 59 | ///·Exposes·<see·cref="System.String.Replace"/>·to·XSLT | 75 | ///·Exposes·<see·cref="System.String.Replace"/>·to·XSLT |
| 60 | ///·</summary> | 76 | ///·</summary> |
| 61 | public·class·Test·{ | 77 | public·class·Test·{ |
| 62 | }</string> | 78 | }</string> |
| 63 | ····<string>//·CS0419:·Ambiguous·reference·in·cref·attribute·`DateTime.ToString'.·Assuming·`System.DateTime.ToString()'·but·other·overloads·including·`System.DateTime.ToString(string)'·have·also·matched | ||
| 64 | //·Line:·10 | ||
| 65 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:4 | ||
| 66 | //· | ||
| 67 | //·NOTE:·this·error·message·is·dependent·on·the·order·of·members,·so·feel·free·to·modify·the·message·if·is·going·not·to·match. | ||
| 68 | using·System; | ||
| 69 | ///·<summary> | ||
| 70 | ///·<see·cref="DateTime.ToString"·/> | ||
| 71 | ///·</summary> | ||
| 72 | public·class·EntryPoint | ||
| 73 | { | ||
| 74 | » static·void·Main·()·{ | ||
| 75 | » } | ||
| 76 | }</string> | ||
| 77 | ··</Examples> | 79 | ··</Examples> |
| 78 | </ErrorDocumentation> | 80 | </ErrorDocumentation> |
| Offset 1, 44 lines modified | Offset 1, 11 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0425</ErrorName> | 3 | ··<ErrorName>CS0425</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·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 | ||
| 6 | //·Line:·11 | ||
| 7 | interface·I | ||
| 8 | { | ||
| 9 | » void·Foo<T>·(); | ||
| 10 | } | ||
| 11 | class·C·:·I | ||
| 12 | { | ||
| 13 | » public·void·Foo<T>·()·where·T·:·struct | ||
| 14 | » { | ||
| 15 | » } | ||
| 16 | }</string> | ||
| 17 | ····<string>//·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 | ||
| 18 | //·Line:·12 | ||
| 19 | interface·IFoo<T> | ||
| 20 | { | ||
| 21 | » void·Test<U>·() | ||
| 22 | » » where·U·:·T; | ||
| 23 | } | ||
| 24 | class·Foo<T>·:·IFoo<T> | ||
| 25 | { | ||
| 26 | » public·void·Test<V>·() | ||
| 27 | » {·} | ||
| 28 | } | ||
| 29 | class·X | ||
| 30 | { | ||
| 31 | » static·void·Main·() | ||
| 32 | » {·} | ||
| 33 | }</string> | ||
| 34 | ····<string>//·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 | 5 | ····<string>//·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 |
| 35 | //·Line:·16 | 6 | //·Line:·16 |
| 36 | interface·IA | 7 | interface·IA |
| 37 | { | 8 | { |
| 38 | » void·Foo<U>·(); | 9 | » void·Foo<U>·(); |
| 39 | } | 10 | } |
| Offset 52, 33 lines modified | Offset 19, 27 lines modified | ||
| 52 | class·CB·:·CA,·IA | 19 | class·CB·:·CA,·IA |
| 53 | { | 20 | { |
| 54 | » public·static·void·Main·() | 21 | » public·static·void·Main·() |
| 55 | » { | 22 | » { |
| 56 | » } | 23 | » } |
| 57 | }</string> | 24 | }</string> |
| 58 | ····<string>//·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 | 25 | ····<string>//·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 |
| 59 | //·Line:·1 | 26 | //·Line:·11 |
| 60 | interface·IFoo<T> | ||
| 61 | { | ||
| 62 | » void·Test<U>·() | ||
| 63 | » » where·U·:·T; | ||
| 64 | } | ||
| 65 | 27 | interface·IFoo<T> | |
| 66 | { | 28 | { |
| 29 | » void·Test<U>·()·where·U·:·T; | ||
| 67 | » public·void·Test<V>·() | ||
| 68 | » » where·V·:X | ||
| 69 | » {·} | ||
| 70 | } | 30 | } |
| 71 | class·X | 31 | class·Foo<T,·X>·:·IFoo<T> |
| 72 | { | 32 | { |
| 73 | » static·void·Main·() | ||
| 74 | » | 33 | » public·void·Test<V>·()·where·V·:·X |
| 34 | » { | ||
| 35 | » } | ||
| 75 | }</string> | 36 | }</string> |
| 76 | ····<string>//·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 | 37 | ····<string>//·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 |
| 77 | //·Line:·5 | 38 | //·Line:·5 |
| 78 | //·Compiler·options:·-r:CS0425-7-lib.dll | 39 | //·Compiler·options:·-r:CS0425-7-lib.dll |
| 79 | public·class·CB·:·CA,·IA | 40 | public·class·CB·:·CA,·IA |
| 80 | { | 41 | { |
| Offset 104, 23 lines modified | Offset 65, 62 lines modified | ||
| 104 | ····public·class·Baz·:·IBar | 65 | ····public·class·Baz·:·IBar |
| 105 | ····{ | 66 | ····{ |
| 106 | ········public·void·Method<T,·V>()·where·T·:·IBar·where·V·:·T | 67 | ········public·void·Method<T,·V>()·where·T·:·IBar·where·V·:·T |
| 107 | ········{ | 68 | ········{ |
| 108 | ········} | 69 | ········} |
| 109 | ····} | 70 | ····} |
| 110 | }</string> | 71 | }</string> |
| 111 | ····<string>//·CS0425:·The·constraints·for·type·parameter·`V'·of·method·`Foo<T | 72 | ····<string>//·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 |
| 73 | //·Line:·12 | ||
| 74 | interface·IFoo<T> | ||
| 75 | { | ||
| 76 | » void·Test<U>·() | ||
| 77 | » » where·U·:·T; | ||
| 78 | } | ||
| 79 | class·Foo<T>·:·IFoo<T> | ||
| 80 | { | ||
| 81 | » public·void·Test<V>·() | ||
| 82 | » {·} | ||
| 83 | } | ||
| 84 | class·X | ||
| 85 | { | ||
| 86 | » static·void·Main·() | ||
| 87 | » {·} | ||
| 88 | }</string> | ||
| 89 | ····<string>//·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 | ||
| 112 | //·Line:·11 | 90 | //·Line:·11 |
| 113 | interface·I | 91 | interface·I |
| 114 | { | 92 | { |
| 115 | » void· | 93 | » void·Foo<T>·(); |
| 116 | } | 94 | } |
| 117 | class· | 95 | class·C·:·I |
| 118 | { | 96 | { |
| 119 | » public·void· | 97 | » public·void·Foo<T>·()·where·T·:·struct |
| 120 | » { | 98 | » { |
| 121 | » } | 99 | » } |
| 122 | }</string> | 100 | }</string> |
| 101 | ····<string>//·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 | ||
| 102 | //·Line:·13 | ||
| 103 | interface·IFoo<T> | ||
| 104 | { | ||
| 105 | » void·Test<U>·() | ||
| Max diff block lines reached; 23/4745 bytes (0.48%) of diff not shown. | |||
| Offset 11, 37 lines modified | Offset 11, 37 lines modified | ||
| 11 | » { | 11 | » { |
| 12 | » } | 12 | » } |
| 13 | } | 13 | } |
| 14 | public·class·C<T>·:·B<C<int>.Foo> | 14 | public·class·C<T>·:·B<C<int>.Foo> |
| 15 | { | 15 | { |
| 16 | }</string> | 16 | }</string> |
| 17 | ····<string>//·CS0426:·The·nested·type·`M'·does·not·exist·in·the·type·`N' | ||
| 18 | //·Line:·6 | ||
| 19 | class·A | ||
| 20 | { | ||
| 21 | » class·B·:·N.M | ||
| 22 | » { | ||
| 23 | » } | ||
| 24 | } | ||
| 25 | class·N | ||
| 26 | { | ||
| 27 | » public·const·string·S·=·"1"; | ||
| 28 | }</string> | ||
| 29 | ····<string>//·CS0426:·The·nested·type·`B'·does·not·exist·in·the·type·`A' | 17 | ····<string>//·CS0426:·The·nested·type·`B'·does·not·exist·in·the·type·`A' |
| 30 | //·Line:·12 | 18 | //·Line:·12 |
| 31 | class·A | 19 | class·A |
| 32 | { | 20 | { |
| 33 | } | 21 | } |
| 34 | class·Test | 22 | class·Test |
| 35 | { | 23 | { |
| 36 | ···public·static·void·Main() | 24 | ···public·static·void·Main() |
| 37 | ···{ | 25 | ···{ |
| 38 | ······A.B·a; | 26 | ······A.B·a; |
| 39 | ···} | 27 | ···} |
| 40 | }</string> | 28 | }</string> |
| 29 | ····<string>//·CS0426:·The·nested·type·`M'·does·not·exist·in·the·type·`N' | ||
| 30 | //·Line:·6 | ||
| 31 | class·A | ||
| 32 | { | ||
| 33 | » class·B·:·N.M | ||
| 34 | » { | ||
| 35 | » } | ||
| 36 | } | ||
| 37 | class·N | ||
| 38 | { | ||
| 39 | » public·const·string·S·=·"1"; | ||
| 40 | }</string> | ||
| 41 | ··</Examples> | 41 | ··</Examples> |
| 42 | </ErrorDocumentation> | 42 | </ErrorDocumentation> |
| Offset 1, 37 lines modified | Offset 1, 12 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0429</ErrorName> | 3 | ··<ErrorName>CS0429</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0429:·Unreachable·expression·code·detected | 5 | ····<string>//·CS0429:·Unreachable·expression·code·detected |
| 6 | //·Line:·9 | ||
| 7 | //·Compiler·options:·-warn:4·-warnaserror | ||
| 8 | class·Main | ||
| 9 | { | ||
| 10 | » public·void·Method·(int·i) | ||
| 11 | » { | ||
| 12 | » » var·x·=·true·?·1·:·i; | ||
| 13 | » } | ||
| 14 | }</string> | ||
| 15 | ····<string>//·CS0429:·Unreachable·expression·code·detected | ||
| 16 | //·Line:·12 | ||
| 17 | //·Compiler·options:·-warnaserror | ||
| 18 | public·class·X | ||
| 19 | { | ||
| 20 | » static·void·test·(int·stop) | ||
| 21 | » { | ||
| 22 | » » int·pos·=·0; | ||
| 23 | » » do·{ | ||
| 24 | » » » break; | ||
| 25 | » » }·while·(pos·<·stop); | ||
| 26 | » } | ||
| 27 | }</string> | ||
| 28 | ····<string>//·CS0429:·Unreachable·expression·code·detected | ||
| 29 | //·Line:·11 | 6 | //·Line:·11 |
| 30 | //·Compiler·options:·-warn:4·-warnaserror | 7 | //·Compiler·options:·-warn:4·-warnaserror |
| 31 | using·System; | 8 | using·System; |
| 32 | class·Main | 9 | class·Main |
| 33 | { | 10 | { |
| Offset 49, 9 lines modified | Offset 24, 34 lines modified | ||
| 49 | { | 24 | { |
| 50 | ···public·void·Method·(int·i) | 25 | ···public·void·Method·(int·i) |
| 51 | ···{ | 26 | ···{ |
| 52 | ·······if·(false·&&·i·>·10) | 27 | ·······if·(false·&&·i·>·10) |
| 53 | » ···return; | 28 | » ···return; |
| 54 | ···} | 29 | ···} |
| 55 | }</string> | 30 | }</string> |
| 31 | ····<string>//·CS0429:·Unreachable·expression·code·detected | ||
| 32 | //·Line:·9 | ||
| 33 | //·Compiler·options:·-warn:4·-warnaserror | ||
| 34 | class·Main | ||
| 35 | { | ||
| 36 | » public·void·Method·(int·i) | ||
| 37 | » { | ||
| 38 | » » var·x·=·true·?·1·:·i; | ||
| 39 | » } | ||
| 40 | }</string> | ||
| 41 | ····<string>//·CS0429:·Unreachable·expression·code·detected | ||
| 42 | //·Line:·12 | ||
| 43 | //·Compiler·options:·-warnaserror | ||
| 44 | public·class·X | ||
| 45 | { | ||
| 46 | » static·void·test·(int·stop) | ||
| 47 | » { | ||
| 48 | » » int·pos·=·0; | ||
| 49 | » » do·{ | ||
| 50 | » » » break; | ||
| 51 | » » }·while·(pos·<·stop); | ||
| 52 | » } | ||
| 53 | }</string> | ||
| 56 | ··</Examples> | 54 | ··</Examples> |
| 57 | </ErrorDocumentation> | 55 | </ErrorDocumentation> |
| Offset 1, 33 lines modified | Offset 1, 33 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0430</ErrorName> | 3 | ··<ErrorName>CS0430</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0430:·The·extern·alias·`dontdefined'·was·not·specified·in·-reference·option | 5 | ····<string>//·CS0430:·The·extern·alias·`dontdefined'·was·not·specified·in·-reference·option |
| 6 | //·Line:·4 | 6 | //·Line:·4 |
| 7 | extern·alias·dontdefined; | ||
| 8 | using·System; | 7 | using·System; |
| 8 | namespace·N | ||
| 9 | { | ||
| 10 | » extern·alias·dontdefined; | ||
| 11 | } | ||
| 9 | public·class·Tester | 12 | public·class·Tester |
| 10 | { | 13 | { |
| 11 | » static·void·Main·() | 14 | » static·void·Main·() |
| 12 | » { | 15 | » { |
| 13 | » } | 16 | » } |
| 14 | }</string> | 17 | }</string> |
| 15 | ····<string>//·CS0430:·The·extern·alias·`dontdefined'·was·not·specified·in·-reference·option | 18 | ····<string>//·CS0430:·The·extern·alias·`dontdefined'·was·not·specified·in·-reference·option |
| 16 | //·Line:·4 | 19 | //·Line:·4 |
| 20 | extern·alias·dontdefined; | ||
| 17 | using·System; | 21 | using·System; |
| 18 | namespace·N | ||
| 19 | { | ||
| 20 | » extern·alias·dontdefined; | ||
| 21 | } | ||
| 22 | public·class·Tester | 22 | public·class·Tester |
| 23 | { | 23 | { |
| 24 | » static·void·Main·() | 24 | » static·void·Main·() |
| 25 | » { | 25 | » { |
| 26 | » } | 26 | » } |
| 27 | }</string> | 27 | }</string> |
| 28 | ··</Examples> | 28 | ··</Examples> |
| Offset 9, 25 lines modified | Offset 9, 14 lines modified | ||
| 9 | class·X·{ | 9 | class·X·{ |
| 10 | » static·void·Main·() | 10 | » static·void·Main·() |
| 11 | » { | 11 | » { |
| 12 | » » fool::Console.WriteLine·("hello"); | 12 | » » fool::Console.WriteLine·("hello"); |
| 13 | » } | 13 | » } |
| 14 | }</string> | 14 | }</string> |
| 15 | ····<string>//·CS0432:·Alias·`fool'·not·found | ||
| 16 | //·Line:·9 | ||
| 17 | using·foo·=·System; | ||
| 18 | class·X·{ | ||
| 19 | » static·void·Main·() | ||
| 20 | » { | ||
| 21 | » » fool::Console.WriteLine·("hello"); | ||
| 22 | » } | ||
| 23 | }</string> | ||
| 24 | ····<string>//·CS0432:·Alias·`Sa'·not·found | 15 | ····<string>//·CS0432:·Alias·`Sa'·not·found |
| 25 | //·Line:·6 | 16 | //·Line:·6 |
| 26 | using·S·=·System; | 17 | using·S·=·System; |
| 27 | [assembly:·Sa::CLSCompliantAttribute·(false)]</string> | 18 | [assembly:·Sa::CLSCompliantAttribute·(false)]</string> |
| 28 | ····<string>//·CS0432:·Alias·`BB'·not·found | 19 | ····<string>//·CS0432:·Alias·`BB'·not·found |
| Offset 41, 14 lines modified | Offset 30, 25 lines modified | ||
| 41 | namespace·A.B | 30 | namespace·A.B |
| 42 | { | 31 | { |
| 43 | » class·X | 32 | » class·X |
| 44 | » { | 33 | » { |
| 45 | » » BB::List<int>·p; | 34 | » » BB::List<int>·p; |
| 46 | » } | 35 | » } |
| 47 | }</string> | 36 | }</string> |
| 37 | ····<string>//·CS0432:·Alias·`fool'·not·found | ||
| 38 | //·Line:·9 | ||
| 39 | using·foo·=·System; | ||
| 40 | class·X·{ | ||
| 41 | » static·void·Main·() | ||
| 42 | » { | ||
| 43 | » » fool::Console.WriteLine·("hello"); | ||
| 44 | » } | ||
| 45 | }</string> | ||
| 48 | ····<string>//·CS0432:·Alias·`X'·not·found | 46 | ····<string>//·CS0432:·Alias·`X'·not·found |
| 49 | //·Line:·5 | 47 | //·Line:·5 |
| 50 | using·X·=·System; | 48 | using·X·=·System; |
| 51 | using·X::Collections.Generic;</string> | 49 | using·X::Collections.Generic;</string> |
| 52 | ··</Examples> | 50 | ··</Examples> |
| 53 | </ErrorDocumentation> | 51 | </ErrorDocumentation> |
| Offset 1, 17 lines modified | Offset 1, 11 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0441</ErrorName> | 3 | ··<ErrorName>CS0441</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0441:·`TestClass':·a·class·cannot·be·both·static·and·sealed | ||
| 6 | //·Line:·4 | ||
| 7 | public·sealed·static·class·TestClass | ||
| 8 | { | ||
| 9 | }</string> | ||
| 10 | ····<string>//·CS0441:·`Foo':·a·class·cannot·be·both·static·and·sealed | 5 | ····<string>//·CS0441:·`Foo':·a·class·cannot·be·both·static·and·sealed |
| 11 | //·Line:·3 | 6 | //·Line:·3 |
| 12 | public·sealed·partial·class·Foo | 7 | public·sealed·partial·class·Foo |
| 13 | { | 8 | { |
| 14 | » public·string·myId; | 9 | » public·string·myId; |
| 15 | } | 10 | } |
| Offset 24, 9 lines modified | Offset 18, 15 lines modified | ||
| 24 | { | 18 | { |
| 25 | » public·static·void·Main·() | 19 | » public·static·void·Main·() |
| 26 | » { | 20 | » { |
| 27 | » » System.Console.WriteLine·(typeof·(Foo).IsSealed); | 21 | » » System.Console.WriteLine·(typeof·(Foo).IsSealed); |
| 28 | » » System.Console.WriteLine·(typeof·(Foo).IsAbstract); | 22 | » » System.Console.WriteLine·(typeof·(Foo).IsAbstract); |
| 29 | » } | 23 | » } |
| 30 | }</string> | 24 | }</string> |
| 25 | ····<string>//·CS0441:·`TestClass':·a·class·cannot·be·both·static·and·sealed | ||
| 26 | //·Line:·4 | ||
| 27 | public·sealed·static·class·TestClass | ||
| 28 | { | ||
| 29 | }</string> | ||
| 31 | ··</Examples> | 30 | ··</Examples> |
| 32 | </ErrorDocumentation> | 31 | </ErrorDocumentation> |
| Offset 3, 40 lines modified | Offset 3, 40 lines modified | ||
| 3 | ··<ErrorName>CS0445</ErrorName> | 3 | ··<ErrorName>CS0445</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0445:·Cannot·modify·the·result·of·an·unboxing·conversion | 5 | ····<string>//·CS0445:·Cannot·modify·the·result·of·an·unboxing·conversion |
| 6 | //·Line:·10 | 6 | //·Line:·10 |
| 7 | struct·S | 7 | struct·S |
| 8 | { | 8 | { |
| 9 | » public·int·val | 9 | » public·int·val·{·set·{}·} |
| 10 | » public·void·Do·(object·o)· | 10 | » public·void·Do·(object·o)· |
| 11 | » { | 11 | » { |
| 12 | » » ((S)o).val·=·4; | 12 | » » ((S)o).val·=·4; |
| 13 | » } | 13 | » } |
| 14 | }</string> | 14 | }</string> |
| 15 | ····<string>//·CS0445:·Cannot·modify·the·result·of·an·unboxing·conversion | 15 | ····<string>//·CS0445:·Cannot·modify·the·result·of·an·unboxing·conversion |
| 16 | //·Line:· | 16 | //·Line:·10 |
| 17 | struct·S | 17 | struct·S |
| 18 | { | 18 | { |
| 19 | » public·int·val; | ||
| 19 | » public·void·Do·(object·o) | 20 | » public·void·Do·(object·o)· |
| 20 | » { | 21 | » { |
| 21 | » » ((S) | 22 | » » ((S)o).val·=·4; |
| 22 | » } | 23 | » } |
| 23 | » int·this[int·arg]·{·set·{·}·} | ||
| 24 | }</string> | 24 | }</string> |
| 25 | ····<string>//·CS0445:·Cannot·modify·the·result·of·an·unboxing·conversion | 25 | ····<string>//·CS0445:·Cannot·modify·the·result·of·an·unboxing·conversion |
| 26 | //·Line:· | 26 | //·Line:·8 |
| 27 | struct·S | 27 | struct·S |
| 28 | { | 28 | { |
| 29 | » public·int·val·{·set·{}·} | ||
| 30 | » public·void·Do·(object·o) | 29 | » public·void·Do·(object·o) |
| 31 | » { | 30 | » { |
| 32 | » » ((S)o) | 31 | » » ((S)·o)[1]·=·4; |
| 33 | » } | 32 | » } |
| 33 | » int·this[int·arg]·{·set·{·}·} | ||
| 34 | }</string> | 34 | }</string> |
| 35 | ··</Examples> | 35 | ··</Examples> |
| 36 | </ErrorDocumentation> | 36 | </ErrorDocumentation> |
| Offset 1, 32 lines modified | Offset 1, 32 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0446</ErrorName> | 3 | ··<ErrorName>CS0446</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0446:·Foreach·statement·cannot·operate·on·a·` | 5 | ····<string>//·CS0446:·Foreach·statement·cannot·operate·on·a·`anonymous·method' |
| 6 | //·Line:·8 | 6 | //·Line:·8 |
| 7 | class·C | 7 | class·C |
| 8 | { | 8 | { |
| 9 | » static·void·M·() | 9 | » static·void·M·() |
| 10 | » { | 10 | » { |
| 11 | » » foreach·(int·i·in· | 11 | » » foreach·(int·i·in·delegate·{·}·) |
| 12 | » » { | 12 | » » { |
| 13 | » » } | 13 | » » } |
| 14 | » } | 14 | » } |
| 15 | » static·void·Test·()·{·} | ||
| 16 | }</string> | 15 | }</string> |
| 17 | ····<string>//·CS0446:·Foreach·statement·cannot·operate·on·a·` | 16 | ····<string>//·CS0446:·Foreach·statement·cannot·operate·on·a·`method·group' |
| 18 | //·Line:·8 | 17 | //·Line:·8 |
| 19 | class·C | 18 | class·C |
| 20 | { | 19 | { |
| 21 | » static·void·M·() | 20 | » static·void·M·() |
| 22 | » { | 21 | » { |
| 23 | » » foreach·(int·i·in· | 22 | » » foreach·(int·i·in·Test) |
| 24 | » » { | 23 | » » { |
| 25 | » » } | 24 | » » } |
| 26 | » } | 25 | » } |
| 26 | » static·void·Test·()·{·} | ||
| 27 | }</string> | 27 | }</string> |
| 28 | ··</Examples> | 28 | ··</Examples> |
| 29 | </ErrorDocumentation> | 29 | </ErrorDocumentation> |
| Offset 1, 22 lines modified | Offset 1, 12 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0449</ErrorName> | 3 | ··<ErrorName>CS0449</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0449:·The·`class'·or·`struct'·constraint·must·be·the·first·constraint·specified | 5 | ····<string>//·CS0449:·The·`class'·or·`struct'·constraint·must·be·the·first·constraint·specified |
| 6 | //·Line:·8 | ||
| 7 | public·interface·I | ||
| 8 | { | ||
| 9 | } | ||
| 10 | public·class·C<T>·where·T·:·I,·class | ||
| 11 | { | ||
| 12 | }</string> | ||
| 13 | ····<string>//·CS0449:·The·`class'·or·`struct'·constraint·must·be·the·first·constraint·specified | ||
| 14 | //·Line:·6 | 6 | //·Line:·6 |
| 15 | interface·I | 7 | interface·I |
| 16 | { | 8 | { |
| 17 | » void·Foo<T>·()·where·T·:·class,·struct; | 9 | » void·Foo<T>·()·where·T·:·class,·struct; |
| 18 | }</string> | 10 | }</string> |
| 19 | ····<string>//·CS0449:·The·`class'·or·`struct'·constraint·must·be·the·first·constraint·specified | 11 | ····<string>//·CS0449:·The·`class'·or·`struct'·constraint·must·be·the·first·constraint·specified |
| Offset 24, 9 lines modified | Offset 14, 19 lines modified | ||
| 24 | public·class·C<T> | 14 | public·class·C<T> |
| 25 | { | 15 | { |
| 26 | ······public·void·Foo<T>()·where·T·:·class,·struct· | 16 | ······public·void·Foo<T>()·where·T·:·class,·struct· |
| 27 | ······{ | 17 | ······{ |
| 28 | ······} | 18 | ······} |
| 29 | }</string> | 19 | }</string> |
| 20 | ····<string>//·CS0449:·The·`class'·or·`struct'·constraint·must·be·the·first·constraint·specified | ||
| 21 | //·Line:·8 | ||
| 22 | public·interface·I | ||
| 23 | { | ||
| 24 | } | ||
| 25 | public·class·C<T>·where·T·:·I,·class | ||
| 26 | { | ||
| 27 | }</string> | ||
| 30 | ··</Examples> | 28 | ··</Examples> |
| 31 | </ErrorDocumentation> | 29 | </ErrorDocumentation> |
| Offset 1, 24 lines modified | Offset 1, 24 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0450</ErrorName> | 3 | ··<ErrorName>CS0450</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0450:·`A':·cannot·specify·both·a·constraint·class·and·the·`class'·or·`struct'·constraint | 5 | ····<string>//·CS0450:·`A<bool,int>':·cannot·specify·both·a·constraint·class·and·the·`class'·or·`struct'·constraint |
| 6 | //·Line:·8 | 6 | //·Line:·8 |
| 7 | class·A | 7 | class·A<T,·U> |
| 8 | { | 8 | { |
| 9 | } | 9 | } |
| 10 | delegate·void·Test<T>()·where·T·:·struct,·A<bool,·int>;</string> | ||
| 10 | class·B<T>·where·T·:·class,·A | ||
| 11 | { | ||
| 12 | }</string> | ||
| 13 | ····<string>//·CS0450:·`A | 11 | ····<string>//·CS0450:·`A':·cannot·specify·both·a·constraint·class·and·the·`class'·or·`struct'·constraint |
| 14 | //·Line:·8 | 12 | //·Line:·8 |
| 15 | class·A | 13 | class·A |
| 16 | { | 14 | { |
| 17 | } | 15 | } |
| 18 | 16 | class·B<T>·where·T·:·class,·A | |
| 17 | { | ||
| 18 | }</string> | ||
| 19 | ··</Examples> | 19 | ··</Examples> |
| 20 | </ErrorDocumentation> | 20 | </ErrorDocumentation> |
| Offset 1, 19 lines modified | Offset 1, 47 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0452</ErrorName> | 3 | ··<ErrorName>CS0452</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0452:·The·type·`int'·must·be·a·reference·type·in·order·to·use·it·as·type·parameter·`T'·in·the·generic·type·or·method·` | 5 | ····<string>//·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)' |
| 6 | //·Line:·1 | 6 | //·Line:·18 |
| 7 | 7 | class·A | |
| 8 | { | 8 | { |
| 9 | » static·int·Foo<T>·(T·a,·string·s)·where·T·:·class | ||
| 10 | » { | ||
| 11 | » » return·1; | ||
| 12 | » } | ||
| 13 | » static·int·Foo<T>·(T·a,·object·y) | ||
| 14 | » { | ||
| 15 | » » return·2; | ||
| 16 | » } | ||
| 17 | » public·static·void·Main·() | ||
| 18 | » { | ||
| 19 | » » A.Foo<int>·(99,·null); | ||
| 20 | » } | ||
| 21 | }</string> | ||
| 22 | ····<string>//·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)' | ||
| 23 | //·Line:·14 | ||
| 24 | public·class·Foo | ||
| 25 | { | ||
| 26 | » public·static·void·Test<T>·(ref·T·t) | ||
| 27 | » » where·T·:·class | ||
| 28 | » {·} | ||
| 9 | } | 29 | } |
| 10 | 30 | public·class·C·{ | |
| 31 | » public·static·void·Main·() | ||
| 32 | » { | ||
| 33 | » » int·i·=·0; | ||
| 34 | » » Foo.Test<int>·(ref·i); | ||
| 35 | » } | ||
| 36 | }</string> | ||
| 11 | ····<string>//·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>' | 37 | ····<string>//·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>' |
| 12 | //·Line:·23 | 38 | //·Line:·23 |
| 13 | using·System; | 39 | using·System; |
| 14 | public·class·TestClass<T>·where·T·:·class | 40 | public·class·TestClass<T>·where·T·:·class |
| 15 | { | 41 | { |
| 16 | » static·public·T·meth() | 42 | » static·public·T·meth() |
| Offset 32, 90 lines modified | Offset 60, 37 lines modified | ||
| 32 | » » | 60 | » » |
| 33 | » static·public·void·Main() | 61 | » static·public·void·Main() |
| 34 | » { | 62 | » { |
| 35 | » » int·i·=·TestClass<int>.meth(); | 63 | » » int·i·=·TestClass<int>.meth(); |
| 36 | » » Console.WriteLine·(i); | 64 | » » Console.WriteLine·(i); |
| 37 | » } | 65 | » } |
| 38 | }</string> | 66 | }</string> |
| 39 | ····<string>//·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>' | ||
| 40 | //·Line:·10 | ||
| 41 | public·class·C<T>·where·T·:·class | ||
| 42 | { | ||
| 43 | } | ||
| 44 | delegate·C<int>·D·();</string> | ||
| 45 | ····<string>//·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)' | 67 | ····<string>//·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)' |
| 46 | //·Line:·8 | 68 | //·Line:·8 |
| 47 | class·Program | 69 | class·Program |
| 48 | { | 70 | { |
| 49 | » public·static·void·M<T>·(T·item1,·T·item2·=·null)·where·T·:·class | 71 | » public·static·void·M<T>·(T·item1,·T·item2·=·null)·where·T·:·class |
| 50 | » { | 72 | » { |
| 51 | » » M·(1); | 73 | » » M·(1); |
| 52 | » } | 74 | » } |
| 53 | }</string> | 75 | }</string> |
| 54 | ····<string>//·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)' | ||
| 55 | //·Line:·14 | ||
| 56 | public·class·Foo | ||
| 57 | { | ||
| 58 | » public·static·void·Test<T>·(ref·T·t) | ||
| 59 | » » where·T·:·class | ||
| 60 | » {·} | ||
| 61 | } | ||
| 62 | public·class·C·{ | ||
| 63 | » public·static·void·Main·() | ||
| 64 | » { | ||
| 65 | » » int·i·=·0; | ||
| 66 | » » Foo.Test<int>·(ref·i); | ||
| 67 | » } | ||
| 68 | }</string> | ||
| 69 | ····<string>//·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>' | 76 | ····<string>//·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>' |
| 70 | //·Line:·10 | 77 | //·Line:·10 |
| 71 | public·class·C<T>·where·T·:·class | 78 | public·class·C<T>·where·T·:·class |
| 72 | { | 79 | { |
| 73 | } | 80 | } |
| 74 | class·A | 81 | class·A |
| 75 | { | 82 | { |
| 76 | » public·A·(ref·C<int>·args) | 83 | » public·A·(ref·C<int>·args) |
| 77 | » { | 84 | » { |
| 78 | » } | 85 | » } |
| 79 | }</string> | 86 | }</string> |
| 80 | ····<string>//·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)' | ||
| 81 | //·Line:·18 | ||
| 82 | class·A | ||
| 83 | { | ||
| 84 | » static·int·Foo<T>·(T·a,·string·s)·where·T·:·class | ||
| 85 | » { | ||
| 86 | » » return·1; | ||
| 87 | » } | ||
| 88 | » static·int·Foo<T>·(T·a,·object·y) | ||
| 89 | » { | ||
| 90 | » » return·2; | ||
| 91 | » } | ||
| 92 | » public·static·void·Main·() | ||
| 93 | » { | ||
| 94 | » » A.Foo<int>·(99,·null); | ||
| 95 | » } | ||
| 96 | }</string> | ||
| 97 | ····<string>//·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>' | ||
| 98 | //·Line:·10 | ||
| 99 | public·class·C<T>·where·T·:·class | ||
| 100 | { | ||
| Max diff block lines reached; 2090/5837 bytes (35.81%) of diff not shown. | |||
| Offset 1, 37 lines modified | Offset 1, 11 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0453</ErrorName> | 3 | ··<ErrorName>CS0453</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·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>' | ||
| 6 | //·Line:·10 | ||
| 7 | public·class·MyValue<T> | ||
| 8 | » where·T·:·struct | ||
| 9 | {·} | ||
| 10 | class·X | ||
| 11 | { | ||
| 12 | » MyValue<X>·x; | ||
| 13 | » static·void·Main·() | ||
| 14 | » {·} | ||
| 15 | }</string> | ||
| 16 | ····<string>//·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>' | ||
| 17 | //·Line:·10 | ||
| 18 | public·class·C<T>·where·T·:·struct | ||
| 19 | { | ||
| 20 | } | ||
| 21 | class·A | ||
| 22 | { | ||
| 23 | » public·C<string>·Foo·() | ||
| 24 | » { | ||
| 25 | » } | ||
| 26 | }</string> | ||
| 27 | ····<string>//·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>' | 5 | ····<string>//·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>' |
| 28 | //·Line:·10 | 6 | //·Line:·10 |
| 29 | public·class·Foo | 7 | public·class·Foo |
| 30 | {·} | 8 | {·} |
| 31 | class·X | 9 | class·X |
| 32 | { | 10 | { |
| Offset 52, 30 lines modified | Offset 26, 14 lines modified | ||
| 52 | » public·static·int·Main·() | 26 | » public·static·int·Main·() |
| 53 | » { | 27 | » { |
| 54 | » » dynamic·d·=·1; | 28 | » » dynamic·d·=·1; |
| 55 | » » Foo<dynamic>(d); | 29 | » » Foo<dynamic>(d); |
| 56 | » » return·0; | 30 | » » return·0; |
| 57 | » } | 31 | » } |
| 58 | }</string> | 32 | }</string> |
| 59 | ····<string>//·CS0453:·The·type·`Bar?'·must·be·a·non-nullable·value·type·in·order·to·use·it·as·type·parameter·`T'·in·the·generic·type·or·method·`Foo<T>' | ||
| 60 | //·Line:·14 | ||
| 61 | public·class·Foo<T> | ||
| 62 | » where·T·:·struct | ||
| 63 | {·} | ||
| 64 | public·struct·Bar | ||
| 65 | {·} | ||
| 66 | class·X | ||
| 67 | { | ||
| 68 | » static·void·Main·() | ||
| 69 | » { | ||
| 70 | » » Foo<Bar?>·foo; | ||
| 71 | » } | ||
| 72 | }</string> | ||
| 73 | ····<string>//·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>' | 33 | ····<string>//·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>' |
| 74 | //·Line:·14 | 34 | //·Line:·14 |
| 75 | using·System; | 35 | using·System; |
| 76 | public·static·class·Nullable_Test·{ | 36 | public·static·class·Nullable_Test·{ |
| 77 | » public·static·int·Compare<T>·(Nullable<T>·left) | 37 | » public·static·int·Compare<T>·(Nullable<T>·left) |
| Offset 103, 22 lines modified | Offset 61, 64 lines modified | ||
| 103 | » { | 61 | » { |
| 104 | » » public·static·void·Main·() | 62 | » » public·static·void·Main·() |
| 105 | » » { | 63 | » » { |
| 106 | » » » new·M().Test_2(); | 64 | » » » new·M().Test_2(); |
| 107 | » » } | 65 | » » } |
| 108 | » } | 66 | » } |
| 109 | }</string> | 67 | }</string> |
| 68 | ····<string>//·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>' | ||
| 69 | //·Line:·10 | ||
| 70 | public·class·MyValue<T> | ||
| 71 | » where·T·:·struct | ||
| 72 | {·} | ||
| 73 | class·X | ||
| 74 | { | ||
| 75 | » MyValue<X>·x; | ||
| 76 | » static·void·Main·() | ||
| 77 | » {·} | ||
| 78 | }</string> | ||
| 79 | ····<string>//·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>' | ||
| 80 | //·Line:·10 | ||
| 81 | public·class·C<T>·where·T·:·struct | ||
| 82 | { | ||
| 83 | } | ||
| 84 | class·A | ||
| 85 | { | ||
| 86 | » public·C<string>·Foo·() | ||
| 87 | » { | ||
| 88 | » } | ||
| 89 | }</string> | ||
| 110 | ····<string>//·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>' | 90 | ····<string>//·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>' |
| 111 | //·Line:·10 | 91 | //·Line:·10 |
| 112 | public·class·C<T>·where·T·:·struct | 92 | public·class·C<T>·where·T·:·struct |
| 113 | { | 93 | { |
| 114 | } | 94 | } |
| 115 | class·A | 95 | class·A |
| 116 | { | 96 | { |
| 117 | » public·void·Foo·(C<string>[]·args) | 97 | » public·void·Foo·(C<string>[]·args) |
| 118 | » { | 98 | » { |
| 119 | » } | 99 | » } |
| 120 | }</string> | 100 | }</string> |
| 101 | ····<string>//·CS0453:·The·type·`Bar?'·must·be·a·non-nullable·value·type·in·order·to·use·it·as·type·parameter·`T'·in·the·generic·type·or·method·`Foo<T>' | ||
| 102 | //·Line:·14 | ||
| 103 | public·class·Foo<T> | ||
| 104 | » where·T·:·struct | ||
| 105 | {·} | ||
| 106 | public·struct·Bar | ||
| 107 | {·} | ||
| 108 | class·X | ||
| 109 | { | ||
| 110 | » static·void·Main·() | ||
| Max diff block lines reached; 23/3165 bytes (0.73%) of diff not shown. | |||
| Offset 1, 11 lines modified | Offset 1, 25 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0455</ErrorName> | 3 | ··<ErrorName>CS0455</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0455:·Type·parameter·`Y'·inherits·conflicting·constraints·`class'·and·`long' | ||
| 6 | //·Line:·11 | ||
| 7 | abstract·class·A<T> | ||
| 8 | { | ||
| 9 | » public·abstract·void·Foo<U>·()·where·U·:·class,·T; | ||
| 10 | } | ||
| 11 | class·B·:·A<long> | ||
| 12 | { | ||
| 13 | » public·override·void·Foo<Y>·() | ||
| 14 | » { | ||
| 15 | » } | ||
| 16 | }</string> | ||
| 5 | ····<string>//·CS0455:·Type·parameter·`T'·inherits·conflicting·constraints·`Test'·and·`World' | 17 | ····<string>//·CS0455:·Type·parameter·`T'·inherits·conflicting·constraints·`Test'·and·`World' |
| 6 | //·Line:·11 | 18 | //·Line:·11 |
| 7 | class·Test | 19 | class·Test |
| 8 | {·} | 20 | {·} |
| 9 | class·World | 21 | class·World |
| Offset 29, 62 lines modified | Offset 43, 48 lines modified | ||
| 29 | class·C<T1,·T2,·T3,·T4> | 43 | class·C<T1,·T2,·T3,·T4> |
| 30 | » where·T1·:·X | 44 | » where·T1·:·X |
| 31 | » where·T2·:·T1 | 45 | » where·T2·:·T1 |
| 32 | » where·T3·:·Y,·T4 | 46 | » where·T3·:·Y,·T4 |
| 33 | » where·T4·:·T2 | 47 | » where·T4·:·T2 |
| 34 | { | 48 | { |
| 35 | }</string> | 49 | }</string> |
| 36 | ····<string>//·CS0455:·Type·parameter·` | 50 | ····<string>//·CS0455:·Type·parameter·`Y'·inherits·conflicting·constraints·`long'·and·`long?' |
| 37 | //·Line:·1 | 51 | //·Line:·11 |
| 38 | class·A | ||
| 39 | {·} | ||
| 40 | class·B | ||
| 41 | 52 | abstract·class·A<T1,·T2> | |
| 53 | { | ||
| 54 | » public·abstract·void·Foo<U>·()·where·U·:·T1,·T2; | ||
| 55 | } | ||
| 56 | class·B·:·A<long,·long?> | ||
| 42 | class·Foo<T,U,·V> | ||
| 43 | » where·T·:·A | ||
| 44 | » where·U·:·B | ||
| 45 | » where·V·:·U,·T | ||
| 46 | { | 57 | { |
| 58 | » public·override·void·Foo<Y>·() | ||
| 59 | » { | ||
| 60 | » } | ||
| 47 | }</string> | 61 | }</string> |
| 48 | ····<string>//·CS0455:·Type·parameter·`T'·inherits·conflicting·constraints·`System.ValueType'·and·`Test' | 62 | ····<string>//·CS0455:·Type·parameter·`T'·inherits·conflicting·constraints·`System.ValueType'·and·`Test' |
| 49 | //·Line:·8 | 63 | //·Line:·8 |
| 50 | class·Test | 64 | class·Test |
| 51 | {·} | 65 | {·} |
| 52 | class·Foo<T,U> | 66 | class·Foo<T,U> |
| 53 | » where·T·:·struct,·U | 67 | » where·T·:·struct,·U |
| 54 | » where·U·:·Test | 68 | » where·U·:·Test |
| 55 | {·}</string> | 69 | {·}</string> |
| 56 | ····<string>//·CS0455:·Type·parameter·` | 70 | ····<string>//·CS0455:·Type·parameter·`V'·inherits·conflicting·constraints·`B'·and·`A' |
| 57 | //·Line:·1 | 71 | //·Line:·13 |
| 58 | abstract·class·A<T1,·T2> | ||
| 59 | { | ||
| 60 | » public·abstract·void·Foo<U>·()·where·U·:·T1,·T2; | ||
| 61 | } | ||
| 72 | class·A | ||
| 73 | {·} | ||
| 62 | class·B·:·A<long,·long?> | ||
| 63 | { | ||
| 64 | » public·override·void·Foo<Y>·() | ||
| 65 | » { | ||
| 66 | » } | ||
| 67 | }</string> | ||
| 68 | ····<string>//·CS0455:·Type·parameter·`Y'·inherits·conflicting·constraints·`class'·and·`long' | ||
| 69 | //·Line:·11 | ||
| 74 | class·B | ||
| 75 | {·} | ||
| 70 | abstract·class·A<T> | ||
| 71 | { | ||
| 72 | » public·abstract·void·Foo<U>·()·where·U·:·class,·T; | ||
| 73 | } | ||
| 74 | class· | 76 | class·Foo<T,U,·V> |
| 77 | » where·T·:·A | ||
| 78 | » where·U·:·B | ||
| 79 | » where·V·:·U,·T | ||
| 75 | { | 80 | { |
| 76 | » public·override·void·Foo<Y>·() | ||
| 77 | » { | ||
| 78 | » } | ||
| 79 | }</string> | 81 | }</string> |
| 80 | ··</Examples> | 82 | ··</Examples> |
| 81 | </ErrorDocumentation> | 83 | </ErrorDocumentation> |
| Offset 3, 61 lines modified | Offset 3, 50 lines modified | ||
| 3 | ··<ErrorName>CS0457</ErrorName> | 3 | ··<ErrorName>CS0457</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0457:·Ambiguous·user·defined·conversions·`A.implicit·operator·byte(A)'·and·`A.implicit·operator·sbyte(A)'·when·converting·from·'A'·to·'int' | 5 | ····<string>//·CS0457:·Ambiguous·user·defined·conversions·`A.implicit·operator·byte(A)'·and·`A.implicit·operator·sbyte(A)'·when·converting·from·'A'·to·'int' |
| 6 | //·Line:·20 | 6 | //·Line:·20 |
| 7 | class·A | 7 | class·A |
| 8 | { | 8 | { |
| 9 | » public·static·implicit·operator· | 9 | » public·static·implicit·operator·sbyte·(A·mask) |
| 10 | » { | 10 | » { |
| 11 | » » return·1; | 11 | » » return·1; |
| 12 | » } | 12 | » } |
| 13 | » public·static·implicit·operator· | 13 | » public·static·implicit·operator·byte·(A·mask) |
| 14 | » { | 14 | » { |
| 15 | » » return·2; | 15 | » » return·2; |
| 16 | » } | 16 | » } |
| 17 | } | 17 | } |
| 18 | class·X | 18 | class·X |
| 19 | { | 19 | { |
| 20 | ····static·A·a·=·null; | 20 | ····static·A·a·=·null; |
| 21 | ····static·object·o·=· | 21 | ····static·object·o·=·~a; |
| 22 | }</string> | 22 | }</string> |
| 23 | ····<string>//·CS0457:·Ambiguous·user·defined·o | 23 | ····<string>//·CS0457:·Ambiguous·user·defined·conversions·`A.implicit·operator·byte(A)'·and·`A.implicit·operator·sbyte(A)'·when·converting·from·'A'·to·'int' |
| 24 | //·Line:· | 24 | //·Line:·20 |
| 25 | class·A | 25 | class·A |
| 26 | { | 26 | { |
| 27 | } | ||
| 28 | class·B·:·A | ||
| 29 | { | ||
| 30 | } | ||
| 31 | class·C | ||
| 32 | { | ||
| 33 | » public·static·implicit·operator· | 27 | » public·static·implicit·operator·ushort·(A·mask) |
| 34 | » { | 28 | » { |
| 35 | » » return· | 29 | » » return·1; |
| 36 | » } | 30 | » } |
| 37 | } | ||
| 38 | class·D·:·C | ||
| 39 | { | ||
| 40 | » public·static·implicit·operator· | 31 | » public·static·implicit·operator·short·(A·mask) |
| 41 | » { | 32 | » { |
| 42 | » » return· | 33 | » » return·2; |
| 43 | » } | 34 | » } |
| 35 | } | ||
| 36 | class·X | ||
| 37 | { | ||
| 38 | ····static·A·a·=·null; | ||
| 39 | ····static·object·o·=·-a; | ||
| 44 | » public·static·void·Main·() | ||
| 45 | » { | ||
| 46 | » » D·d·=·new·D·(); | ||
| 47 | » » B·b2·=·(B)·d; | ||
| 48 | » } | ||
| 49 | }</string> | 40 | }</string> |
| 50 | ····<string>//·CS0457:·Ambiguous·user·defined·operators·`D.implicit·operator·D(System.Action)'·and·`D.explicit·operator·D(Foo)'·when·converting·from·`method·group'·to·`D' | 41 | ····<string>//·CS0457:·Ambiguous·user·defined·operators·`D.implicit·operator·D(System.Action)'·and·`D.explicit·operator·D(Foo)'·when·converting·from·`method·group'·to·`D' |
| 51 | //·Line:·25 | 42 | //·Line:·25 |
| 52 | using·System; | 43 | using·System; |
| 53 | public·delegate·void·Foo·(); | 44 | public·delegate·void·Foo·(); |
| Offset 78, 30 lines modified | Offset 67, 41 lines modified | ||
| 78 | class·Program | 67 | class·Program |
| 79 | { | 68 | { |
| 80 | » static·void·Main() | 69 | » static·void·Main() |
| 81 | » { | 70 | » { |
| 82 | » » D·d·=·(D)·Main; | 71 | » » D·d·=·(D)·Main; |
| 83 | » } | 72 | » } |
| 84 | }</string> | 73 | }</string> |
| 85 | ····<string>//·CS0457:·Ambiguous·user·defined· | 74 | ····<string>//·CS0457:·Ambiguous·user·defined·operators·`D.implicit·operator·A(D)'·and·`C.implicit·operator·B(C)'·when·converting·from·`D'·to·`B' |
| 86 | //·Line:· | 75 | //·Line:·30 |
| 87 | class·A | 76 | class·A |
| 88 | { | 77 | { |
| 78 | } | ||
| 89 | » public·static·implicit·operator·sbyte·(A·mask) | ||
| 90 | » { | ||
| 91 | » » return·1; | ||
| 92 | » } | ||
| 79 | class·B·:·A | ||
| 80 | { | ||
| 81 | } | ||
| 82 | class·C | ||
| 83 | { | ||
| 93 | » public·static·implicit·operator· | 84 | » public·static·implicit·operator·B·(C·s) |
| 94 | » { | 85 | » { |
| 95 | » » return· | 86 | » » return·new·B·(); |
| 96 | » } | 87 | » } |
| 97 | } | 88 | } |
| 98 | class· | 89 | class·D·:·C |
| 99 | { | 90 | { |
| 100 | ····static·A·a·=·null; | ||
| 101 | 91 | » public·static·implicit·operator·A·(D·s) | |
| 92 | » { | ||
| 93 | » » return·new·B·(); | ||
| 94 | » } | ||
| 95 | » public·static·void·Main·() | ||
| 96 | » { | ||
| 97 | » » D·d·=·new·D·(); | ||
| 98 | » » B·b2·=·(B)·d; | ||
| 99 | » } | ||
| 102 | }</string> | 100 | }</string> |
| 103 | ··</Examples> | 101 | ··</Examples> |
| 104 | </ErrorDocumentation> | 102 | </ErrorDocumentation> |
| Offset 1, 157 lines modified | Offset 1, 188 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0458</ErrorName> | 3 | ··<ErrorName>CS0458</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0458:·The·result·of·the·expression·is·always·`null'·of·type·` | 5 | ····<string>//·CS0458:·The·result·of·the·expression·is·always·`null'·of·type·`int?'· |
| 6 | //·Line:· | 6 | //·Line:·8 |
| 7 | //·Compiler·options:·-warnaserror·-warn:2 | 7 | //·Compiler·options:·-warnaserror·-warn:2 |
| 8 | class·C | 8 | class·C |
| 9 | { | 9 | { |
| 10 | » static·void· | 10 | » static·void·Main·() |
| 11 | » { | 11 | » { |
| 12 | » » u | 12 | » » ushort·us·=·22; |
| 13 | » » | 13 | » » int?·r·=·us·<<·null; |
| 14 | » } | 14 | » } |
| 15 | }</string> | 15 | }</string> |
| 16 | ····<string>//·CS0458:·The·result·of·the·expression·is·always·`null'·of·type·`int?' | 16 | ····<string>//·CS0458:·The·result·of·the·expression·is·always·`null'·of·type·`int?' |
| 17 | //·Line:·9 | ||
| 18 | //·Compiler·options:·-warnaserror·-warn:2 | ||
| 19 | class·C | ||
| 20 | { | ||
| 21 | » static·void·Foo() | ||
| 22 | » { | ||
| 23 | » » var·res·=·null·<<·2; | ||
| 24 | » } | ||
| 25 | }</string> | ||
| 26 | ····<string>//·CS0458:·The·result·of·the·expression·is·always·`null'·of·type·`bool?'· | ||
| 27 | //·Line:·8 | ||
| 28 | //·Compiler·options:·-warnaserror·-warn:2 | ||
| 29 | class·C | ||
| 30 | { | ||
| 31 | » static·void·Foo() | ||
| 32 | » { | ||
| 33 | » » bool?·b·=·null·as·bool?; | ||
| 34 | » } | ||
| 35 | }</string> | ||
| 36 | ····<string>//·CS0458:·The·result·of·the·expression·is·always·`null'·of·type·`E?' | ||
| 17 | //·Line:·15 | 37 | //·Line:·15 |
| 18 | //·Compiler·options:·-warnaserror·-warn:2 | 38 | //·Compiler·options:·-warnaserror·-warn:2 |
| 19 | enum·E | 39 | enum·E |
| 20 | { | 40 | { |
| 21 | » V | 41 | » V |
| 22 | } | 42 | } |
| 23 | public·class·C | 43 | public·class·C |
| 24 | { | 44 | { |
| 25 | » public·static·void·Main·() | 45 | » public·static·void·Main·() |
| 26 | » { | 46 | » { |
| 27 | » » E·e·=·E.V; | 47 | » » E·e·=·E.V; |
| 28 | » » object·o·=· | 48 | » » object·o·=·e·+·null; |
| 29 | » } | 49 | » } |
| 30 | }</string> | 50 | }</string> |
| 31 | ····<string>//·CS0458:·The·result·of·the·expression·is·always·`null'·of·type·`int?' | 51 | ····<string>//·CS0458:·The·result·of·the·expression·is·always·`null'·of·type·`int?' |
| 32 | //·Line:· | 52 | //·Line:·9 |
| 33 | //·Compiler·options:·-warnaserror·-warn:2 | 53 | //·Compiler·options:·-warnaserror·-warn:2 |
| 34 | class·C | 54 | public·class·C |
| 35 | { | 55 | { |
| 36 | » public·static·void·Main·() | 56 | » public·static·void·Main·() |
| 37 | » { | 57 | » { |
| 58 | » » b·=·(null·&·0)·!=·null; | ||
| 38 | » » int·i·=·44; | ||
| 39 | » » i·<<=·null; | ||
| 40 | » } | ||
| 41 | }</string> | ||
| 42 | ····<string>//·CS0458:·The·result·of·the·expression·is·always·`null'·of·type·`bool?'· | ||
| 43 | //·Line:·8 | ||
| 44 | //·Compiler·options:·-warnaserror·-warn:2 | ||
| 45 | class·C | ||
| 46 | { | ||
| 47 | » static·void·Foo() | ||
| 48 | » { | ||
| 49 | » » bool?·b·=·false·|·null; | ||
| 50 | » } | 59 | » } |
| 51 | }</string> | 60 | }</string> |
| 52 | ····<string>//·CS0458:·The·result·of·the·expression·is·always·`null'·of·type·` | 61 | ····<string>//·CS0458:·The·result·of·the·expression·is·always·`null'·of·type·`ulong?' |
| 53 | //·Line:· | 62 | //·Line:·10 |
| 54 | //·Compiler·options:·-warnaserror·-warn:2 | 63 | //·Compiler·options:·-warnaserror·-warn:2 |
| 55 | class·C | 64 | class·C |
| 56 | { | 65 | { |
| 57 | » static·void·Foo() | 66 | » static·void·Foo() |
| 58 | » { | 67 | » { |
| 59 | » » | 68 | » » ulong·a·=·100; |
| 69 | » » var·res·=·a·<<·null; | ||
| 60 | » } | 70 | » } |
| 61 | }</string> | 71 | }</string> |
| 62 | ····<string>//·CS0458:·The·result·of·the·expression·is·always·`null'·of·type·`int?' | 72 | ····<string>//·CS0458:·The·result·of·the·expression·is·always·`null'·of·type·`int?' |
| 63 | //·Line:·1 | 73 | //·Line:·15 |
| 64 | //·Compiler·options:·-warnaserror·-warn:2 | 74 | //·Compiler·options:·-warnaserror·-warn:2 |
| 65 | 75 | enum·E | |
| 66 | { | 76 | { |
| 77 | » V | ||
| 67 | } | 78 | } |
| 68 | class·C | 79 | public·class·C |
| 69 | { | 80 | { |
| 70 | » public·static·void·Main·() | 81 | » public·static·void·Main·() |
| 71 | » { | 82 | » { |
| 72 | » » E?·e·=·null; | ||
| 73 | » » | 83 | » » E·e·=·E.V; |
| 84 | » » object·o·=·null·-·e; | ||
| 74 | » } | 85 | » } |
| 75 | }</string> | 86 | }</string> |
| 76 | ····<string>//·CS0458:·The·result·of·the·expression·is·always·`null'·of·type·`int?' | 87 | ····<string>//·CS0458:·The·result·of·the·expression·is·always·`null'·of·type·`int?' |
| 77 | //·Line:· | 88 | //·Line:·8 |
| 78 | //·Compiler·options:·-warnaserror·-warn:2 | 89 | //·Compiler·options:·-warnaserror·-warn:2 |
| 79 | public·class·C | 90 | public·class·MainClass |
| 80 | { | 91 | { |
| 81 | » public·static·void·Main | 92 | » public·static·void·Main() |
| 82 | » { | 93 | » { |
| 94 | » » object·d·=·(int?)null·as·int?; | ||
| 83 | » » int?·s·=·null; | ||
| 84 | » » int?·v·=·s·+·null; | ||
| 85 | » } | 95 | » } |
| 86 | }</string> | 96 | }</string> |
| 87 | ····<string>//·CS0458:·The·result·of·the·expression·is·always·`null'·of·type·`bool?'· | 97 | ····<string>//·CS0458:·The·result·of·the·expression·is·always·`null'·of·type·`bool?'· |
| 88 | //·Line:·8 | 98 | //·Line:·8 |
| 89 | //·Compiler·options:·-warnaserror·-warn:2 | 99 | //·Compiler·options:·-warnaserror·-warn:2 |
| 90 | class·C | 100 | class·C |
| Max diff block lines reached; 3361/6485 bytes (51.83%) of diff not shown. | |||
| Offset 1, 13 lines modified | Offset 1, 26 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0459</ErrorName> | 3 | ··<ErrorName>CS0459</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0459:·Cannot·take·the·address·of·`this'·because·it·is·read-only | 5 | ····<string>//·CS0459:·Cannot·take·the·address·of·`this'·because·it·is·read-only |
| 6 | //·Line:·11 | 6 | //·Line:·11 |
| 7 | //·Compiler·options:·-unsafe | ||
| 8 | using·System; | ||
| 9 | class·X·{ | ||
| 10 | » unsafe·void·Test·() | ||
| 11 | » { | ||
| 12 | » » X·x·=·*&this; | ||
| 13 | » } | ||
| 14 | }</string> | ||
| 15 | ····<string>//·CS0459:·Cannot·take·the·address·of·`this'·because·it·is·read-only | ||
| 16 | //·Line:·11 | ||
| 7 | //·Compiler·options:·-unsafe·-langversion:latest | 17 | //·Compiler·options:·-unsafe·-langversion:latest |
| 8 | readonly·struct·X | 18 | readonly·struct·X |
| 9 | { | 19 | { |
| 10 | » unsafe·void·Test·() | 20 | » unsafe·void·Test·() |
| 11 | » { | 21 | » { |
| 12 | » » fixed·(X*·x·=·&this)·{ | 22 | » » fixed·(X*·x·=·&this)·{ |
| Offset 24, 27 lines modified | Offset 37, 14 lines modified | ||
| 24 | » public·static·unsafe·void·Main·() | 37 | » public·static·unsafe·void·Main·() |
| 25 | » { | 38 | » { |
| 26 | » » foreach·(char·c·in·"test")·{ | 39 | » » foreach·(char·c·in·"test")·{ |
| 27 | » » » char*·ch·=·&c; | 40 | » » » char*·ch·=·&c; |
| 28 | » » } | 41 | » » } |
| 29 | ····} | 42 | ····} |
| 30 | }</string> | 43 | }</string> |
| 31 | ····<string>//·CS0459:·Cannot·take·the·address·of·`this'·because·it·is·read-only | ||
| 32 | //·Line:·11 | ||
| 33 | //·Compiler·options:·-unsafe | ||
| 34 | using·System; | ||
| 35 | class·X·{ | ||
| 36 | » unsafe·void·Test·() | ||
| 37 | » { | ||
| 38 | » » X·x·=·*&this; | ||
| 39 | » } | ||
| 40 | }</string> | ||
| 41 | ····<string>//·CS0459:·Cannot·take·the·address·of·using·variable·`m' | 44 | ····<string>//·CS0459:·Cannot·take·the·address·of·using·variable·`m' |
| 42 | //·Line:·19 | 45 | //·Line:·19 |
| 43 | //·Compiler·options:·-unsafe | 46 | //·Compiler·options:·-unsafe |
| 44 | using·System; | 47 | using·System; |
| 45 | struct·S·:·IDisposable | 48 | struct·S·:·IDisposable |
| Offset 1, 34 lines modified | Offset 1, 34 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0460</ErrorName> | 3 | ··<ErrorName>CS0460</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0460:·`C.Test< | 5 | ····<string>//·CS0460:·`C.I.Test<C>()':·Cannot·specify·constraints·for·overrides·and·explicit·interface·implementation·methods |
| 6 | //·Line:·11 | 6 | //·Line:·11 |
| 7 | 7 | interface·I | |
| 8 | { | 8 | { |
| 9 | » | 9 | » void·Test<T>()·where·T·:·new·(); |
| 10 | } | 10 | } |
| 11 | class·C·:· | 11 | class·C·:·I |
| 12 | { | 12 | { |
| 13 | » | 13 | » void·I.Test<C>()·where·C·:·class |
| 14 | » { | 14 | » { |
| 15 | » } | 15 | » } |
| 16 | }</string> | 16 | }</string> |
| 17 | ····<string>//·CS0460:·`C. | 17 | ····<string>//·CS0460:·`C.Test<T>()':·Cannot·specify·constraints·for·overrides·and·explicit·interface·implementation·methods |
| 18 | //·Line:·11 | 18 | //·Line:·11 |
| 19 | 19 | abstract·class·A | |
| 20 | { | 20 | { |
| 21 | » | 21 | » protected·abstract·int·Test<T>()·where·T·:·class; |
| 22 | } | 22 | } |
| 23 | class·C·:· | 23 | class·C·:·A |
| 24 | { | 24 | { |
| 25 | » v | 25 | » protected·override·int·Test<T>()·where·T·:·new() |
| 26 | » { | 26 | » { |
| 27 | » } | 27 | » } |
| 28 | }</string> | 28 | }</string> |
| 29 | ··</Examples> | 29 | ··</Examples> |
| 30 | </ErrorDocumentation> | 30 | </ErrorDocumentation> |
| Offset 1, 20 lines modified | Offset 1, 25 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0464</ErrorName> | 3 | ··<ErrorName>CS0464</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0464:·The·result·of·comparing·type·` | 5 | ····<string>//·CS0464:·The·result·of·comparing·type·`E?'·with·null·is·always·`false' |
| 6 | //·Line:· | 6 | //·Line:·14 |
| 7 | //·Compiler·options:·-warnaserror | 7 | //·Compiler·options:·-warnaserror |
| 8 | 8 | enum·E | |
| 9 | { | 9 | { |
| 10 | 10 | } | |
| 11 | class·X | ||
| 12 | { | ||
| 13 | » public·static·void·Main·() | ||
| 11 | » { | 14 | » { |
| 12 | » » | 15 | » » E·u·=·0; |
| 16 | » » var·b·=·u·<·(E?)·null; | ||
| 13 | » } | 17 | » } |
| 14 | }</string> | 18 | }</string> |
| 15 | ····<string>//·CS0464:·The·result·of·comparing·type·`int?'·with·null·is·always·`false' | 19 | ····<string>//·CS0464:·The·result·of·comparing·type·`int?'·with·null·is·always·`false' |
| 16 | //·Line:·10 | 20 | //·Line:·10 |
| 17 | //·Compiler·options:·-warnaserror·-warn:2 | 21 | //·Compiler·options:·-warnaserror·-warn:2 |
| 18 | class·C | 22 | class·C |
| Offset 27, 41 lines modified | Offset 32, 36 lines modified | ||
| 27 | }</string> | 32 | }</string> |
| 28 | ····<string>//·CS0464:·The·result·of·comparing·type·`int?'·with·null·is·always·`false' | 33 | ····<string>//·CS0464:·The·result·of·comparing·type·`int?'·with·null·is·always·`false' |
| 29 | //·Line:·9 | 34 | //·Line:·9 |
| 30 | //·Compiler·options:·-warnaserror·-warn:2 | 35 | //·Compiler·options:·-warnaserror·-warn:2 |
| 31 | public·class·X | 36 | public·class·X |
| 32 | { | 37 | { |
| 33 | » public·static·bool·Compute·() | 38 | » public·static·bool·Compute·(int?·x) |
| 34 | » { | 39 | » { |
| 35 | » » return· | 40 | » » return·x·>=·null; |
| 36 | » } | 41 | » } |
| 37 | }</string> | 42 | }</string> |
| 38 | ····<string>//·CS0464:·The·result·of·comparing·type·` | 43 | ····<string>//·CS0464:·The·result·of·comparing·type·`int?'·with·null·is·always·`false' |
| 39 | //·Line:· | 44 | //·Line:·9 |
| 40 | //·Compiler·options:·-warnaserror | 45 | //·Compiler·options:·-warnaserror·-warn:2 |
| 41 | enum·E | ||
| 42 | { | ||
| 43 | } | ||
| 44 | class·X | 46 | public·class·X |
| 45 | { | 47 | { |
| 46 | » public·static· | 48 | » public·static·bool·Compute·(int·x) |
| 47 | » { | 49 | » { |
| 50 | » » return·x·<·null; | ||
| 48 | » » E·u·=·0; | ||
| 49 | » » var·b·=·u·<·(E?)·null; | ||
| 50 | » } | 51 | » } |
| 51 | }</string> | 52 | }</string> |
| 52 | ····<string>//·CS0464:·The·result·of·comparing·type·`int?'·with·null·is·always·`false' | 53 | ····<string>//·CS0464:·The·result·of·comparing·type·`int?'·with·null·is·always·`false' |
| 53 | //·Line:·9 | 54 | //·Line:·9 |
| 54 | //·Compiler·options:·-warnaserror·-warn:2 | 55 | //·Compiler·options:·-warnaserror·-warn:2 |
| 55 | public·class·X | 56 | public·class·X |
| 56 | { | 57 | { |
| 57 | » public·static·bool·Compute·( | 58 | » public·static·bool·Compute·() |
| 58 | » { | 59 | » { |
| 59 | » » return· | 60 | » » return·null·>=·null; |
| 60 | » } | 61 | » } |
| 61 | }</string> | 62 | }</string> |
| 62 | ··</Examples> | 63 | ··</Examples> |
| 63 | </ErrorDocumentation> | 64 | </ErrorDocumentation> |
| Offset 1, 31 lines modified | Offset 1, 31 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0466</ErrorName> | 3 | ··<ErrorName>CS0466</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0466:· | 5 | ····<string>//·CS0466:·`Base.I.this[params·int[]].set':·the·explicit·interface·implementation·cannot·introduce·the·params·modifier |
| 6 | //·Line:·10 | 6 | //·Line:·10 |
| 7 | interface·I | 7 | interface·I |
| 8 | { | 8 | { |
| 9 | » | 9 | » int·this·[int[]·p]·{·set;·} |
| 10 | } | 10 | } |
| 11 | class·Base·:·I | 11 | class·Base·:·I |
| 12 | { | 12 | { |
| 13 | » | 13 | » int·I.this·[params·int[]·p]·{· |
| 14 | » » set·{ | ||
| 15 | » » } | ||
| 16 | » } | ||
| 14 | }</string> | 17 | }</string> |
| 15 | ····<string>//·CS0466:·`Base.I. | 18 | ····<string>//·CS0466:··`Base.I.M(params·int[])':·the·explicit·interface·implementation·cannot·introduce·the·params·modifier |
| 16 | //·Line:·10 | 19 | //·Line:·10 |
| 17 | interface·I | 20 | interface·I |
| 18 | { | 21 | { |
| 19 | » | 22 | » void·M(int[]·values); |
| 20 | } | 23 | } |
| 21 | class·Base·:·I | 24 | class·Base·:·I |
| 22 | { | 25 | { |
| 26 | » void·I.M(params·int[]·values)·{} | ||
| 23 | » int·I.this·[params·int[]·p]·{· | ||
| 24 | » » set·{ | ||
| 25 | » » } | ||
| 26 | » } | ||
| 27 | }</string> | 27 | }</string> |
| 28 | ··</Examples> | 28 | ··</Examples> |
| 29 | </ErrorDocumentation> | 29 | </ErrorDocumentation> |
| Offset 1, 33 lines modified | Offset 1, 40 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0472</ErrorName> | 3 | ··<ErrorName>CS0472</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0472:·The·result·of·comparing·value·type·` | 5 | ····<string>//·CS0472:·The·result·of·comparing·value·type·`long'·with·null·is·always·`false' |
| 6 | //·Line:·9 | ||
| 7 | //·Compiler·options:·-warnaserror·-warn:2 | ||
| 8 | class·C | ||
| 9 | { | ||
| 10 | » public·static·void·Main·() | ||
| 11 | » { | ||
| 12 | » » System.Console.WriteLine(5·==·(long?)null); | ||
| 13 | » } | ||
| 14 | }</string> | ||
| 15 | ····<string>//·CS0472:·The·result·of·comparing·value·type·`int'·with·null·is·always·`true' | ||
| 6 | //·Line:·8 | 16 | //·Line:·8 |
| 7 | //·Compiler·options:·-warnaserror·-warn:2 | 17 | //·Compiler·options:·-warnaserror·-warn:2 |
| 8 | public·class·X·{ | 18 | public·class·X·{ |
| 9 | » public·static·bool·Compute·(int·x) | 19 | » public·static·bool·Compute·(int·x) |
| 10 | » { | 20 | » { |
| 11 | » » return·x· | 21 | » » return·x·!=·null; |
| 12 | » } | 22 | » } |
| 13 | }</string> | 23 | }</string> |
| 14 | ····<string>//·CS0472:·The·result·of·comparing·value·type·` | 24 | ····<string>//·CS0472:·The·result·of·comparing·value·type·`int'·with·null·is·always·`false' |
| 15 | //·Line:· | 25 | //·Line:·8 |
| 16 | //·Compiler·options:·-warnaserror·-warn:2 | 26 | //·Compiler·options:·-warnaserror·-warn:2 |
| 27 | public·class·X·{ | ||
| 28 | » public·static·bool·Compute·(int·x) | ||
| 17 | class·C | ||
| 18 | { | ||
| 19 | » public·static·bool·Test·(byte·value) | ||
| 20 | » { | 29 | » { |
| 30 | » » return·x·==·null; | ||
| 21 | » » if·(value·==·null) | ||
| 22 | » » » return·false; | ||
| 23 | » » return·true; | ||
| 24 | » } | 31 | » } |
| 25 | }</string> | 32 | }</string> |
| 26 | ····<string>//·CS0472:·The·result·of·comparing·value·type·`int'·with·null·is·always·`false' | 33 | ····<string>//·CS0472:·The·result·of·comparing·value·type·`int'·with·null·is·always·`false' |
| 27 | //·Line:·12 | 34 | //·Line:·12 |
| 28 | //·Compiler·options:·-warnaserror | 35 | //·Compiler·options:·-warnaserror |
| 29 | using·System; | 36 | using·System; |
| Offset 36, 34 lines modified | Offset 43, 38 lines modified | ||
| 36 | { | 43 | { |
| 37 | » public·static·void·Main·() | 44 | » public·static·void·Main·() |
| 38 | » { | 45 | » { |
| 39 | » » int·i·=·0; | 46 | » » int·i·=·0; |
| 40 | » » var·x·=·i·==·default·(byte?); | 47 | » » var·x·=·i·==·default·(byte?); |
| 41 | » } | 48 | » } |
| 42 | }</string> | 49 | }</string> |
| 43 | ····<string>//·CS0472:·The·result·of·comparing·value·type·` | 50 | ····<string>//·CS0472:·The·result·of·comparing·value·type·`byte'·with·null·is·always·`false' |
| 44 | //·Line:·9 | 51 | //·Line:·9 |
| 45 | //·Compiler·options:·-warnaserror·-warn:2 | 52 | //·Compiler·options:·-warnaserror·-warn:2 |
| 46 | 53 | class·C | |
| 47 | { | 54 | { |
| 48 | » public·static· | 55 | » public·static·bool·Test·(byte·value) |
| 49 | » { | 56 | » { |
| 50 | » » if·( | 57 | » » if·(value·==·null) |
| 51 | » » » return; | 58 | » » » return·false; |
| 59 | » » return·true; | ||
| 52 | » } | 60 | » } |
| 53 | }</string> | 61 | }</string> |
| 54 | ····<string>//·CS0472:·The·result·of·comparing·value·type·`int'·with·null·is·always·`true' | 62 | ····<string>//·CS0472:·The·result·of·comparing·value·type·`int'·with·null·is·always·`true' |
| 55 | //·Line:· | 63 | //·Line:·9 |
| 56 | //·Compiler·options:·-warnaserror·-warn:2 | 64 | //·Compiler·options:·-warnaserror·-warn:2 |
| 57 | public·class·X | 65 | public·class·X |
| 66 | { | ||
| 58 | » public·static· | 67 | » public·static·void·Compute·(int·x) |
| 59 | » { | 68 | » { |
| 60 | » » re | 69 | » » if·(true·&&·x·!=·null) |
| 70 | » » » return; | ||
| 61 | » } | 71 | » } |
| 62 | }</string> | 72 | }</string> |
| 63 | ····<string>//·CS0472:·The·result·of·comparing·value·type·`E'·with·null·is·always·`false' | 73 | ····<string>//·CS0472:·The·result·of·comparing·value·type·`E'·with·null·is·always·`false' |
| 64 | //·Line:·14 | 74 | //·Line:·14 |
| 65 | //·Compiler·options:·-warnaserror | 75 | //·Compiler·options:·-warnaserror |
| 66 | enum·E | 76 | enum·E |
| Offset 74, 20 lines modified | Offset 85, 9 lines modified | ||
| 74 | { | 85 | { |
| 75 | » public·static·void·Main·() | 86 | » public·static·void·Main·() |
| 76 | » { | 87 | » { |
| 77 | » » E·u·=·0; | 88 | » » E·u·=·0; |
| 78 | » » var·b·=·u·==·(E?)null; | 89 | » » var·b·=·u·==·(E?)null; |
| 79 | » } | 90 | » } |
| 80 | }</string> | 91 | }</string> |
| 81 | ····<string>//·CS0472:·The·result·of·comparing·value·type·`long'·with·null·is·always·`false' | ||
| 82 | //·Line:·9 | ||
| 83 | //·Compiler·options:·-warnaserror·-warn:2 | ||
| 84 | class·C | ||
| 85 | { | ||
| 86 | » public·static·void·Main·() | ||
| 87 | » { | ||
| 88 | » » System.Console.WriteLine(5·==·(long?)null); | ||
| 89 | » } | ||
| 90 | }</string> | ||
| 91 | ··</Examples> | 92 | ··</Examples> |
| 92 | </ErrorDocumentation> | 93 | </ErrorDocumentation> |
| Offset 1, 19 lines modified | Offset 1, 19 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0500</ErrorName> | 3 | ··<ErrorName>CS0500</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0500:·`A.Foo.get'·cannot·declare·a·body·because·it·is·marked·abstract | ||
| 6 | //·Line:·5 | ||
| 7 | public·abstract·class·A·{ | ||
| 8 | » public·abstract·int·Foo·{·get·{·return·1;·}·} | ||
| 9 | }</string> | ||
| 10 | ····<string>//·CS0500:·`X.B()'·cannot·declare·a·body·because·it·is·marked·abstract | 5 | ····<string>//·CS0500:·`X.B()'·cannot·declare·a·body·because·it·is·marked·abstract |
| 11 | //·Line:·5 | 6 | //·Line:·5 |
| 12 | abstract·class·X·{ | 7 | abstract·class·X·{ |
| 13 | » public·abstract·void·B·()·{ | 8 | » public·abstract·void·B·()·{ |
| 14 | » } | 9 | » } |
| 15 | }</string> | 10 | }</string> |
| 11 | ····<string>//·CS0500:·`A.Foo.get'·cannot·declare·a·body·because·it·is·marked·abstract | ||
| 12 | //·Line:·5 | ||
| 13 | public·abstract·class·A·{ | ||
| 14 | » public·abstract·int·Foo·{·get·{·return·1;·}·} | ||
| 15 | }</string> | ||
| 16 | ··</Examples> | 16 | ··</Examples> |
| 17 | </ErrorDocumentation> | 17 | </ErrorDocumentation> |
| Offset 1, 24 lines modified | Offset 1, 11 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0501</ErrorName> | 3 | ··<ErrorName>CS0501</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0501:·`Test.this[string].get'·must·have·a·body·because·it·is·not·marked·abstract,·extern,·or·partial | ||
| 6 | //·Line:·6 | ||
| 7 | public·abstract·class·Test | ||
| 8 | { | ||
| 9 | » public·string·this·[string·key]·{·get;·set;·} | ||
| 10 | }</string> | ||
| 11 | ····<string>//·CS0501:·`Class.X()'·must·have·a·body·because·it·is·not·marked·abstract,·extern,·or·partial | ||
| 12 | //·Line:·5 | ||
| 13 | class·Class·{ | ||
| 14 | » virtual·public·void·X·(); | ||
| 15 | }</string> | ||
| 16 | ····<string>//·CS0501:·`C.operator·!=(C,·C)'·must·have·a·body·because·it·is·not·marked·abstract,·extern,·or·partial | 5 | ····<string>//·CS0501:·`C.operator·!=(C,·C)'·must·have·a·body·because·it·is·not·marked·abstract,·extern,·or·partial |
| 17 | //·Line:·6 | 6 | //·Line:·6 |
| 18 | class·C | 7 | class·C |
| 19 | { | 8 | { |
| 20 | » public·static·bool·operator·!=·(C·l,·C·r); | 9 | » public·static·bool·operator·!=·(C·l,·C·r); |
| 21 | » public·static·bool·operator·==·(C·l,·C·r); | 10 | » public·static·bool·operator·==·(C·l,·C·r); |
| Offset 26, 9 lines modified | Offset 13, 22 lines modified | ||
| 26 | ····<string>//·CS0501:·`X.Mine.get'·must·have·a·body·because·it·is·not·marked·abstract,·extern,·or·partial | 13 | ····<string>//·CS0501:·`X.Mine.get'·must·have·a·body·because·it·is·not·marked·abstract,·extern,·or·partial |
| 27 | //·Line:·6 | 14 | //·Line:·6 |
| 28 | class·X | 15 | class·X |
| 29 | { | 16 | { |
| 30 | » public·int·Mine·{·get;·set·{}·} | 17 | » public·int·Mine·{·get;·set·{}·} |
| 31 | }</string> | 18 | }</string> |
| 19 | ····<string>//·CS0501:·`Test.this[string].get'·must·have·a·body·because·it·is·not·marked·abstract,·extern,·or·partial | ||
| 20 | //·Line:·6 | ||
| 21 | public·abstract·class·Test | ||
| 22 | { | ||
| 23 | » public·string·this·[string·key]·{·get;·set;·} | ||
| 24 | }</string> | ||
| 25 | ····<string>//·CS0501:·`Class.X()'·must·have·a·body·because·it·is·not·marked·abstract,·extern,·or·partial | ||
| 26 | //·Line:·5 | ||
| 27 | class·Class·{ | ||
| 28 | » virtual·public·void·X·(); | ||
| 29 | }</string> | ||
| 32 | ··</Examples> | 30 | ··</Examples> |
| 33 | </ErrorDocumentation> | 31 | </ErrorDocumentation> |
| Offset 4, 37 lines modified | Offset 4, 37 lines modified | ||
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0505:·`DerivedClass.value()':·cannot·override·because·`BaseClass.value'·is·not·a·method | 5 | ····<string>//·CS0505:·`DerivedClass.value()':·cannot·override·because·`BaseClass.value'·is·not·a·method |
| 6 | //·Line:·9 | 6 | //·Line:·9 |
| 7 | using·System; | 7 | using·System; |
| 8 | class·BaseClass·{ | 8 | class·BaseClass·{ |
| 9 | ········protected· | 9 | ········protected·int·value; |
| 10 | } | 10 | } |
| 11 | class·DerivedClass:·BaseClass·{ | 11 | class·DerivedClass:·BaseClass·{ |
| 12 | ········protected·override·v | 12 | ········protected·override·EventHandler·value()·{} |
| 13 | }</string> | 13 | }</string> |
| 14 | ····<string>//·CS0505:·`DerivedClass.value()':·cannot·override·because·`BaseClass.value'·is·not·a·method | 14 | ····<string>//·CS0505:·`DerivedClass.value()':·cannot·override·because·`BaseClass.value'·is·not·a·method |
| 15 | //·Line:·9 | 15 | //·Line:·9 |
| 16 | using·System; | ||
| 16 | class·BaseClass·{ | 17 | class·BaseClass·{ |
| 17 | ········protected· | 18 | ········protected·EventHandler·value; |
| 18 | } | 19 | } |
| 19 | class·DerivedClass:·BaseClass·{ | 20 | class·DerivedClass:·BaseClass·{ |
| 20 | ········protected·override· | 21 | ········protected·override·void·value()·{} |
| 21 | }</string> | 22 | }</string> |
| 22 | ····<string>//·CS0505:·`DerivedClass.value()':·cannot·override·because·`BaseClass.value'·is·not·a·method | 23 | ····<string>//·CS0505:·`DerivedClass.value()':·cannot·override·because·`BaseClass.value'·is·not·a·method |
| 23 | //·Line:·9 | 24 | //·Line:·9 |
| 24 | using·System; | ||
| 25 | class·BaseClass·{ | 25 | class·BaseClass·{ |
| 26 | ········protected·int·value; | 26 | ········protected·int·value; |
| 27 | } | 27 | } |
| 28 | class·DerivedClass:·BaseClass·{ | 28 | class·DerivedClass:·BaseClass·{ |
| 29 | ········protected·override· | 29 | ········protected·override·int·value()·{} |
| 30 | }</string> | 30 | }</string> |
| 31 | ··</Examples> | 31 | ··</Examples> |
| 32 | </ErrorDocumentation> | 32 | </ErrorDocumentation> |
| Offset 8, 31 lines modified | Offset 8, 31 lines modified | ||
| 8 | class·BaseClass·{ | 8 | class·BaseClass·{ |
| 9 | ········protected·void·Show·()·{} | 9 | ········protected·void·Show·()·{} |
| 10 | } | 10 | } |
| 11 | class·DerivedClass:·BaseClass·{ | 11 | class·DerivedClass:·BaseClass·{ |
| 12 | ········protected·override·void·Show·()·{} | 12 | ········protected·override·void·Show·()·{} |
| 13 | }</string> | 13 | }</string> |
| 14 | ····<string>//·CS0506:·`C.Run()':·cannot·override·inherited·member·`A.Run()'·because·it·is·not·marked·virtual,·abstract·or·override | ||
| 15 | //·Line:·7 | ||
| 16 | //·Compiler·options:·-r:CS0506-3-lib.dll | ||
| 17 | public·class·C·:·B | ||
| 18 | { | ||
| 19 | » public·override·void·Run·() | ||
| 20 | » { | ||
| 21 | » } | ||
| 22 | }</string> | ||
| 14 | ····<string>//·CS0506:·`DerivedClass.Test':·cannot·override·inherited·member·`BaseClass.Test'·because·it·is·not·marked·virtual,·abstract·or·override | 23 | ····<string>//·CS0506:·`DerivedClass.Test':·cannot·override·inherited·member·`BaseClass.Test'·because·it·is·not·marked·virtual,·abstract·or·override |
| 15 | //·Line:·11 | 24 | //·Line:·11 |
| 16 | using·System; | 25 | using·System; |
| 17 | class·BaseClass·{ | 26 | class·BaseClass·{ |
| 18 | ········protected·event·EventHandler·Test; | 27 | ········protected·event·EventHandler·Test; |
| 19 | } | 28 | } |
| 20 | class·DerivedClass:·BaseClass·{ | 29 | class·DerivedClass:·BaseClass·{ |
| 21 | ········protected·override·event·EventHandler·Test; | 30 | ········protected·override·event·EventHandler·Test; |
| 22 | }</string> | 31 | }</string> |
| 23 | ····<string>//·CS0506:·`C.Run()':·cannot·override·inherited·member·`A.Run()'·because·it·is·not·marked·virtual,·abstract·or·override | ||
| 24 | //·Line:·7 | ||
| 25 | //·Compiler·options:·-r:CS0506-3-lib.dll | ||
| 26 | public·class·C·:·B | ||
| 27 | { | ||
| 28 | » public·override·void·Run·() | ||
| 29 | » { | ||
| 30 | » } | ||
| 31 | }</string> | ||
| 32 | ··</Examples> | 32 | ··</Examples> |
| 33 | </ErrorDocumentation> | 33 | </ErrorDocumentation> |
| Offset 1, 11 lines modified | Offset 1, 22 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0507</ErrorName> | 3 | ··<ErrorName>CS0507</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0507:·`Class2.GetString()':·cannot·change·access·modifiers·when·overriding·`protected'·inherited·member·`Class1.GetString()' | ||
| 6 | //·Line:·7 | ||
| 7 | //·Compiler·options:·-r:CS0507-8-lib.dll | ||
| 8 | public·sealed·class·Class2·:·Class1 | ||
| 9 | { | ||
| 10 | » protected·internal·override·string·GetString·() | ||
| 11 | » { | ||
| 12 | » » return·"Hello2"; | ||
| 13 | » } | ||
| 14 | }</string> | ||
| 5 | ····<string>//·CS0507:·`DerivedClass.Message.set':·cannot·change·access·modifiers·when·overriding·`public'·inherited·member·`BaseClass.Message.set' | 15 | ····<string>//·CS0507:·`DerivedClass.Message.set':·cannot·change·access·modifiers·when·overriding·`public'·inherited·member·`BaseClass.Message.set' |
| 6 | //·Line:·19 | 16 | //·Line:·19 |
| 7 | class·BaseClass·{ | 17 | class·BaseClass·{ |
| 8 | ········public·virtual·string·Message·{ | 18 | ········public·virtual·string·Message·{ |
| 9 | » » get·{ | 19 | » » get·{ |
| 10 | » » » return·""; | 20 | » » » return·""; |
| Offset 19, 51 lines modified | Offset 30, 67 lines modified | ||
| 19 | » » get·{ | 30 | » » get·{ |
| 20 | » » » return·""; | 31 | » » » return·""; |
| 21 | » » } | 32 | » » } |
| 22 | » » | 33 | » » |
| 23 | » » private·set·{} | 34 | » » private·set·{} |
| 24 | » } | 35 | » } |
| 25 | }</string> | 36 | }</string> |
| 26 | ····<string>//·CS0507:·` | 37 | ····<string>//·CS0507:·`Class2.GetString()':·cannot·change·access·modifiers·when·overriding·`protected·internal'·inherited·member·`Class1.GetString()' |
| 27 | //·Line:· | 38 | //·Line:·7 |
| 39 | //·Compiler·options:·-r:CS0507-7-lib.dll | ||
| 28 | class·Foo | ||
| 29 | { | ||
| 30 | » protected·internal·virtual·void·X·() | ||
| 31 | » { | ||
| 32 | » } | ||
| 33 | } | ||
| 34 | class· | 40 | public·sealed·class·Class2·:·Class1 |
| 35 | { | 41 | { |
| 36 | » protected·override· | 42 | » protected·override·string·GetString·() |
| 37 | » { | 43 | » { |
| 44 | » » return·"Hello2"; | ||
| 38 | » } | 45 | » } |
| 39 | }</string> | 46 | }</string> |
| 40 | ····<string>//·CS0507:·`DerivedClass.Test':·cannot·change·access·modifiers·when·overriding·`protected'·inherited·member·`BaseClass.Test' | 47 | ····<string>//·CS0507:·`DerivedClass.Test':·cannot·change·access·modifiers·when·overriding·`protected'·inherited·member·`BaseClass.Test' |
| 41 | //·Line:·11 | 48 | //·Line:·11 |
| 42 | using·System; | 49 | using·System; |
| 43 | class·BaseClass·{ | 50 | class·BaseClass·{ |
| 44 | ········protected·virtual·event·EventHandler·Test; | 51 | ········protected·virtual·event·EventHandler·Test; |
| 45 | } | 52 | } |
| 46 | class·DerivedClass:·BaseClass·{ | 53 | class·DerivedClass:·BaseClass·{ |
| 47 | ········public·override·sealed·event·EventHandler·Test; | 54 | ········public·override·sealed·event·EventHandler·Test; |
| 48 | }</string> | 55 | }</string> |
| 49 | ····<string>//·CS0507:·`Class | 56 | ····<string>//·CS0507:·`DerivedClass.Message':·cannot·change·access·modifiers·when·overriding·`public'·inherited·member·`BaseClass.Message' |
| 50 | //·Line:· | 57 | //·Line:·12 |
| 51 | //·Compiler·options:·-r:CS0507-7-lib.dll | ||
| 52 | 58 | class·BaseClass·{ | |
| 59 | » public·virtual·string·Message·{ | ||
| 60 | » » set·{ | ||
| 61 | » » } | ||
| 62 | » } | ||
| 63 | } | ||
| 64 | class·DerivedClass·:·BaseClass·{ | ||
| 65 | » protected·override·string·Message·{ | ||
| 66 | » » set·{ | ||
| 67 | » » } | ||
| 68 | » } | ||
| 69 | }</string> | ||
| 70 | ····<string>//·CS0507:·`Bar.X()':·cannot·change·access·modifiers·when·overriding·`protected·internal'·inherited·member·`Foo.X()' | ||
| 71 | //·Line:·13 | ||
| 72 | class·Foo | ||
| 53 | { | 73 | { |
| 54 | » protected· | 74 | » protected·internal·virtual·void·X·() |
| 75 | » { | ||
| 76 | » } | ||
| 77 | } | ||
| 78 | class·Bar·:·Foo | ||
| 79 | { | ||
| 80 | » protected·override·void·X·() | ||
| 55 | » { | 81 | » { |
| 56 | » » return·"Hello2"; | ||
| 57 | » } | 82 | » } |
| 58 | }</string> | 83 | }</string> |
| 59 | ····<string>//·CS0507:·`DerivedClass.Show()':·cannot·change·access·modifiers·when·overriding·`protected'·inherited·member·`BaseClass.Show()' | 84 | ····<string>//·CS0507:·`DerivedClass.Show()':·cannot·change·access·modifiers·when·overriding·`protected'·inherited·member·`BaseClass.Show()' |
| 60 | //·Line:·9 | 85 | //·Line:·9 |
| 61 | class·BaseClass·{ | 86 | class·BaseClass·{ |
| 62 | ········protected·virtual·void·Show·()·{} | 87 | ········protected·virtual·void·Show·()·{} |
| Offset 90, 36 lines modified | Offset 117, 9 lines modified | ||
| 90 | » » get·{ | 117 | » » get·{ |
| 91 | » » » return·""; | 118 | » » » return·""; |
| 92 | » » } | 119 | » » } |
| 93 | » » set·{ | 120 | » » set·{ |
| 94 | » » } | 121 | » » } |
| 95 | » } | 122 | » } |
| 96 | }</string> | 123 | }</string> |
| 97 | ····<string>//·CS0507:·`Class2.GetString()':·cannot·change·access·modifiers·when·overriding·`protected'·inherited·member·`Class1.GetString()' | ||
| 98 | //·Line:·7 | ||
| 99 | //·Compiler·options:·-r:CS0507-8-lib.dll | ||
| 100 | public·sealed·class·Class2·:·Class1 | ||
| 101 | { | ||
| 102 | » protected·internal·override·string·GetString·() | ||
| 103 | » { | ||
| 104 | » » return·"Hello2"; | ||
| 105 | » } | ||
| 106 | }</string> | ||
| 107 | ····<string>//·CS0507:·`DerivedClass.Message':·cannot·change·access·modifiers·when·overriding·`public'·inherited·member·`BaseClass.Message' | ||
| 108 | //·Line:·12 | ||
| 109 | class·BaseClass·{ | ||
| 110 | » public·virtual·string·Message·{ | ||
| 111 | » » set·{ | ||
| 112 | » » } | ||
| 113 | » } | ||
| 114 | } | ||
| Max diff block lines reached; 23/3742 bytes (0.61%) of diff not shown. | |||
| Offset 1, 48 lines modified | Offset 1, 33 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0508</ErrorName> | 3 | ··<ErrorName>CS0508</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0508:·`A<T>.B.getT()':·return·type·must·be·`A<T>.B'·to·match·overridden·member·`A<A<T>.B>.getT()' | ||
| 6 | //·Line:·10 | ||
| 7 | abstract·class·A<T> | ||
| 8 | { | ||
| 9 | » public·abstract·T·getT·(); | ||
| 10 | » public·class·B·:·A<B> | ||
| 11 | » { | ||
| 12 | » » public·override·B·getT·() | ||
| 13 | » » { | ||
| 14 | » » » return·default·(B); | ||
| 15 | » » } | ||
| 16 | » } | ||
| 17 | }</string> | ||
| 18 | ····<string>//·CS0508:·`DerivedClass.Show()':·return·type·must·be·`void'·to·match·overridden·member·`BaseClass.Show()' | 5 | ····<string>//·CS0508:·`DerivedClass.Show()':·return·type·must·be·`void'·to·match·overridden·member·`BaseClass.Show()' |
| 19 | //·Line:·9 | 6 | //·Line:·9 |
| 20 | class·BaseClass·{ | 7 | class·BaseClass·{ |
| 21 | ········protected·virtual·void·Show·()·{} | 8 | ········protected·virtual·void·Show·()·{} |
| 22 | } | 9 | } |
| 23 | class·DerivedClass:·BaseClass·{ | 10 | class·DerivedClass:·BaseClass·{ |
| 24 | ········protected·override·bool·Show·()·{} | 11 | ········protected·override·bool·Show·()·{} |
| 25 | }</string> | 12 | }</string> |
| 26 | ····<string>//·CS0508:·`A<T>.B | 13 | ····<string>//·CS0508:·`A<T>.B.getT()':·return·type·must·be·`A<T>.B'·to·match·overridden·member·`A<A<T>.B>.getT()' |
| 27 | //·Line:·10 | 14 | //·Line:·10 |
| 28 | abstract·class·A<T> | 15 | abstract·class·A<T> |
| 29 | { | 16 | { |
| 30 | » public·abstract·T· | 17 | » public·abstract·T·getT·(); |
| 31 | » public·class·B | 18 | » public·class·B·:·A<B> |
| 32 | » { | 19 | » { |
| 33 | » » public·override·B | 20 | » » public·override·B·getT·() |
| 34 | » » { | 21 | » » { |
| 35 | » » » return·t | 22 | » » » return·default·(B); |
| 36 | » » } | 23 | » » } |
| 37 | » } | 24 | » } |
| 38 | }</string> | 25 | }</string> |
| 39 | ····<string>//·CS0508:·`A<T>.B.getT()':·return·type·must·be·`A<T>.B'·to·match·overridden·member·`A<A<T>.B>.getT()' | 26 | ····<string>//·CS0508:·`A<T>.B.getT()':·return·type·must·be·`A<T>.B'·to·match·overridden·member·`A<A<T>.B>.getT()' |
| 40 | //·Line:·10 | 27 | //·Line:·10 |
| 41 | abstract·class·A<T> | 28 | abstract·class·A<T> |
| Offset 53, 9 lines modified | Offset 38, 24 lines modified | ||
| 53 | » { | 38 | » { |
| 54 | » » public·override·B·getT·() | 39 | » » public·override·B·getT·() |
| 55 | » » { | 40 | » » { |
| 56 | » » » throw·new·System.Exception·("The·method·or·operation·is·not·implemented."); | 41 | » » » throw·new·System.Exception·("The·method·or·operation·is·not·implemented."); |
| 57 | » » } | 42 | » » } |
| 58 | » } | 43 | » } |
| 59 | }</string> | 44 | }</string> |
| 45 | ····<string>//·CS0508:·`A<T>.B<H>.Test()':·return·type·must·be·`A<T>.B<H>'·to·match·overridden·member·`A<A<T>.B<H>>.Test()' | ||
| 46 | //·Line:·10 | ||
| 47 | abstract·class·A<T> | ||
| 48 | { | ||
| 49 | » public·abstract·T·Test·(); | ||
| 50 | » public·class·B<H>·:·A<B<H>> | ||
| 51 | » { | ||
| 52 | » » public·override·B<H>·Test·() | ||
| 53 | » » { | ||
| 54 | » » » return·this; | ||
| 55 | » » } | ||
| 56 | » } | ||
| 57 | }</string> | ||
| 60 | ··</Examples> | 58 | ··</Examples> |
| 61 | </ErrorDocumentation> | 59 | </ErrorDocumentation> |
| Offset 1, 32 lines modified | Offset 1, 26 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0509</ErrorName> | 3 | ··<ErrorName>CS0509</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0509:·`A':·cannot·derive·from·sealed·type·`System.Action' | ||
| 6 | //·Line:·4 | ||
| 7 | class·A·:·System.Action | ||
| 8 | { | ||
| 9 | }</string> | ||
| 5 | ····<string>//·CS0509:·`X':·cannot·derive·from·sealed·type·`V' | 10 | ····<string>//·CS0509:·`X':·cannot·derive·from·sealed·type·`V' |
| 6 | //·Line:·8 | 11 | //·Line:·8 |
| 7 | struct·V·{ | 12 | struct·V·{ |
| 8 | » int·v; | 13 | » int·v; |
| 9 | } | 14 | } |
| 10 | class·X·:·V·{ | 15 | class·X·:·V·{ |
| 11 | }</string> | 16 | }</string> |
| 12 | ····<string>//·CS0509:·`X':·cannot·derive·from·sealed·type·`int' | ||
| 13 | //·Line:·4 | ||
| 14 | class·X·:·int | ||
| 15 | { | ||
| 16 | }</string> | ||
| 17 | ····<string>//·CS0509:·`A':·cannot·derive·from·sealed·type·`System.Action' | ||
| 18 | //·Line:·4 | ||
| 19 | class·A·:·System.Action | ||
| 20 | { | ||
| 21 | }</string> | ||
| 22 | ····<string>//·CS0509:·`InstanceClass':·cannot·derive·from·sealed·type·`E' | 17 | ····<string>//·CS0509:·`InstanceClass':·cannot·derive·from·sealed·type·`E' |
| 23 | //·Line:·6 | 18 | //·Line:·6 |
| 24 | public·enum·E·{} | 19 | public·enum·E·{} |
| 25 | class·InstanceClass:·E·{ | 20 | class·InstanceClass:·E·{ |
| 26 | }</string> | 21 | }</string> |
| Offset 34, 9 lines modified | Offset 28, 15 lines modified | ||
| 34 | //·Line:·6 | 28 | //·Line:·6 |
| 35 | delegate·void·D·(); | 29 | delegate·void·D·(); |
| 36 | class·A·:·D | 30 | class·A·:·D |
| 37 | { | 31 | { |
| 38 | }</string> | 32 | }</string> |
| 33 | ····<string>//·CS0509:·`X':·cannot·derive·from·sealed·type·`int' | ||
| 34 | //·Line:·4 | ||
| 35 | class·X·:·int | ||
| 36 | { | ||
| 37 | }</string> | ||
| 39 | ··</Examples> | 38 | ··</Examples> |
| 40 | </ErrorDocumentation> | 39 | </ErrorDocumentation> |
| Offset 1, 25 lines modified | Offset 1, 25 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0516</ErrorName> | 3 | ··<ErrorName>CS0516</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0516:·Constructor·`Sample.Sample()'·cannot·call·itself | ||
| 6 | //·Line:·6 | ||
| 7 | class·Sample·{ | ||
| 8 | » public·Sample·() | ||
| 9 | » » :·this·() | ||
| 10 | » { | ||
| 11 | » } | ||
| 12 | }</string> | ||
| 13 | ····<string>//·CS0516:·Constructor·`A<T>.A(T)'·cannot·call·itself | 5 | ····<string>//·CS0516:·Constructor·`A<T>.A(T)'·cannot·call·itself |
| 14 | //·Line:·7 | 6 | //·Line:·7 |
| 15 | public·class·A<T> | 7 | public·class·A<T> |
| 16 | { | 8 | { |
| 17 | » public·A·(T·i) | 9 | » public·A·(T·i) |
| 18 | » » :·this·(i) | 10 | » » :·this·(i) |
| 19 | » { | 11 | » { |
| 20 | » } | 12 | » } |
| 21 | }</string> | 13 | }</string> |
| 14 | ····<string>//·CS0516:·Constructor·`Sample.Sample()'·cannot·call·itself | ||
| 15 | //·Line:·6 | ||
| 16 | class·Sample·{ | ||
| 17 | » public·Sample·() | ||
| 18 | » » :·this·() | ||
| 19 | » { | ||
| 20 | » } | ||
| 21 | }</string> | ||
| 22 | ··</Examples> | 22 | ··</Examples> |
| 23 | </ErrorDocumentation> | 23 | </ErrorDocumentation> |
| Offset 1, 73 lines modified | Offset 1, 73 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0523</ErrorName> | 3 | ··<ErrorName>CS0523</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0523:·Struct·member·`S<T>.s'·of·type·`S<T[]>'·causes·a·cycle·in·the·struct·layout | ||
| 6 | //·Line:·6 | ||
| 7 | struct·S<T> | ||
| 8 | { | ||
| 9 | » static·S<T[]>·s; | ||
| 10 | }</string> | ||
| 5 | ····<string>//·CS0523:·Struct·member·`S.value'·of·type·`G<string>'·causes·a·cycle·in·the·struct·layout | 11 | ····<string>//·CS0523:·Struct·member·`S.value'·of·type·`G<string>'·causes·a·cycle·in·the·struct·layout |
| 6 | //·Line:·11 | 12 | //·Line:·11 |
| 7 | struct·G<T> | 13 | struct·G<T> |
| 8 | { | 14 | { |
| 9 | » public·static·S·s; | 15 | » public·static·S·s; |
| 10 | } | 16 | } |
| 11 | struct·S | 17 | struct·S |
| 12 | { | 18 | { |
| 13 | » private·G<string>·value; | 19 | » private·G<string>·value; |
| 14 | }</string> | 20 | }</string> |
| 15 | ····<string>//·CS0523:·Struct·member·` | 21 | ····<string>//·CS0523:·Struct·member·`S<T>.s'·of·type·`S<int>'·causes·a·cycle·in·the·struct·layout |
| 16 | //·Line:·6 | 22 | //·Line:·6 |
| 17 | struct· | 23 | struct·S<T> |
| 18 | { | 24 | { |
| 19 | » | 25 | » S<int>·s; |
| 20 | }</string> | 26 | }</string> |
| 21 | ····<string>//·CS0523:·Struct·member·` | 27 | ····<string>//·CS0523:·Struct·member·`B.a'·of·type·`A'·causes·a·cycle·in·the·struct·layout |
| 22 | //·Line:· | 28 | //·Line:·9 |
| 23 | //·NOTE:·Not·detected·by·csc·only·by·runtime·loader | ||
| 24 | 29 | struct·A·{ | |
| 30 | » B·b; | ||
| 31 | } | ||
| 32 | struct·B·{ | ||
| 33 | » A·a; | ||
| 25 | struct·Handle<T> | ||
| 26 | { | ||
| 27 | » public·IntPtr·Value; | ||
| 28 | } | 34 | } |
| 35 | class·Y·{·static·void·Main·()·{}·}</string> | ||
| 36 | ····<string>//·CS0523:·Struct·member·`A.a'·of·type·`A?'·causes·a·cycle·in·the·struct·layout | ||
| 37 | //·Line:·6 | ||
| 29 | struct· | 38 | struct·A |
| 30 | { | 39 | { |
| 31 | » | 40 | » static·A?·a; |
| 32 | }</string> | 41 | }</string> |
| 33 | ····<string>//·CS0523:·Struct·member·`A<T>.a'·of·type·`A<T>'·causes·a·cycle·in·the·struct·layout | 42 | ····<string>//·CS0523:·Struct·member·`A<T>.a'·of·type·`A<T>'·causes·a·cycle·in·the·struct·layout |
| 34 | //·Line:·6 | 43 | //·Line:·6 |
| 35 | struct·A<T> | 44 | struct·A<T> |
| 36 | { | 45 | { |
| 37 | » A<T>·a; | 46 | » A<T>·a; |
| 38 | }</string> | 47 | }</string> |
| 39 | ····<string>//·CS0523:·Struct·member·` | 48 | ····<string>//·CS0523:·Struct·member·`Foo.Handle'·of·type·`Handle<Foo>'·causes·a·cycle·in·the·struct·layout |
| 40 | //·Line:· | 49 | //·Line:·13 |
| 50 | //·NOTE:·Not·detected·by·csc·only·by·runtime·loader | ||
| 51 | using·System; | ||
| 41 | struct·S<T> | ||
| 42 | { | ||
| 43 | » S<int>·s; | ||
| 44 | }</string> | ||
| 45 | ····<string>//·CS0523:·Struct·member·`S<T>.s'·of·type·`S<T[]>'·causes·a·cycle·in·the·struct·layout | ||
| 46 | //·Line:·6 | ||
| 47 | struct· | 52 | struct·Handle<T> |
| 48 | { | 53 | { |
| 54 | » public·IntPtr·Value; | ||
| 49 | » static·S<T[]>·s; | ||
| 50 | }</string> | ||
| 51 | ····<string>//·CS0523:·Struct·member·`B.a'·of·type·`A'·causes·a·cycle·in·the·struct·layout | ||
| 52 | //·Line:·9 | ||
| 53 | struct·A·{ | ||
| 54 | » B·b; | ||
| 55 | } | ||
| 56 | struct·B·{ | ||
| 57 | » A·a; | ||
| 58 | } | 55 | } |
| 59 | 56 | struct·Foo | |
| 57 | { | ||
| 58 | » public·readonly·Handle<Foo>·Handle; | ||
| 59 | }</string> | ||
| 60 | ··</Examples> | 60 | ··</Examples> |
| 61 | </ErrorDocumentation> | 61 | </ErrorDocumentation> |
| Offset 2, 40 lines modified | Offset 2, 40 lines modified | ||
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0524</ErrorName> | 3 | ··<ErrorName>CS0524</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0524:·Interfaces·cannot·declare·classes,·structs,·interfaces,·delegates,·or·enumerations | 5 | ····<string>//·CS0524:·Interfaces·cannot·declare·classes,·structs,·interfaces,·delegates,·or·enumerations |
| 6 | //·Line:·5 | 6 | //·Line:·5 |
| 7 | interface·Interface·{ | 7 | interface·Interface·{ |
| 8 | ········interface·I·{} | ||
| 8 | ········public·class·C·{ | ||
| 9 | ········} | ||
| 10 | }</string> | 9 | }</string> |
| 11 | ····<string>//·CS0524:·Interfaces·cannot·declare·classes,·structs,·interfaces,·delegates,·or·enumerations | 10 | ····<string>//·CS0524:·Interfaces·cannot·declare·classes,·structs,·interfaces,·delegates,·or·enumerations |
| 12 | //·Line:· | 11 | //·Line:·5 |
| 13 | interface·Interface·{ | 12 | interface·Interface·{ |
| 13 | ········delegate·void·D·(); | ||
| 14 | ········enum·E·{ | ||
| 15 | ············White, | ||
| 16 | ············Black | ||
| 17 | ········} | ||
| 18 | }</string> | 14 | }</string> |
| 19 | ····<string>//·CS0524:·Interfaces·cannot·declare·classes,·structs,·interfaces,·delegates,·or·enumerations | 15 | ····<string>//·CS0524:·Interfaces·cannot·declare·classes,·structs,·interfaces,·delegates,·or·enumerations |
| 20 | //·Line:·5 | 16 | //·Line:·5 |
| 21 | interface·Interface·{ | 17 | interface·Interface·{ |
| 22 | ········ | 18 | ········public·struct·Struct·{ |
| 19 | ········} | ||
| 23 | }</string> | 20 | }</string> |
| 24 | ····<string>//·CS0524:·Interfaces·cannot·declare·classes,·structs,·interfaces,·delegates,·or·enumerations | 21 | ····<string>//·CS0524:·Interfaces·cannot·declare·classes,·structs,·interfaces,·delegates,·or·enumerations |
| 25 | //·Line:· | 22 | //·Line:·4 |
| 26 | interface·Interface·{ | 23 | interface·Interface·{ |
| 27 | ········ | 24 | ········enum·E·{ |
| 25 | ············White, | ||
| 26 | ············Black | ||
| 27 | ········} | ||
| 28 | }</string> | 28 | }</string> |
| 29 | ····<string>//·CS0524:·Interfaces·cannot·declare·classes,·structs,·interfaces,·delegates,·or·enumerations | 29 | ····<string>//·CS0524:·Interfaces·cannot·declare·classes,·structs,·interfaces,·delegates,·or·enumerations |
| 30 | //·Line:·5 | 30 | //·Line:·5 |
| 31 | interface·Interface·{ | 31 | interface·Interface·{ |
| 32 | ········public· | 32 | ········public·class·C·{ |
| 33 | ········} | 33 | ········} |
| 34 | }</string> | 34 | }</string> |
| 35 | ··</Examples> | 35 | ··</Examples> |
| 36 | </ErrorDocumentation> | 36 | </ErrorDocumentation> |
| Offset 1, 20 lines modified | Offset 1, 20 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0525</ErrorName> | 3 | ··<ErrorName>CS0525</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0525:·Interfaces·cannot·contain·fields·or·constants | 5 | ····<string>//·CS0525:·Interfaces·cannot·contain·fields·or·constants |
| 6 | //·Line:· | 6 | //·Line:·6 |
| 7 | interface·Interface | 7 | interface·Interface |
| 8 | { | 8 | {· |
| 9 | 9 | » bool·value·=·false; | |
| 10 | }</string> | 10 | }</string> |
| 11 | ····<string>//·CS0525:·Interfaces·cannot·contain·fields·or·constants | 11 | ····<string>//·CS0525:·Interfaces·cannot·contain·fields·or·constants |
| 12 | //·Line:· | 12 | //·Line:·9 |
| 13 | interface·Interface | 13 | interface·Interface |
| 14 | { | 14 | { |
| 15 | 15 | ····const·bool·value·=·false; | |
| 16 | }</string> | 16 | }</string> |
| 17 | ··</Examples> | 17 | ··</Examples> |
| 18 | </ErrorDocumentation> | 18 | </ErrorDocumentation> |
| Offset 1, 21 lines modified | Offset 1, 21 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0527</ErrorName> | 3 | ··<ErrorName>CS0527</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0527:·Type·`X'·in·interface·list·is·not·an·interface | ||
| 6 | //·Line:·6 | ||
| 7 | class·X·{ | ||
| 8 | } | ||
| 9 | interface·A·:·X·{ | ||
| 10 | }</string> | ||
| 5 | ····<string>//·CS0527:·Type·`B'·in·interface·list·is·not·an·interface | 11 | ····<string>//·CS0527:·Type·`B'·in·interface·list·is·not·an·interface |
| 6 | //·Line:·4 | 12 | //·Line:·4 |
| 7 | struct·A·:·B·{ | 13 | struct·A·:·B·{ |
| 8 | } | 14 | } |
| 9 | struct·B·:·A·{ | 15 | struct·B·:·A·{ |
| 10 | }</string> | 16 | }</string> |
| 11 | ····<string>//·CS0527:·Type·`X'·in·interface·list·is·not·an·interface | ||
| 12 | //·Line:·6 | ||
| 13 | class·X·{ | ||
| 14 | } | ||
| 15 | interface·A·:·X·{ | ||
| 16 | }</string> | ||
| 17 | ··</Examples> | 17 | ··</Examples> |
| 18 | </ErrorDocumentation> | 18 | </ErrorDocumentation> |
| Offset 1, 23 lines modified | Offset 1, 23 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0528</ErrorName> | 3 | ··<ErrorName>CS0528</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0528:·`System.IComparable'·is·already·listed·in·interface·list | ||
| 6 | //·Line:·6 | ||
| 7 | using·System; | ||
| 8 | public·interface·IX:·IComparable,·IComparable·{ | ||
| 9 | ····int·CompareTo·(object·obj); | ||
| 10 | }</string> | ||
| 5 | ····<string>//·CS0528:··`A'·is·already·listed·in·interface·list | 11 | ····<string>//·CS0528:··`A'·is·already·listed·in·interface·list |
| 6 | //·Line:·6 | 12 | //·Line:·6 |
| 7 | interface·A·{ | 13 | interface·A·{ |
| 8 | ········void·stuff·(); | 14 | ········void·stuff·(); |
| 9 | } | 15 | } |
| 10 | class·C:·A,·A·{ | 16 | class·C:·A,·A·{ |
| 11 | ········public·void·stuff·()·{} | 17 | ········public·void·stuff·()·{} |
| 12 | ········static·void·Main()·{} | 18 | ········static·void·Main()·{} |
| 13 | }</string> | 19 | }</string> |
| 14 | ····<string>//·CS0528:·`System.IComparable'·is·already·listed·in·interface·list | ||
| 15 | //·Line:·6 | ||
| 16 | using·System; | ||
| 17 | public·interface·IX:·IComparable,·IComparable·{ | ||
| 18 | ····int·CompareTo·(object·obj); | ||
| 19 | }</string> | ||
| 20 | ··</Examples> | 20 | ··</Examples> |
| 21 | </ErrorDocumentation> | 21 | </ErrorDocumentation> |
| Offset 1, 26 lines modified | Offset 1, 26 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0531</ErrorName> | 3 | ··<ErrorName>CS0531</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0531:·`Interface.Foo()':·interface·members·cannot·have·a·definition | ||
| 6 | //·Line:·5 | ||
| 7 | public·interface·Interface·{ | ||
| 8 | ········void·Foo·()·{ | ||
| 9 | ········} | ||
| 10 | }</string> | ||
| 11 | ····<string>//·CS0531:·`I.P':·interface·members·cannot·have·a·definition | 5 | ····<string>//·CS0531:·`I.P':·interface·members·cannot·have·a·definition |
| 12 | //·Line:·6 | 6 | //·Line:·6 |
| 13 | interface·I | 7 | interface·I |
| 14 | { | 8 | { |
| 15 | » int·P·=>·1; | 9 | » int·P·=>·1; |
| 16 | }</string> | 10 | }</string> |
| 17 | ····<string>//·CS0531:·`Interface.P.get':·interface·members·cannot·have·a·definition | 11 | ····<string>//·CS0531:·`Interface.P.get':·interface·members·cannot·have·a·definition |
| 18 | //·Line: | 12 | //·Line: |
| 19 | public·interface·Interface·{········ | 13 | public·interface·Interface·{········ |
| 20 | » int·P·{·get·{}·} | 14 | » int·P·{·get·{}·} |
| 21 | }</string> | 15 | }</string> |
| 16 | ····<string>//·CS0531:·`Interface.Foo()':·interface·members·cannot·have·a·definition | ||
| 17 | //·Line:·5 | ||
| 18 | public·interface·Interface·{ | ||
| 19 | ········void·Foo·()·{ | ||
| 20 | ········} | ||
| 21 | }</string> | ||
| 22 | ··</Examples> | 22 | ··</Examples> |
| 23 | </ErrorDocumentation> | 23 | </ErrorDocumentation> |
| Offset 1, 35 lines modified | Offset 1, 11 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0533</ErrorName> | 3 | ··<ErrorName>CS0533</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0533:·`DerivedClass.Foo'·hides·inherited·abstract·member·`BaseClass.Foo()' | ||
| 6 | //·Line:·11 | ||
| 7 | abstract·public·class·BaseClass | ||
| 8 | { | ||
| 9 | » abstract·protected·void·Foo·(); | ||
| 10 | } | ||
| 11 | abstract·class·DerivedClass:·BaseClass | ||
| 12 | { | ||
| 13 | » public·new·int·Foo; | ||
| 14 | }</string> | ||
| 15 | ····<string>//·CS0533:·`B.MyEvent'·hides·inherited·abstract·member·`A.MyEvent' | ||
| 16 | //·Line:·11 | ||
| 17 | using·System; | ||
| 18 | abstract·class·A·{ | ||
| 19 | » public·abstract·event·EventHandler·MyEvent; | ||
| 20 | } | ||
| 21 | class·B·:·A·{ | ||
| 22 | » public·event·EventHandler·MyEvent; | ||
| 23 | }</string> | ||
| 24 | ····<string>//·CS0533:·`MyAbstract.Initialize()'·hides·inherited·abstract·member·`MyAbstractBase.Initialize()' | 5 | ····<string>//·CS0533:·`MyAbstract.Initialize()'·hides·inherited·abstract·member·`MyAbstractBase.Initialize()' |
| 25 | //·Line:·10 | 6 | //·Line:·10 |
| 26 | public·abstract·class·MyAbstractBase | 7 | public·abstract·class·MyAbstractBase |
| 27 | { | 8 | { |
| 28 | ····public·abstract·void·Initialize(); | 9 | ····public·abstract·void·Initialize(); |
| 29 | } | 10 | } |
| Offset 42, 32 lines modified | Offset 18, 56 lines modified | ||
| 42 | public·class·Program | 18 | public·class·Program |
| 43 | { | 19 | { |
| 44 | ····public·static·void·Main(string[]·args) | 20 | ····public·static·void·Main(string[]·args) |
| 45 | ····{ | 21 | ····{ |
| 46 | ····} | 22 | ····} |
| 47 | }</string> | 23 | }</string> |
| 24 | ····<string>//·CS0533:·`DerivedClass.Foo()'·hides·inherited·abstract·member·`BaseClass.Foo()' | ||
| 25 | //·Line:·9 | ||
| 26 | abstract·public·class·BaseClass·{ | ||
| 27 | ········abstract·protected·void·Foo·(); | ||
| 28 | } | ||
| 29 | abstract·class·DerivedClass:·BaseClass·{ | ||
| 30 | ········public·new·void·Foo·()·{} | ||
| 31 | » » public·static·void·Main·()·{} | ||
| 32 | }</string> | ||
| 33 | ····<string>//·CS0533:·`B.MyEvent'·hides·inherited·abstract·member·`A.MyEvent' | ||
| 34 | //·Line:·11 | ||
| 35 | using·System; | ||
| 36 | abstract·class·A·{ | ||
| 37 | » public·abstract·event·EventHandler·MyEvent; | ||
| 38 | } | ||
| 39 | class·B·:·A·{ | ||
| 40 | » public·event·EventHandler·MyEvent; | ||
| 41 | }</string> | ||
| 48 | ····<string>//·CS0533:·`B.MyEvent'·hides·inherited·abstract·member·`A.MyEvent' | 42 | ····<string>//·CS0533:·`B.MyEvent'·hides·inherited·abstract·member·`A.MyEvent' |
| 49 | //·Line:·11 | 43 | //·Line:·11 |
| 50 | using·System; | 44 | using·System; |
| 51 | abstract·class·A·{ | 45 | abstract·class·A·{ |
| 52 | » public·abstract·event·EventHandler·MyEvent; | 46 | » public·abstract·event·EventHandler·MyEvent; |
| 53 | } | 47 | } |
| 54 | class·B·:·A·{ | 48 | class·B·:·A·{ |
| 55 | » public·new·event·EventHandler·MyEvent; | 49 | » public·new·event·EventHandler·MyEvent; |
| 56 | }</string> | 50 | }</string> |
| 57 | ····<string>//·CS0533:·`DerivedClass.Foo | 51 | ····<string>//·CS0533:·`DerivedClass.Foo'·hides·inherited·abstract·member·`BaseClass.Foo()' |
| 58 | //·Line:· | 52 | //·Line:·11 |
| 59 | abstract·public·class·BaseClass | 53 | abstract·public·class·BaseClass |
| 54 | { | ||
| 60 | 55 | » abstract·protected·void·Foo·(); | |
| 61 | } | 56 | } |
| 62 | abstract·class·DerivedClass:·BaseClass | 57 | abstract·class·DerivedClass:·BaseClass |
| 63 | ········public·new·void·Foo·()·{} | ||
| 64 | 58 | { | |
| 59 | » public·new·int·Foo; | ||
| 65 | }</string> | 60 | }</string> |
| 66 | ··</Examples> | 61 | ··</Examples> |
| 67 | </ErrorDocumentation> | 62 | </ErrorDocumentation> |
| Offset 1, 20 lines modified | Offset 1, 30 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0534</ErrorName> | 3 | ··<ErrorName>CS0534</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0534:·` | 5 | ····<string>//·CS0534:·`MyTestExtended'·does·not·implement·inherited·abstract·member·`MyTestAbstract.GetName()' |
| 6 | //·Line:· | 6 | //·Line:·6 |
| 7 | //·Compiler·options:·-r:CS0534-4-lib.dll | ||
| 7 | abstract·class·X·{ | ||
| 8 | » public·abstract·void·myAbstract·(); | ||
| 9 | 8 | using·System; | |
| 9 | public·class·MyTestExtended·:·MyTestAbstract | ||
| 10 | { | ||
| 11 | » public·MyTestExtended()·:·base() | ||
| 12 | » { | ||
| 13 | » } | ||
| 10 | class·Y·:·X·{ | ||
| 11 | static·void·Main· | 14 | » public·static·void·Main(string[]·args) |
| 15 | » { | ||
| 16 | » » Console.WriteLine("Calling·PrintName"); | ||
| 17 | » » MyTestExtended·test·=·new·MyTestExtended(); | ||
| 18 | » » test.PrintName(); | ||
| 19 | » » Console.WriteLine("Out·of·PrintName"); | ||
| 20 | » } | ||
| 21 | » | ||
| 12 | }</string> | 22 | }</string> |
| 13 | ····<string>//·CS0534:·`C1'·does·not·implement·inherited·abstract·member·`A.M(int)' | 23 | ····<string>//·CS0534:·`C1'·does·not·implement·inherited·abstract·member·`A.M(int)' |
| 14 | //·Line:·16 | 24 | //·Line:·16 |
| 15 | public·abstract·class·A | 25 | public·abstract·class·A |
| 16 | { | 26 | { |
| 17 | » public·abstract·void·M·(int·i); | 27 | » public·abstract·void·M·(int·i); |
| Offset 26, 48 lines modified | Offset 36, 14 lines modified | ||
| 26 | » { | 36 | » { |
| 27 | » } | 37 | » } |
| 28 | } | 38 | } |
| 29 | internal·class·C1·:·A | 39 | internal·class·C1·:·A |
| 30 | { | 40 | { |
| 31 | }</string> | 41 | }</string> |
| 32 | ····<string>//·CS0534:·`C'·does·not·implement·inherited·abstract·member·`B.Foo()' | ||
| 33 | //·Line:·16 | ||
| 34 | class·A | ||
| 35 | { | ||
| 36 | » public·virtual·void·Foo·() | ||
| 37 | » { | ||
| 38 | » } | ||
| 39 | } | ||
| 40 | abstract·class·B·:·A | ||
| 41 | { | ||
| 42 | » public·abstract·override·void·Foo·(); | ||
| 43 | } | ||
| 44 | class·C·:·B | ||
| 45 | { | ||
| 46 | }</string> | ||
| 47 | ····<string>//·CS0534:·`C'·does·not·implement·inherited·abstract·member·`B.Foo(string)' | ||
| 48 | //·Line:·13 | ||
| 49 | public·abstract·class·A | ||
| 50 | { | ||
| 51 | » public·abstract·int·Foo·(string·s); | ||
| 52 | } | ||
| 53 | public·abstract·class·B·:·A | ||
| 54 | { | ||
| 55 | » public·abstract·override·int·Foo·(string·s); | ||
| 56 | } | ||
| 57 | public·class·C·:·B | ||
| 58 | { | ||
| 59 | }</string> | ||
| 60 | ····<string>//·CS0534:·`Foo'·does·not·implement·inherited·abstract·member·`SomeAbstract.SomeProperty.get' | 42 | ····<string>//·CS0534:·`Foo'·does·not·implement·inherited·abstract·member·`SomeAbstract.SomeProperty.get' |
| 61 | //·Line:·13 | 43 | //·Line:·13 |
| 62 | public·class·SomeProperty | 44 | public·class·SomeProperty |
| 63 | { | 45 | { |
| 64 | } | 46 | } |
| Offset 76, 68 lines modified | Offset 52, 85 lines modified | ||
| 76 | » public·abstract·SomeProperty·SomeProperty·{·get;·} | 52 | » public·abstract·SomeProperty·SomeProperty·{·get;·} |
| 77 | } | 53 | } |
| 78 | public·class·Foo·:·SomeAbstract | 54 | public·class·Foo·:·SomeAbstract |
| 79 | { | 55 | { |
| 80 | » public·static·SomeProperty·SomeProperty·{·get·{·return·null;·}·} | 56 | » public·static·SomeProperty·SomeProperty·{·get·{·return·null;·}·} |
| 81 | }</string> | 57 | }</string> |
| 82 | ····<string>//·CS0534:·` | 58 | ····<string>//·CS0534:·`C'·does·not·implement·inherited·abstract·member·`B.Foo()' |
| 83 | //·Line:· | 59 | //·Line:·16 |
| 84 | //·Compiler·options:·-r:CS0534-6-lib.dll | ||
| 60 | class·A | ||
| 61 | { | ||
| 62 | » public·virtual·void·Foo·() | ||
| 63 | » { | ||
| 64 | » } | ||
| 65 | } | ||
| 66 | abstract·class·B·:·A | ||
| 67 | { | ||
| 68 | » public·abstract·override·void·Foo·(); | ||
| 69 | } | ||
| 85 | class· | 70 | class·C·:·B |
| 86 | { | 71 | { |
| 87 | }</string> | 72 | }</string> |
| 88 | ····<string>//·CS0534:·`B'·does·not·implement·inherited·abstract·member·`A<int>.set_Prop(int)' | 73 | ····<string>//·CS0534:·`B'·does·not·implement·inherited·abstract·member·`A<int>.set_Prop(int)' |
| 89 | //·Line:·13 | 74 | //·Line:·13 |
| 90 | abstract·class·A<T> | 75 | abstract·class·A<T> |
| 91 | { | 76 | { |
| 92 | » public·abstract·T·Prop·{ | ||
| 93 | » » set; | ||
| 94 | » } | ||
| 95 | » public·abstract·void·set_Prop·(int·value); | 77 | » public·abstract·void·set_Prop·(int·value); |
| 78 | » public·virtual·T·Prop·{ | ||
| 79 | » » set·{·} | ||
| 80 | » } | ||
| 96 | } | 81 | } |
| 97 | class·B·:·A<int> | 82 | class·B·:·A<int> |
| 98 | { | 83 | { |
| Max diff block lines reached; 2301/5091 bytes (45.20%) of diff not shown. | |||
| Offset 1, 94 lines modified | Offset 1, 95 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0535</ErrorName> | 3 | ··<ErrorName>CS0535</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0535:·`Test'·does·not·implement·interface·member·`X.Hola(ref·string)' | ||
| 6 | //·Line:·9 | ||
| 7 | using·System; | ||
| 8 | interface·X·{ | ||
| 9 | » void·Hola·(ref·string·name); | ||
| 10 | } | ||
| 11 | class·Test·:·X·{ | ||
| 12 | » static·void·Main·() | ||
| 13 | » { | ||
| 14 | » } | ||
| 15 | » public·void·Hola·(out·string·name) | ||
| 16 | » { | ||
| 17 | » » name·=·null; | ||
| 18 | » } | ||
| 19 | }</string> | ||
| 20 | ····<string>//·CS0535:·`Class'·does·not·implement·interface·member·`Interface.Method()' | ||
| 21 | //·Line:·8 | ||
| 22 | interface·Interface·{ | ||
| 23 | ········void·Method(); | ||
| 24 | } | ||
| 25 | class·Class:·Interface·{ | ||
| 26 | }</string> | ||
| 27 | ····<string>//·CS0535:·`ServerProperty'·does·not·implement·interface·member·`IServerProperty.SetValue(string,·uint)' | ||
| 28 | //·Line:·10 | ||
| 29 | public·interface·IServerProperty | ||
| 30 | { | ||
| 31 | » int[]·GetChildren·(uint·timeout); | ||
| 32 | » void·SetValue·(string·value,·uint·timeout); | ||
| 33 | } | ||
| 34 | public·class·ServerProperty·:·IServerProperty | ||
| 35 | { | ||
| 36 | » public·int[]·GetChildren·(uint·timeout) | ||
| 37 | » { | ||
| 38 | » » return·null; | ||
| 39 | » } | ||
| 40 | }</string> | ||
| 41 | ····<string>//·CS0535:·`CC'·does·not·implement·interface·member·`IA. | 5 | ····<string>//·CS0535:·`CC'·does·not·implement·interface·member·`IA.Coordinate.set' |
| 42 | //·Line:·33 | 6 | //·Line:·33 |
| 43 | using·System; | 7 | using·System; |
| 44 | public·interface·IA | 8 | public·interface·IA |
| 45 | { | 9 | { |
| 46 | » object· | 10 | » object·Coordinate·{ |
| 47 | » » get; | 11 | » » get; |
| 48 | » » set; | 12 | » » set; |
| 49 | » } | 13 | » } |
| 50 | } | 14 | } |
| 51 | public·abstract·class·CA·:·IA | 15 | public·abstract·class·CA·:·IA |
| 52 | { | 16 | { |
| 53 | » public·abstract·object· | 17 | » public·abstract·object·Coordinate·{ |
| 54 | » » get; | 18 | » » get; |
| 55 | » » set; | 19 | » » set; |
| 56 | » } | 20 | » } |
| 57 | } | 21 | } |
| 58 | public··partial·class·CB·:·CA | 22 | public··partial·class·CB·:·CA |
| 59 | { | 23 | { |
| 60 | » public·override·object· | 24 | » public·override·object·Coordinate·{ |
| 61 | » » get·{ | 25 | » » get·{ |
| 62 | » » » throw·new·NotImplementedException·(); | 26 | » » » throw·new·NotImplementedException·(); |
| 63 | » » } | 27 | » » } |
| 64 | » » set·{ | 28 | » » set·{ |
| 65 | » » } | 29 | » » } |
| 66 | » } | 30 | » } |
| 67 | } | 31 | } |
| 68 | public·class·CC·:·CB,·IA | 32 | public·class·CC·:·CB,·IA |
| 69 | { | 33 | { |
| 70 | » public·new·object· | 34 | » public·new·object·Coordinate·{ |
| 71 | » » get·{ | 35 | » » get·{ |
| 72 | » » » throw·new·NotImplementedException·(); | 36 | » » » throw·new·NotImplementedException·(); |
| 73 | » » } | 37 | » » } |
| 74 | » } | 38 | » } |
| 75 | }</string> | 39 | }</string> |
| 40 | ····<string>//·CS0535:·`ServerProperty'·does·not·implement·interface·member·`IServerProperty.SetValue(string,·uint)' | ||
| 41 | //·Line:·10 | ||
| 42 | public·interface·IServerProperty | ||
| 43 | { | ||
| 44 | » int[]·GetChildren·(uint·timeout); | ||
| 45 | » void·SetValue·(string·value,·uint·timeout); | ||
| 46 | } | ||
| 47 | public·class·ServerProperty·:·IServerProperty | ||
| 48 | { | ||
| 49 | » public·int[]·GetChildren·(uint·timeout) | ||
| 50 | » { | ||
| 51 | » » return·null; | ||
| 52 | » } | ||
| 53 | }</string> | ||
| 54 | ····<string>//·CS0535:·`Stack'·does·not·implement·interface·member·`IStack.Insert(int,·object)' | ||
| 55 | //·Line:·11 | ||
| 56 | · | ||
| 57 | using·System;· | ||
| 58 | · | ||
| 59 | public·interface·IStack·{ | ||
| 60 | » void·Insert·(int·index,·object·value); | ||
| 61 | » object·this·[int·index]·{·set;·} | ||
| 62 | } | ||
| 63 | public·class·Stack·:·IStack·{ | ||
| 64 | » object·IStack.this·[int·index]·{ | ||
| 65 | » » set·{} | ||
| 66 | » } | ||
| 67 | } | ||
| 68 | public·class·D·{ | ||
| 69 | » static·void·Main·()·{} | ||
| 70 | }</string> | ||
| 71 | ····<string>//·CS0535:·`Class'·does·not·implement·interface·member·`Interface.Method()' | ||
| 72 | //·Line:·8 | ||
| 73 | interface·Interface·{ | ||
| 74 | ········void·Method(); | ||
| Max diff block lines reached; 1917/4856 bytes (39.48%) of diff not shown. | |||
| Offset 9, 37 lines modified | Offset 9, 14 lines modified | ||
| 9 | } | 9 | } |
| 10 | class·B·{ | 10 | class·B·{ |
| 11 | » void·A.B·()·{} | 11 | » void·A.B·()·{} |
| 12 | » static·void·Main·()·{} | 12 | » static·void·Main·()·{} |
| 13 | }</string> | 13 | }</string> |
| 14 | ····<string>//·CS0540:·`N.Nested.C.I.P':·containing·type·does·not·implement·interface·`N.Nested.I' | ||
| 15 | //·Line:·17 | ||
| 16 | using·System; | ||
| 17 | namespace·N | ||
| 18 | { | ||
| 19 | » class·Nested | ||
| 20 | » { | ||
| 21 | » » public·interface·I | ||
| 22 | » » { | ||
| 23 | » » » bool·P·{·get;·} | ||
| 24 | » » } | ||
| 25 | » » public·class·C | ||
| 26 | » » { | ||
| 27 | » » » bool·I.P | ||
| 28 | » » » { | ||
| 29 | » » » » get·{·return·true;·} | ||
| 30 | » » » } | ||
| 31 | » » } | ||
| 32 | » } | ||
| 33 | }</string> | ||
| 34 | ····<string>//·CS0540:·`Foo.ISomeProp.SomeProperty':·containing·type·does·not·implement·interface·`ISomeProp' | 14 | ····<string>//·CS0540:·`Foo.ISomeProp.SomeProperty':·containing·type·does·not·implement·interface·`ISomeProp' |
| 35 | //·Line:·18 | 15 | //·Line:·18 |
| 36 | public·class·SomeProperty | 16 | public·class·SomeProperty |
| 37 | { | 17 | { |
| 38 | } | 18 | } |
| Offset 59, 9 lines modified | Offset 36, 32 lines modified | ||
| 59 | » public·override·SomeProperty·SomeProperty·{·get·{·return·null;·}·} | 36 | » public·override·SomeProperty·SomeProperty·{·get·{·return·null;·}·} |
| 60 | » public·static·void·Main·() | 37 | » public·static·void·Main·() |
| 61 | » { | 38 | » { |
| 62 | » } | 39 | » } |
| 63 | }</string> | 40 | }</string> |
| 41 | ····<string>//·CS0540:·`N.Nested.C.I.P':·containing·type·does·not·implement·interface·`N.Nested.I' | ||
| 42 | //·Line:·17 | ||
| 43 | using·System; | ||
| 44 | namespace·N | ||
| 45 | { | ||
| 46 | » class·Nested | ||
| 47 | » { | ||
| 48 | » » public·interface·I | ||
| 49 | » » { | ||
| 50 | » » » bool·P·{·get;·} | ||
| 51 | » » } | ||
| 52 | » » public·class·C | ||
| 53 | » » { | ||
| 54 | » » » bool·I.P | ||
| 55 | » » » { | ||
| 56 | » » » » get·{·return·true;·} | ||
| 57 | » » » } | ||
| 58 | » » } | ||
| 59 | » } | ||
| 60 | }</string> | ||
| 64 | ··</Examples> | 61 | ··</Examples> |
| 65 | </ErrorDocumentation> | 62 | </ErrorDocumentation> |
| Offset 1, 40 lines modified | Offset 1, 40 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0542</ErrorName> | 3 | ··<ErrorName>CS0542</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0542:·` | 5 | ····<string>//·CS0542:·`X.X':·member·names·cannot·be·the·same·as·their·enclosing·type |
| 6 | //·Line:·4 | ||
| 7 | class·X·{ | ||
| 8 | » int·X; | ||
| 9 | }</string> | ||
| 10 | ····<string>//·CS0542:·`C.C<T>()':·member·names·cannot·be·the·same·as·their·enclosing·type | ||
| 6 | //·Line:·6 | 11 | //·Line:·6 |
| 7 | 12 | class·C | |
| 8 | { | 13 | { |
| 9 | » public·cl | 14 | » public·static·void·C<T>·() |
| 10 | » { | 15 | » { |
| 11 | » } | 16 | » } |
| 12 | }</string> | 17 | }</string> |
| 13 | ····<string>//·CS0542:·`Item.this[int]':·member·names·cannot·be·the·same·as·their·enclosing·type | 18 | ····<string>//·CS0542:·`Item.this[int]':·member·names·cannot·be·the·same·as·their·enclosing·type |
| 14 | //·Line:·6 | 19 | //·Line:·6 |
| 15 | class·Item | 20 | class·Item |
| 16 | { | 21 | { |
| 17 | » public·int·this[int·i]·{ | 22 | » public·int·this[int·i]·{ |
| 18 | » » set·{} | 23 | » » set·{} |
| 19 | » } | 24 | » } |
| 20 | }</string> | 25 | }</string> |
| 21 | ····<string>//·CS0542:·` | 26 | ····<string>//·CS0542:·`Same.Same':·member·names·cannot·be·the·same·as·their·enclosing·type |
| 22 | //·Line:·4 | ||
| 23 | class·X·{ | ||
| 24 | » int·X; | ||
| 25 | }</string> | ||
| 26 | ····<string>//·CS0542:·`C.C<T>()':·member·names·cannot·be·the·same·as·their·enclosing·type | ||
| 27 | //·Line:·6 | 27 | //·Line:·6 |
| 28 | class· | 28 | public·class·Same |
| 29 | { | 29 | { |
| 30 | » public· | 30 | » public·class·Same |
| 31 | » { | 31 | » { |
| 32 | » } | 32 | » } |
| 33 | }</string> | 33 | }</string> |
| 34 | ····<string>//·CS0542:·`Program.Program(object)':·member·names·cannot·be·the·same·as·their·enclosing·type | 34 | ····<string>//·CS0542:·`Program.Program(object)':·member·names·cannot·be·the·same·as·their·enclosing·type |
| 35 | //·Line:·6 | 35 | //·Line:·6 |
| 36 | class·Program | 36 | class·Program |
| Offset 1, 11 lines modified | Offset 1, 21 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0545</ErrorName> | 3 | ··<ErrorName>CS0545</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0545:·`DerivedClass.Value.get':·cannot·override·because·`BaseClass.Value'·does·not·have·an·overridable·get·accessor | ||
| 6 | //·Line:·9 | ||
| 7 | abstract·class·BaseClass·{ | ||
| 8 | ········protected·abstract·int·Value·{·set;·} | ||
| 9 | } | ||
| 10 | class·DerivedClass:·BaseClass·{ | ||
| 11 | ········protected·override·int·Value·{·get·{}·set·{}·} | ||
| 12 | }</string> | ||
| 5 | ····<string>//·CS0545:·`B.Prop':·cannot·override·because·`A.Prop'·does·not·have·accessible·get·accessor | 13 | ····<string>//·CS0545:·`B.Prop':·cannot·override·because·`A.Prop'·does·not·have·accessible·get·accessor |
| 6 | //·Line:·13 | 14 | //·Line:·13 |
| 7 | public·class·A | 15 | public·class·A |
| 8 | { | 16 | { |
| 9 | » public·virtual·string·Prop·{ | 17 | » public·virtual·string·Prop·{ |
| 10 | » » set;·private·get; | 18 | » » set;·private·get; |
| Offset 14, 19 lines modified | Offset 24, 9 lines modified | ||
| 14 | · | 24 | · |
| 15 | public·class·B·:·A | 25 | public·class·B·:·A |
| 16 | { | 26 | { |
| 17 | » sealed·override·public·string·Prop·{ | 27 | » sealed·override·public·string·Prop·{ |
| 18 | » » set·{·} | 28 | » » set·{·} |
| 19 | » }··· | 29 | » }··· |
| 20 | }</string> | 30 | }</string> |
| 21 | ····<string>//·CS0545:·`DerivedClass.Value.get':·cannot·override·because·`BaseClass.Value'·does·not·have·an·overridable·get·accessor | ||
| 22 | //·Line:·9 | ||
| 23 | abstract·class·BaseClass·{ | ||
| 24 | ········protected·abstract·int·Value·{·set;·} | ||
| 25 | } | ||
| 26 | class·DerivedClass:·BaseClass·{ | ||
| 27 | ········protected·override·int·Value·{·get·{}·set·{}·} | ||
| 28 | }</string> | ||
| 29 | ··</Examples> | 31 | ··</Examples> |
| 30 | </ErrorDocumentation> | 32 | </ErrorDocumentation> |
| Offset 1, 18 lines modified | Offset 1, 18 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0547</ErrorName> | 3 | ··<ErrorName>CS0547</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0547:·`PropertyInterface.Value':·property·or·indexer·cannot·have·void·type | ||
| 6 | //·Line:·5 | ||
| 7 | interface·PropertyInterface·{ | ||
| 8 | ········void·Value·{·get;·} | ||
| 9 | }</string> | ||
| 10 | ····<string>//·CS0547:·`PropertyClass.Value':·property·or·indexer·cannot·have·void·type | 5 | ····<string>//·CS0547:·`PropertyClass.Value':·property·or·indexer·cannot·have·void·type |
| 11 | //·Line:·5 | 6 | //·Line:·5 |
| 12 | class·PropertyClass·{ | 7 | class·PropertyClass·{ |
| 13 | ········public·void·Value·{·get·{}·} | 8 | ········public·void·Value·{·get·{}·} |
| 14 | }</string> | 9 | }</string> |
| 10 | ····<string>//·CS0547:·`PropertyInterface.Value':·property·or·indexer·cannot·have·void·type | ||
| 11 | //·Line:·5 | ||
| 12 | interface·PropertyInterface·{ | ||
| 13 | ········void·Value·{·get;·} | ||
| 14 | }</string> | ||
| 15 | ··</Examples> | 15 | ··</Examples> |
| 16 | </ErrorDocumentation> | 16 | </ErrorDocumentation> |
| Offset 1, 31 lines modified | Offset 1, 31 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0548</ErrorName> | 3 | ··<ErrorName>CS0548</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0548:·`IndexerClass.this[bool]':·property·or·indexer·must·have·at·least·one·accessor | ||
| 6 | //·Line:·5 | ||
| 7 | class·IndexerClass·{ | ||
| 8 | ········public·int·this·[bool·b]·{·} | ||
| 9 | }</string> | ||
| 5 | ····<string>//·CS0548:·`PropertyInterface.Value':·property·or·indexer·must·have·at·least·one·accessor | 10 | ····<string>//·CS0548:·`PropertyInterface.Value':·property·or·indexer·must·have·at·least·one·accessor |
| 6 | //·Line:·5 | 11 | //·Line:·5 |
| 7 | interface·PropertyInterface·{ | 12 | interface·PropertyInterface·{ |
| 8 | ····int·Value·{} | 13 | ····int·Value·{} |
| 9 | }</string> | 14 | }</string> |
| 15 | ····<string>//·CS0548:·`PropertyInterface.this[long]':·property·or·indexer·must·have·at·least·one·accessor | ||
| 16 | //·Line:·5 | ||
| 17 | interface·PropertyInterface·{····· | ||
| 18 | » int·this·[long·l]·{} | ||
| 19 | }</string> | ||
| 10 | ····<string>//·CS0548:·`PropertyClass.Value':·property·or·indexer·must·have·at·least·one·accessor | 20 | ····<string>//·CS0548:·`PropertyClass.Value':·property·or·indexer·must·have·at·least·one·accessor |
| 11 | //·Line:·5 | 21 | //·Line:·5 |
| 12 | class·PropertyClass·{ | 22 | class·PropertyClass·{ |
| 13 | ········public·int·Value·{ | 23 | ········public·int·Value·{ |
| 14 | ········} | 24 | ········} |
| 15 | }</string> | 25 | }</string> |
| 16 | ····<string>//·CS0548:·`IndexerClass.this[bool]':·property·or·indexer·must·have·at·least·one·accessor | ||
| 17 | //·Line:·5 | ||
| 18 | class·IndexerClass·{ | ||
| 19 | ········public·int·this·[bool·b]·{·} | ||
| 20 | }</string> | ||
| 21 | ····<string>//·CS0548:·`PropertyInterface.this[long]':·property·or·indexer·must·have·at·least·one·accessor | ||
| 22 | //·Line:·5 | ||
| 23 | interface·PropertyInterface·{····· | ||
| 24 | » int·this·[long·l]·{} | ||
| 25 | }</string> | ||
| 26 | ··</Examples> | 26 | ··</Examples> |
| 27 | </ErrorDocumentation> | 27 | </ErrorDocumentation> |
| Offset 1, 37 lines modified | Offset 1, 37 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0550</ErrorName> | 3 | ··<ErrorName>CS0550</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0550:·`PropertyClass.PropertyInterface. | 5 | ····<string>//·CS0550:·`PropertyClass.PropertyInterface.this[bool].get'·is·an·accessor·not·found·in·interface·member·`PropertyInterface.this[bool]' |
| 6 | //·Line:·13 | 6 | //·Line:·13 |
| 7 | using·System.Runtime.CompilerServices; | ||
| 7 | interface·PropertyInterface·{ | 8 | interface·PropertyInterface·{ |
| 8 | ········int· | 9 | ········int·this[bool·b]·{·set;·} |
| 9 | } | 10 | } |
| 10 | public·class·PropertyClass:·PropertyInterface·{ | 11 | public·class·PropertyClass:·PropertyInterface·{ |
| 11 | ········int·PropertyInterface. | 12 | ········int·PropertyInterface.this·[bool·b]{· |
| 12 | ················get·{· | 13 | ················get·{· |
| 13 | ························return·0; | 14 | ························return·0; |
| 14 | ················}· | 15 | ················}· |
| 15 | ················set·{·} | 16 | ················set·{·} |
| 16 | ········} | 17 | ········} |
| 17 | }</string> | 18 | }</string> |
| 18 | ····<string>//·CS0550:·`PropertyClass.PropertyInterface. | 19 | ····<string>//·CS0550:·`PropertyClass.PropertyInterface.Value.set'·is·an·accessor·not·found·in·interface·member·`PropertyInterface.Value' |
| 19 | //·Line:·13 | 20 | //·Line:·13 |
| 20 | using·System.Runtime.CompilerServices; | ||
| 21 | interface·PropertyInterface·{ | 21 | interface·PropertyInterface·{ |
| 22 | ········int· | 22 | ········int·Value·{·get;·} |
| 23 | } | 23 | } |
| 24 | public·class·PropertyClass:·PropertyInterface·{ | 24 | public·class·PropertyClass:·PropertyInterface·{ |
| 25 | ········int·PropertyInterface. | 25 | ········int·PropertyInterface.Value·{· |
| 26 | ················get·{· | 26 | ················get·{· |
| 27 | ························return·0; | 27 | ························return·0; |
| 28 | ················}· | 28 | ················}· |
| 29 | ················set·{·} | 29 | ················set·{·} |
| 30 | ········} | 30 | ········} |
| 31 | }</string> | 31 | }</string> |
| 32 | ··</Examples> | 32 | ··</Examples> |
| Offset 1, 25 lines modified | Offset 1, 11 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0551</ErrorName> | 3 | ··<ErrorName>CS0551</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0551:·Explicit·interface·implementation·`PropertyClass.PropertyInterface.Value'·is·missing·accessor·`PropertyInterface.Value.set' | ||
| 6 | //·Line:·9 | ||
| 7 | interface·PropertyInterface·{ | ||
| 8 | ········int·Value·{·get;·set;·} | ||
| 9 | } | ||
| 10 | public·class·PropertyClass:·PropertyInterface·{ | ||
| 11 | ········int·PropertyInterface.Value·{· | ||
| 12 | ················get·{· | ||
| 13 | ························return·0; | ||
| 14 | ················}· | ||
| 15 | ········} | ||
| 16 | }</string> | ||
| 17 | ····<string>//·CS0551:·Explicit·interface·implementation·`PropertyClass.PropertyInterface.this[bool]'·is·missing·accessor·`PropertyInterface.this[bool].get' | 5 | ····<string>//·CS0551:·Explicit·interface·implementation·`PropertyClass.PropertyInterface.this[bool]'·is·missing·accessor·`PropertyInterface.this[bool].get' |
| 18 | //·Line:·11 | 6 | //·Line:·11 |
| 19 | interface·PropertyInterface | 7 | interface·PropertyInterface |
| 20 | { | 8 | { |
| 21 | » int·this·[bool·b]·{·get;·set;·} | 9 | » int·this·[bool·b]·{·get;·set;·} |
| 22 | } | 10 | } |
| Offset 28, 9 lines modified | Offset 14, 23 lines modified | ||
| 28 | { | 14 | { |
| 29 | » int·PropertyInterface.this·[bool·b]·{· | 15 | » int·PropertyInterface.this·[bool·b]·{· |
| 30 | » » set·{· | 16 | » » set·{· |
| 31 | » » » return·0; | 17 | » » » return·0; |
| 32 | » » }· | 18 | » » }· |
| 33 | » } | 19 | » } |
| 34 | }</string> | 20 | }</string> |
| 21 | ····<string>//·CS0551:·Explicit·interface·implementation·`PropertyClass.PropertyInterface.Value'·is·missing·accessor·`PropertyInterface.Value.set' | ||
| 22 | //·Line:·9 | ||
| 23 | interface·PropertyInterface·{ | ||
| 24 | ········int·Value·{·get;·set;·} | ||
| 25 | } | ||
| 26 | public·class·PropertyClass:·PropertyInterface·{ | ||
| 27 | ········int·PropertyInterface.Value·{· | ||
| 28 | ················get·{· | ||
| 29 | ························return·0; | ||
| 30 | ················}· | ||
| 31 | ········} | ||
| 32 | }</string> | ||
| 35 | ··</Examples> | 33 | ··</Examples> |
| 36 | </ErrorDocumentation> | 34 | </ErrorDocumentation> |
| Offset 1, 26 lines modified | Offset 1, 26 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0555</ErrorName> | 3 | ··<ErrorName>CS0555</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0555:·User-defined·operator·cannot·take·an·object·of·the·enclosing·type·and·convert·to·an·object·of·the·enclosing·type | 5 | ····<string>//·CS0555:·User-defined·operator·cannot·take·an·object·of·the·enclosing·type·and·convert·to·an·object·of·the·enclosing·type |
| 6 | //·Line:·6 | ||
| 7 | struct·S | ||
| 8 | { | ||
| 9 | » public·static·implicit·operator·S·(S?·s) | ||
| 10 | » { | ||
| 11 | » » return·new·S·(); | ||
| 12 | » } | ||
| 13 | }</string> | ||
| 14 | ····<string>//·CS0555:·User-defined·operator·cannot·take·an·object·of·the·enclosing·type·and·convert·to·an·object·of·the·enclosing·type | ||
| 15 | //·Line·:·8 | 6 | //·Line·:·8 |
| 16 | class·Blah·{ | 7 | class·Blah·{ |
| 17 | » public·static·void·Main·()·{} | 8 | » public·static·void·Main·()·{} |
| 18 | » public·static·implicit·operator·Blah·(Blah·i)·{} | 9 | » public·static·implicit·operator·Blah·(Blah·i)·{} |
| 19 | }</string> | 10 | }</string> |
| 11 | ····<string>//·CS0555:·User-defined·operator·cannot·take·an·object·of·the·enclosing·type·and·convert·to·an·object·of·the·enclosing·type | ||
| 12 | //·Line:·6 | ||
| 13 | struct·S | ||
| 14 | { | ||
| 15 | » public·static·implicit·operator·S·(S?·s) | ||
| 16 | » { | ||
| 17 | » » return·new·S·(); | ||
| 18 | » } | ||
| 19 | }</string> | ||
| 20 | ··</Examples> | 20 | ··</Examples> |
| 21 | </ErrorDocumentation> | 21 | </ErrorDocumentation> |
| Offset 10, 14 lines modified | Offset 10, 34 lines modified | ||
| 10 | ················return·true; | 10 | ················return·true; |
| 11 | ········} | 11 | ········} |
| 12 | ········ | 12 | ········ |
| 13 | ········public·static·implicit·operator·bool·(SampleClass·value)·{ | 13 | ········public·static·implicit·operator·bool·(SampleClass·value)·{ |
| 14 | ················return·true; | 14 | ················return·true; |
| 15 | ········} | 15 | ········} |
| 16 | }</string> | 16 | }</string> |
| 17 | ····<string>//·CS0557:·Duplicate·user-defined·conversion·in·type·`Foo' | ||
| 18 | //·Line:·5 | ||
| 19 | public·enum·Bar | ||
| 20 | { | ||
| 21 | » ABar | ||
| 22 | } | ||
| 23 | public·class·Foo | ||
| 24 | { | ||
| 25 | » public·static·explicit·operator·Foo(Bar·the_bar) | ||
| 26 | » { | ||
| 27 | » » return·new·Foo(); | ||
| 28 | » } | ||
| 29 | » public·static·implicit·operator·Foo(Bar·the_bar) | ||
| 30 | » { | ||
| 31 | » » return·new·Foo(); | ||
| 32 | » } | ||
| 33 | }</string> | ||
| 17 | ····<string>//·CS0557:·Duplicate·user-defined·conversion·in·type·`C' | 34 | ····<string>//·CS0557:·Duplicate·user-defined·conversion·in·type·`C' |
| 18 | //·Line:·9 | 35 | //·Line:·9 |
| 19 | class·C·{ | 36 | class·C·{ |
| 20 | » » public·static·bool·operator·!=·(C·a,·C·b)· | 37 | » » public·static·bool·operator·!=·(C·a,·C·b)· |
| 21 | » » { | 38 | » » { |
| 22 | » » » return·true; | 39 | » » » return·true; |
| 23 | » » } | 40 | » » } |
| Offset 36, 29 lines modified | Offset 56, 9 lines modified | ||
| 36 | class·X·{ | 56 | class·X·{ |
| 37 | » static·void·Main·() | 57 | » static·void·Main·() |
| 38 | » { | 58 | » { |
| 39 | » } | 59 | » } |
| 40 | }</string> | 60 | }</string> |
| 41 | ····<string>//·CS0557:·Duplicate·user-defined·conversion·in·type·`Foo' | ||
| 42 | //·Line:·5 | ||
| 43 | public·enum·Bar | ||
| 44 | { | ||
| 45 | » ABar | ||
| 46 | } | ||
| 47 | public·class·Foo | ||
| 48 | { | ||
| 49 | » public·static·explicit·operator·Foo(Bar·the_bar) | ||
| 50 | » { | ||
| 51 | » » return·new·Foo(); | ||
| 52 | » } | ||
| 53 | » public·static·implicit·operator·Foo(Bar·the_bar) | ||
| 54 | » { | ||
| 55 | » » return·new·Foo(); | ||
| 56 | » } | ||
| 57 | }</string> | ||
| 58 | ··</Examples> | 61 | ··</Examples> |
| 59 | </ErrorDocumentation> | 62 | </ErrorDocumentation> |
| Offset 2, 21 lines modified | Offset 2, 21 lines modified | ||
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0564</ErrorName> | 3 | ··<ErrorName>CS0564</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0564:·Overloaded·shift·operator·must·have·the·type·of·the·first·operand·be·the·containing·type,·and·the·type·of·the·second·operand·must·be·int | 5 | ····<string>//·CS0564:·Overloaded·shift·operator·must·have·the·type·of·the·first·operand·be·the·containing·type,·and·the·type·of·the·second·operand·must·be·int |
| 6 | //·Line:·5 | 6 | //·Line:·5 |
| 7 | class·SampleClass·{ | 7 | class·SampleClass·{ |
| 8 | ········public·static·int·operator·<<·( | 8 | ········public·static·int·operator·<<·(object·value,·int·count)·{ |
| 9 | ················return·0; | 9 | ················return·0; |
| 10 | ········} | 10 | ········} |
| 11 | }</string> | 11 | }</string> |
| 12 | ····<string>//·CS0564:·Overloaded·shift·operator·must·have·the·type·of·the·first·operand·be·the·containing·type,·and·the·type·of·the·second·operand·must·be·int | 12 | ····<string>//·CS0564:·Overloaded·shift·operator·must·have·the·type·of·the·first·operand·be·the·containing·type,·and·the·type·of·the·second·operand·must·be·int |
| 13 | //·Line:·5 | 13 | //·Line:·5 |
| 14 | class·SampleClass·{ | 14 | class·SampleClass·{ |
| 15 | ········public·static·int·operator·<<·( | 15 | ········public·static·int·operator·<<·(SampleClass·value,·SampleClass·count)·{ |
| 16 | ················return·0; | 16 | ················return·0; |
| 17 | ········} | 17 | ········} |
| 18 | }</string> | 18 | }</string> |
| 19 | ··</Examples> | 19 | ··</Examples> |
| 20 | </ErrorDocumentation> | 20 | </ErrorDocumentation> |
| Offset 1, 24 lines modified | Offset 1, 24 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0568</ErrorName> | 3 | ··<ErrorName>CS0568</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0568:·Structs·cannot·contain·explicit·parameterless·constructors | 5 | ····<string>//·CS0568:·Structs·cannot·contain·explicit·parameterless·constructors |
| 6 | //·Line:· | 6 | //·Line:·5 |
| 7 | struct·Sample·{ | ||
| 7 | struct·S | ||
| 8 | { | ||
| 9 | » public·S·() | 8 | » public·Sample·() |
| 9 | » » :·this·() | ||
| 10 | » { | 10 | » { |
| 11 | » } | 11 | » } |
| 12 | }</string> | 12 | }</string> |
| 13 | ····<string>//·CS0568:·Structs·cannot·contain·explicit·parameterless·constructors | 13 | ····<string>//·CS0568:·Structs·cannot·contain·explicit·parameterless·constructors |
| 14 | //·Line:· | 14 | //·Line:·6 |
| 15 | struct·S | 15 | struct·S |
| 16 | { | ||
| 16 | » public·S | 17 | » public·S·() |
| 17 | » » :·this·() | ||
| 18 | » { | 18 | » { |
| 19 | » } | 19 | » } |
| 20 | }</string> | 20 | }</string> |
| 21 | ··</Examples> | 21 | ··</Examples> |
| 22 | </ErrorDocumentation> | 22 | </ErrorDocumentation> |
| Offset 1, 19 lines modified | Offset 1, 46 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0571</ErrorName> | 3 | ··<ErrorName>CS0571</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0571:·` | 5 | ····<string>//·CS0571:·`Test.C0.foo.get':·cannot·explicitly·call·operator·or·accessor |
| 6 | //·Line:· | 6 | //·Line:·12 |
| 7 | //·Compiler·options:·-r:CS0571-3-lib.dll | ||
| 8 | //·Testcase·for·bug·#59980 | ||
| 7 | using· | 9 | using·Test; |
| 8 | public·class·EntryPoint·{ | 10 | public·class·EntryPoint·{ |
| 11 | ········public·static·int·Main·()·{ | ||
| 12 | » » C1·foo·=·new·C2·(); | ||
| 13 | ················return·foo.get_foo·(); | ||
| 14 | ········} | ||
| 15 | }</string> | ||
| 16 | ····<string>//·CS0571:·`IFoo.this[int].get':·cannot·explicitly·call·operator·or·accessor | ||
| 17 | //·Line:·11 | ||
| 18 | //·Compiler·options:·-r:CS0571-6-lib.dll | ||
| 19 | using·System; | ||
| 20 | public·class·Test | ||
| 21 | { | ||
| 22 | » void·TestMethod·(IFoo·i) | ||
| 23 | » { | ||
| 24 | » » i.get_Jaj·(1); | ||
| 25 | » } | ||
| 26 | }</string> | ||
| 27 | ····<string>//·CS0571:·`C2.this[int].set':·cannot·explicitly·call·operator·or·accessor | ||
| 28 | //·Line:·8 | ||
| 29 | //·Compiler·options:·-r:CS0571-5-lib.dll | ||
| 30 | class·MainClass·{ | ||
| 9 | ········public·static·void·Main | 31 | ········public·static·void·Main()·{ |
| 10 | ················Type·type·=·typeof(string); | ||
| 11 | ················C | 32 | ················C2·c·=·new·C2·(); |
| 33 | ················c.set_Item(1,·2); | ||
| 12 | ········} | 34 | ········} |
| 13 | }</string> | 35 | }</string> |
| 14 | ····<string>//·CS0571:·`C.Prop.set':·cannot·explicitly·call·operator·or·accessor | 36 | ····<string>//·CS0571:·`C.Prop.set':·cannot·explicitly·call·operator·or·accessor |
| 15 | //·Line:·14 | 37 | //·Line:·14 |
| 16 | class·C | 38 | class·C |
| 17 | { | 39 | { |
| Offset 38, 38 lines modified | Offset 65, 14 lines modified | ||
| 38 | ················} | 65 | ················} |
| 39 | ········} | 66 | ········} |
| 40 | ········ | 67 | ········ |
| 41 | ········public·static·void·Main()·{ | 68 | ········public·static·void·Main()·{ |
| 42 | ················int·value·=·get_Value(); | 69 | ················int·value·=·get_Value(); |
| 43 | ········} | 70 | ········} |
| 44 | }</string> | 71 | }</string> |
| 45 | ····<string>//·CS0571:·`Test.C0.foo.get':·cannot·explicitly·call·operator·or·accessor | ||
| 46 | //·Line:·12 | ||
| 47 | //·Compiler·options:·-r:CS0571-3-lib.dll | ||
| 48 | //·Testcase·for·bug·#59980 | ||
| 49 | using·Test; | ||
| 50 | public·class·EntryPoint·{ | ||
| 51 | ········public·static·int·Main·()·{ | ||
| 52 | » » C1·foo·=·new·C2·(); | ||
| 53 | ················return·foo.get_foo·(); | ||
| 54 | ········} | ||
| 55 | }</string> | ||
| 56 | ····<string>//·CS0571:·`C2.this[int].set':·cannot·explicitly·call·operator·or·accessor | ||
| 57 | //·Line:·8 | ||
| 58 | //·Compiler·options:·-r:CS0571-5-lib.dll | ||
| 59 | class·MainClass·{ | ||
| 60 | ········public·static·void·Main()·{ | ||
| 61 | ················C2·c·=·new·C2·(); | ||
| 62 | ················c.set_Item(1,·2); | ||
| 63 | ········} | ||
| 64 | }</string> | ||
| 65 | ····<string>//·CS0571:·`MainClass.this[int,·bool,·string].get':·cannot·explicitly·call·operator·or·accessor | 72 | ····<string>//·CS0571:·`MainClass.this[int,·bool,·string].get':·cannot·explicitly·call·operator·or·accessor |
| 66 | //·Line:·15 | 73 | //·Line:·15 |
| 67 | using·System.Runtime.CompilerServices; | 74 | using·System.Runtime.CompilerServices; |
| 68 | class·MainClass·{ | 75 | class·MainClass·{ |
| 69 | » [IndexerName·("AA")] | 76 | » [IndexerName·("AA")] |
| Offset 79, 22 lines modified | Offset 82, 19 lines modified | ||
| 79 | » » } | 82 | » » } |
| 80 | » } | 83 | » } |
| 81 | » » | 84 | » » |
| 82 | » public·MainClass·()·{ | 85 | » public·MainClass·()·{ |
| 83 | » » int·i·=·get_AA·(2,·false,·"aaa"); | 86 | » » int·i·=·get_AA·(2,·false,·"aaa"); |
| 84 | » } | 87 | » } |
| 85 | }</string> | 88 | }</string> |
| 86 | ····<string>//·CS0571:·` | 89 | ····<string>//·CS0571:·`System.Reflection.MemberInfo.Name.get':·cannot·explicitly·call·operator·or·accessor |
| 87 | //·Line:· | 90 | //·Line:·8 |
| 88 | //·Compiler·options:·-r:CS0571-6-lib.dll | ||
| 89 | using·System; | 91 | using·System; |
| 92 | public·class·EntryPoint·{ | ||
| 93 | ········public·static·void·Main·()·{ | ||
| 94 | ················Type·type·=·typeof(string); | ||
| 95 | ················Console.WriteLine·(type.get_Name()); | ||
| 96 | ········} | ||
| 90 | public·class·Test | ||
| 91 | { | ||
| 92 | » void·TestMethod·(IFoo·i) | ||
| 93 | » { | ||
| 94 | » » i.get_Jaj·(1); | ||
| 95 | » } | ||
| 96 | }</string> | 97 | }</string> |
| 97 | ··</Examples> | 98 | ··</Examples> |
| 98 | </ErrorDocumentation> | 99 | </ErrorDocumentation> |
| Offset 12, 34 lines modified | Offset 12, 14 lines modified | ||
| 12 | » » base.meth·(true); | 12 | » » base.meth·(true); |
| 13 | » } | 13 | » } |
| 14 | } | 14 | } |
| 15 | abstract·class·test·{ | 15 | abstract·class·test·{ |
| 16 | » public·delegate·void·meth(·bool·b·)·; | 16 | » public·delegate·void·meth(·bool·b·)·; |
| 17 | }</string> | 17 | }</string> |
| 18 | ····<string>//·CS0572:·`Inner':·cannot·reference·a·type·through·an·expression.·Consider·using·`Outer.Inner'·instead | ||
| 19 | //·Line:·18 | ||
| 20 | public·class·Outer | ||
| 21 | { | ||
| 22 | » public·enum·Inner | ||
| 23 | » { | ||
| 24 | » » ONE, | ||
| 25 | » » TWO | ||
| 26 | » } | ||
| 27 | } | ||
| 28 | public·class·C | ||
| 29 | { | ||
| 30 | » public·static·bool·Test·() | ||
| 31 | » { | ||
| 32 | » » Outer·outer·=·null; | ||
| 33 | » » return·0·==·outer.Inner.ONE; | ||
| 34 | » } | ||
| 35 | }</string> | ||
| 36 | ····<string>//·CS0572:·`Foo':·cannot·reference·a·type·through·an·expression.·Consider·using·`Y.Foo'·instead | 18 | ····<string>//·CS0572:·`Foo':·cannot·reference·a·type·through·an·expression.·Consider·using·`Y.Foo'·instead |
| 37 | //·Line:·13 | 19 | //·Line:·13 |
| 38 | using·System; | 20 | using·System; |
| 39 | class·X | 21 | class·X |
| 40 | { | 22 | { |
| 41 | » private·static·Y·y; | 23 | » private·static·Y·y; |
| Offset 57, 9 lines modified | Offset 37, 29 lines modified | ||
| 57 | » public·enum·Foo·{·Hello,·World·}; | 37 | » public·enum·Foo·{·Hello,·World·}; |
| 58 | » public·void·Test·(Foo·foo) | 38 | » public·void·Test·(Foo·foo) |
| 59 | » { | 39 | » { |
| 60 | » » Console.WriteLine·(foo); | 40 | » » Console.WriteLine·(foo); |
| 61 | » } | 41 | » } |
| 62 | }</string> | 42 | }</string> |
| 43 | ····<string>//·CS0572:·`Inner':·cannot·reference·a·type·through·an·expression.·Consider·using·`Outer.Inner'·instead | ||
| 44 | //·Line:·18 | ||
| 45 | public·class·Outer | ||
| 46 | { | ||
| 47 | » public·enum·Inner | ||
| 48 | » { | ||
| 49 | » » ONE, | ||
| 50 | » » TWO | ||
| 51 | » } | ||
| 52 | } | ||
| 53 | public·class·C | ||
| 54 | { | ||
| 55 | » public·static·bool·Test·() | ||
| 56 | » { | ||
| 57 | » » Outer·outer·=·null; | ||
| 58 | » » return·0·==·outer.Inner.ONE; | ||
| 59 | » } | ||
| 60 | }</string> | ||
| 63 | ··</Examples> | 61 | ··</Examples> |
| 64 | </ErrorDocumentation> | 62 | </ErrorDocumentation> |
| Offset 1, 29 lines modified | Offset 1, 29 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0573</ErrorName> | 3 | ··<ErrorName>CS0573</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0573:·'S':·Structs·cannot·have·instance·property·or·field·initializers | 5 | ····<string>//·CS0573:·'S':·Structs·cannot·have·instance·property·or·field·initializers |
| 6 | //·Line:· | 6 | //·Line:·6 |
| 7 | using·System; | ||
| 8 | struct·S | 7 | struct·S |
| 9 | { | 8 | { |
| 10 | » | 9 | » int·v·=·0; |
| 11 | }</string> | 10 | }</string> |
| 12 | ····<string>//·CS0573:·'S':·Structs·cannot·have·instance·property·or·field·initializers | 11 | ····<string>//·CS0573:·'S':·Structs·cannot·have·instance·property·or·field·initializers |
| 13 | //·Line:· | 12 | //·Line:·8 |
| 13 | using·System; | ||
| 14 | struct·S | 14 | struct·S |
| 15 | { | 15 | { |
| 16 | » | 16 | » event·Action·E·=·null; |
| 17 | }</string> | 17 | }</string> |
| 18 | ····<string>//·CS0573:·'S':·Structs·cannot·have·instance·property·or·field·initializers | 18 | ····<string>//·CS0573:·'S':·Structs·cannot·have·instance·property·or·field·initializers |
| 19 | //·Line:·6 | 19 | //·Line:·6 |
| 20 | struct·S | 20 | struct·S |
| 21 | { | 21 | { |
| 22 | » int· | 22 | » public·int·Prop·{·get;·set;·}·=·3; |
| 23 | }</string> | 23 | }</string> |
| 24 | ··</Examples> | 24 | ··</Examples> |
| 25 | </ErrorDocumentation> | 25 | </ErrorDocumentation> |
| Offset 13, 14 lines modified | Offset 13, 29 lines modified | ||
| 13 | » { | 13 | » { |
| 14 | » » public·static·void·Main·() | 14 | » » public·static·void·Main·() |
| 15 | » » { | 15 | » » { |
| 16 | » » » A.GG·(); | 16 | » » » A.GG·(); |
| 17 | » » } | 17 | » » } |
| 18 | » } | 18 | » } |
| 19 | }</string> | 19 | }</string> |
| 20 | ····<string>//·CS0576:·Namespace·`Top'·contains·a·definition·with·same·name·as·alias·`T' | ||
| 21 | //·Line:·12 | ||
| 22 | namespace·Top | ||
| 23 | { | ||
| 24 | » using·T·=·System.Exception; | ||
| 25 | » namespace·T | ||
| 26 | » { | ||
| 27 | » » class·C | ||
| 28 | » » { | ||
| 29 | » » » T·t; | ||
| 30 | » » } | ||
| 31 | » } | ||
| 32 | }</string> | ||
| 20 | ····<string>//·CS0576:·Namespace·`global::'·contains·a·definition·with·same·name·as·alias·`S' | 33 | ····<string>//·CS0576:·Namespace·`global::'·contains·a·definition·with·same·name·as·alias·`S' |
| 21 | //·Line:·14 | 34 | //·Line:·14 |
| 22 | using·S·=·System; | 35 | using·S·=·System; |
| 23 | public·class·S | 36 | public·class·S |
| 24 | { | 37 | { |
| Offset 29, 24 lines modified | Offset 44, 9 lines modified | ||
| 29 | public·class·Test | 44 | public·class·Test |
| 30 | { | 45 | { |
| 31 | » public·static·void·Main() | 46 | » public·static·void·Main() |
| 32 | » { | 47 | » { |
| 33 | » » S·s; | 48 | » » S·s; |
| 34 | » } | 49 | » } |
| 35 | }</string> | 50 | }</string> |
| 36 | ····<string>//·CS0576:·Namespace·`Top'·contains·a·definition·with·same·name·as·alias·`T' | ||
| 37 | //·Line:·12 | ||
| 38 | namespace·Top | ||
| 39 | { | ||
| 40 | » using·T·=·System.Exception; | ||
| 41 | » namespace·T | ||
| 42 | » { | ||
| 43 | » » class·C | ||
| 44 | » » { | ||
| 45 | » » » T·t; | ||
| 46 | » » } | ||
| 47 | » } | ||
| 48 | }</string> | ||
| 49 | ··</Examples> | 51 | ··</Examples> |
| 50 | </ErrorDocumentation> | 52 | </ErrorDocumentation> |
| Offset 1, 22 lines modified | Offset 1, 19 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0577</ErrorName> | 3 | ··<ErrorName>CS0577</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0577:·Conditional·not·valid·on·`MainClass. | 5 | ····<string>//·CS0577:·Conditional·not·valid·on·`MainClass.~MainClass()'·because·it·is·a·constructor,·destructor,·operator·or·explicit·interface·implementation |
| 6 | //·Line:· | 6 | //·Line:·5 |
| 7 | interface·I | ||
| 8 | { | ||
| 9 | ····void·F·(); | ||
| 10 | } | ||
| 11 | class·MainClass | 7 | class·MainClass·{ |
| 12 | ········[System.Diagnostics.Conditional("DEBUG")] | 8 | ········[System.Diagnostics.Conditional("DEBUG")] |
| 13 | ········ | 9 | ········~MainClass·()·{} |
| 10 | ········public·static·void·Main·()·{} | ||
| 14 | }</string> | 11 | }</string> |
| 15 | ····<string>//·CS0577:·Conditional·not·valid·on·`MainClass.implicit·operator·MainClass(C)'·because·it·is·a·constructor,·destructor,·operator·or·explicit·interface·implementation | 12 | ····<string>//·CS0577:·Conditional·not·valid·on·`MainClass.implicit·operator·MainClass(C)'·because·it·is·a·constructor,·destructor,·operator·or·explicit·interface·implementation |
| 16 | //·Line:·8 | 13 | //·Line:·8 |
| 17 | class·C·{} | 14 | class·C·{} |
| 18 | class·MainClass·{ | 15 | class·MainClass·{ |
| Offset 24, 18 lines modified | Offset 21, 21 lines modified | ||
| 24 | ········public·static·implicit·operator·MainClass·(C·m) | 21 | ········public·static·implicit·operator·MainClass·(C·m) |
| 25 | ········{ | 22 | ········{ |
| 26 | ············return·null; | 23 | ············return·null; |
| 27 | ········} | 24 | ········} |
| 28 | » » public·static·void·Main·()·{} | 25 | » » public·static·void·Main·()·{} |
| 29 | }</string> | 26 | }</string> |
| 30 | ····<string>//·CS0577:·Conditional·not·valid·on·`MainClass. | 27 | ····<string>//·CS0577:·Conditional·not·valid·on·`MainClass.I.F()'·because·it·is·a·constructor,·destructor,·operator·or·explicit·interface·implementation |
| 31 | //·Line:· | 28 | //·Line:·10 |
| 32 | class·MainClass·{ | ||
| 33 | ········[System.Diagnostics.Conditional("DEBUG")] | ||
| 34 | 29 | interface·I | |
| 30 | { | ||
| 31 | ····void·F·(); | ||
| 32 | } | ||
| 35 | 33 | class·MainClass:·I·{ | |
| 34 | ········[System.Diagnostics.Conditional("DEBUG")] | ||
| 35 | ········void·I.F·()·{} | ||
| 36 | }</string> | 36 | }</string> |
| 37 | ··</Examples> | 37 | ··</Examples> |
| 38 | </ErrorDocumentation> | 38 | </ErrorDocumentation> |
| Offset 1, 52 lines modified | Offset 1, 66 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0579</ErrorName> | 3 | ··<ErrorName>CS0579</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0579:·The·attribute·`System.ObsoleteAttribute'·cannot·be·applied·multiple·times | 5 | ····<string>//·CS0579:·The·attribute·`System.ObsoleteAttribute'·cannot·be·applied·multiple·times |
| 6 | //·Line:· | 6 | //·Line·:·8 |
| 7 | using·System; | ||
| 8 | class·MainClass·{ | ||
| 9 | ········[Obsolete] | ||
| 10 | ········[Obsolete] | ||
| 11 | ········static·void·Main() | ||
| 12 | ········{ | ||
| 13 | ········} | ||
| 14 | }</string> | ||
| 15 | ····<string>//·CS0579:·The·attribute·`TestAttributesCollecting.A'·cannot·be·applied·multiple·times | ||
| 16 | //·Line:·19 | ||
| 7 | using·System; | 17 | using·System; |
| 8 | part | 18 | namespace·TestAttributesCollecting |
| 9 | { | 19 | { |
| 10 | » [Obsolete·("A")] | ||
| 11 | » | 20 | » class·A·:·Attribute |
| 21 | » { | ||
| 22 | » » public·A·(int·a) | ||
| 23 | » » { | ||
| 24 | » » } | ||
| 25 | » } | ||
| 26 | » partial·class·G1<[A·(1)]T> | ||
| 27 | » { | ||
| 28 | » } | ||
| 29 | » partial·class·G1<[A·(2)]T> | ||
| 12 | » { | 30 | » { |
| 13 | » } | 31 | » } |
| 14 | » | ||
| 15 | » [Obsolete·("A")] | ||
| 16 | » partial·void·PartialMethod·();» | ||
| 17 | }</string> | 32 | }</string> |
| 18 | ····<string>//·CS0579:·The·attribute·`System. | 33 | ····<string>//·CS0579:·The·attribute·`System.ObsoleteAttribute'·cannot·be·applied·multiple·times |
| 19 | //·Line:·7 | 34 | //·Line·:·17 |
| 20 | using·System | 35 | using·System; |
| 21 | [module:·DebuggableAttribute·(false,·false)]· | ||
| 22 | [ | 36 | [AttributeUsage·(AttributeTargets.ReturnValue)] |
| 37 | public·class·ReturnAttribute·:·Attribute | ||
| 38 | { | ||
| 39 | ········public·ReturnAttribute·() | ||
| 40 | ········{ | ||
| 41 | » } | ||
| 42 | } | ||
| 23 | class·MainClass·{ | 43 | class·MainClass·{ |
| 44 | ········[Obsolete] | ||
| 45 | ········[return:·Return] | ||
| 46 | ········[Obsolete] | ||
| 24 | ········static·void·Main() | 47 | ········static·void·Main() |
| 25 | ········{ | 48 | ········{ |
| 26 | ········} | 49 | ········} |
| 27 | }</string> | 50 | }</string> |
| 28 | ····<string>//·CS0579:·The·attribute·`System.CLSCompliantAttribute'·cannot·be·applied·multiple·times | ||
| 29 | //·Line·:·10 | ||
| 30 | using·System; | ||
| 31 | [assembly:CLSCompliant(true)] | ||
| 32 | namespace·DuplicateAttributes·{ | ||
| 33 | » [CLSCompliant(true)] | ||
| 34 | » [type:CLSCompliant(true)] | ||
| 35 | » public·class·ClassA·{} | ||
| 36 | }</string> | ||
| 37 | ····<string>//·CS0579:·The·attribute·`ConditionalAttributeTesting.SomeAttribute'·cannot·be·applied·multiple·times | 51 | ····<string>//·CS0579:·The·attribute·`ConditionalAttributeTesting.SomeAttribute'·cannot·be·applied·multiple·times |
| 38 | //·Line:·12 | 52 | //·Line:·12 |
| 39 | using·System; | 53 | using·System; |
| 40 | using·System.Diagnostics; | 54 | using·System.Diagnostics; |
| 41 | namespace·ConditionalAttributeTesting | 55 | namespace·ConditionalAttributeTesting |
| Offset 66, 68 lines modified | Offset 80, 55 lines modified | ||
| 66 | » { | 80 | » { |
| 67 | » » public·SomeAttribute·(string·someText) | 81 | » » public·SomeAttribute·(string·someText) |
| 68 | » » { | 82 | » » { |
| 69 | » » } | 83 | » » } |
| 70 | » } | 84 | » } |
| 71 | }</string> | 85 | }</string> |
| 72 | ····<string>//·CS0579:·The·attribute·`System.ObsoleteAttribute'·cannot·be·applied·multiple·times | 86 | ····<string>//·CS0579:·The·attribute·`System.ObsoleteAttribute'·cannot·be·applied·multiple·times |
| 73 | //·Line:·1 | 87 | //·Line:·14 |
| 74 | using·System; | 88 | using·System; |
| 75 | partial·class·C | 89 | partial·class·C |
| 76 | { | 90 | { |
| 77 | » [Obsolete·("A")] | 91 | » [Obsolete·("A")] |
| 78 | » partial·void·PartialMethod·(); | ||
| 79 | » [Obsolete·("A")] | ||
| 80 | » partial·void·PartialMethod·() | 92 | » partial·void·PartialMethod·() |
| 81 | » { | 93 | » { |
| 82 | » } | 94 | » } |
| 95 | » | ||
| 96 | » [Obsolete·("A")] | ||
| 97 | » partial·void·PartialMethod·();» | ||
| 83 | }</string> | 98 | }</string> |
| 84 | ····<string>//·CS0579:·The·attribute·` | 99 | ····<string>//·CS0579:·The·attribute·`System.Diagnostics.DebuggableAttribute'·cannot·be·applied·multiple·times |
| 85 | //·Line | 100 | //·Line:·7 |
| 101 | using·System.Diagnostics; | ||
| 86 | using·System; | ||
| 87 | using·System.Reflection; | ||
| 102 | [module:·DebuggableAttribute·(false,·false)]· | ||
| 103 | [module:·DebuggableAttribute·(false,·false)]· | ||
| 88 | [AttributeUsage·(AttributeTargets.ReturnValue)] | ||
| 89 | public·class·ReturnAttribute·:·Attribute | ||
| 90 | { | ||
| 91 | ········public·ReturnAttribute·() | ||
| 92 | ········{ | ||
| 93 | » } | ||
| 94 | } | ||
| 95 | public·class·Blah·{ | ||
| 96 | ········[return:·Return·()] | ||
| Max diff block lines reached; 3186/6478 bytes (49.18%) of diff not shown. | |||
| Offset 2, 21 lines modified | Offset 2, 21 lines modified | ||
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0590</ErrorName> | 3 | ··<ErrorName>CS0590</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0590:·User-defined·operators·cannot·return·void | 5 | ····<string>//·CS0590:·User-defined·operators·cannot·return·void |
| 6 | //·Line:·5 | 6 | //·Line:·5 |
| 7 | class·SampleClass·{ | 7 | class·SampleClass·{ |
| 8 | ········public·static·void·operator· | 8 | ········public·static·void·operator·<<·(SampleClass·value,·int·value2)·{ |
| 9 | ················return·n | 9 | ················return·null; |
| 10 | ········} | 10 | ········} |
| 11 | }</string> | 11 | }</string> |
| 12 | ····<string>//·CS0590:·User-defined·operators·cannot·return·void | 12 | ····<string>//·CS0590:·User-defined·operators·cannot·return·void |
| 13 | //·Line:·5 | 13 | //·Line:·5 |
| 14 | class·SampleClass·{ | 14 | class·SampleClass·{ |
| 15 | ········public·static·void·operator· | 15 | ········public·static·void·operator·-·(SampleClass·value)·{ |
| 16 | ················return·n | 16 | ················return·new·SampleClass(); |
| 17 | ········} | 17 | ········} |
| 18 | }</string> | 18 | }</string> |
| 19 | ··</Examples> | 19 | ··</Examples> |
| 20 | </ErrorDocumentation> | 20 | </ErrorDocumentation> |
| Offset 3, 18 lines modified | Offset 3, 18 lines modified | ||
| 3 | ··<ErrorName>CS0591</ErrorName> | 3 | ··<ErrorName>CS0591</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0591:·Invalid·value·for·argument·to·`System.Runtime.CompilerServices.MethodImplAttribute'·attribute | 5 | ····<string>//·CS0591:·Invalid·value·for·argument·to·`System.Runtime.CompilerServices.MethodImplAttribute'·attribute |
| 6 | //·Line:·8 | 6 | //·Line:·8 |
| 7 | using·System.Runtime.CompilerServices; | 7 | using·System.Runtime.CompilerServices; |
| 8 | class· | 8 | class·Test |
| 9 | { | 9 | { |
| 10 | » [MethodImpl((MethodImplOptions)255)] | ||
| 11 | » | 10 | » [MethodImplAttribute(445)] |
| 11 | » public·void·test·() | ||
| 12 | » { | 12 | » { |
| 13 | » } | 13 | » } |
| 14 | }</string> | 14 | }</string> |
| 15 | ····<string>//·CS0591:·Invalid·value·for·argument·to·`System.Runtime.InteropServices.DllImportAttribute'·attribute | 15 | ····<string>//·CS0591:·Invalid·value·for·argument·to·`System.Runtime.InteropServices.DllImportAttribute'·attribute |
| 16 | //·Line:·8 | 16 | //·Line:·8 |
| 17 | using·System.Runtime.InteropServices; | 17 | using·System.Runtime.InteropServices; |
| Offset 25, 35 lines modified | Offset 25, 35 lines modified | ||
| 25 | » extern·static·void·Blah·(); | 25 | » extern·static·void·Blah·(); |
| 26 | ····static·void·Main·(string·[]·args) | 26 | ····static·void·Main·(string·[]·args) |
| 27 | ····{ | 27 | ····{ |
| 28 | ····} | 28 | ····} |
| 29 | }</string> | 29 | }</string> |
| 30 | ····<string>//·CS0591:·Invalid·value·for·argument·to·`System.Runtime.CompilerServices.MethodImplAttribute'·attribute | ||
| 31 | //·Line:·8 | ||
| 32 | using·System.Runtime.CompilerServices; | ||
| 33 | class·Test | ||
| 34 | { | ||
| 35 | » [MethodImplAttribute(445)] | ||
| 36 | » public·void·test·() | ||
| 37 | » { | ||
| 38 | » } | ||
| 39 | }</string> | ||
| 40 | ····<string>//·CS0591:·Invalid·value·for·argument·to·`System.AttributeUsageAttribute'·attribute | 30 | ····<string>//·CS0591:·Invalid·value·for·argument·to·`System.AttributeUsageAttribute'·attribute |
| 41 | //·Line:·4 | 31 | //·Line:·4 |
| 42 | [System.AttributeUsage(0)] | 32 | [System.AttributeUsage(0)] |
| 43 | class·ClassMain·{ | 33 | class·ClassMain·{ |
| 44 | ···· | 34 | ···· |
| 45 | ········public·static·void·Main·()·{ | 35 | ········public·static·void·Main·()·{ |
| 46 | ········} | 36 | ········} |
| 47 | }</string> | 37 | }</string> |
| 38 | ····<string>//·CS0591:·Invalid·value·for·argument·to·`System.Runtime.CompilerServices.MethodImplAttribute'·attribute | ||
| 39 | //·Line:·8 | ||
| 40 | using·System.Runtime.CompilerServices; | ||
| 41 | class·Program | ||
| 42 | { | ||
| 43 | » [MethodImpl((MethodImplOptions)255)] | ||
| 44 | » void·Foo() | ||
| 45 | » { | ||
| 46 | » } | ||
| 47 | }</string> | ||
| 48 | ····<string>//·CS0591:·Invalid·value·for·argument·to·`System.Runtime.InteropServices.DllImportAttribute'·attribute | 48 | ····<string>//·CS0591:·Invalid·value·for·argument·to·`System.Runtime.InteropServices.DllImportAttribute'·attribute |
| 49 | //·Line:·8 | 49 | //·Line:·8 |
| 50 | using·System.Runtime.InteropServices; | 50 | using·System.Runtime.InteropServices; |
| 51 | using·System; | 51 | using·System; |
| 52 | class·X·{ | 52 | class·X·{ |
| Offset 1, 52 lines modified | Offset 1, 23 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0592</ErrorName> | 3 | ··<ErrorName>CS0592</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0592:·The·attribute·` | 5 | ····<string>//·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 |
| 6 | //·Line·:·8 | 6 | //·Line·:·8 |
| 7 | using·System; | 7 | using·System; |
| 8 | public·class·C | ||
| 8 | public·interface·ITest | ||
| 9 | { | ||
| 10 | » [MyAttribute] | ||
| 11 | » void·Method(); | ||
| 12 | } | ||
| 13 | [AttributeUsage·(AttributeTargets.Interface)] | ||
| 14 | public·class·MyAttributeAttribute·:·Attribute | ||
| 15 | { | 9 | { |
| 10 | ····[return:·Obsolete] | ||
| 11 | ····public·void·Test·(int·a) | ||
| 12 | ····{ | ||
| 13 | ····} | ||
| 14 | ····static·public·void·Main·()·{} | ||
| 16 | } | ||
| 17 | public·class·Foo·{ | ||
| 18 | ········public·static·void·Main·() | ||
| 19 | ········{ | ||
| 20 | ········} | ||
| 21 | }</string> | ||
| 22 | ····<string>//·CS0592:·The·attribute·`TestAttribute'·is·not·valid·on·this·declaration·type.·It·is·valid·on·`constructor'·declarations·only | ||
| 23 | //·Line:·5 | ||
| 24 | using·System; | ||
| 25 | [assembly:TestAttribute·()] | ||
| 26 | [AttributeUsage(AttributeTargets.Constructor)] | ||
| 27 | public·class·TestAttribute:·Attribute·{ | ||
| 28 | }</string> | ||
| 29 | ····<string>//·CS0592:·The·attribute·`TestAttribute'·is·not·valid·on·this·declaration·type.·It·is·valid·on·`constructor'·declarations·only | ||
| 30 | //·Line:·6 | ||
| 31 | using·System; | ||
| 32 | [TestAttribute·()] | ||
| 33 | delegate·void·D·(); | ||
| 34 | [AttributeUsage(AttributeTargets.Constructor)] | ||
| 35 | public·class·TestAttribute:·Attribute·{ | ||
| 36 | }</string> | 15 | }</string> |
| 37 | ····<string>//·CS0592:·The·attribute·`SimpleAttribute'·is·not·valid·on·this·declaration·type.·It·is·valid·on·`constructor'·declarations·only | 16 | ····<string>//·CS0592:·The·attribute·`SimpleAttribute'·is·not·valid·on·this·declaration·type.·It·is·valid·on·`constructor'·declarations·only |
| 38 | //·Line·:·22 | 17 | //·Line·:·22 |
| 39 | using·System; | 18 | using·System; |
| 40 | [AttributeUsage·(AttributeTargets.Constructor,·AllowMultiple·=·true)] | 19 | [AttributeUsage·(AttributeTargets.Constructor,·AllowMultiple·=·true)] |
| Offset 73, 32 lines modified | Offset 44, 30 lines modified | ||
| 73 | » }</string> | 44 | » }</string> |
| 74 | ····<string>//·CS0592:·The·attribute·`TestAttribute'·is·not·valid·on·this·declaration·type.·It·is·valid·on·`constructor'·declarations·only | 45 | ····<string>//·CS0592:·The·attribute·`TestAttribute'·is·not·valid·on·this·declaration·type.·It·is·valid·on·`constructor'·declarations·only |
| 75 | //·Line:·6 | 46 | //·Line:·6 |
| 76 | using·System; | 47 | using·System; |
| 77 | [TestAttribute·()] | 48 | [TestAttribute·()] |
| 49 | delegate·void·D·(); | ||
| 78 | enum·E·{ | ||
| 79 | } | ||
| 80 | [AttributeUsage(AttributeTargets.Constructor)] | 50 | [AttributeUsage(AttributeTargets.Constructor)] |
| 81 | public·class·TestAttribute:·Attribute·{ | 51 | public·class·TestAttribute:·Attribute·{ |
| 82 | }</string> | 52 | }</string> |
| 83 | ····<string>//·CS0592:·The·attribute·` | 53 | ····<string>//·CS0592:·The·attribute·`TestAttribute'·is·not·valid·on·this·declaration·type.·It·is·valid·on·`constructor'·declarations·only |
| 84 | //·Line | 54 | //·Line:·6 |
| 85 | using·System; | 55 | using·System; |
| 56 | [TestAttribute·()] | ||
| 57 | enum·E·{ | ||
| 58 | } | ||
| 59 | [AttributeUsage(AttributeTargets.Constructor)] | ||
| 60 | public·class·TestAttribute:·Attribute·{ | ||
| 86 | public·class·C | ||
| 87 | { | ||
| 88 | ····[return:·Obsolete] | ||
| 89 | ····public·void·Test·(int·a) | ||
| 90 | ····{ | ||
| 91 | ····} | ||
| 92 | ····static·public·void·Main·()·{} | ||
| 93 | }</string> | 61 | }</string> |
| 94 | ····<string>//·CS0592:·The·attribute·`SAttribute'·is·not·valid·on·this·declaration·type.·It·is·valid·on·`return'·declarations·only | 62 | ····<string>//·CS0592:·The·attribute·`SAttribute'·is·not·valid·on·this·declaration·type.·It·is·valid·on·`return'·declarations·only |
| 95 | //·Line·:·12 | 63 | //·Line·:·12 |
| 96 | using·System; | 64 | using·System; |
| 97 | [AttributeUsage·(AttributeTargets.ReturnValue)] | 65 | [AttributeUsage·(AttributeTargets.ReturnValue)] |
| Offset 108, 23 lines modified | Offset 77, 44 lines modified | ||
| 108 | { | 77 | { |
| 109 | ····int·Prop·{ | 78 | ····int·Prop·{ |
| 110 | ········[param:·S] | 79 | ········[param:·S] |
| 111 | ········set·{ | 80 | ········set·{ |
| 112 | ········} | 81 | ········} |
| 113 | ····} | 82 | ····} |
| 114 | }</string> | 83 | }</string> |
| 115 | ····<string>//·CS0592:·The·attribute·` | 84 | ····<string>//·CS0592:·The·attribute·`MyAttributeAttribute'·is·not·valid·on·this·declaration·type.·It·is·valid·on·`interface'·declarations·only |
| 116 | //·Line·:· | 85 | //·Line·:·8 |
| 117 | using·System | 86 | using·System; |
| 118 | [IndexerName("XXX")] | ||
| 119 | c | 87 | public·interface·ITest |
| 88 | { | ||
| 89 | » [MyAttribute] | ||
| 90 | » void·Method(); | ||
| 91 | } | ||
| 92 | [AttributeUsage·(AttributeTargets.Interface)] | ||
| 93 | public·class·MyAttributeAttribute·:·Attribute | ||
| 94 | { | ||
| 95 | } | ||
| 96 | public·class·Foo·{ | ||
| 120 | ········public·static·void·Main·() | 97 | ········public·static·void·Main·() |
| 121 | ········ | 98 | ········{ |
| Max diff block lines reached; 673/4964 bytes (13.56%) of diff not shown. | |||
| Offset 1, 38 lines modified | Offset 1, 38 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0594</ErrorName> | 3 | ··<ErrorName>CS0594</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0594:·Floating-point·constant·is·outside·the·range·of·type·` | 5 | ····<string>//·CS0594:·Floating-point·constant·is·outside·the·range·of·type·`float' |
| 6 | //·Line:·6 | 6 | //·Line:·6 |
| 7 | class·X·{ | 7 | class·X·{ |
| 8 | » public·static·void·Main()·{ | 8 | » public·static·void·Main()·{ |
| 9 | » » | 9 | » » float·b·=·11111111111111111111111111111111111122222222222222222f; |
| 10 | » } | 10 | » } |
| 11 | }</string> | 11 | }</string> |
| 12 | ····<string>//·CS0594:·Floating-point·constant·is·outside·the·range·of·type·` | 12 | ····<string>//·CS0594:·Floating-point·constant·is·outside·the·range·of·type·`decimal' |
| 13 | //·Line:·6 | 13 | //·Line:·6 |
| 14 | class·X·{ | 14 | class·X·{ |
| 15 | » public·static·void·Main()·{ | 15 | » public·static·void·Main()·{ |
| 16 | » » | 16 | » » decimal·d·=·12311111111111111111111111111111111111111111111111m; |
| 17 | » } | 17 | » } |
| 18 | }</string> | 18 | }</string> |
| 19 | ····<string>//·CS0594:·Floating-point·constant·is·outside·the·range·of·type·`d | 19 | ····<string>//·CS0594:·Floating-point·constant·is·outside·the·range·of·type·`double' |
| 20 | //·Line:·6 | 20 | //·Line:·6 |
| 21 | class·X·{ | 21 | class·X·{ |
| 22 | » public·static·void·Main()·{ | 22 | » public·static·void·Main()·{ |
| 23 | » » d | 23 | » » double·dbl·=·1.0e99999; |
| 24 | » } | 24 | » } |
| 25 | }</string> | 25 | }</string> |
| 26 | ····<string>//·CS0594:·Floating-point·constant·is·outside·the·range·of·type·`float' | 26 | ····<string>//·CS0594:·Floating-point·constant·is·outside·the·range·of·type·`float' |
| 27 | //·Line:·6 | 27 | //·Line:·6 |
| 28 | class·X·{ | 28 | class·X·{ |
| 29 | » public·static·void·Main()·{ | 29 | » public·static·void·Main()·{ |
| 30 | » » float· | 30 | » » float·f·=·1.0e999999f; |
| 31 | » } | 31 | » } |
| 32 | }</string> | 32 | }</string> |
| 33 | ··</Examples> | 33 | ··</Examples> |
| 34 | </ErrorDocumentation> | 34 | </ErrorDocumentation> |
| Offset 2, 19 lines modified | Offset 2, 19 lines modified | ||
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0596</ErrorName> | 3 | ··<ErrorName>CS0596</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0596:·The·Guid·attribute·must·be·specified·with·the·ComImport·attribute | 5 | ····<string>//·CS0596:·The·Guid·attribute·must·be·specified·with·the·ComImport·attribute |
| 6 | //·Line:·4 | 6 | //·Line:·4 |
| 7 | [System.Runtime.InteropServices.ComImportAttribute] | 7 | [System.Runtime.InteropServices.ComImportAttribute] |
| 8 | 8 | interface·I | |
| 9 | { | 9 | { |
| 10 | }</string> | 10 | }</string> |
| 11 | ····<string>//·CS0596:·The·Guid·attribute·must·be·specified·with·the·ComImport·attribute | 11 | ····<string>//·CS0596:·The·Guid·attribute·must·be·specified·with·the·ComImport·attribute |
| 12 | //·Line:·4 | 12 | //·Line:·4 |
| 13 | [System.Runtime.InteropServices.ComImportAttribute] | 13 | [System.Runtime.InteropServices.ComImportAttribute] |
| 14 | 14 | class·C | |
| 15 | { | 15 | { |
| 16 | }</string> | 16 | }</string> |
| 17 | ··</Examples> | 17 | ··</Examples> |
| 18 | </ErrorDocumentation> | 18 | </ErrorDocumentation> |
| Offset 1, 40 lines modified | Offset 1, 40 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0611</ErrorName> | 3 | ··<ErrorName>CS0611</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0611:·Array·elements·cannot·be·of·type·`S | 5 | ····<string>//·CS0611:·Array·elements·cannot·be·of·type·`S' |
| 6 | //·Line:· | 6 | //·Line:·13 |
| 7 | //·Compiler·options:·-langversion:latest | ||
| 7 | public·class·Sample·{ | ||
| 8 | 8 | public·ref·struct·S | |
| 9 | { | ||
| 10 | } | ||
| 11 | class·Test | ||
| 12 | { | ||
| 9 | » | 13 | » public·static·void·Main·() |
| 14 | » { | ||
| 15 | » » var·x·=·new·S[0]; | ||
| 16 | » } | ||
| 10 | }</string> | 17 | }</string> |
| 11 | ····<string>//·CS0611:·Array·elements·cannot·be·of·type·`System.TypedReference' | 18 | ····<string>//·CS0611:·Array·elements·cannot·be·of·type·`System.TypedReference' |
| 12 | //·Line:·5 | 19 | //·Line:·5 |
| 13 | public·class·Sample·{ | 20 | public·class·Sample·{ |
| 14 | ········System.TypedReference[]·references·{ | 21 | ········System.TypedReference[]·references·{ |
| 15 | ················get·{ | 22 | ················get·{ |
| 16 | ························return·null; | 23 | ························return·null; |
| 17 | ················} | 24 | ················} |
| 18 | ········} | 25 | ········} |
| 19 | » » static·void·Main·()·{} | 26 | » » static·void·Main·()·{} |
| 20 | }</string> | 27 | }</string> |
| 21 | ····<string>//·CS0611:·Array·elements·cannot·be·of·type·`S' | 28 | ····<string>//·CS0611:·Array·elements·cannot·be·of·type·`System.ArgIterator' |
| 22 | //·Line:· | 29 | //·Line:·5 |
| 23 | //·Compiler·options:·-langversion:latest | ||
| 24 | public·ref·struct·S | ||
| 25 | { | ||
| 26 | } | ||
| 27 | class·Test | ||
| 28 | { | 30 | public·class·Sample·{ |
| 31 | ········System.ArgIterator[]·arg; | ||
| 29 | » | 32 | » » static·void·Main·()·{} |
| 30 | » { | ||
| 31 | » » var·x·=·new·S[0]; | ||
| 32 | » } | ||
| 33 | }</string> | 33 | }</string> |
| 34 | ··</Examples> | 34 | ··</Examples> |
| 35 | </ErrorDocumentation> | 35 | </ErrorDocumentation> |
| Offset 1, 104 lines modified | Offset 1, 104 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0612</ErrorName> | 3 | ··<ErrorName>CS0612</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0612:·`A.Value'·is·obsolete | ||
| 6 | //·Line:·13 | ||
| 7 | //·Compiler·options:·-warnaserror | ||
| 8 | class·A·{ | ||
| 9 | ····[System.Obsolete] | ||
| 10 | ····int·Value·{ | ||
| 11 | ········set·{ | ||
| 12 | ········} | ||
| 13 | ····} | ||
| 14 | ···· | ||
| 15 | ····public·A·()·{ | ||
| 16 | ········Value·=·4; | ||
| 17 | ····} | ||
| 18 | }</string> | ||
| 19 | ····<string>//·CS0612:·`O | 5 | ····<string>//·CS0612:·`O2'·is·obsolete |
| 20 | //·Line:·23 | 6 | //·Line:·23 |
| 21 | //·Compiler·options:·-warnaserror | 7 | //·Compiler·options:·-warnaserror |
| 22 | using·System; | 8 | using·System; |
| 23 | [Obsolete] | 9 | [Obsolete] |
| 24 | 10 | interface·O2 | |
| 25 | { | 11 | { |
| 26 | } | 12 | } |
| 27 | #pragma·warning·disable·612 | 13 | #pragma·warning·disable·612 |
| 28 | class·A | 14 | class·A |
| 29 | { | 15 | { |
| 30 | » public·virtual·void·Foo<T>·()·where·T·:·O | 16 | » public·virtual·void·Foo<T>·()·where·T·:·O2 |
| 31 | » { | 17 | » { |
| 32 | » } | 18 | » } |
| 33 | } | 19 | } |
| 34 | #pragma·warning·restore·612 | 20 | #pragma·warning·restore·612 |
| 35 | class·B·:·A | 21 | class·B·:·A |
| 36 | { | 22 | { |
| 37 | » public·override·void·Foo<U>·() | 23 | » public·override·void·Foo<U>·() |
| 38 | » { | 24 | » { |
| 39 | » } | 25 | » } |
| 40 | }</string> | 26 | }</string> |
| 41 | ····<string>//·CS0612:·`A.Value'·is·obsolete | ||
| 42 | //·Line:·13 | ||
| 43 | //·Compiler·options:·-warnaserror | ||
| 44 | class·A·{ | ||
| 45 | ····[System.Obsolete·("")] | ||
| 46 | ····int·Value·{ | ||
| 47 | ········set·{ | ||
| 48 | ········} | ||
| 49 | ····} | ||
| 50 | ···· | ||
| 51 | ····public·A·()·{ | ||
| 52 | ········Value·=·4; | ||
| 53 | ····} | ||
| 54 | }</string> | ||
| 55 | ····<string>//·CS0612:·`O | 27 | ····<string>//·CS0612:·`O1'·is·obsolete |
| 56 | //·Line:·23 | 28 | //·Line:·23 |
| 57 | //·Compiler·options:·-warnaserror | 29 | //·Compiler·options:·-warnaserror |
| 58 | using·System; | 30 | using·System; |
| 59 | [Obsolete] | 31 | [Obsolete] |
| 60 | 32 | class·O1 | |
| 61 | { | 33 | { |
| 62 | } | 34 | } |
| 63 | #pragma·warning·disable·612 | 35 | #pragma·warning·disable·612 |
| 64 | class·A | 36 | class·A |
| 65 | { | 37 | { |
| 66 | » public·virtual·void·Foo<T>·()·where·T·:·O | 38 | » public·virtual·void·Foo<T>·()·where·T·:·O1 |
| 67 | » { | 39 | » { |
| 68 | » } | 40 | » } |
| 69 | } | 41 | } |
| 70 | #pragma·warning·restore·612 | 42 | #pragma·warning·restore·612 |
| 71 | class·B·:·A | 43 | class·B·:·A |
| 72 | { | 44 | { |
| 73 | » public·override·void·Foo<U>·() | 45 | » public·override·void·Foo<U>·() |
| 74 | » { | 46 | » { |
| 75 | » } | 47 | » } |
| 76 | }</string> | 48 | }</string> |
| 49 | ····<string>//·CS0612:·`A.Value'·is·obsolete | ||
| 50 | //·Line:·13 | ||
| 51 | //·Compiler·options:·-warnaserror | ||
| 52 | class·A·{ | ||
| 53 | ····[System.Obsolete·("")] | ||
| 54 | ····int·Value·{ | ||
| 55 | ········set·{ | ||
| 56 | ········} | ||
| 57 | ····} | ||
| 58 | ···· | ||
| 59 | ····public·A·()·{ | ||
| 60 | ········Value·=·4; | ||
| 61 | ····} | ||
| 62 | }</string> | ||
| 77 | ····<string>//·CS0612:·`Foo.Bar'·is·obsolete | 63 | ····<string>//·CS0612:·`Foo.Bar'·is·obsolete |
| 78 | //·Line:·8 | 64 | //·Line:·8 |
| 79 | //·Compiler·options:·-r:CS0612-2-lib.dll·-warnaserror | 65 | //·Compiler·options:·-r:CS0612-2-lib.dll·-warnaserror |
| 80 | public·class·Bar·{ | 66 | public·class·Bar·{ |
| 81 | ········public·static·int·Main·() | 67 | ········public·static·int·Main·() |
| 82 | ········{ | 68 | ········{ |
| 83 | ················Foo·foo·=·new·Foo·(); | 69 | ················Foo·foo·=·new·Foo·(); |
| 84 | ················return·foo.Bar; | 70 | ················return·foo.Bar; |
| 85 | ········} | 71 | ········} |
| 86 | }</string> | 72 | }</string> |
| 73 | ····<string>//·CS0612:·`A.Value'·is·obsolete | ||
| 74 | //·Line:·13 | ||
| 75 | //·Compiler·options:·-warnaserror | ||
| 76 | class·A·{ | ||
| 77 | ····[System.Obsolete] | ||
| 78 | ····int·Value·{ | ||
| 79 | ········set·{ | ||
| 80 | ········} | ||
| 81 | ····} | ||
| 82 | ···· | ||
| 83 | ····public·A·()·{ | ||
| 84 | ········Value·=·4; | ||
| 85 | ····} | ||
| 86 | }</string> | ||
| Max diff block lines reached; 94/2546 bytes (3.69%) of diff not shown. | |||
| Offset 1, 11 lines modified | Offset 1, 23 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0617</ErrorName> | 3 | ··<ErrorName>CS0617</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·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 | ||
| 6 | //·Line:·11 | ||
| 7 | class·BazAttribute·:·System.Attribute· | ||
| 8 | { | ||
| 9 | » public·object·foo3·{·set·{}·} | ||
| 10 | } | ||
| 11 | class·Test· | ||
| 12 | { | ||
| 13 | » [Baz·(foo3·=·3)]·void·f3()·{} | ||
| 14 | }</string> | ||
| 5 | ····<string>//·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 | 15 | ····<string>//·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 |
| 6 | //·Line·:·19 | 16 | //·Line·:·19 |
| 7 | using·System; | 17 | using·System; |
| 8 | [AttributeUsage·(AttributeTargets.Class,·AllowMultiple·=·true)] | 18 | [AttributeUsage·(AttributeTargets.Class,·AllowMultiple·=·true)] |
| 9 | public·class·SimpleAttribute·:·Attribute | 19 | public·class·SimpleAttribute·:·Attribute |
| Offset 30, 55 lines modified | Offset 42, 43 lines modified | ||
| 30 | ····<string>//·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 | 42 | ····<string>//·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 |
| 31 | //·Line:·11 | 43 | //·Line:·11 |
| 32 | using·System; | 44 | using·System; |
| 33 | public·sealed·class·FooAttribute·:·Attribute | 45 | public·sealed·class·FooAttribute·:·Attribute |
| 34 | { | 46 | { |
| 35 | » | 47 | » internal·int·Foo; |
| 36 | } | 48 | } |
| 37 | [Foo·(Foo·=·1)] | 49 | [Foo·(Foo·=·1)] |
| 38 | public·class·Tests | 50 | public·class·Tests |
| 39 | { | 51 | { |
| 40 | }</string> | 52 | }</string> |
| 41 | ····<string>//·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 | 53 | ····<string>//·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 |
| 42 | //·Line:·11 | 54 | //·Line:·11 |
| 43 | using·System; | 55 | using·System; |
| 44 | public·sealed·class·FooAttribute·:·Attribute | 56 | public·sealed·class·FooAttribute·:·Attribute |
| 45 | { | 57 | { |
| 46 | » public·s | 58 | » public·static·int·Foo; |
| 47 | } | 59 | } |
| 48 | [Foo·(Foo·=·1)] | 60 | [Foo·(Foo·=·1)] |
| 49 | public·class·Tests | 61 | public·class·Tests |
| 50 | { | 62 | { |
| 51 | }</string> | 63 | }</string> |
| 52 | ····<string>//·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 | ||
| 53 | //·Line:·11 | ||
| 54 | class·BazAttribute·:·System.Attribute· | ||
| 55 | { | ||
| 56 | » public·object·foo3·{·set·{}·} | ||
| 57 | } | ||
| 58 | class·Test· | ||
| 59 | { | ||
| 60 | » [Baz·(foo3·=·3)]·void·f3()·{} | ||
| 61 | }</string> | ||
| 62 | ····<string>//·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 | 64 | ····<string>//·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 |
| 63 | //·Line:·11 | 65 | //·Line:·11 |
| 64 | using·System; | 66 | using·System; |
| 65 | public·sealed·class·FooAttribute·:·Attribute | 67 | public·sealed·class·FooAttribute·:·Attribute |
| 66 | { | 68 | { |
| 67 | » i | 69 | » public·short·Foo·{·get;·private·set;·} |
| 68 | } | 70 | } |
| 69 | [Foo·(Foo·=·1)] | 71 | [Foo·(Foo·=·1)] |
| 70 | public·class·Tests | 72 | public·class·Tests |
| 71 | { | 73 | { |
| 72 | }</string> | 74 | }</string> |
| 73 | ··</Examples> | 75 | ··</Examples> |
| Offset 1, 154 lines modified | Offset 1, 231 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0619</ErrorName> | 3 | ··<ErrorName>CS0619</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0619 | 5 | ····<string>//·CS0619:·`ObsoleteException'·is·obsolete:·`' |
| 6 | //·Line:·1 | 6 | //·Line:·15 |
| 7 | class·A:·System.Attribute | ||
| 8 | { | ||
| 9 | » [System.Obsolete("!!!",·true)] | ||
| 10 | » public·A·(string[]·s) | ||
| 11 | » { | ||
| 12 | » } | ||
| 13 | } | ||
| 14 | [A(new·string[0])] | ||
| 15 | class·Obsolete·{ | ||
| 16 | }</string> | ||
| 17 | ····<string>//·CS0619:·`I'·is·obsolete:·`Do·not·use·it' | ||
| 18 | //·Line:·12 | ||
| 19 | using·System; | 7 | using·System; |
| 20 | [Obsolete("Do·not·use·it",·true)] | ||
| 21 | interface·I·{ | ||
| 22 | } | ||
| 23 | class·B·{ | ||
| 24 | ····I·i; | ||
| 25 | }</string> | ||
| 26 | ····<string>//·CS0619:·`Obsolete'·is·obsolete:·`' | ||
| 27 | //·Line:·11 | ||
| 28 | [System.Obsolete("",·true)] | 8 | [System.Obsolete("",·true)] |
| 29 | class·Obsolete·{ | 9 | class·ObsoleteException:·Exception·{ |
| 30 | } | 10 | } |
| 31 | class·MainClass·{ | 11 | class·MainClass·{ |
| 32 | ········public· | 12 | ········public·void·Method·() |
| 33 | ········{ | 13 | ········{ |
| 34 | ················ | 14 | ················try·{ |
| 15 | ················} | ||
| 16 | ················catch·(ObsoleteException)·{ | ||
| 17 | ················} | ||
| 35 | ········} | 18 | ········} |
| 36 | }</string> | 19 | }</string> |
| 37 | ····<string>//·CS0619 | 20 | ····<string>//·CS0619:·`ObsoleteEnum'·is·obsolete:·`Yeah,·is·obsolete' |
| 38 | //·Line:·13 | 21 | //·Line:·13 |
| 39 | 22 | using·System; | |
| 23 | [Obsolete("Yeah,·is·obsolete",·true)] | ||
| 24 | enum·ObsoleteEnum | ||
| 40 | { | 25 | { |
| 41 | » [System.Obsolete("!!!",·true)] | ||
| 42 | » public·string·Prop·{ | ||
| 43 | » » set·{·} | ||
| 44 | » » get·{·return·"";·} | ||
| 45 | » } | ||
| 46 | } | 26 | } |
| 47 | [A(Prop="System.String.Empty")] | ||
| 48 | 27 | interface·Ex | |
| 28 | { | ||
| 29 | » ObsoleteEnum·Foo·(); | ||
| 49 | }</string> | 30 | }</string> |
| 31 | ····<string>//·CS0619:·`Test.Test()'·is·obsolete:·`Causes·an·error' | ||
| 32 | //·Line:·9 | ||
| 33 | using·System; | ||
| 34 | public·class·Test | ||
| 35 | { | ||
| 36 | » [Obsolete·("Causes·an·error",·true)] | ||
| 37 | » public·Test·()·{} | ||
| 38 | » public·Test·(bool·flag)·:·this·()·{} | ||
| 39 | }</string> | ||
| 50 | ····<string>//·CS0619:·`A | 40 | ····<string>//·CS0619:·`A'·is·obsolete:·`' |
| 51 | //·Line:·1 | 41 | //·Line:·13 |
| 52 | [System.Obsolete·("",·true)] | 42 | [System.Obsolete·("",·true)] |
| 53 | class·A | 43 | class·A |
| 54 | { | 44 | { |
| 55 | } | 45 | } |
| 56 | class·B·{ | ||
| 57 | 46 | class·AA | |
| 47 | { | ||
| 48 | ········public·AA·() | ||
| 58 | ········{ | 49 | ········{ |
| 59 | ················r | 50 | ················for·(A·aa·=·null;·aa·!=·null;)·{ |
| 51 | ························System.Console.WriteLine·(aa); | ||
| 52 | ················} | ||
| 60 | ········} | 53 | ········} |
| 61 | }</string> | 54 | }</string> |
| 62 | ····<string>//·CS0619:·` | 55 | ····<string>//·CS0619:·`Y'·is·obsolete:·`ooo' |
| 63 | //·Line:· | 56 | //·Line:·6 |
| 64 | //·Compiler·options:·-reference:CS0619-17-lib.dll | ||
| 65 | 57 | using·System; | |
| 58 | class·X·:·I<Y> | ||
| 59 | { | ||
| 60 | } | ||
| 61 | interface·I<T> | ||
| 62 | { | ||
| 63 | } | ||
| 64 | [Obsolete("ooo",·true)] | ||
| 65 | class·Y | ||
| 66 | { | 66 | { |
| 67 | » public·B·():·base·()·{} | ||
| 68 | }</string> | 67 | }</string> |
| 69 | ····<string>//·CS0619:·`O'·is·obsolete:·`' | 68 | ····<string>//·CS0619:·`ObsoleteInterface'·is·obsolete:·`' |
| 70 | //·Line:·1 | 69 | //·Line:·11 |
| 70 | using·System; | ||
| 71 | [ | 71 | [Obsolete("",·true)] |
| 72 | 72 | interface·ObsoleteInterface | |
| 73 | { | 73 | { |
| 74 | } | 74 | } |
| 75 | class·MainClass·{ | ||
| 76 | ········public·void·Method·() | ||
| 77 | ········{ | ||
| Max diff block lines reached; 23166/26515 bytes (87.37%) of diff not shown. | |||
| Offset 1, 42 lines modified | Offset 1, 42 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0625</ErrorName> | 3 | ··<ErrorName>CS0625</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0625:·`CS0625.GValue. | 5 | ····<string>//·CS0625:·`CS0625.GValue.foo':·Instance·field·types·marked·with·StructLayout(LayoutKind.Explicit)·must·have·a·FieldOffset·attribute |
| 6 | //·Line:·10 | 6 | //·Line:·10 |
| 7 | using·System; | 7 | using·System; |
| 8 | using·System.Runtime.InteropServices; | 8 | using·System.Runtime.InteropServices; |
| 9 | namespace·CS0625·{ | 9 | namespace·CS0625·{ |
| 10 | » [StructLayout | 10 | » [StructLayout(LayoutKind.Explicit)] |
| 11 | » class·GValue·{ | ||
| 11 | » partial·struct·GValue | ||
| 12 | » { | ||
| 13 | » } | ||
| 14 | » | ||
| 15 | » partial·struct·GValue·{ | ||
| 16 | » » public·int· | 12 | » » public·int·foo; |
| 17 | » } | 13 | » } |
| 18 | » | 14 | » |
| 19 | » class·Tests·{ | 15 | » class·Tests·{ |
| 20 | » » public·static·void·Main·()·{ | 16 | » » public·static·void·Main·()·{ |
| 21 | » » } | 17 | » » } |
| 22 | » } | 18 | » } |
| 23 | }</string> | 19 | }</string> |
| 24 | ····<string>//·CS0625:·`CS0625.GValue. | 20 | ····<string>//·CS0625:·`CS0625.GValue.value':·Instance·field·types·marked·with·StructLayout(LayoutKind.Explicit)·must·have·a·FieldOffset·attribute |
| 25 | //·Line:·10 | 21 | //·Line:·10 |
| 26 | using·System; | 22 | using·System; |
| 27 | using·System.Runtime.InteropServices; | 23 | using·System.Runtime.InteropServices; |
| 28 | namespace·CS0625·{ | 24 | namespace·CS0625·{ |
| 29 | » [StructLayout(LayoutKind.Explicit)] | 25 | » [StructLayout·(LayoutKind.Explicit)] |
| 30 | » | 26 | » partial·struct·GValue |
| 27 | » { | ||
| 28 | » } | ||
| 29 | » | ||
| 30 | » partial·struct·GValue·{ | ||
| 31 | » » public·int· | 31 | » » public·int·value; |
| 32 | » } | 32 | » } |
| 33 | » | 33 | » |
| 34 | » class·Tests·{ | 34 | » class·Tests·{ |
| 35 | » » public·static·void·Main·()·{ | 35 | » » public·static·void·Main·()·{ |
| 36 | » » } | 36 | » » } |
| 37 | » } | 37 | » } |
| 38 | }</string> | 38 | }</string> |
| Offset 1, 66 lines modified | Offset 1, 66 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0626</ErrorName> | 3 | ··<ErrorName>CS0626</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0626:·`ExternClass.ExternMethod()'·is·marked·as·an·external·but·has·no·DllImport·attribute.·Consider·adding·a·DllImport·attribute·to·specify·the·external·implementation | ||
| 6 | //·Line:·6 | ||
| 7 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| 8 | class·ExternClass·{ | ||
| 9 | ········[System.Obsolete] | ||
| 10 | ········public·static·extern·void·ExternMethod(); | ||
| 11 | }</string> | ||
| 12 | ····<string>//·CS0626:·`ExternClass.ExternMethod'·is·marked·as·an·external·but·has·no·DllImport·attribute.·Consider·adding·a·DllImport·attribute·to·specify·the·external·implementation | ||
| 13 | //·Line:·6 | ||
| 14 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| 15 | class·ExternClass·{ | ||
| 16 | ········public·static·extern·int·ExternMethod·{·set;·} | ||
| 17 | }</string> | ||
| 5 | ····<string>//·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 | 18 | ····<string>//·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 |
| 6 | //·Line:·6 | 19 | //·Line:·6 |
| 7 | //·Compiler·options:·-warnaserror·-warn:1 | 20 | //·Compiler·options:·-warnaserror·-warn:1 |
| 8 | class·ExternClass·{ | 21 | class·ExternClass·{ |
| 9 | ········static·public·extern·implicit·operator·ExternClass(byte·value); | 22 | ········static·public·extern·implicit·operator·ExternClass(byte·value); |
| 10 | }</string> | 23 | }</string> |
| 11 | ····<string>//·CS0626:·`ExternClass.ExternMethod()'·is·marked·as·an·external·but·has·no·DllImport·attribute.·Consider·adding·a·DllImport·attribute·to·specify·the·external·implementation | 24 | ····<string>//·CS0626:·`ExternClass.ExternMethod()'·is·marked·as·an·external·but·has·no·DllImport·attribute.·Consider·adding·a·DllImport·attribute·to·specify·the·external·implementation |
| 12 | //·Line:·6 | 25 | //·Line:·6 |
| 13 | //·Compiler·options:·-warnaserror·-warn:1 | 26 | //·Compiler·options:·-warnaserror·-warn:1 |
| 14 | class·ExternClass·{ | 27 | class·ExternClass·{ |
| 15 | ········[System.Obsolete] | ||
| 16 | ········public·static·extern·void·ExternMethod(); | 28 | ········public·static·extern·void·ExternMethod(); |
| 17 | }</string> | 29 | }</string> |
| 30 | ····<string>//·CS0626:·`A.~A()'·is·marked·as·an·external·but·has·no·DllImport·attribute.·Consider·adding·a·DllImport·attribute·to·specify·the·external·implementation | ||
| 31 | //·Line:·7 | ||
| 32 | //·Compiler·options:·-warnaserror | ||
| 33 | public·sealed·class·A | ||
| 34 | { | ||
| 35 | » extern·~A·(); | ||
| 36 | }</string> | ||
| 18 | ····<string>//·CS0626:·`Test.OnFoo'·is·marked·as·an·external·but·has·no·DllImport·attribute.·Consider·adding·a·DllImport·attribute·to·specify·the·external·implementation | 37 | ····<string>//·CS0626:·`Test.OnFoo'·is·marked·as·an·external·but·has·no·DllImport·attribute.·Consider·adding·a·DllImport·attribute·to·specify·the·external·implementation |
| 19 | //·Line:·9 | 38 | //·Line:·9 |
| 20 | //·Compiler·options:·-warnaserror·-warn:1 | 39 | //·Compiler·options:·-warnaserror·-warn:1 |
| 21 | using·System; | 40 | using·System; |
| 22 | public·delegate·void·Handler·(); | 41 | public·delegate·void·Handler·(); |
| 23 | class·Test·{ | 42 | class·Test·{ |
| 24 | » extern·event·Handler·OnFoo; | 43 | » extern·event·Handler·OnFoo; |
| 25 | }</string> | 44 | }</string> |
| 26 | ····<string>//·CS0626:·`ExternClass.ExternMethod'·is·marked·as·an·external·but·has·no·DllImport·attribute.·Consider·adding·a·DllImport·attribute·to·specify·the·external·implementation | ||
| 27 | //·Line:·6 | ||
| 28 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| 29 | class·ExternClass·{ | ||
| 30 | ········public·static·extern·int·ExternMethod·{·set;·} | ||
| 31 | }</string> | ||
| 32 | ····<string>//·CS0626:·`C.this[int]'·is·marked·as·an·external·but·has·no·DllImport·attribute.·Consider·adding·a·DllImport·attribute·to·specify·the·external·implementation | 45 | ····<string>//·CS0626:·`C.this[int]'·is·marked·as·an·external·but·has·no·DllImport·attribute.·Consider·adding·a·DllImport·attribute·to·specify·the·external·implementation |
| 33 | //·Line:·7 | 46 | //·Line:·7 |
| 34 | //·Compiler·options:·-warnaserror·-warn:1 | 47 | //·Compiler·options:·-warnaserror·-warn:1 |
| 35 | class·C | 48 | class·C |
| 36 | { | 49 | { |
| 37 | » public·extern·char·this[int·index] | 50 | » public·extern·char·this[int·index] |
| 38 | » { | 51 | » { |
| 39 | » » get; | 52 | » » get; |
| 40 | » } | 53 | » } |
| 41 | }</string> | 54 | }</string> |
| 42 | ····<string>//·CS0626:·`A.~A()'·is·marked·as·an·external·but·has·no·DllImport·attribute.·Consider·adding·a·DllImport·attribute·to·specify·the·external·implementation | ||
| 43 | //·Line:·7 | ||
| 44 | //·Compiler·options:·-warnaserror | ||
| 45 | public·sealed·class·A | ||
| 46 | { | ||
| 47 | » extern·~A·(); | ||
| 48 | }</string> | ||
| 49 | ····<string>//·CS0626:·`ExternClass.ExternMethod()'·is·marked·as·an·external·but·has·no·DllImport·attribute.·Consider·adding·a·DllImport·attribute·to·specify·the·external·implementation | ||
| 50 | //·Line:·6 | ||
| 51 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| 52 | class·ExternClass·{ | ||
| 53 | ········public·static·extern·void·ExternMethod(); | ||
| 54 | }</string> | ||
| 55 | ··</Examples> | 55 | ··</Examples> |
| 56 | </ErrorDocumentation> | 56 | </ErrorDocumentation> |
| Offset 1, 25 lines modified | Offset 1, 11 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0628</ErrorName> | 3 | ··<ErrorName>CS0628</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0628:·`D.D()':·new·protected·member·declared·in·sealed·class | ||
| 6 | //·Line:·6 | ||
| 7 | //·Compiler·options:·-warnaserror·-warn:4 | ||
| 8 | sealed·class·D·{ | ||
| 9 | » protected·D·()·{} | ||
| 10 | }</string> | ||
| 11 | ····<string>//·CS0628:·`D.a':·new·protected·member·declared·in·sealed·class | ||
| 12 | //·Line:·6 | ||
| 13 | //·Compiler·options:·-warnaserror·-warn:4 | ||
| 14 | sealed·class·D·{ | ||
| 15 | » protected·int·a; | ||
| 16 | }</string> | ||
| 17 | ····<string>//·CS0628:·`Test.print_argv(string[])':·new·protected·member·declared·in·sealed·class | 5 | ····<string>//·CS0628:·`Test.print_argv(string[])':·new·protected·member·declared·in·sealed·class |
| 18 | //·Line:·8 | 6 | //·Line:·8 |
| 19 | //·Compiler·options:·-warn:4·-warnaserror | 7 | //·Compiler·options:·-warn:4·-warnaserror |
| 20 | using·System; | 8 | using·System; |
| 21 | internal·sealed·class·Test·{ | 9 | internal·sealed·class·Test·{ |
| Offset 29, 9 lines modified | Offset 15, 23 lines modified | ||
| 29 | » » » return·"null"; | 15 | » » » return·"null"; |
| 30 | » » else | 16 | » » else |
| 31 | » » » return·String.Join·(":",·argv); | 17 | » » » return·String.Join·(":",·argv); |
| 32 | » } | 18 | » } |
| 33 | » static·void·Main·()·{·} | 19 | » static·void·Main·()·{·} |
| 34 | }</string> | 20 | }</string> |
| 21 | ····<string>//·CS0628:·`D.D()':·new·protected·member·declared·in·sealed·class | ||
| 22 | //·Line:·6 | ||
| 23 | //·Compiler·options:·-warnaserror·-warn:4 | ||
| 24 | sealed·class·D·{ | ||
| 25 | » protected·D·()·{} | ||
| 26 | }</string> | ||
| 27 | ····<string>//·CS0628:·`D.a':·new·protected·member·declared·in·sealed·class | ||
| 28 | //·Line:·6 | ||
| 29 | //·Compiler·options:·-warnaserror·-warn:4 | ||
| 30 | sealed·class·D·{ | ||
| 31 | » protected·int·a; | ||
| 32 | }</string> | ||
| 35 | ··</Examples> | 33 | ··</Examples> |
| 36 | </ErrorDocumentation> | 34 | </ErrorDocumentation> |
| Offset 5, 24 lines modified | Offset 5, 36 lines modified | ||
| 5 | ····<string>//·CS0633:·The·argument·to·the·`System.Runtime.CompilerServices.IndexerNameAttribute'·attribute·must·be·a·valid·identifier | 5 | ····<string>//·CS0633:·The·argument·to·the·`System.Runtime.CompilerServices.IndexerNameAttribute'·attribute·must·be·a·valid·identifier |
| 6 | //·Line:·8 | 6 | //·Line:·8 |
| 7 | using·System.Runtime.CompilerServices; | 7 | using·System.Runtime.CompilerServices; |
| 8 | public·class·C | 8 | public·class·C |
| 9 | { | 9 | { |
| 10 | » [IndexerName·( | 10 | » [IndexerName·(null)] |
| 11 | » public·string·this·[int·i]·{ | 11 | » public·string·this·[int·i]·{ |
| 12 | » » set·{·} | 12 | » » set·{·} |
| 13 | » } | 13 | » } |
| 14 | }</string> | 14 | }</string> |
| 15 | ····<string>//·CS0633:·The·argument·to·the·`System.Diagnostics.ConditionalAttribute'·attribute·must·be·a·valid·identifier | ||
| 16 | //·Line:·8 | ||
| 17 | using·System; | ||
| 18 | using·System.Diagnostics; | ||
| 19 | class·TestClass·{ | ||
| 20 | » [Conditional·("UNDEFINED·CONDITION")] | ||
| 21 | » static·void·ConditionalMethod·() | ||
| 22 | » { | ||
| 23 | » } | ||
| 24 | }</string> | ||
| 15 | ····<string>//·CS0633:·The·argument·to·the·`System.Runtime.CompilerServices.IndexerNameAttribute'·attribute·must·be·a·valid·identifier | 25 | ····<string>//·CS0633:·The·argument·to·the·`System.Runtime.CompilerServices.IndexerNameAttribute'·attribute·must·be·a·valid·identifier |
| 16 | //·Line:·5 | 26 | //·Line:·5 |
| 17 | public·class·MonthDays·{ | 27 | public·class·MonthDays·{ |
| 18 | ···[System.Runtime.CompilerServices.IndexerName·("")] | 28 | ···[System.Runtime.CompilerServices.IndexerName·("buggypo·for·you")] |
| 19 | ···public·int·this·[int·a]·{ | 29 | ···public·int·this·[int·a]·{ |
| 20 | ······get·{ | 30 | ······get·{ |
| 21 | ·········return·0; | 31 | ·········return·0; |
| 22 | ······} | 32 | ······} |
| 23 | ···} | 33 | ···} |
| 24 | ···public·static·void·Main·() | 34 | ···public·static·void·Main·() |
| Offset 30, 52 lines modified | Offset 42, 40 lines modified | ||
| 30 | » int·i·=·new·MonthDays·()·[1]; | 42 | » int·i·=·new·MonthDays·()·[1]; |
| 31 | ···} | 43 | ···} |
| 32 | }</string> | 44 | }</string> |
| 33 | ····<string>//·CS0633:·The·argument·to·the·`System.Runtime.CompilerServices.IndexerNameAttribute'·attribute·must·be·a·valid·identifier | 45 | ····<string>//·CS0633:·The·argument·to·the·`System.Runtime.CompilerServices.IndexerNameAttribute'·attribute·must·be·a·valid·identifier |
| 34 | //·Line:·5 | 46 | //·Line:·5 |
| 35 | public·class·MonthDays·{ | 47 | public·class·MonthDays·{ |
| 36 | ···[System.Runtime.CompilerServices.IndexerName·(" | 48 | ···[System.Runtime.CompilerServices.IndexerName·("")] |
| 37 | ···public·int·this·[int·a]·{ | 49 | ···public·int·this·[int·a]·{ |
| 38 | ······get·{ | 50 | ······get·{ |
| 39 | ·········return·0; | 51 | ·········return·0; |
| 40 | ······} | 52 | ······} |
| 41 | ···} | 53 | ···} |
| 42 | ···public·static·void·Main·() | 54 | ···public·static·void·Main·() |
| 43 | ···{ | 55 | ···{ |
| 44 | » int·i·=·new·MonthDays·()·[1]; | 56 | » int·i·=·new·MonthDays·()·[1]; |
| 45 | ···} | 57 | ···} |
| 46 | }</string> | 58 | }</string> |
| 59 | ····<string>//·CS0633:·The·argument·to·the·`System.Diagnostics.ConditionalAttribute'·attribute·must·be·a·valid·identifier | ||
| 60 | //·Line:·6 | ||
| 61 | using·System.Diagnostics; | ||
| 62 | [Conditional("DEBUG+2")] | ||
| 63 | public·class·Test:·System.Attribute·{}</string> | ||
| 47 | ····<string>//·CS0633:·The·argument·to·the·`System.Runtime.CompilerServices.IndexerNameAttribute'·attribute·must·be·a·valid·identifier | 64 | ····<string>//·CS0633:·The·argument·to·the·`System.Runtime.CompilerServices.IndexerNameAttribute'·attribute·must·be·a·valid·identifier |
| 48 | //·Line:·8 | 65 | //·Line:·8 |
| 49 | using·System.Runtime.CompilerServices; | 66 | using·System.Runtime.CompilerServices; |
| 50 | public·class·C | 67 | public·class·C |
| 51 | { | 68 | { |
| 52 | » [IndexerName·( | 69 | » [IndexerName·("class")] |
| 53 | » public·string·this·[int·i]·{ | 70 | » public·string·this·[int·i]·{ |
| 54 | » » set·{·} | 71 | » » set·{·} |
| 55 | » } | 72 | » } |
| 56 | }</string> | 73 | }</string> |
| 57 | ····<string>//·CS0633:·The·argument·to·the·`System.Diagnostics.ConditionalAttribute'·attribute·must·be·a·valid·identifier | ||
| 58 | //·Line:·8 | ||
| 59 | using·System; | ||
| 60 | using·System.Diagnostics; | ||
| 61 | class·TestClass·{ | ||
| 62 | » [Conditional·("UNDEFINED·CONDITION")] | ||
| 63 | » static·void·ConditionalMethod·() | ||
| 64 | » { | ||
| 65 | » } | ||
| 66 | }</string> | ||
| 67 | ····<string>//·CS0633:·The·argument·to·the·`System.Diagnostics.ConditionalAttribute'·attribute·must·be·a·valid·identifier | ||
| 68 | //·Line:·6 | ||
| 69 | using·System.Diagnostics; | ||
| 70 | [Conditional("DEBUG+2")] | ||
| 71 | public·class·Test:·System.Attribute·{}</string> | ||
| 72 | ··</Examples> | 74 | ··</Examples> |
| 73 | </ErrorDocumentation> | 75 | </ErrorDocumentation> |
| Offset 7, 22 lines modified | Offset 7, 22 lines modified | ||
| 7 | using·System; | 7 | using·System; |
| 8 | using·System.Runtime.InteropServices; | 8 | using·System.Runtime.InteropServices; |
| 9 | [StructLayout(LayoutKind.Explicit)] | 9 | [StructLayout(LayoutKind.Explicit)] |
| 10 | struct·GValue·{ | 10 | struct·GValue·{ |
| 11 | » [FieldOffset·(4)] | 11 | » [FieldOffset·(4)] |
| 12 | ········public· | 12 | ········public·const·int·value·=·3; |
| 13 | }</string> | 13 | }</string> |
| 14 | ····<string>//·CS0637:·The·FieldOffset·attribute·is·not·allowed·on·static·or·const·fields | 14 | ····<string>//·CS0637:·The·FieldOffset·attribute·is·not·allowed·on·static·or·const·fields |
| 15 | //·Line:·10 | 15 | //·Line:·10 |
| 16 | using·System; | 16 | using·System; |
| 17 | using·System.Runtime.InteropServices; | 17 | using·System.Runtime.InteropServices; |
| 18 | [StructLayout(LayoutKind.Explicit)] | 18 | [StructLayout(LayoutKind.Explicit)] |
| 19 | struct·GValue·{ | 19 | struct·GValue·{ |
| 20 | » [FieldOffset·(4)] | 20 | » [FieldOffset·(4)] |
| 21 | ········public· | 21 | ········public·static·int·value·=·3; |
| 22 | }</string> | 22 | }</string> |
| 23 | ··</Examples> | 23 | ··</Examples> |
| 24 | </ErrorDocumentation> | 24 | </ErrorDocumentation> |
| Offset 1, 25 lines modified | Offset 1, 19 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0642</ErrorName> | 3 | ··<ErrorName>CS0642</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0642:·Possible·mistaken·empty·statement | 5 | ····<string>//·CS0642:·Possible·mistaken·empty·statement |
| 6 | //·Line:· | 6 | //·Line:·7 |
| 7 | //·Compiler·options:· | 7 | //·Compiler·options:·-warnaserror·-warn:3 |
| 8 | class·X{ | ||
| 9 | » static·void·Main·() | ||
| 8 | using·System; | ||
| 9 | public·class·C | ||
| 10 | { | ||
| 11 | » public·static·int·p·=·0; | ||
| 12 | » public·static·void·Foo·() | ||
| 13 | » { | 10 | » { |
| 11 | » » if·(true); | ||
| 14 | » » if·(p·<·5) | ||
| 15 | » » » Console.WriteLine·(); | ||
| 16 | » » else | ||
| 17 | » » » ; | ||
| 18 | » » Console.WriteLine·(); | ||
| 19 | » } | 12 | » } |
| 20 | }</string> | 13 | }</string> |
| 21 | ····<string>//·CS0642:·Possible·mistaken·empty·statement | 14 | ····<string>//·CS0642:·Possible·mistaken·empty·statement |
| 22 | //·Line:·9 | 15 | //·Line:·9 |
| 23 | //·Compiler·options:·-warnaserror·-warn:3 | 16 | //·Compiler·options:·-warnaserror·-warn:3 |
| 24 | public·class·C | 17 | public·class·C |
| Offset 27, 76 lines modified | Offset 21, 66 lines modified | ||
| 27 | ····public·void·Test·(System.Collections.IEnumerable·e) | 21 | ····public·void·Test·(System.Collections.IEnumerable·e) |
| 28 | ····{ | 22 | ····{ |
| 29 | ········foreach·(object·o·in·e); | 23 | ········foreach·(object·o·in·e); |
| 30 | ············{·} | 24 | ············{·} |
| 31 | ····} | 25 | ····} |
| 32 | }</string> | 26 | }</string> |
| 33 | ····<string>//·CS0642:·Possible·mistaken·empty·statement | 27 | ····<string>//·CS0642:·Possible·mistaken·empty·statement |
| 34 | //·Line:·1 | 28 | //·Line:·13 |
| 35 | //·Compiler·options:·/warnaserror·/warn:3 | 29 | //·Compiler·options:·/warnaserror·/warn:3 |
| 36 | using·System; | 30 | using·System; |
| 37 | public·class·C | 31 | public·class·C |
| 38 | { | 32 | { |
| 39 | » public·static·int·p·=·0; | 33 | » public·static·int·p·=·0; |
| 40 | » public·static·void·Foo·() | 34 | » public·static·void·Foo·() |
| 41 | » { | 35 | » { |
| 42 | » » if·(p·<·5) | 36 | » » if·(p·<·5) |
| 43 | » » » ; | ||
| 44 | » » else | ||
| 45 | » » » Console.WriteLine·(); | 37 | » » » Console.WriteLine·(); |
| 38 | » » else | ||
| 39 | » » » ; | ||
| 40 | » » Console.WriteLine·(); | ||
| 46 | » } | 41 | » } |
| 47 | }</string> | 42 | }</string> |
| 48 | ····<string>//·CS0642:·Possible·mistaken·empty·statement | 43 | ····<string>//·CS0642:·Possible·mistaken·empty·statement |
| 49 | //·Line:· | 44 | //·Line:·9 |
| 50 | //·Compiler·options:·-warnaserror·-warn:3 | 45 | //·Compiler·options:·-warnaserror·-warn:3 |
| 51 | public·class·C | 46 | public·class·C |
| 52 | { | 47 | { |
| 53 | ····public·static·void·Main·() | ||
| 54 | ····{ | ||
| 55 | ········for·(;;); | ||
| 56 | ············{·} | ||
| 57 | ··· | 48 | » public·void·Test·() |
| 49 | » { | ||
| 50 | » » using·(System.IDisposable·arg·=·null); | ||
| 51 | » » {·} | ||
| 52 | » } | ||
| 58 | }</string> | 53 | }</string> |
| 59 | ····<string>//·CS0642:·Possible·mistaken·empty·statement | 54 | ····<string>//·CS0642:·Possible·mistaken·empty·statement |
| 60 | //·Line:· | 55 | //·Line:·9 |
| 61 | //·Compiler·options:·-warnaserror·-warn:3 | 56 | //·Compiler·options:·-warnaserror·-warn:3 |
| 62 | public·class·C | 57 | public·class·C |
| 63 | { | 58 | { |
| 64 | ····public· | 59 | ····public·void·Test·() |
| 65 | ····{ | 60 | ····{ |
| 61 | ········lock·(this); | ||
| 66 | ········int·i=·5; | ||
| 67 | ········while·(i++·<·100); | ||
| 68 | ············{·} | 62 | ············{·} |
| 69 | ····} | 63 | ····} |
| 70 | }</string> | 64 | }</string> |
| 71 | ····<string>//·CS0642:·Possible·mistaken·empty·statement | 65 | ····<string>//·CS0642:·Possible·mistaken·empty·statement |
| 72 | //·Line:·9 | 66 | //·Line:·9 |
| 73 | //·Compiler·options:·-warnaserror·-warn:3 | 67 | //·Compiler·options:·-warnaserror·-warn:3·-unsafe·-nowarn:0219 |
| 74 | public·class·C | ||
| 75 | { | ||
| 76 | » public·void·Test·() | ||
| 77 | » { | ||
| 78 | » » using·(System.IDisposable·arg·=·null); | ||
| 79 | » » {·} | ||
| 80 | » } | ||
| 81 | }</string> | ||
| 82 | ····<string>//·CS0642:·Possible·mistaken·empty·statement | ||
| 83 | //·Line:·9 | ||
| 84 | //·Compiler·options:·-warnaserror·-warn:3 | ||
| 85 | public·class·C | 68 | public·class·C |
| 86 | { | 69 | { |
| 87 | ····public· | 70 | ····public·unsafe·void·Test·() |
| 88 | ····{ | 71 | ····{ |
| 89 | ········ | 72 | ········fixed·(char·*p·=·str); |
| 90 | ············{·} | 73 | ············{·} |
| 91 | ····} | 74 | ····} |
| 75 | ····static·readonly·char·[]·str·=·new·char·[]·{'A'}; | ||
| 92 | }</string> | 76 | }</string> |
| 93 | ····<string>//·CS0642:·Possible·mistaken·empty·statement | 77 | ····<string>//·CS0642:·Possible·mistaken·empty·statement |
| 94 | //·Line:·11 | 78 | //·Line:·11 |
| 95 | //·Compiler·options:·/warnaserror·/warn:3 | 79 | //·Compiler·options:·/warnaserror·/warn:3 |
| 96 | using·System; | 80 | using·System; |
| 97 | public·class·C | 81 | public·class·C |
| 98 | { | 82 | { |
| Offset 106, 44 lines modified | Offset 90, 60 lines modified | ||
| 106 | » » if·(p·<·5) | 90 | » » if·(p·<·5) |
| 107 | » » » ; | 91 | » » » ; |
| 108 | » » else | 92 | » » else |
| 109 | » » » Console.WriteLine·(); | 93 | » » » Console.WriteLine·(); |
| 110 | » } | 94 | » } |
| 111 | }</string> | 95 | }</string> |
| 112 | ····<string>//·CS0642:·Possible·mistaken·empty·statement | 96 | ····<string>//·CS0642:·Possible·mistaken·empty·statement |
| 113 | //·Line:· | 97 | //·Line:·10 |
| 114 | //·Compiler·options:·-warnaserror·-warn:3 | 98 | //·Compiler·options:·-warnaserror·-warn:3 |
| Max diff block lines reached; 1158/4153 bytes (27.88%) of diff not shown. | |||
| Offset 11, 22 lines modified | Offset 11, 14 lines modified | ||
| 11 | » string·Value·{ | 11 | » string·Value·{ |
| 12 | » » get·{ | 12 | » » get·{ |
| 13 | » » » return·s; | 13 | » » » return·s; |
| 14 | » » } | 14 | » » } |
| 15 | » } | 15 | » } |
| 16 | }</string> | 16 | }</string> |
| 17 | ····<string>//·CS0649:·Field·`X.x'·is·never·assigned·to,·and·will·always·have·its·default·value·`0' | ||
| 18 | //·Line:·4 | ||
| 19 | //·Compiler·options:·-warnaserror·-warn:4 | ||
| 20 | class·X | ||
| 21 | { | ||
| 22 | » public·readonly·int·x; | ||
| 23 | }</string> | ||
| 24 | ····<string>//·CS0649:·Field·`X.e'·is·never·assigned·to,·and·will·always·have·its·default·value·`0' | 17 | ····<string>//·CS0649:·Field·`X.e'·is·never·assigned·to,·and·will·always·have·its·default·value·`0' |
| 25 | //·Line:·10 | 18 | //·Line:·10 |
| 26 | //·Compiler·options:·-warnaserror·-warn:4 | 19 | //·Compiler·options:·-warnaserror·-warn:4 |
| 27 | using·System; | 20 | using·System; |
| 28 | class·X·{ | 21 | class·X·{ |
| 29 | » E·e; | 22 | » E·e; |
| Offset 38, 27 lines modified | Offset 30, 14 lines modified | ||
| 38 | » } | 30 | » } |
| 39 | } | 31 | } |
| 40 | enum·E | 32 | enum·E |
| 41 | { | 33 | { |
| 42 | » Foo | 34 | » Foo |
| 43 | }</string> | 35 | }</string> |
| 44 | ····<string>//·CS0649:·Field·`C.s'·is·never·assigned·to,·and·will·always·have·its·default·value·`null' | ||
| 45 | //·Line:·7 | ||
| 46 | //·Compiler·options:·-warnaserror·-warn:4 | ||
| 47 | class·C | ||
| 48 | { | ||
| 49 | » int?·s; | ||
| 50 | » | ||
| 51 | » void·Test·() | ||
| 52 | » { | ||
| 53 | » » System.Console.WriteLine·(s·==·null); | ||
| 54 | » } | ||
| 55 | }</string> | ||
| 56 | ····<string>//·CS0649:·Field·`TestClass.b'·is·never·assigned·to,·and·will·always·have·its·default·value | 36 | ····<string>//·CS0649:·Field·`TestClass.b'·is·never·assigned·to,·and·will·always·have·its·default·value |
| 57 | //·Line:·12 | 37 | //·Line:·12 |
| 58 | //·Compiler·options:·-warnaserror·-warn:4 | 38 | //·Compiler·options:·-warnaserror·-warn:4 |
| 59 | public·struct·Bar | 39 | public·struct·Bar |
| 60 | { | 40 | { |
| 61 | » public·int·x; | 41 | » public·int·x; |
| Offset 76, 9 lines modified | Offset 55, 30 lines modified | ||
| 76 | » » return·true; | 55 | » » return·true; |
| 77 | » } | 56 | » } |
| 78 | » public·static·void·Main·() | 57 | » public·static·void·Main·() |
| 79 | » { | 58 | » { |
| 80 | » } | 59 | » } |
| 81 | }</string> | 60 | }</string> |
| 61 | ····<string>//·CS0649:·Field·`X.x'·is·never·assigned·to,·and·will·always·have·its·default·value·`0' | ||
| 62 | //·Line:·4 | ||
| 63 | //·Compiler·options:·-warnaserror·-warn:4 | ||
| 64 | class·X | ||
| 65 | { | ||
| 66 | » public·readonly·int·x; | ||
| 67 | }</string> | ||
| 68 | ····<string>//·CS0649:·Field·`C.s'·is·never·assigned·to,·and·will·always·have·its·default·value·`null' | ||
| 69 | //·Line:·7 | ||
| 70 | //·Compiler·options:·-warnaserror·-warn:4 | ||
| 71 | class·C | ||
| 72 | { | ||
| 73 | » int?·s; | ||
| 74 | » | ||
| 75 | » void·Test·() | ||
| 76 | » { | ||
| 77 | » » System.Console.WriteLine·(s·==·null); | ||
| 78 | » } | ||
| 79 | }</string> | ||
| 82 | ··</Examples> | 80 | ··</Examples> |
| 83 | </ErrorDocumentation> | 81 | </ErrorDocumentation> |
| Offset 1, 25 lines modified | Offset 1, 39 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0652</ErrorName> | 3 | ··<ErrorName>CS0652</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0652:·A·comparison·between·a·constant·and·a·variable·is·useless.·The·constant·is·out·of·the·range·of·the·variable·type·`short' | 5 | ····<string>//·CS0652:·A·comparison·between·a·constant·and·a·variable·is·useless.·The·constant·is·out·of·the·range·of·the·variable·type·`short' |
| 6 | //·Line:·1 | 6 | //·Line:·12 |
| 7 | //·Compiler·options:·/warn:2·/warnaserror | 7 | //·Compiler·options:·/warn:2·/warnaserror |
| 8 | using·System; | 8 | using·System; |
| 9 | public·class·CS0652·{ | 9 | public·class·CS0652·{ |
| 10 | » public·static·void·Main·()· | 10 | » public·static·void·Main·()· |
| 11 | » { | 11 | » { |
| 12 | » » short·u | 12 | » » short·value·=·5; |
| 13 | » » if·(us·==·-10000000) | ||
| 14 | » » » Console.WriteLine·(":("); | ||
| 15 | » » else | ||
| 16 | » » | 13 | » » if·(value·>·char.MaxValue) |
| 14 | » » » return; | ||
| 15 | » } | ||
| 16 | }</string> | ||
| 17 | ····<string>//·CS0652:·A·comparison·between·a·constant·and·a·variable·is·useless.·The·constant·is·out·of·the·range·of·the·variable·type·`char' | ||
| 18 | //·Line:·12 | ||
| 19 | //·Compiler·options:·/warn:2·/warnaserror | ||
| 20 | using·System; | ||
| 21 | public·class·CS0652·{ | ||
| 22 | » public·static·void·Main·()· | ||
| 23 | » { | ||
| 24 | » » char·value·=·'a'; | ||
| 25 | » » if·(value·>·ulong.MaxValue) | ||
| 26 | » » » return; | ||
| 17 | » } | 27 | » } |
| 18 | }</string> | 28 | }</string> |
| 19 | ····<string>//·CS0652:·A·comparison·between·a·constant·and·a·variable·is·useless.·The·constant·is·out·of·the·range·of·the·variable·type·`byte' | 29 | ····<string>//·CS0652:·A·comparison·between·a·constant·and·a·variable·is·useless.·The·constant·is·out·of·the·range·of·the·variable·type·`byte' |
| 20 | //·Line:·12 | 30 | //·Line:·12 |
| 21 | //·Compiler·options:·/warn:2·/warnaserror | 31 | //·Compiler·options:·/warn:2·/warnaserror |
| 22 | using·System; | 32 | using·System; |
| Offset 31, 27 lines modified | Offset 45, 28 lines modified | ||
| 31 | » » byte·b·=·0; | 45 | » » byte·b·=·0; |
| 32 | » » if·(b·==·-1) | 46 | » » if·(b·==·-1) |
| 33 | » » » Console.WriteLine·(":("); | 47 | » » » Console.WriteLine·(":("); |
| 34 | » » else | 48 | » » else |
| 35 | » » » Console.WriteLine·(":)"); | 49 | » » » Console.WriteLine·(":)"); |
| 36 | » } | 50 | » } |
| 37 | }</string> | 51 | }</string> |
| 38 | ····<string>//·CS0652:·A·comparison·between·a·constant·and·a·variable·is·useless.·The·constant·is·out·of·the·range·of·the·variable·type·` | 52 | ····<string>//·CS0652:·A·comparison·between·a·constant·and·a·variable·is·useless.·The·constant·is·out·of·the·range·of·the·variable·type·`short' |
| 39 | //·Line:·1 | 53 | //·Line:·11 |
| 40 | //·Compiler·options:·/warn:2·/warnaserror | 54 | //·Compiler·options:·/warn:2·/warnaserror |
| 41 | using·System; | 55 | using·System; |
| 42 | public·class·CS0652·{ | 56 | public·class·CS0652·{ |
| 43 | » public·static·void·Main·()· | 57 | » public·static·void·Main·()· |
| 44 | » { | 58 | » { |
| 45 | » » char·value·=·'a'; | ||
| 46 | » » if·(value·<·SByte.MinValue) | ||
| 47 | » » | 59 | » » short·us·=·0; |
| 60 | » » if·(us·==·-10000000) | ||
| 61 | » » » Console.WriteLine·(":("); | ||
| 62 | » » else | ||
| 63 | » » » Console.WriteLine·(":)"); | ||
| 48 | » } | 64 | » } |
| 49 | }</string> | 65 | }</string> |
| 50 | ····<string>//·CS0652:·A·comparison·between·a·constant·and·a·variable·is·useless.·The·constant·is·out·of·the·range·of·the·variable·type·`byte' | 66 | ····<string>//·CS0652:·A·comparison·between·a·constant·and·a·variable·is·useless.·The·constant·is·out·of·the·range·of·the·variable·type·`byte' |
| 51 | //·Line:·9 | 67 | //·Line:·9 |
| 52 | //·Compiler·options:·-warnaserror·-warn:2 | 68 | //·Compiler·options:·-warnaserror·-warn:2 |
| 53 | class·X | 69 | class·X |
| Offset 61, 55 lines modified | Offset 76, 40 lines modified | ||
| 61 | ················byte·b·=·0; | 76 | ················byte·b·=·0; |
| 62 | ················if·(b·==·500) | 77 | ················if·(b·==·500) |
| 63 | ····················return; | 78 | ····················return; |
| 64 | » } | 79 | » } |
| 65 | » static·void·Main·()·{} | 80 | » static·void·Main·()·{} |
| 66 | }</string> | 81 | }</string> |
| 67 | ····<string>//·CS0652:·A·comparison·between·a·constant·and·a·variable·is·useless.·The·constant·is·out·of·the·range·of·the·variable·type·`ushort' | ||
| 68 | //·Line:·11 | ||
| 69 | //·Compiler·options:·/warn:2·/warnaserror | ||
| 70 | using·System; | ||
| 71 | public·class·CS0652·{ | ||
| 72 | » public·static·void·Main·()· | ||
| 73 | » { | ||
| 74 | » » ushort·us·=·0; | ||
| 75 | » » if·(us·==·-1) | ||
| 76 | » » » Console.WriteLine·(":("); | ||
| 77 | » » else | ||
| 78 | » » » Console.WriteLine·(":)"); | ||
| 79 | » } | ||
| 80 | }</string> | ||
| 81 | ····<string>//·CS0652:·A·comparison·between·a·constant·and·a·variable·is·useless.·The·constant·is·out·of·the·range·of·the·variable·type·`char' | 82 | ····<string>//·CS0652:·A·comparison·between·a·constant·and·a·variable·is·useless.·The·constant·is·out·of·the·range·of·the·variable·type·`char' |
| 82 | //·Line:·12 | 83 | //·Line:·12 |
| 83 | //·Compiler·options:·/warn:2·/warnaserror | 84 | //·Compiler·options:·/warn:2·/warnaserror |
| 84 | using·System; | 85 | using·System; |
| 85 | public·class·CS0652·{ | 86 | public·class·CS0652·{ |
| 86 | » public·static·void·Main·()· | 87 | » public·static·void·Main·()· |
| 87 | » { | 88 | » { |
| 88 | » » char·value·=·'a'; | 89 | » » char·value·=·'a'; |
| 89 | » » if·(value·& | 90 | » » if·(value·<·SByte.MinValue) |
| 90 | » » » return; | 91 | » » » return; |
| 91 | » } | 92 | » } |
| 92 | }</string> | 93 | }</string> |
| 93 | ····<string>//·CS0652:·A·comparison·between·a·constant·and·a·variable·is·useless.·The·constant·is·out·of·the·range·of·the·variable·type·`short' | 94 | ····<string>//·CS0652:·A·comparison·between·a·constant·and·a·variable·is·useless.·The·constant·is·out·of·the·range·of·the·variable·type·`ushort' |
| 94 | //·Line:·1 | 95 | //·Line:·11 |
| 95 | //·Compiler·options:·/warn:2·/warnaserror | 96 | //·Compiler·options:·/warn:2·/warnaserror |
| 96 | using·System; | 97 | using·System; |
| 97 | public·class·CS0652·{ | 98 | public·class·CS0652·{ |
| 98 | » public·static·void·Main·()· | 99 | » public·static·void·Main·()· |
| 99 | » { | 100 | » { |
| 100 | » » short· | 101 | » » ushort·us·=·0; |
| 101 | » » if·(value·>·char.MaxValue) | ||
| 102 | » » | 102 | » » if·(us·==·-1) |
| 103 | » » » Console.WriteLine·(":("); | ||
| Max diff block lines reached; 50/3863 bytes (1.29%) of diff not shown. | |||
| Offset 1, 11 lines modified | Offset 1, 32 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0656</ErrorName> | 3 | ··<ErrorName>CS0656</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0656:·The·compiler·required·member·`System.Threading.Interlocked.CompareExchange(ref·T,·T,·T)'·could·not·be·found·or·is·inaccessible | ||
| 6 | //·Line:·20 | ||
| 7 | //·Compiler·options:·-nostdlib·CS0656-corlib.cs | ||
| 8 | namespace·System·{ | ||
| 9 | ····public·partial·class·Delegate·{ | ||
| 10 | » public·static·Delegate·Combine(Delegate·a,·Delegate·b)·{·return·null;·} | ||
| 11 | » public·static·void·Remove(Delegate·a,·Delegate·b)·{·return;·} | ||
| 12 | ····} | ||
| 13 | } | ||
| 14 | namespace·System.Threading·{ | ||
| 15 | ····class·Interlocked·{} | ||
| 16 | } | ||
| 17 | delegate·void·D(); | ||
| 18 | class·Test | ||
| 19 | { | ||
| 20 | ····event·D·ev; | ||
| 21 | }</string> | ||
| 5 | ····<string>//·CS0656:·The·compiler·required·member·`decimal..ctor(int)'·could·not·be·found·or·is·inaccessible | 22 | ····<string>//·CS0656:·The·compiler·required·member·`decimal..ctor(int)'·could·not·be·found·or·is·inaccessible |
| 6 | //·Line:·9 | 23 | //·Line:·9 |
| 7 | //·Compiler·options:·-nostdlib·CS0656-corlib.cs | 24 | //·Compiler·options:·-nostdlib·CS0656-corlib.cs |
| 8 | class·C | 25 | class·C |
| 9 | { | 26 | { |
| 10 | » static·void·Main·() | 27 | » static·void·Main·() |
| Offset 26, 30 lines modified | Offset 47, 9 lines modified | ||
| 26 | » } | 47 | » } |
| 27 | } | 48 | } |
| 28 | class·C | 49 | class·C |
| 29 | { | 50 | { |
| 30 | » int[]·ff·=·new·int[]·{·1,·3,·4,·5,·6,·7,·8,·10,·22,·22,·233,·44,·55,·66·}; | 51 | » int[]·ff·=·new·int[]·{·1,·3,·4,·5,·6,·7,·8,·10,·22,·22,·233,·44,·55,·66·}; |
| 31 | }</string> | 52 | }</string> |
| 32 | ····<string>//·CS0656:·The·compiler·required·member·`System.Threading.Interlocked.CompareExchange(ref·T,·T,·T)'·could·not·be·found·or·is·inaccessible | ||
| 33 | //·Line:·20 | ||
| 34 | //·Compiler·options:·-nostdlib·CS0656-corlib.cs | ||
| 35 | namespace·System·{ | ||
| 36 | ····public·partial·class·Delegate·{ | ||
| 37 | » public·static·Delegate·Combine(Delegate·a,·Delegate·b)·{·return·null;·} | ||
| 38 | » public·static·void·Remove(Delegate·a,·Delegate·b)·{·return;·} | ||
| 39 | ····} | ||
| 40 | } | ||
| 41 | namespace·System.Threading·{ | ||
| 42 | ····class·Interlocked·{} | ||
| 43 | } | ||
| 44 | delegate·void·D(); | ||
| 45 | class·Test | ||
| 46 | { | ||
| 47 | ····event·D·ev; | ||
| 48 | }</string> | ||
| 49 | ··</Examples> | 53 | ··</Examples> |
| 50 | </ErrorDocumentation> | 54 | </ErrorDocumentation> |
| Offset 1, 29 lines modified | Offset 1, 23 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0657</ErrorName> | 3 | ··<ErrorName>CS0657</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0657:·`t | 5 | ····<string>//·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 |
| 6 | //·Line:· | 6 | //·Line:·9 |
| 7 | //·Compiler·options:·-warnaserror | 7 | //·Compiler·options:·-warnaserror |
| 8 | using·System; | 8 | using·System; |
| 9 | public·class·C | ||
| 9 | [AttributeUsage(AttributeTargets.All)] | ||
| 10 | public·class·TestAttribute:·Attribute | ||
| 11 | { | ||
| 12 | } | ||
| 13 | class·C | ||
| 14 | { | 10 | { |
| 11 | » [return:·CLSCompliant·(false)] | ||
| 12 | » public·C·() | ||
| 13 | » { | ||
| 14 | » } | ||
| 15 | ····[type:Test] | ||
| 16 | ····int·Prop·{ | ||
| 17 | ········set·{ | ||
| 18 | ········} | ||
| 19 | ····} | ||
| 20 | }</string> | 15 | }</string> |
| 21 | ····<string>//·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 | 16 | ····<string>//·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 |
| 22 | //·Line:·15 | 17 | //·Line:·15 |
| 23 | //·Compiler·options:·-warnaserror | 18 | //·Compiler·options:·-warnaserror |
| 24 | using·System; | 19 | using·System; |
| Offset 36, 254 lines modified | Offset 30, 260 lines modified | ||
| 36 | { | 30 | { |
| 37 | ····int·Prop·{ | 31 | ····int·Prop·{ |
| 38 | ········[type:Test] | 32 | ········[type:Test] |
| 39 | ········set·{ | 33 | ········set·{ |
| 40 | ········} | 34 | ········} |
| 41 | ····} | 35 | ····} |
| 42 | }</string> | 36 | }</string> |
| 43 | ····<string>//·CS0657:·` | 37 | ····<string>//·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 |
| 44 | //·Line:·9 | 38 | //·Line:·9 |
| 45 | //·Compiler·options:·-warnaserror | 39 | //·Compiler·options:·-warnaserror |
| 46 | using·System; | 40 | using·System; |
| 47 | 41 | abstract·class·X | |
| 48 | { | 42 | { |
| 49 | ····[assembly:·CLSCompliant·(false)] | ||
| 50 | 43 | » [field:NonSerialized] | |
| 44 | » public·abstract·event·EventHandler·XEvent; | ||
| 51 | }</string> | 45 | }</string> |
| 52 | ····<string>//·CS0657:·` | 46 | ····<string>//·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 |
| 53 | //·Line:·9 | 47 | //·Line:·9 |
| 54 | //·Compiler·options:·-warnaserror | 48 | //·Compiler·options:·-warnaserror |
| 55 | using·System; | 49 | using·System; |
| 56 | 50 | struct·S | |
| 57 | { | 51 | { |
| 52 | ····[param:·Obsolete] | ||
| 53 | ····void·method·()·{} | ||
| 58 | » [return:·CLSCompliant·(false)] | ||
| 59 | » public·C·() | ||
| 60 | » { | ||
| 61 | » } | ||
| 62 | }</string> | 54 | }</string> |
| 63 | ····<string>//·CS0657:·` | 55 | ····<string>//·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 |
| 64 | //·Line:· | 56 | //·Line:·15 |
| 65 | //·Compiler·options:·-warnaserror | 57 | //·Compiler·options:·-warnaserror |
| 66 | using·System | 58 | using·System; |
| 67 | namespace·N·{ | ||
| 68 | ····[assembly:·AssemblyKeyName("")] | ||
| 69 | 59 | [AttributeUsage(AttributeTargets.All)] | |
| 60 | public·class·TestAttribute:·Attribute | ||
| 61 | { | ||
| 62 | } | ||
| 63 | class·C | ||
| 64 | { | ||
| 65 | ····event·ResolveEventHandler·field·{· | ||
| 66 | ········[event:·Test] | ||
| 67 | ········add·{} | ||
| 68 | ········remove·{} | ||
| 69 | ············ | ||
| 70 | ····} | ||
| 71 | }</string> | ||
| 72 | ····<string>//·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 | ||
| 73 | //·Line:·15 | ||
| 74 | //·Compiler·options:·-warnaserror | ||
| 75 | using·System; | ||
| 76 | [AttributeUsage(AttributeTargets.All)] | ||
| 77 | public·class·TestAttribute:·Attribute | ||
| 78 | { | ||
| 79 | } | ||
| 80 | class·C | ||
| 81 | { | ||
| 82 | ····int·Prop·{ | ||
| 83 | ········[param:Test] | ||
| 84 | ········get·{ | ||
| 85 | ············return·1; | ||
| 86 | ········} | ||
| 87 | ····} | ||
| 70 | }</string> | 88 | }</string> |
| 71 | ····<string>//·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 | 89 | ····<string>//·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 |
| 72 | //·Line:·8 | 90 | //·Line:·8 |
| 73 | //·Compiler·options:·-warnaserror | 91 | //·Compiler·options:·-warnaserror |
| 74 | using·System; | 92 | using·System; |
| 75 | interface·X·{ | 93 | interface·X·{ |
| 76 | ··[field:NonSerialized] | 94 | ··[field:NonSerialized] |
| 77 | ··event·EventHandler·XEvent; | 95 | ··event·EventHandler·XEvent; |
| 78 | }</string> | 96 | }</string> |
| 79 | ····<string>//·CS0657:·` | 97 | ····<string>//·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 |
| 80 | //·Line:· | 98 | //·Line:·5 |
| 81 | //·Compiler·options:·-warnaserror | 99 | //·Compiler·options:·-warnaserror |
| 82 | 100 | [method:·Obsolete] | |
| 101 | delegate·void·Delegate·();</string> | ||
| Max diff block lines reached; 9577/14581 bytes (65.68%) of diff not shown. | |||
| Offset 1, 27 lines modified | Offset 1, 11 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0658</ErrorName> | 3 | ··<ErrorName>CS0658</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0658:·`value'·is·invalid·attribute·target.·All·attributes·in·this·attribute·section·will·be·ignored | ||
| 6 | //·Line·:·5 | ||
| 7 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| 8 | [reply]·["asd"]</string> | ||
| 9 | ····<string>//·CS0658:·`class'·is·invalid·attribute·target.·All·attributes·in·this·attribute·section·will·be·ignored | ||
| 10 | //·Line·:·8 | ||
| 11 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| 12 | using·System; | ||
| 13 | [class:Serializable] | ||
| 14 | public·class·C | ||
| 15 | { | ||
| 16 | ····public·static·void·Main·()·{} | ||
| 17 | }</string> | ||
| 18 | ····<string>//·CS0658:·`blah'·is·invalid·attribute·target.·All·attributes·in·this·attribute·section·will·be·ignored | 5 | ····<string>//·CS0658:·`blah'·is·invalid·attribute·target.·All·attributes·in·this·attribute·section·will·be·ignored |
| 19 | //·Line·:·9 | 6 | //·Line·:·9 |
| 20 | //·Compiler·options:·-warnaserror·-warn:1 | 7 | //·Compiler·options:·-warnaserror·-warn:1 |
| 21 | public·class·MyClass·{ | 8 | public·class·MyClass·{ |
| 22 | » delegate·int·MyDelegate·(int·i,·int·j); | 9 | » delegate·int·MyDelegate·(int·i,·int·j); |
| Offset 33, 9 lines modified | Offset 17, 25 lines modified | ||
| 33 | » } | 17 | » } |
| 34 | » public·static·implicit·operator·MyClass·(Object·o) | 18 | » public·static·implicit·operator·MyClass·(Object·o) |
| 35 | » { | 19 | » { |
| 36 | » } | 20 | » } |
| 37 | }</string> | 21 | }</string> |
| 22 | ····<string>//·CS0658:·`class'·is·invalid·attribute·target.·All·attributes·in·this·attribute·section·will·be·ignored | ||
| 23 | //·Line·:·8 | ||
| 24 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| 25 | using·System; | ||
| 26 | [class:Serializable] | ||
| 27 | public·class·C | ||
| 28 | { | ||
| 29 | ····public·static·void·Main·()·{} | ||
| 30 | }</string> | ||
| 31 | ····<string>//·CS0658:·`value'·is·invalid·attribute·target.·All·attributes·in·this·attribute·section·will·be·ignored | ||
| 32 | //·Line·:·5 | ||
| 33 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| 34 | [reply]·["asd"]</string> | ||
| 38 | ··</Examples> | 35 | ··</Examples> |
| 39 | </ErrorDocumentation> | 36 | </ErrorDocumentation> |
| Offset 1, 47 lines modified | Offset 1, 47 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0664</ErrorName> | 3 | ··<ErrorName>CS0664</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0664:·Literal·of·type·double·cannot·be·implicitly·converted·to·type·`float'.·Add·suffix·`f'·to·create·a·literal·of·this·type | ||
| 6 | //·Line:·13 | ||
| 7 | using·System; | ||
| 8 | public·sealed·class·BoundAttribute·:·System.Attribute | ||
| 9 | { | ||
| 10 | » public·float·D; | ||
| 11 | } | ||
| 12 | class·C | ||
| 13 | { | ||
| 14 | » [Bound·(D·=·300d)] | ||
| 15 | » double·d2; | ||
| 16 | }</string> | ||
| 17 | ····<string>//·CS0664:·Literal·of·type·double·cannot·be·implicitly·converted·to·type·`decimal'.·Add·suffix·`m'·to·create·a·literal·of·this·type | 5 | ····<string>//·CS0664:·Literal·of·type·double·cannot·be·implicitly·converted·to·type·`decimal'.·Add·suffix·`m'·to·create·a·literal·of·this·type |
| 18 | //·Line:·7 | 6 | //·Line:·7 |
| 19 | class·X·{ | 7 | class·X·{ |
| 20 | » void·A·() | 8 | » void·A·() |
| 21 | » { | 9 | » { |
| 22 | » » decimal·d·=· | 10 | » » decimal·d·=·2.0; |
| 23 | » } | 11 | » } |
| 24 | }</string> | 12 | }</string> |
| 25 | ····<string>//·CS0664:·Literal·of·type·double·cannot·be·implicitly·converted·to·type·`decimal'.·Add·suffix·`m'·to·create·a·literal·of·this·type | 13 | ····<string>//·CS0664:·Literal·of·type·double·cannot·be·implicitly·converted·to·type·`decimal'.·Add·suffix·`m'·to·create·a·literal·of·this·type |
| 26 | //·Line:·7 | 14 | //·Line:·7 |
| 27 | class·X·{ | 15 | class·X·{ |
| 28 | » void·A·() | 16 | » void·A·() |
| 29 | » { | 17 | » { |
| 30 | » » decimal·d·=·2.0; | 18 | » » decimal·d·=·-2.0; |
| 31 | » } | 19 | » } |
| 32 | }</string> | 20 | }</string> |
| 33 | ····<string>//·CS0664:·Literal·of·type·double·cannot·be·implicitly·converted·to·type·`float'.·Add·suffix·`f'·to·create·a·literal·of·this·type | 21 | ····<string>//·CS0664:·Literal·of·type·double·cannot·be·implicitly·converted·to·type·`float'.·Add·suffix·`f'·to·create·a·literal·of·this·type |
| 34 | //·Line:·6 | 22 | //·Line:·6 |
| 35 | class·X·{ | 23 | class·X·{ |
| 36 | » void·A·() | 24 | » void·A·() |
| 37 | » { | 25 | » { |
| 38 | » » float·f·=·2.0; | 26 | » » float·f·=·2.0; |
| 39 | » } | 27 | » } |
| 40 | }</string> | 28 | }</string> |
| 29 | ····<string>//·CS0664:·Literal·of·type·double·cannot·be·implicitly·converted·to·type·`float'.·Add·suffix·`f'·to·create·a·literal·of·this·type | ||
| 30 | //·Line:·13 | ||
| 31 | using·System; | ||
| 32 | public·sealed·class·BoundAttribute·:·System.Attribute | ||
| 33 | { | ||
| 34 | » public·float·D; | ||
| 35 | } | ||
| 36 | class·C | ||
| 37 | { | ||
| 38 | » [Bound·(D·=·300d)] | ||
| 39 | » double·d2; | ||
| 40 | }</string> | ||
| 41 | ··</Examples> | 41 | ··</Examples> |
| 42 | </ErrorDocumentation> | 42 | </ErrorDocumentation> |
| Offset 1, 31 lines modified | Offset 1, 31 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0665</ErrorName> | 3 | ··<ErrorName>CS0665</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·C | 5 | ····<string>//·CS0665:·Assignment·in·conditional·expression·is·always·constant.·Did·you·mean·to·use·`=='·instead·? |
| 6 | //·Line:·10 | 6 | //·Line:·10 |
| 7 | //·Compiler·options:·/warnaserror | 7 | //·Compiler·options:·/warnaserror |
| 8 | class·Test | 8 | class·Test |
| 9 | { | 9 | { |
| 10 | » public· | 10 | » public·void·Foo·(bool·x) |
| 11 | » { | 11 | » { |
| 12 | » » bool·b; | 12 | » » bool·b; |
| 13 | » » | 13 | » » if·(b·=·true) |
| 14 | » » » System.Console.WriteLine·(b); | ||
| 14 | » } | 15 | » } |
| 15 | }</string> | 16 | }</string> |
| 16 | ····<string>//·C | 17 | ····<string>//·Cs0665:·Assignment·in·conditional·expression·is·always·constant.·Did·you·mean·to·use·`=='·instead·? |
| 17 | //·Line:·10 | 18 | //·Line:·10 |
| 18 | //·Compiler·options:·/warnaserror | 19 | //·Compiler·options:·/warnaserror |
| 19 | class·Test | 20 | class·Test |
| 20 | { | 21 | { |
| 21 | » public· | 22 | » public·bool·Foo·(bool·x) |
| 22 | » { | 23 | » { |
| 23 | » » bool·b; | 24 | » » bool·b; |
| 25 | » » return·(b·=·true)·?·true·:·b; | ||
| 24 | » » if·(b·=·true) | ||
| 25 | » » » System.Console.WriteLine·(b); | ||
| 26 | » } | 26 | » } |
| 27 | }</string> | 27 | }</string> |
| 28 | ··</Examples> | 28 | ··</Examples> |
| 29 | </ErrorDocumentation> | 29 | </ErrorDocumentation> |
| Offset 1, 25 lines modified | Offset 1, 11 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0672</ErrorName> | 3 | ··<ErrorName>CS0672</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0672:·Member·`B.MyEvent'·overrides·obsolete·member·`A.MyEvent'.·Add·the·Obsolete·attribute·to·`B.MyEvent' | ||
| 6 | //·Line:·13 | ||
| 7 | //·Compiler·options:·-warnaserror | ||
| 8 | using·System; | ||
| 9 | class·A·{ | ||
| 10 | » [Obsolete] | ||
| 11 | » public·virtual·event·EventHandler·MyEvent; | ||
| 12 | } | ||
| 13 | class·B·:·A·{ | ||
| 14 | » public·override·event·EventHandler·MyEvent; | ||
| 15 | }</string> | ||
| 16 | ····<string>//·CS0672:·Member·`B.Warning'·overrides·obsolete·member·`A.Warning'.·Add·the·Obsolete·attribute·to·`B.Warning' | 5 | ····<string>//·CS0672:·Member·`B.Warning'·overrides·obsolete·member·`A.Warning'.·Add·the·Obsolete·attribute·to·`B.Warning' |
| 17 | //·Line:·15 | 6 | //·Line:·15 |
| 18 | //·Compiler·options:·-warnaserror | 7 | //·Compiler·options:·-warnaserror |
| 19 | using·System; | 8 | using·System; |
| 20 | public·class·A·{ | 9 | public·class·A·{ |
| Offset 61, 9 lines modified | Offset 47, 23 lines modified | ||
| 61 | ········protected·virtual·void·Method·()·{} | 47 | ········protected·virtual·void·Method·()·{} |
| 62 | } | 48 | } |
| 63 | class·C:·BaseClass | 49 | class·C:·BaseClass |
| 64 | { | 50 | { |
| 65 | ········protected·override·void·Method·()·{} | 51 | ········protected·override·void·Method·()·{} |
| 66 | }</string> | 52 | }</string> |
| 53 | ····<string>//·CS0672:·Member·`B.MyEvent'·overrides·obsolete·member·`A.MyEvent'.·Add·the·Obsolete·attribute·to·`B.MyEvent' | ||
| 54 | //·Line:·13 | ||
| 55 | //·Compiler·options:·-warnaserror | ||
| 56 | using·System; | ||
| 57 | class·A·{ | ||
| 58 | » [Obsolete] | ||
| 59 | » public·virtual·event·EventHandler·MyEvent; | ||
| 60 | } | ||
| 61 | class·B·:·A·{ | ||
| 62 | » public·override·event·EventHandler·MyEvent; | ||
| 63 | }</string> | ||
| 67 | ··</Examples> | 64 | ··</Examples> |
| 68 | </ErrorDocumentation> | 65 | </ErrorDocumentation> |
| Offset 1, 28 lines modified | Offset 1, 28 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0673</ErrorName> | 3 | ··<ErrorName>CS0673</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0673:·System.Void·cannot·be·used·from·C#.·Consider·using·`void' | 5 | ····<string>//·CS0673:·System.Void·cannot·be·used·from·C#.·Consider·using·`void' |
| 6 | //·Line:·8 | 6 | //·Line:·8 |
| 7 | using·System; | ||
| 8 | public·class·X | 7 | public·class·X |
| 9 | { | 8 | { |
| 10 | » public·static·void·Main() | 9 | » public·static·void·Main() |
| 11 | » { | 10 | » { |
| 12 | » » Void | 11 | » » System.Type·t·=·typeof·(System.Void); |
| 13 | » } | 12 | » } |
| 14 | }</string> | 13 | }</string> |
| 15 | ····<string>//·CS0673:·System.Void·cannot·be·used·from·C#.·Consider·using·`void' | 14 | ····<string>//·CS0673:·System.Void·cannot·be·used·from·C#.·Consider·using·`void' |
| 16 | //·Line:·8 | 15 | //·Line:·8 |
| 16 | using·System; | ||
| 17 | public·class·X | 17 | public·class·X |
| 18 | { | 18 | { |
| 19 | » public·static·void·Main() | 19 | » public·static·void·Main() |
| 20 | » { | 20 | » { |
| 21 | » » | 21 | » » Void·v; |
| 22 | » } | 22 | » } |
| 23 | }</string> | 23 | }</string> |
| 24 | ··</Examples> | 24 | ··</Examples> |
| 25 | </ErrorDocumentation> | 25 | </ErrorDocumentation> |
| Offset 1, 32 lines modified | Offset 1, 14 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0677</ErrorName> | 3 | ··<ErrorName>CS0677</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0677:·`C<T>.t':·A·volatile·field·cannot·be·of·the·type·`T' | 5 | ····<string>//·CS0677:·`C<T>.t':·A·volatile·field·cannot·be·of·the·type·`T' |
| 6 | //·Line:·8 | 6 | //·Line:·8 |
| 7 | public·class·C<T>··where·T·:·struct | ||
| 8 | { | ||
| 9 | » volatile·T·t; | ||
| 10 | }</string> | ||
| 11 | ····<string>//·CS0677:·`X.e':·A·volatile·field·cannot·be·of·the·type·`E' | ||
| 12 | //·Line:·10 | ||
| 13 | enum·E·:·long | ||
| 14 | { | ||
| 15 | } | ||
| 16 | class·X | ||
| 17 | { | ||
| 18 | » volatile·E·e; | ||
| 19 | }</string> | ||
| 20 | ····<string>//·CS0677:·`C<T>.t':·A·volatile·field·cannot·be·of·the·type·`T' | ||
| 21 | //·Line:·8 | ||
| 22 | public·class·C<T> | 7 | public·class·C<T> |
| 23 | { | 8 | { |
| 24 | » volatile·T·t; | 9 | » volatile·T·t; |
| 25 | }</string> | 10 | }</string> |
| 26 | ····<string>//·CS0677:·`X.a':·A·volatile·field·cannot·be·of·the·type·`A' | 11 | ····<string>//·CS0677:·`X.a':·A·volatile·field·cannot·be·of·the·type·`A' |
| 27 | //·Line:·8 | 12 | //·Line:·8 |
| 28 | using·System; | 13 | using·System; |
| Offset 35, 14 lines modified | Offset 17, 32 lines modified | ||
| 35 | class·X·{ | 17 | class·X·{ |
| 36 | » public·volatile·A·a; | 18 | » public·volatile·A·a; |
| 37 | » static·void·Main·() | 19 | » static·void·Main·() |
| 38 | » » { | 20 | » » { |
| 39 | » » } | 21 | » » } |
| 40 | }</string> | 22 | }</string> |
| 23 | ····<string>//·CS0677:·`C<T>.t':·A·volatile·field·cannot·be·of·the·type·`T' | ||
| 24 | //·Line:·8 | ||
| 25 | public·class·C<T>··where·T·:·struct | ||
| 26 | { | ||
| 27 | » volatile·T·t; | ||
| 28 | }</string> | ||
| 29 | ····<string>//·CS0677:·`X.e':·A·volatile·field·cannot·be·of·the·type·`E' | ||
| 30 | //·Line:·10 | ||
| 31 | enum·E·:·long | ||
| 32 | { | ||
| 33 | } | ||
| 34 | class·X | ||
| 35 | { | ||
| 36 | » volatile·E·e; | ||
| 37 | }</string> | ||
| 41 | ····<string>//·CS0677:·`X.d':·A·volatile·field·cannot·be·of·the·type·`double' | 38 | ····<string>//·CS0677:·`X.d':·A·volatile·field·cannot·be·of·the·type·`double' |
| 42 | //·Line:·6 | 39 | //·Line:·6 |
| 43 | class·X | 40 | class·X |
| 44 | { | 41 | { |
| 45 | » public·volatile·double·d; | 42 | » public·volatile·double·d; |
| 46 | }</string> | 43 | }</string> |
| Offset 1, 52 lines modified | Offset 1, 52 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0693</ErrorName> | 3 | ··<ErrorName>CS0693</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0693:·Type·parameter·` | 5 | ····<string>//·CS0693:·Type·parameter·`T'·has·the·same·name·as·the·type·parameter·from·outer·type·`A<T>' |
| 6 | //·Line:·7 | ||
| 7 | //·Compiler·options:·-warnaserror·-warn:3 | ||
| 8 | class·A<T> | ||
| 9 | { | ||
| 10 | ····interface·I<T> | ||
| 11 | ····{ | ||
| 12 | ····} | ||
| 13 | }</string> | ||
| 14 | ····<string>//·CS0693:·Type·parameter·`T'·has·the·same·name·as·the·type·parameter·from·outer·type·`R<U>.A<T>' | ||
| 6 | //·Line:·9 | 15 | //·Line:·9 |
| 7 | //·Compiler·options:·-warnaserror·-warn:3 | 16 | //·Compiler·options:·-warnaserror·-warn:3 |
| 8 | class·R<U> | 17 | class·R<U> |
| 9 | { | 18 | { |
| 10 | » class·A<T> | 19 | » class·A<T> |
| 11 | » { | 20 | » { |
| 12 | » » struct·I< | 21 | » » struct·I<T> |
| 13 | » » { | 22 | » » { |
| 14 | » » } | 23 | » » } |
| 15 | » } | 24 | » } |
| 16 | }</string> | 25 | }</string> |
| 17 | ····<string>//·CS0693:·Type·parameter·` | 26 | ····<string>//·CS0693:·Type·parameter·`U'·has·the·same·name·as·the·type·parameter·from·outer·type·`R<U>' |
| 18 | //·Line:· | 27 | //·Line:·9 |
| 19 | //·Compiler·options:·-warnaserror·-warn:3 | 28 | //·Compiler·options:·-warnaserror·-warn:3 |
| 20 | class· | 29 | class·R<U> |
| 21 | { | 30 | { |
| 22 | » | 31 | » class·A<T> |
| 23 | » { | 32 | » { |
| 33 | » » struct·I<U> | ||
| 34 | » » { | ||
| 35 | » » } | ||
| 24 | » } | 36 | » } |
| 25 | }</string> | 37 | }</string> |
| 26 | ····<string>//·CS0693:·Type·parameter·`T'·has·the·same·name·as·the·type·parameter·from·outer·type·` | 38 | ····<string>//·CS0693:·Type·parameter·`T'·has·the·same·name·as·the·type·parameter·from·outer·type·`C<T>' |
| 27 | //·Line:·7 | 39 | //·Line:·7 |
| 28 | //·Compiler·options:·-warnaserror·-warn:3 | 40 | //·Compiler·options:·-warnaserror·-warn:3 |
| 29 | class· | 41 | class·C<T> |
| 30 | { | ||
| 31 | ····interface·I<T> | ||
| 32 | ····{ | ||
| 33 | ····} | ||
| 34 | }</string> | ||
| 35 | ····<string>//·CS0693:·Type·parameter·`T'·has·the·same·name·as·the·type·parameter·from·outer·type·`R<U>.A<T>' | ||
| 36 | //·Line:·9 | ||
| 37 | //·Compiler·options:·-warnaserror·-warn:3 | ||
| 38 | class·R<U> | ||
| 39 | { | 42 | { |
| 40 | » | 43 | » void·Foo<T>·(T·t) |
| 41 | » { | 44 | » { |
| 42 | » » struct·I<T> | ||
| 43 | » » { | ||
| 44 | » » } | ||
| 45 | » } | 45 | » } |
| 46 | }</string> | 46 | }</string> |
| 47 | ··</Examples> | 47 | ··</Examples> |
| 48 | </ErrorDocumentation> | 48 | </ErrorDocumentation> |
| Offset 1, 21 lines modified | Offset 1, 31 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0695</ErrorName> | 3 | ··<ErrorName>CS0695</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0695:·`C< | 5 | ····<string>//·CS0695:·`C<T,U>'·cannot·implement·both·`A<T>.IB'·and·`A<U>.IB'·because·they·may·unify·for·some·type·parameter·substitutions |
| 6 | //·Line:·1 | 6 | //·Line:·11 |
| 7 | interface·I<X> | ||
| 8 | 7 | class·A<T> | |
| 8 | { | ||
| 9 | » public·interface·IB | ||
| 10 | » { | ||
| 11 | » } | ||
| 12 | } | ||
| 13 | class·C<T,·U>·:·A<T>.IB,·A<U>.IB | ||
| 14 | { | ||
| 15 | }</string> | ||
| 16 | ····<string>//·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 | ||
| 17 | //·Line:·7 | ||
| 9 | interface· | 18 | interface·I<X> |
| 10 | {·} | 19 | {·} |
| 11 | class· | 20 | class·A<X,Y,Z>·:·I<X>,·I<A<Y,Y,Z>> |
| 12 | {·}</string> | 21 | {·}</string> |
| 13 | ····<string>//·CS0695:·`C<T1,T2>'·cannot·implement·both·`IA<T1>'·and·`IB<IA<T2>>'·because·they·may·unify·for·some·type·parameter·substitutions | 22 | ····<string>//·CS0695:·`C<T1,T2>'·cannot·implement·both·`IA<T1>'·and·`IB<IA<T2>>'·because·they·may·unify·for·some·type·parameter·substitutions |
| 14 | //·Line:·12 | 23 | //·Line:·12 |
| 15 | interface·IA<T> | 24 | interface·IA<T> |
| 16 | { | 25 | { |
| 17 | } | 26 | } |
| Offset 23, 54 lines modified | Offset 33, 33 lines modified | ||
| 23 | interface·IB<T>·:·IA<T> | 33 | interface·IB<T>·:·IA<T> |
| 24 | { | 34 | { |
| 25 | } | 35 | } |
| 26 | class·C<T1,·T2>·:·IA<T1>,·IB<IA<T2>> | 36 | class·C<T1,·T2>·:·IA<T1>,·IB<IA<T2>> |
| 27 | { | 37 | { |
| 28 | }</string> | 38 | }</string> |
| 29 | ····<string>//·CS0695:·`C<X,Y>'·cannot·implement·both·`I< | 39 | ····<string>//·CS0695:·`C<X,Y>'·cannot·implement·both·`I<X>'·and·`I<K<Y>>'·because·they·may·unify·for·some·type·parameter·substitutions |
| 30 | //·Line:·10 | 40 | //·Line:·10 |
| 31 | interface·I<X> | 41 | interface·I<X> |
| 32 | {·} | 42 | {·} |
| 33 | interface·K<X> | 43 | interface·K<X> |
| 34 | {·} | 44 | {·} |
| 35 | class·C<X,Y>·:·I< | 45 | class·C<X,Y>·:·I<X>,·I<K<Y>> |
| 36 | {·}</string> | 46 | {·}</string> |
| 37 | ····<string>//·CS0695:·`A<X,Y>'·cannot·implement·both·`I<X>'·and·`I<Y>'·because·they·may·unify·for·some·type·parameter·substitutions | 47 | ····<string>//·CS0695:·`A<X,Y>'·cannot·implement·both·`I<X>'·and·`I<Y>'·because·they·may·unify·for·some·type·parameter·substitutions |
| 38 | //·Line:·7 | 48 | //·Line:·7 |
| 39 | interface·I<X> | 49 | interface·I<X> |
| 40 | {·} | 50 | {·} |
| 41 | class·A<X,Y>·:·I<X>,·I<Y> | 51 | class·A<X,Y>·:·I<X>,·I<Y> |
| 42 | {·}</string> | 52 | {·}</string> |
| 43 | ····<string>//·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 | ||
| 44 | //·Line:·7 | ||
| 45 | interface·I<X> | ||
| 46 | {·} | ||
| 47 | class·A<X,Y,Z>·:·I<X>,·I<A<Y,Y,Z>> | ||
| 48 | {·}</string> | ||
| 49 | ····<string>//·CS0695:·`C<T,U>'·cannot·implement·both·`A<T>.IB'·and·`A<U>.IB'·because·they·may·unify·for·some·type·parameter·substitutions | ||
| 50 | //·Line:·11 | ||
| 51 | class·A<T> | ||
| 52 | { | ||
| 53 | » public·interface·IB | ||
| 54 | » { | ||
| 55 | » } | ||
| 56 | } | ||
| 57 | class·C<T,·U>·:·A<T>.IB,·A<U>.IB | ||
| 58 | { | ||
| 59 | }</string> | ||
| 60 | ····<string>//·CS0695:·`Test<T>.TestN'·cannot·implement·both·`C<T>.I'·and·`C<string>.I'·because·they·may·unify·for·some·type·parameter·substitutions | 53 | ····<string>//·CS0695:·`Test<T>.TestN'·cannot·implement·both·`C<T>.I'·and·`C<string>.I'·because·they·may·unify·for·some·type·parameter·substitutions |
| 61 | //·Line:·17 | 54 | //·Line:·17 |
| 62 | class·C<T> | 55 | class·C<T> |
| 63 | { | 56 | { |
| 64 | » public·interface·I | 57 | » public·interface·I |
| 65 | » { | 58 | » { |
| Offset 83, 9 lines modified | Offset 72, 20 lines modified | ||
| 83 | class·Test<T>·:·C<T> | 72 | class·Test<T>·:·C<T> |
| 84 | { | 73 | { |
| 85 | » class·TestN·:·I,·N.I | 74 | » class·TestN·:·I,·N.I |
| 86 | » { | 75 | » { |
| 87 | » } | 76 | » } |
| 88 | }</string> | 77 | }</string> |
| 78 | ····<string>//·CS0695:·`C<X,Y>'·cannot·implement·both·`I<K<Y>>'·and·`I<X>'·because·they·may·unify·for·some·type·parameter·substitutions | ||
| 79 | //·Line:·10 | ||
| 80 | interface·I<X> | ||
| 81 | {·} | ||
| 82 | interface·K<X> | ||
| 83 | {·} | ||
| 84 | class·C<X,Y>·:·I<K<Y>>,·I<X> | ||
| 85 | {·}</string> | ||
| 89 | ··</Examples> | 86 | ··</Examples> |
| 90 | </ErrorDocumentation> | 87 | </ErrorDocumentation> |
| Offset 1, 30 lines modified | Offset 1, 30 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0698</ErrorName> | 3 | ··<ErrorName>CS0698</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0698:·A·generic·type·cannot·derive·from·` | 5 | ····<string>//·CS0698:·A·generic·type·cannot·derive·from·`System.Attribute'·because·it·is·an·attribute·class |
| 6 | //·Line:·6 | 6 | //·Line:·6 |
| 7 | using·System; | 7 | using·System; |
| 8 | class·Stack<T>·:· | 8 | class·Stack<T>·:·Attribute |
| 9 | {·} | 9 | {·} |
| 10 | class·X | 10 | class·X |
| 11 | { | 11 | { |
| 12 | » static·void·Main·() | ||
| 13 | » {·} | ||
| 12 | }</string> | 14 | }</string> |
| 13 | ····<string>//·CS0698:·A·generic·type·cannot·derive·from·` | 15 | ····<string>//·CS0698:·A·generic·type·cannot·derive·from·`X'·because·it·is·an·attribute·class |
| 14 | //·Line:·6 | 16 | //·Line:·6 |
| 15 | using·System; | 17 | using·System; |
| 16 | class·Stack<T>·:· | 18 | class·Stack<T>·:·X |
| 17 | {·} | 19 | {·} |
| 18 | class·X | 20 | class·X·:·Attribute |
| 19 | { | 21 | { |
| 20 | » static·void·Main·() | ||
| 21 | » {·} | ||
| 22 | }</string> | 22 | }</string> |
| 23 | ··</Examples> | 23 | ··</Examples> |
| 24 | </ErrorDocumentation> | 24 | </ErrorDocumentation> |
| Offset 1, 23 lines modified | Offset 1, 23 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0699</ErrorName> | 3 | ··<ErrorName>CS0699</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0699:·`I.Test<T>()':·A·constraint·references·nonexistent·type·parameter·`U' | ||
| 6 | //·Line:·6 | ||
| 7 | interface·I | ||
| 8 | { | ||
| 9 | » void·Test<T>()·where·U·:·class; | ||
| 10 | }</string> | ||
| 11 | ····<string>//·CS0699:·`I<T>':·A·constraint·references·nonexistent·type·parameter·`U' | 5 | ····<string>//·CS0699:·`I<T>':·A·constraint·references·nonexistent·type·parameter·`U' |
| 12 | //·Line:·8 | 6 | //·Line:·8 |
| 13 | partial·interface·I<T> | 7 | partial·interface·I<T> |
| 14 | { | 8 | { |
| 15 | } | 9 | } |
| 16 | partial·interface·I<T>·where·U·:·class | 10 | partial·interface·I<T>·where·U·:·class |
| 17 | { | 11 | { |
| 18 | }</string> | 12 | }</string> |
| 13 | ····<string>//·CS0699:·`I.Test<T>()':·A·constraint·references·nonexistent·type·parameter·`U' | ||
| 14 | //·Line:·6 | ||
| 15 | interface·I | ||
| 16 | { | ||
| 17 | » void·Test<T>()·where·U·:·class; | ||
| 18 | }</string> | ||
| 19 | ··</Examples> | 19 | ··</Examples> |
| 20 | </ErrorDocumentation> | 20 | </ErrorDocumentation> |
| Offset 1, 30 lines modified | Offset 1, 30 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0701</ErrorName> | 3 | ··<ErrorName>CS0701</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0701:·` | 5 | ····<string>//·CS0701:·`string'·is·not·a·valid·constraint.·A·constraint·must·be·an·interface,·a·non-sealed·class·or·a·type·parameter |
| 6 | //·Line:· | 6 | //·Line:·4 |
| 7 | sealed·class·A·{·} | ||
| 8 | class·Foo<T>·where·T·:· | 7 | class·Foo<T>·where·T·:·string |
| 9 | { | 8 | { |
| 10 | }</string> | 9 | }</string> |
| 11 | ····<string>//·CS0701:·`S'·is·not·a·valid·constraint.·A·constraint·must·be·an·interface,·a·non-sealed·class·or·a·type·parameter | 10 | ····<string>//·CS0701:·`S'·is·not·a·valid·constraint.·A·constraint·must·be·an·interface,·a·non-sealed·class·or·a·type·parameter |
| 12 | //·Line:·8 | 11 | //·Line:·8 |
| 13 | struct·S | 12 | struct·S |
| 14 | { | 13 | { |
| 15 | } | 14 | } |
| 16 | class·Foo<T>·where·T·:·S | 15 | class·Foo<T>·where·T·:·S |
| 17 | { | 16 | { |
| 18 | }</string> | 17 | }</string> |
| 19 | ····<string>//·CS0701:·` | 18 | ····<string>//·CS0701:·`A'·is·not·a·valid·constraint.·A·constraint·must·be·an·interface,·a·non-sealed·class·or·a·type·parameter |
| 20 | //·Line:· | 19 | //·Line:·6 |
| 20 | sealed·class·A·{·} | ||
| 21 | class·Foo<T>·where·T·:· | 21 | class·Foo<T>·where·T·:·A |
| 22 | { | 22 | { |
| 23 | }</string> | 23 | }</string> |
| 24 | ··</Examples> | 24 | ··</Examples> |
| 25 | </ErrorDocumentation> | 25 | </ErrorDocumentation> |
| Offset 1, 32 lines modified | Offset 1, 32 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0702</ErrorName> | 3 | ··<ErrorName>CS0702</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0702:·A·constraint·cannot·be·special·class·` | 5 | ····<string>//·CS0702:·A·constraint·cannot·be·special·class·`object' |
| 6 | //·Line:·8 | 6 | //·Line:·8 |
| 7 | using·System; | 7 | using·System; |
| 8 | class·Foo<T> | 8 | class·Foo<T> |
| 9 | » where·T·:· | 9 | » where·T·:·object |
| 10 | { | 10 | { |
| 11 | }</string> | 11 | }</string> |
| 12 | ····<string>//·CS0702:·A·constraint·cannot·be·special·class·`System.MulticastDelegate' | 12 | ····<string>//·CS0702:·A·constraint·cannot·be·special·class·`System.MulticastDelegate' |
| 13 | //·Line:·6 | 13 | //·Line:·6 |
| 14 | using·System; | 14 | using·System; |
| 15 | class·C<T>·where·T·:·MulticastDelegate | 15 | class·C<T>·where·T·:·MulticastDelegate |
| 16 | { | 16 | { |
| 17 | }</string> | 17 | }</string> |
| 18 | ····<string>//·CS0702:·A·constraint·cannot·be·special·class·` | 18 | ····<string>//·CS0702:·A·constraint·cannot·be·special·class·`System.Array' |
| 19 | //·Line:·8 | 19 | //·Line:·8 |
| 20 | using·System; | 20 | using·System; |
| 21 | class·Foo<T> | 21 | class·Foo<T> |
| 22 | » where·T·:· | 22 | » where·T·:·Array |
| 23 | { | 23 | { |
| 24 | }</string> | 24 | }</string> |
| 25 | ··</Examples> | 25 | ··</Examples> |
| 26 | </ErrorDocumentation> | 26 | </ErrorDocumentation> |
| Offset 1, 11 lines modified | Offset 1, 16 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0714</ErrorName> | 3 | ··<ErrorName>CS0714</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0714:·Static·class·`StaticClass'·cannot·implement·interfaces | ||
| 6 | //·Line:·4 | ||
| 7 | static·class·StaticClass:·System.IComparable·{ | ||
| 8 | }</string> | ||
| 5 | ····<string>//·CS0714:·Static·class·`C'·cannot·implement·interfaces | 9 | ····<string>//·CS0714:·Static·class·`C'·cannot·implement·interfaces |
| 6 | //·Line:·12 | 10 | //·Line:·12 |
| 7 | interface·I | 11 | interface·I |
| 8 | { | 12 | { |
| 9 | } | 13 | } |
| Offset 22, 14 lines modified | Offset 27, 9 lines modified | ||
| 22 | static·partial·class·StaticClass | 27 | static·partial·class·StaticClass |
| 23 | { | 28 | { |
| 24 | } | 29 | } |
| 25 | static·partial·class·StaticClass:·System.ICloneable | 30 | static·partial·class·StaticClass:·System.ICloneable |
| 26 | { | 31 | { |
| 27 | }</string> | 32 | }</string> |
| 28 | ····<string>//·CS0714:·Static·class·`StaticClass'·cannot·implement·interfaces | ||
| 29 | //·Line:·4 | ||
| 30 | static·class·StaticClass:·System.IComparable·{ | ||
| 31 | }</string> | ||
| 32 | ··</Examples> | 33 | ··</Examples> |
| 33 | </ErrorDocumentation> | 34 | </ErrorDocumentation> |
| Offset 1, 12 lines modified | Offset 1, 24 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0719</ErrorName> | 3 | ··<ErrorName>CS0719</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0719:·Array·elements·cannot·be·of·static·type·`StaticClass' | 5 | ····<string>//·CS0719:·Array·elements·cannot·be·of·static·type·`StaticClass' |
| 6 | //·Line:·10 | ||
| 7 | static·class·StaticClass·{ | ||
| 8 | } | ||
| 9 | class·MainClass·{ | ||
| 10 | ····public·static·object·Method·() | ||
| 11 | ····{ | ||
| 12 | ········return·new·StaticClass·[3]; | ||
| 13 | ····} | ||
| 14 | }</string> | ||
| 15 | ····<string>//·CS0719:·Array·elements·cannot·be·of·static·type·`StaticClass' | ||
| 6 | //·Line:·12 | 16 | //·Line:·12 |
| 7 | using·System; | 17 | using·System; |
| 8 | static·class·StaticClass | 18 | static·class·StaticClass |
| 9 | { | 19 | { |
| 10 | } | 20 | } |
| Offset 15, 21 lines modified | Offset 27, 9 lines modified | ||
| 15 | { | 27 | { |
| 16 | » Type·Type·{ | 28 | » Type·Type·{ |
| 17 | » » get·{ | 29 | » » get·{ |
| 18 | » » » return·typeof·(StaticClass·[]); | 30 | » » » return·typeof·(StaticClass·[]); |
| 19 | » » } | 31 | » » } |
| 20 | » } | 32 | » } |
| 21 | }</string> | 33 | }</string> |
| 22 | ····<string>//·CS0719:·Array·elements·cannot·be·of·static·type·`StaticClass' | ||
| 23 | //·Line:·10 | ||
| 24 | static·class·StaticClass·{ | ||
| 25 | } | ||
| 26 | class·MainClass·{ | ||
| 27 | ····public·static·object·Method·() | ||
| 28 | ····{ | ||
| 29 | ········return·new·StaticClass·[3]; | ||
| 30 | ····} | ||
| 31 | }</string> | ||
| 32 | ··</Examples> | 34 | ··</Examples> |
| 33 | </ErrorDocumentation> | 35 | </ErrorDocumentation> |
| Offset 5, 27 lines modified | Offset 5, 27 lines modified | ||
| 5 | ····<string>//·CS0722:·`StaticClass':·static·types·cannot·be·used·as·return·types | 5 | ····<string>//·CS0722:·`StaticClass':·static·types·cannot·be·used·as·return·types |
| 6 | //·Line:·8 | 6 | //·Line:·8 |
| 7 | static·class·StaticClass·{ | 7 | static·class·StaticClass·{ |
| 8 | } | 8 | } |
| 9 | class·MainClass·{ | 9 | class·MainClass·{ |
| 10 | ····public·static·StaticClass· | 10 | ····public·static·StaticClass·Method·() |
| 11 | ···· | 11 | ····{ |
| 12 | ········ | 12 | ········return·null; |
| 13 | ········} | ||
| 14 | ····} | 13 | ····} |
| 15 | }</string> | 14 | }</string> |
| 16 | ····<string>//·CS0722:·`StaticClass':·static·types·cannot·be·used·as·return·types | 15 | ····<string>//·CS0722:·`StaticClass':·static·types·cannot·be·used·as·return·types |
| 17 | //·Line:·8 | 16 | //·Line:·8 |
| 18 | static·class·StaticClass·{ | 17 | static·class·StaticClass·{ |
| 19 | } | 18 | } |
| 20 | class·MainClass·{ | 19 | class·MainClass·{ |
| 21 | ····public·static·StaticClass· | 20 | ····public·static·StaticClass·Prop·{ |
| 22 | ····{ | 21 | ········get·{ |
| 23 | ········return·null; | 22 | ············return·null; |
| 23 | ········} | ||
| 24 | ····} | 24 | ····} |
| 25 | }</string> | 25 | }</string> |
| 26 | ··</Examples> | 26 | ··</Examples> |
| 27 | </ErrorDocumentation> | 27 | </ErrorDocumentation> |
| Offset 1, 11 lines modified | Offset 1, 30 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0728</ErrorName> | 3 | ··<ErrorName>CS0728</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0728:·Possibly·incorrect·assignment·to·`token'·which·is·the·argument·to·a·using·or·lock·statement | ||
| 6 | //·Line:·11 | ||
| 7 | //·Compiler·options:·-warnaserror | ||
| 8 | public·class·Foo | ||
| 9 | { | ||
| 10 | » public·static·void·Main·() | ||
| 11 | » { | ||
| 12 | » » object·token·=·new·object·(); | ||
| 13 | » » lock·(token) | ||
| 14 | » » { | ||
| 15 | » » » Foo2·(ref·token); | ||
| 16 | » » } | ||
| 17 | » } | ||
| 18 | » | ||
| 19 | » static·void·Foo2·(ref·object·o) | ||
| 20 | » { | ||
| 21 | » } | ||
| 22 | }</string> | ||
| 5 | ····<string>//·CS0728:·Possibly·incorrect·assignment·to·`s'·which·is·the·argument·to·a·using·or·lock·statement | 23 | ····<string>//·CS0728:·Possibly·incorrect·assignment·to·`s'·which·is·the·argument·to·a·using·or·lock·statement |
| 6 | //·Line:·12 | 24 | //·Line:·12 |
| 7 | //·Compiler·options:·-warnaserror | 25 | //·Compiler·options:·-warnaserror |
| 8 | public·class·Foo | 26 | public·class·Foo |
| 9 | { | 27 | { |
| 10 | » public·static·void·Test·(ref·string·s) | 28 | » public·static·void·Test·(ref·string·s) |
| Offset 27, 28 lines modified | Offset 46, 9 lines modified | ||
| 27 | » public·static·void·Test·(IDisposable·d) | 46 | » public·static·void·Test·(IDisposable·d) |
| 28 | » { | 47 | » { |
| 29 | » » using·(d)·{ | 48 | » » using·(d)·{ |
| 30 | » » » d·=·null; | 49 | » » » d·=·null; |
| 31 | » » } | 50 | » » } |
| 32 | » } | 51 | » } |
| 33 | }</string> | 52 | }</string> |
| 34 | ····<string>//·CS0728:·Possibly·incorrect·assignment·to·`token'·which·is·the·argument·to·a·using·or·lock·statement | ||
| 35 | //·Line:·11 | ||
| 36 | //·Compiler·options:·-warnaserror | ||
| 37 | public·class·Foo | ||
| 38 | { | ||
| 39 | » public·static·void·Main·() | ||
| 40 | » { | ||
| 41 | » » object·token·=·new·object·(); | ||
| 42 | » » lock·(token) | ||
| 43 | » » { | ||
| 44 | » » » Foo2·(ref·token); | ||
| 45 | » » } | ||
| 46 | » } | ||
| 47 | » | ||
| 48 | » static·void·Foo2·(ref·object·o) | ||
| 49 | » { | ||
| 50 | » } | ||
| 51 | }</string> | ||
| 52 | ··</Examples> | 53 | ··</Examples> |
| 53 | </ErrorDocumentation> | 54 | </ErrorDocumentation> |
| Offset 4, 17 lines modified | Offset 4, 17 lines modified | ||
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0735:·Invalid·type·specified·as·an·argument·for·TypeForwardedTo·attribute | 5 | ····<string>//·CS0735:·Invalid·type·specified·as·an·argument·for·TypeForwardedTo·attribute |
| 6 | //·Line:·7 | 6 | //·Line:·7 |
| 7 | using·System; | 7 | using·System; |
| 8 | using·System.Runtime.CompilerServices; | 8 | using·System.Runtime.CompilerServices; |
| 9 | [assembly:·TypeForwardedTo( | 9 | [assembly:·TypeForwardedTo((Type)null)]</string> |
| 10 | ····<string>//·CS0735:·Invalid·type·specified·as·an·argument·for·TypeForwardedTo·attribute | 10 | ····<string>//·CS0735:·Invalid·type·specified·as·an·argument·for·TypeForwardedTo·attribute |
| 11 | //·Line:·7 | 11 | //·Line:·7 |
| 12 | using·System; | 12 | using·System; |
| 13 | using·System.Runtime.CompilerServices; | 13 | using·System.Runtime.CompilerServices; |
| 14 | [assembly:·TypeForwardedTo( | 14 | [assembly:·TypeForwardedTo(typeof·(int[]))]</string> |
| 15 | ··</Examples> | 15 | ··</Examples> |
| 16 | </ErrorDocumentation> | 16 | </ErrorDocumentation> |
| Offset 1, 25 lines modified | Offset 1, 35 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0738</ErrorName> | 3 | ··<ErrorName>CS0738</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0738:·` | 5 | ····<string>//·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' |
| 6 | //·Line:· | 6 | //·Line:·22 |
| 7 | interface·I | 7 | public·interface·I1 |
| 8 | { | 8 | { |
| 9 | » | 9 | » IB·Key·{·get;·} |
| 10 | } | 10 | } |
| 11 | c | 11 | public·interface·I2 |
| 12 | { | 12 | { |
| 13 | » public·int·Test·(int·a) | ||
| 14 | » { | ||
| 15 | » » return·a; | ||
| 16 | » } | 13 | » IA·Key·{·get;·} |
| 14 | } | ||
| 15 | public·interface·IB·:·IA | ||
| 16 | { | ||
| 17 | } | ||
| 18 | public·interface·IA | ||
| 19 | { | ||
| 20 | } | ||
| 21 | public·class·C·:·I1,·I2 | ||
| 22 | { | ||
| 23 | » public·IB·Key·{·get·{·return·null;·}·} | ||
| 17 | }</string> | 24 | }</string> |
| 18 | ····<string>//·CS738:·`CB'·does·not·implement·interface·member·`IG<IA>.Method()'·and·the·best·implementing·candidate·`CA<IB>.Method()'·return·type·`IB'·does·not·match·interface·member·return·type·`IA' | 25 | ····<string>//·CS738:·`CB'·does·not·implement·interface·member·`IG<IA>.Method()'·and·the·best·implementing·candidate·`CA<IB>.Method()'·return·type·`IB'·does·not·match·interface·member·return·type·`IA' |
| 19 | //·Line:·29 | 26 | //·Line:·29 |
| 20 | public·interface·IA | 27 | public·interface·IA |
| 21 | { | 28 | { |
| 22 | } | 29 | } |
| Offset 44, 34 lines modified | Offset 54, 24 lines modified | ||
| 44 | » » return·default·(T); | 54 | » » return·default·(T); |
| 45 | » } | 55 | » } |
| 46 | } | 56 | } |
| 47 | public·class·CB·:·CA<IB>,·IG<IA> | 57 | public·class·CB·:·CA<IB>,·IG<IA> |
| 48 | { | 58 | { |
| 49 | }</string> | 59 | }</string> |
| 50 | ····<string>//·CS0738:·` | 60 | ····<string>//·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' |
| 51 | //·Line:· | 61 | //·Line:·9 |
| 52 | public·interface·I1 | ||
| 53 | { | ||
| 54 | » IB·Key·{·get;·} | ||
| 55 | } | ||
| 56 | public·interface·I2 | ||
| 57 | { | ||
| 58 | » IA·Key·{·get;·} | ||
| 59 | } | ||
| 60 | public·interface·IB·:·IA | ||
| 61 | { | ||
| 62 | } | ||
| 63 | 62 | interface·I | |
| 64 | { | 63 | { |
| 64 | » void·Test·(int·a); | ||
| 65 | } | 65 | } |
| 66 | 66 | class·B:·I | |
| 67 | { | 67 | { |
| 68 | » public· | 68 | » public·int·Test·(int·a) |
| 69 | » { | ||
| 70 | » » return·a; | ||
| 71 | » } | ||
| 69 | }</string> | 72 | }</string> |
| 70 | ··</Examples> | 73 | ··</Examples> |
| 71 | </ErrorDocumentation> | 74 | </ErrorDocumentation> |
| Offset 1, 28 lines modified | Offset 1, 28 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0761</ErrorName> | 3 | ··<ErrorName>CS0761</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0761:·Partial·method·declarations·of·`C.Foo< | 5 | ····<string>//·CS0761:·Partial·method·declarations·of·`C.Foo<U>()'·have·inconsistent·constraints·for·type·parameter·`U' |
| 6 | //·Line:·8 | 6 | //·Line:·8 |
| 7 | partial·class·C | 7 | partial·class·C |
| 8 | { | 8 | { |
| 9 | » partial·void·Foo< | 9 | » partial·void·Foo<T>·()·where·T·:·new·(); |
| 10 | » | 10 | » |
| 11 | » partial·void·Foo< | 11 | » partial·void·Foo<U>·() |
| 12 | » { | 12 | » { |
| 13 | » } | 13 | » } |
| 14 | }</string> | 14 | }</string> |
| 15 | ····<string>//·CS0761:·Partial·method·declarations·of·`C.Foo< | 15 | ····<string>//·CS0761:·Partial·method·declarations·of·`C.Foo<T>()'·have·inconsistent·constraints·for·type·parameter·`T' |
| 16 | //·Line:·8 | 16 | //·Line:·8 |
| 17 | partial·class·C | 17 | partial·class·C |
| 18 | { | 18 | { |
| 19 | » partial·void·Foo< | 19 | » partial·void·Foo<U>·(); |
| 20 | » | 20 | » |
| 21 | » partial·void·Foo< | 21 | » partial·void·Foo<T>·()·where·T·:·class |
| 22 | » { | 22 | » { |
| 23 | » } | 23 | » } |
| 24 | }</string> | 24 | }</string> |
| 25 | ··</Examples> | 25 | ··</Examples> |
| 26 | </ErrorDocumentation> | 26 | </ErrorDocumentation> |
| Offset 1, 11 lines modified | Offset 1, 57 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0815</ErrorName> | 3 | ··<ErrorName>CS0815</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0815:·An·implicitly·typed·local·variable·declaration·cannot·be·initialized·with·`void' | ||
| 6 | //·Line:·9 | ||
| 7 | public·class·Test | ||
| 8 | { | ||
| 9 | » static·void·Main·() | ||
| 10 | » { | ||
| 11 | » » var·v·=·Foo·(); | ||
| 12 | » } | ||
| 13 | » static·void·Foo·() | ||
| 14 | » { | ||
| 15 | » } | ||
| 16 | }</string> | ||
| 17 | ····<string>//·CS0815:·An·implicitly·typed·local·variable·declaration·cannot·be·initialized·with·`anonymous·method' | ||
| 18 | //·Line:·8 | ||
| 19 | public·class·Test | ||
| 20 | { | ||
| 21 | » static·void·Main·() | ||
| 22 | » { | ||
| 23 | » » var·l·=·x·=>·x·+·1; | ||
| 24 | » } | ||
| 25 | }</string> | ||
| 26 | ····<string>//·CS0815:·An·implicitly·typed·local·variable·declaration·cannot·be·initialized·with·`anonymous·method' | ||
| 27 | //·Line:·9 | ||
| 28 | public·class·Test | ||
| 29 | { | ||
| 30 | » static·void·Main·() | ||
| 31 | » { | ||
| 32 | » » var·d·=·delegate·{}; | ||
| 33 | » } | ||
| 34 | }</string> | ||
| 35 | ····<string>//·CS0815:·An·implicitly·typed·local·variable·declaration·cannot·be·initialized·with·`(int,·method·group)' | ||
| 36 | //·Line:·8 | ||
| 37 | class·XX | ||
| 38 | { | ||
| 39 | » public·static·void·Main·() | ||
| 40 | » { | ||
| 41 | » » var·m·=·(1,·Main); | ||
| 42 | » } | ||
| 43 | }</string> | ||
| 5 | ····<string>//·CS0815:·An·implicitly·typed·local·variable·declaration·cannot·be·initialized·with·`default' | 44 | ····<string>//·CS0815:·An·implicitly·typed·local·variable·declaration·cannot·be·initialized·with·`default' |
| 6 | //·Line:·9 | 45 | //·Line:·9 |
| 7 | //·Compiler·options:·-langversion:latest | 46 | //·Compiler·options:·-langversion:latest |
| 8 | static·class·X | 47 | static·class·X |
| 9 | { | 48 | { |
| 10 | » public·static·void·Main·() | 49 | » public·static·void·Main·() |
| Offset 29, 44 lines modified | Offset 75, 33 lines modified | ||
| 29 | » { | 75 | » { |
| 30 | » » Test·(()·=>·{ | 76 | » » Test·(()·=>·{ |
| 31 | » » » List<string>·l·=·null; | 77 | » » » List<string>·l·=·null; |
| 32 | » » » var·res·=·l.ForEach·(g·=>·{·}); | 78 | » » » var·res·=·l.ForEach·(g·=>·{·}); |
| 33 | » » }); | 79 | » » }); |
| 34 | » } | 80 | » } |
| 35 | }</string> | 81 | }</string> |
| 36 | ····<string>//·CS0815:·An·implicitly·typed·local·variable·declaration·cannot·be·initialized·with·`method·group' | ||
| 37 | //·Line:·8 | ||
| 38 | public·class·Tests | ||
| 39 | { | ||
| 40 | » public·static·void·Main·() | ||
| 41 | » { | ||
| 42 | » » var·d·=·Main; | ||
| 43 | » } | ||
| 44 | }</string> | ||
| 45 | ····<string>//·CS0815:·An·implicitly·typed·local·variable·declaration·cannot·be·initialized·with·`null' | 82 | ····<string>//·CS0815:·An·implicitly·typed·local·variable·declaration·cannot·be·initialized·with·`null' |
| 46 | //·Line:·9 | 83 | //·Line:·9 |
| 47 | public·class·Test | 84 | public·class·Test |
| 48 | { | 85 | { |
| 49 | » static·void·Main·() | 86 | » static·void·Main·() |
| 50 | » { | 87 | » { |
| 51 | » » var·v·=·null; | 88 | » » var·v·=·null; |
| 52 | » } | 89 | » } |
| 53 | }</string> | 90 | }</string> |
| 54 | ····<string>//·CS0815:·An·implicitly·typed·local·variable·declaration·cannot·be·initialized·with·` | 91 | ····<string>//·CS0815:·An·implicitly·typed·local·variable·declaration·cannot·be·initialized·with·`method·group' |
| 55 | //·Line:· | 92 | //·Line:·8 |
| 56 | public·class·Test | 93 | public·class·Tests |
| 57 | { | 94 | { |
| 58 | » static·void·Main·() | 95 | » public·static·void·Main·() |
| 59 | » { | 96 | » { |
| 60 | » » var·d·=· | 97 | » » var·d·=·Main; |
| 61 | » } | 98 | » } |
| 62 | }</string> | 99 | }</string> |
| 63 | ····<string>//·CS0815:·An·implicitly·typed·local·variable·declaration·cannot·be·initialized·with·`anonymous·method' | 100 | ····<string>//·CS0815:·An·implicitly·typed·local·variable·declaration·cannot·be·initialized·with·`anonymous·method' |
| 64 | //·Line:·11 | 101 | //·Line:·11 |
| 65 | using·System; | 102 | using·System; |
| 66 | using·System.Threading.Tasks; | 103 | using·System.Threading.Tasks; |
| Offset 74, 44 lines modified | Offset 109, 9 lines modified | ||
| 74 | class·X | 109 | class·X |
| 75 | { | 110 | { |
| 76 | » public·static·void·Main·() | 111 | » public·static·void·Main·() |
| 77 | » { | 112 | » { |
| 78 | » » Task.Run(async·()·=>·{·var·a·=·async·()·=>·{·};·Console.WriteLine(a);·}); | 113 | » » Task.Run(async·()·=>·{·var·a·=·async·()·=>·{·};·Console.WriteLine(a);·}); |
| 79 | » } | 114 | » } |
| 80 | }</string> | 115 | }</string> |
| 81 | ····<string>//·CS0815:·An·implicitly·typed·local·variable·declaration·cannot·be·initialized·with·`(int,·method·group)' | ||
| 82 | //·Line:·8 | ||
| 83 | class·XX | ||
| 84 | { | ||
| 85 | » public·static·void·Main·() | ||
| 86 | » { | ||
| 87 | » » var·m·=·(1,·Main); | ||
| 88 | » } | ||
| 89 | }</string> | ||
| 90 | ····<string>//·CS0815:·An·implicitly·typed·local·variable·declaration·cannot·be·initialized·with·`anonymous·method' | ||
| 91 | //·Line:·8 | ||
| 92 | public·class·Test | ||
| 93 | { | ||
| 94 | » static·void·Main·() | ||
| 95 | » { | ||
| Max diff block lines reached; 23/3356 bytes (0.69%) of diff not shown. | |||
| Offset 4, 27 lines modified | Offset 4, 27 lines modified | ||
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0825:·The·contextual·keyword·`var'·may·only·appear·within·a·local·variable·declaration | 5 | ····<string>//·CS0825:·The·contextual·keyword·`var'·may·only·appear·within·a·local·variable·declaration |
| 6 | //·Line:·9 | 6 | //·Line:·9 |
| 7 | public·class·Test | 7 | public·class·Test |
| 8 | { | 8 | { |
| 9 | » | 9 | » event·var·v; |
| 10 | }</string> | 10 | }</string> |
| 11 | ····<string>//·CS0825:·The·contextual·keyword·`var'·may·only·appear·within·a·local·variable·declaration | 11 | ····<string>//·CS0825:·The·contextual·keyword·`var'·may·only·appear·within·a·local·variable·declaration |
| 12 | //·Line:·9 | 12 | //·Line:·9 |
| 13 | public·class·Test | 13 | public·class·Test |
| 14 | { | 14 | { |
| 15 | » var·v·=· | 15 | » const·var·v·=·9; |
| 16 | }</string> | 16 | }</string> |
| 17 | ····<string>//·CS0825:·The·contextual·keyword·`var'·may·only·appear·within·a·local·variable·declaration | 17 | ····<string>//·CS0825:·The·contextual·keyword·`var'·may·only·appear·within·a·local·variable·declaration |
| 18 | //·Line:·9 | 18 | //·Line:·9 |
| 19 | public·class·Test | 19 | public·class·Test |
| 20 | { | 20 | { |
| 21 | » | 21 | » var·v·=·"a"; |
| 22 | }</string> | 22 | }</string> |
| 23 | ··</Examples> | 23 | ··</Examples> |
| 24 | </ErrorDocumentation> | 24 | </ErrorDocumentation> |
| Offset 1, 24 lines modified | Offset 1, 30 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0826</ErrorName> | 3 | ··<ErrorName>CS0826</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0826:·The·type·of·an·implicitly·typed·array·cannot·be·inferred·from·the·initializer.·Try·specifying·array·type·explicitly | 5 | ····<string>//·CS0826:·The·type·of·an·implicitly·typed·array·cannot·be·inferred·from·the·initializer.·Try·specifying·array·type·explicitly |
| 6 | //·Line:· | 6 | //·Line:·8 |
| 7 | 7 | class·XX | |
| 8 | { | 8 | { |
| 9 | » static·void· | 9 | » public·static·void·Main·() |
| 10 | » { | 10 | » { |
| 11 | » » var·m·=·new·[]·{·(1,·Main)·}; | ||
| 11 | » } | 12 | » } |
| 12 | 13 | }</string> | |
| 14 | ····<string>//·CS0826:·The·type·of·an·implicitly·typed·array·cannot·be·inferred·from·the·initializer.·Try·specifying·array·type·explicitly | ||
| 15 | //·Line:·9 | ||
| 16 | public·class·Test | ||
| 17 | { | ||
| 13 | » static·void·Main·() | 18 | » static·void·Main·() |
| 14 | » { | 19 | » { |
| 15 | » » var·e·=·new[]·{· | 20 | » » var·e·=·new[]·{·null·}; |
| 16 | » } | 21 | » } |
| 17 | }</string> | 22 | }</string> |
| 18 | ····<string>//·CS0826:·The·type·of·an·implicitly·typed·array·cannot·be·inferred·from·the·initializer.·Try·specifying·array·type·explicitly | 23 | ····<string>//·CS0826:·The·type·of·an·implicitly·typed·array·cannot·be·inferred·from·the·initializer.·Try·specifying·array·type·explicitly |
| 19 | //·Line:·8 | 24 | //·Line:·8 |
| 20 | public·class·Test | 25 | public·class·Test |
| 21 | { | 26 | { |
| Offset 30, 86 lines modified | Offset 36, 80 lines modified | ||
| 30 | ····<string>//·CS0826:·The·type·of·an·implicitly·typed·array·cannot·be·inferred·from·the·initializer.·Try·specifying·array·type·explicitly | 36 | ····<string>//·CS0826:·The·type·of·an·implicitly·typed·array·cannot·be·inferred·from·the·initializer.·Try·specifying·array·type·explicitly |
| 31 | //·Line:·8 | 37 | //·Line:·8 |
| 32 | public·class·Test | 38 | public·class·Test |
| 33 | { | 39 | { |
| 34 | » static·void·Main·() | 40 | » static·void·Main·() |
| 35 | » { | 41 | » { |
| 36 | » » var·e·=·new[]·{· | 42 | » » var·e·=·new[]·{·1,·null·}; |
| 37 | » } | 43 | » } |
| 38 | }</string> | 44 | }</string> |
| 39 | ····<string>//·CS0826:·The·type·of·an·implicitly·typed·array·cannot·be·inferred·from·the·initializer.·Try·specifying·array·type·explicitly | 45 | ····<string>//·CS0826:·The·type·of·an·implicitly·typed·array·cannot·be·inferred·from·the·initializer.·Try·specifying·array·type·explicitly |
| 40 | //·Line:·8 | 46 | //·Line:·8 |
| 41 | public·class·Test | 47 | public·class·Test |
| 42 | { | 48 | { |
| 43 | » static·void·Main·() | 49 | » static·void·Main·() |
| 44 | » { | 50 | » { |
| 45 | » » var·e·=·new[]·{· | 51 | » » var·e·=·new[]·{·Main·}; |
| 46 | » } | 52 | » } |
| 47 | }</string> | 53 | }</string> |
| 48 | ····<string>//·CS0826:·The·type·of·an·implicitly·typed·array·cannot·be·inferred·from·the·initializer.·Try·specifying·array·type·explicitly | 54 | ····<string>//·CS0826:·The·type·of·an·implicitly·typed·array·cannot·be·inferred·from·the·initializer.·Try·specifying·array·type·explicitly |
| 49 | //·Line:· | 55 | //·Line:·8 |
| 50 | 56 | class·C | |
| 51 | { | 57 | { |
| 52 | » static·void·Main·() | 58 | » public·static·void·Main·() |
| 53 | » { | 59 | » { |
| 54 | » » var· | 60 | » » var·array·=·new[]·{·null,·null·}; |
| 55 | » } | 61 | » } |
| 56 | }</string> | 62 | }</string> |
| 57 | ····<string>//·CS0826:·The·type·of·an·implicitly·typed·array·cannot·be·inferred·from·the·initializer.·Try·specifying·array·type·explicitly | 63 | ····<string>//·CS0826:·The·type·of·an·implicitly·typed·array·cannot·be·inferred·from·the·initializer.·Try·specifying·array·type·explicitly |
| 58 | //·Line:·9 | 64 | //·Line:·9 |
| 59 | public·class·Test | 65 | public·class·Test |
| 60 | { | 66 | { |
| 61 | » static·void·Main·() | 67 | » static·void·Main·() |
| 62 | » { | 68 | » { |
| 63 | » » var·e·=·new[]·{· | 69 | » » var·e·=·new[]·{·}; |
| 64 | » } | 70 | » } |
| 65 | }</string> | 71 | }</string> |
| 66 | ····<string>//·CS0826:·The·type·of·an·implicitly·typed·array·cannot·be·inferred·from·the·initializer.·Try·specifying·array·type·explicitly | 72 | ····<string>//·CS0826:·The·type·of·an·implicitly·typed·array·cannot·be·inferred·from·the·initializer.·Try·specifying·array·type·explicitly |
| 67 | //·Line:· | 73 | //·Line:·13 |
| 68 | class·XX | ||
| 74 | public·class·Test | ||
| 69 | { | 75 | { |
| 70 | » | 76 | » static·void·TestMethod·() |
| 71 | » { | 77 | » { |
| 72 | » | 78 | » } |
| 79 | » | ||
| 80 | » static·void·Main·() | ||
| 81 | » { | ||
| 82 | » » var·e·=·new[]·{·TestMethod·()·}; | ||
| 73 | » } | 83 | » } |
| 74 | }</string> | 84 | }</string> |
| 75 | ····<string>//·CS0826:·The·type·of·an·implicitly·typed·array·cannot·be·inferred·from·the·initializer.·Try·specifying·array·type·explicitly | 85 | ····<string>//·CS0826:·The·type·of·an·implicitly·typed·array·cannot·be·inferred·from·the·initializer.·Try·specifying·array·type·explicitly |
| 76 | //·Line:·9 | 86 | //·Line:·9 |
| 77 | public·class·Test | 87 | public·class·Test |
| 78 | { | 88 | { |
| 79 | » static·void·Main·() | 89 | » static·void·Main·() |
| 80 | » { | 90 | » { |
| 81 | » » var·e·=·new[]·{·}; | 91 | » » var·e·=·new[]·{·delegate·{}·}; |
| 82 | » } | 92 | » } |
| 83 | }</string> | 93 | }</string> |
| 84 | ····<string>//·CS0826:·The·type·of·an·implicitly·typed·array·cannot·be·inferred·from·the·initializer.·Try·specifying·array·type·explicitly | 94 | ····<string>//·CS0826:·The·type·of·an·implicitly·typed·array·cannot·be·inferred·from·the·initializer.·Try·specifying·array·type·explicitly |
| 85 | //·Line:·9 | 95 | //·Line:·9 |
| 86 | public·class·Test | 96 | public·class·Test |
| 87 | { | 97 | { |
| 88 | » static·void·Main·() | 98 | » static·void·Main·() |
| 89 | » { | 99 | » { |
| 90 | » » var·e·=·new[,,,]·{·1,·2·};· | 100 | » » var·e·=·new[,,,]·{·1,·2·};· |
| 91 | » } | 101 | » } |
| 92 | }</string> | 102 | }</string> |
| 93 | ····<string>//·CS0826:·The·type·of·an·implicitly·typed·array·cannot·be·inferred·from·the·initializer.·Try·specifying·array·type·explicitly | ||
| 94 | //·Line:·8 | ||
| 95 | class·C | ||
| 96 | { | ||
| 97 | » public·static·void·Main·() | ||
| 98 | » { | ||
| 99 | » » var·array·=·new[]·{·null,·null·}; | ||
| 100 | » } | ||
| 101 | }</string> | ||
| 102 | ··</Examples> | 103 | ··</Examples> |
| 103 | </ErrorDocumentation> | 104 | </ErrorDocumentation> |
| Offset 1, 23 lines modified | Offset 1, 19 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0828</ErrorName> | 3 | ··<ErrorName>CS0828</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0828:·An·anonymous·type·property·`Value'·cannot·be·initialized·with·` | 5 | ····<string>//·CS0828:·An·anonymous·type·property·`Value'·cannot·be·initialized·with·`anonymous·method' |
| 6 | //·Line:· | 6 | //·Line:·8 |
| 7 | public·class·Test | 7 | public·class·Test |
| 8 | { | 8 | { |
| 9 | » static·void·Error·() | ||
| 10 | » { | ||
| 11 | » } | ||
| 12 | » | ||
| 13 | » static·void·Main·() | 9 | » static·void·Main·() |
| 14 | » { | 10 | » { |
| 15 | » » var·v·=·new·{·Value·=· | 11 | » » var·v·=·new·{·Value·=·i·=>·1·}; |
| 16 | » } | 12 | » } |
| 17 | }</string> | 13 | }</string> |
| 18 | ····<string>//·CS0827:·An·anonymous·type·property·`Prop'·cannot·be·initialized·with·`(int,·method·group)' | 14 | ····<string>//·CS0827:·An·anonymous·type·property·`Prop'·cannot·be·initialized·with·`(int,·method·group)' |
| 19 | //·Line:·9 | 15 | //·Line:·9 |
| 20 | class·XX | 16 | class·XX |
| 21 | { | 17 | { |
| Offset 35, 62 lines modified | Offset 31, 66 lines modified | ||
| 35 | public·class·Test | 31 | public·class·Test |
| 36 | { | 32 | { |
| 37 | » static·void·Main·() | 33 | » static·void·Main·() |
| 38 | » { | 34 | » { |
| 39 | » » var·v·=·new·{·Value·=·delegate·()·{·return·1;·}·}; | 35 | » » var·v·=·new·{·Value·=·delegate·()·{·return·1;·}·}; |
| 40 | » } | 36 | » } |
| 41 | }</string> | 37 | }</string> |
| 42 | ····<string>//·CS0828:·An·anonymous·type·property·`Value'·cannot·be·initialized·with·` | 38 | ····<string>//·CS0828:·An·anonymous·type·property·`Value'·cannot·be·initialized·with·`void' |
| 43 | //·Line:· | 39 | //·Line:·13 |
| 44 | //·Compiler·options:·-unsafe | ||
| 45 | public· | 40 | public·class·Test |
| 46 | { | 41 | { |
| 47 | » static· | 42 | » static·void·Error·() |
| 48 | » { | 43 | » { |
| 49 | » » return·(int*)0; | ||
| 50 | » } | 44 | » } |
| 51 | » | 45 | » |
| 52 | » static·void·Main·() | 46 | » static·void·Main·() |
| 53 | » { | 47 | » { |
| 54 | » » var·v·=·new·{·Value·=·Error·()·}; | 48 | » » var·v·=·new·{·Value·=·Error·()·}; |
| 55 | » } | 49 | » } |
| 56 | }</string> | 50 | }</string> |
| 51 | ····<string>//·CS0828:·An·anonymous·type·property·`Value'·cannot·be·initialized·with·`method·group' | ||
| 52 | //·Line:·12 | ||
| 53 | public·class·Test | ||
| 54 | { | ||
| 55 | » static·void·Error·() | ||
| 56 | » { | ||
| 57 | » } | ||
| 58 | » | ||
| 59 | » static·void·Main·() | ||
| 60 | » { | ||
| 61 | » » var·v·=·new·{·Value·=·Error·}; | ||
| 62 | » } | ||
| 63 | }</string> | ||
| 57 | ····<string>//·CS0828:·An·anonymous·type·property·`Value'·cannot·be·initialized·with·`null' | 64 | ····<string>//·CS0828:·An·anonymous·type·property·`Value'·cannot·be·initialized·with·`null' |
| 58 | //·Line:·9 | 65 | //·Line:·9 |
| 59 | public·class·Test | 66 | public·class·Test |
| 60 | { | 67 | { |
| 61 | » static·void·Main·() | 68 | » static·void·Main·() |
| 62 | » { | 69 | » { |
| 63 | » » int·A·=·9; | 70 | » » int·A·=·9; |
| 64 | » » var·v1·=·new·{·A,·Value·=·null·}; | 71 | » » var·v1·=·new·{·A,·Value·=·null·}; |
| 65 | » } | 72 | » } |
| 66 | }</string> | 73 | }</string> |
| 67 | ····<string>//·CS0828:·An·anonymous·type·property·`Value'·cannot·be·initialized·with·` | 74 | ····<string>//·CS0828:·An·anonymous·type·property·`Value'·cannot·be·initialized·with·`int*' |
| 68 | //·Line:· | 75 | //·Line:·9 |
| 76 | //·Compiler·options:·-unsafe | ||
| 69 | public·class·Test | 77 | public·unsafe·class·Test |
| 70 | { | 78 | { |
| 71 | » static· | 79 | » static·int*·Error·() |
| 72 | » { | 80 | » { |
| 81 | » » return·(int*)0; | ||
| 73 | » } | 82 | » } |
| 74 | » | 83 | » |
| 75 | » static·void·Main·() | 84 | » static·void·Main·() |
| 76 | » { | 85 | » { |
| 77 | » » var·v·=·new·{·Value·=·Error·()·}; | 86 | » » var·v·=·new·{·Value·=·Error·()·}; |
| 78 | » } | 87 | » } |
| 79 | }</string> | 88 | }</string> |
| 80 | ····<string>//·CS0828:·An·anonymous·type·property·`Value'·cannot·be·initialized·with·`anonymous·method' | ||
| 81 | //·Line:·8 | ||
| 82 | public·class·Test | ||
| 83 | { | ||
| 84 | » static·void·Main·() | ||
| 85 | » { | ||
| 86 | » » var·v·=·new·{·Value·=·i·=>·1·}; | ||
| 87 | » } | ||
| 88 | }</string> | ||
| 89 | ··</Examples> | 89 | ··</Examples> |
| 90 | </ErrorDocumentation> | 90 | </ErrorDocumentation> |
| Offset 27, 26 lines modified | Offset 27, 36 lines modified | ||
| 27 | { | 27 | { |
| 28 | » public·static·void·Main·() | 28 | » public·static·void·Main·() |
| 29 | » { | 29 | » { |
| 30 | » » Expression<Func<int,·int>>·e·=·(a)·=>·--a; | 30 | » » Expression<Func<int,·int>>·e·=·(a)·=>·--a; |
| 31 | » } | 31 | » } |
| 32 | }</string> | 32 | }</string> |
| 33 | ····<string>//·CS0832:·An·expression·tree·cannot·contain·an·assignment·operator | 33 | ····<string>//·CS0832:·An·expression·tree·cannot·contain·an·assignment·operator |
| 34 | //·Line:·1 | 34 | //·Line:·19 |
| 35 | using·System; | 35 | using·System; |
| 36 | using·System.Linq.Expressions; | 36 | using·System.Linq.Expressions; |
| 37 | cla | 37 | public·delegate·void·EventHandler·(int·i,·int·j); |
| 38 | public·class·Button | ||
| 39 | { | ||
| 40 | » public·event·EventHandler·Click; | ||
| 41 | } | ||
| 42 | public·class·Blah | ||
| 38 | { | 43 | { |
| 39 | » delegate·void·D·(string·s); | ||
| 40 | » | ||
| 41 | » public·static·void·Main·() | 44 | » public·static·void·Main·() |
| 42 | » { | 45 | » { |
| 43 | » » | 46 | » » Button·b·=·new·Button·(); |
| 47 | » » Expression<Action>·e·=·()·=>·b.Click·+=·new·EventHandler·(Button1_Click); | ||
| 48 | » } | ||
| 49 | » public·static·void·Button1_Click·(int·i,·int·j) | ||
| 50 | » { | ||
| 44 | » } | 51 | » } |
| 45 | }</string> | 52 | }</string> |
| 46 | ····<string>//·CS0832:·An·expression·tree·cannot·contain·an·assignment·operator | 53 | ····<string>//·CS0832:·An·expression·tree·cannot·contain·an·assignment·operator |
| 47 | //·Line:·11 | 54 | //·Line:·11 |
| 48 | using·System; | 55 | using·System; |
| 49 | using·System.Linq.Expressions; | 56 | using·System.Linq.Expressions; |
| Offset 55, 33 lines modified | Offset 65, 23 lines modified | ||
| 55 | { | 65 | { |
| 56 | » public·static·void·Main·() | 66 | » public·static·void·Main·() |
| 57 | » { | 67 | » { |
| 58 | » » Expression<Func<short?[],·short?>>·e·=·l·=>·l·[0]++; | 68 | » » Expression<Func<short?[],·short?>>·e·=·l·=>·l·[0]++; |
| 59 | » } | 69 | » } |
| 60 | }</string> | 70 | }</string> |
| 61 | ····<string>//·CS0832:·An·expression·tree·cannot·contain·an·assignment·operator | 71 | ····<string>//·CS0832:·An·expression·tree·cannot·contain·an·assignment·operator |
| 62 | //·Line:·1 | 72 | //·Line:·13 |
| 63 | using·System; | 73 | using·System; |
| 64 | using·System.Linq.Expressions; | 74 | using·System.Linq.Expressions; |
| 75 | class·C | ||
| 65 | public·delegate·void·EventHandler·(int·i,·int·j); | ||
| 66 | public·class·Button | ||
| 67 | { | ||
| 68 | » public·event·EventHandler·Click; | ||
| 69 | } | ||
| 70 | public·class·Blah | ||
| 71 | { | 76 | { |
| 77 | » delegate·void·D·(string·s); | ||
| 78 | » | ||
| 72 | » public·static·void·Main·() | 79 | » public·static·void·Main·() |
| 73 | » { | 80 | » { |
| 81 | » » Expression<D>·e·=·(a)·=>·a·=·"a"; | ||
| 74 | » » Button·b·=·new·Button·(); | ||
| 75 | » » Expression<Action>·e·=·()·=>·b.Click·+=·new·EventHandler·(Button1_Click); | ||
| 76 | » } | ||
| 77 | » public·static·void·Button1_Click·(int·i,·int·j) | ||
| 78 | » { | ||
| 79 | » } | 82 | » } |
| 80 | }</string> | 83 | }</string> |
| 81 | ··</Examples> | 84 | ··</Examples> |
| 82 | </ErrorDocumentation> | 85 | </ErrorDocumentation> |
| Offset 5, 30 lines modified | Offset 5, 30 lines modified | ||
| 5 | ····<string>//·CS0834:·A·lambda·expression·with·statement·body·cannot·be·converted·to·an·expresion·tree | 5 | ····<string>//·CS0834:·A·lambda·expression·with·statement·body·cannot·be·converted·to·an·expresion·tree |
| 6 | //·Line:·12 | 6 | //·Line:·12 |
| 7 | using·System.Linq.Expressions; | 7 | using·System.Linq.Expressions; |
| 8 | class·C | 8 | class·C |
| 9 | { | 9 | { |
| 10 | » delegate· | 10 | » delegate·void·D·(); |
| 11 | » | 11 | » |
| 12 | » public·void·Foo·() | 12 | » public·void·Foo·() |
| 13 | » { | 13 | » { |
| 14 | » » Expression<D>·e·=·()·=>·{· | 14 | » » Expression<D>·e·=·()·=>·{·}; |
| 15 | » } | 15 | » } |
| 16 | }</string> | 16 | }</string> |
| 17 | ····<string>//·CS0834:·A·lambda·expression·with·statement·body·cannot·be·converted·to·an·expresion·tree | 17 | ····<string>//·CS0834:·A·lambda·expression·with·statement·body·cannot·be·converted·to·an·expresion·tree |
| 18 | //·Line:·12 | 18 | //·Line:·12 |
| 19 | using·System.Linq.Expressions; | 19 | using·System.Linq.Expressions; |
| 20 | class·C | 20 | class·C |
| 21 | { | 21 | { |
| 22 | » delegate· | 22 | » delegate·bool·D·(); |
| 23 | » | 23 | » |
| 24 | » public·void·Foo·() | 24 | » public·void·Foo·() |
| 25 | » { | 25 | » { |
| 26 | » » Expression<D>·e·=·()·=>·{·}; | 26 | » » Expression<D>·e·=·()·=>·{·return·true;·}; |
| 27 | » } | 27 | » } |
| 28 | }</string> | 28 | }</string> |
| 29 | ··</Examples> | 29 | ··</Examples> |
| 30 | </ErrorDocumentation> | 30 | </ErrorDocumentation> |
| Offset 1, 12 lines modified | Offset 1, 25 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0837</ErrorName> | 3 | ··<ErrorName>CS0837</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0837:·The·`is'·operator·cannot·be·applied·to·a·lambda·expression,·anonymous·method,·or·method·group | 5 | ····<string>//·CS0837:·The·`is'·operator·cannot·be·applied·to·a·lambda·expression,·anonymous·method,·or·method·group |
| 6 | //·Line:·11 | ||
| 7 | using·System; | ||
| 8 | using·System.Linq.Expressions; | ||
| 9 | class·C | ||
| 10 | { | ||
| 11 | » public·static·void·Main·() | ||
| 12 | » { | ||
| 13 | » » Expression<Func<bool>>·e·=·()·=>·"1".ToString·is·string; | ||
| 14 | » } | ||
| 15 | }</string> | ||
| 16 | ····<string>//·CS0837:·The·`is'·operator·cannot·be·applied·to·a·lambda·expression,·anonymous·method,·or·method·group | ||
| 6 | //·Line:·8 | 17 | //·Line:·8 |
| 7 | class·X | 18 | class·X |
| 8 | { | 19 | { |
| 9 | » static·void·Main·() | 20 | » static·void·Main·() |
| 10 | » { | 21 | » { |
| 11 | » » if·(delegate·{}·is·int)·{ | 22 | » » if·(delegate·{}·is·int)·{ |
| Offset 22, 27 lines modified | Offset 35, 14 lines modified | ||
| 22 | class·Test | 35 | class·Test |
| 23 | { | 36 | { |
| 24 | » static·void·Main·() | 37 | » static·void·Main·() |
| 25 | » { | 38 | » { |
| 26 | » » var·res·=·Main·is·object; | 39 | » » var·res·=·Main·is·object; |
| 27 | » } | 40 | » } |
| 28 | }</string> | 41 | }</string> |
| 29 | ····<string>//·CS0837:·The·`is'·operator·cannot·be·applied·to·a·lambda·expression,·anonymous·method,·or·method·group | ||
| 30 | //·Line:·11 | ||
| 31 | using·System; | ||
| 32 | using·System.Linq.Expressions; | ||
| 33 | class·C | ||
| 34 | { | ||
| 35 | » public·static·void·Main·() | ||
| 36 | » { | ||
| 37 | » » Expression<Func<bool>>·e·=·()·=>·"1".ToString·is·string; | ||
| 38 | » } | ||
| 39 | }</string> | ||
| 40 | ····<string>//·CS0837:·The·`as'·operator·cannot·be·applied·to·a·lambda·expression,·anonymous·method,·or·method·group | 42 | ····<string>//·CS0837:·The·`as'·operator·cannot·be·applied·to·a·lambda·expression,·anonymous·method,·or·method·group |
| 41 | //·Line:·14 | 43 | //·Line:·14 |
| 42 | class·X | 44 | class·X |
| 43 | { | 45 | { |
| 44 | » delegate·void·D·(); | 46 | » delegate·void·D·(); |
| 45 | » | 47 | » |
| Offset 1, 40 lines modified | Offset 1, 42 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0841</ErrorName> | 3 | ··<ErrorName>CS0841</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0841:·A·local·variable·`y'·cannot·be·used·before·it·is·declared | 5 | ····<string>//·CS0841:·A·local·variable·`y'·cannot·be·used·before·it·is·declared |
| 6 | //·Line:·8 | 6 | //·Line:·8 |
| 7 | class·X | ||
| 8 | { | ||
| 9 | ···static·void·y·()·{·} | ||
| 10 | ···static·void·Main·()·{ | ||
| 11 | ·····y·(); | ||
| 12 | ·····int·y·=·5; | ||
| 13 | ···} | ||
| 14 | }</string> | ||
| 15 | ····<string>//·CS0841:·A·local·variable·`y'·cannot·be·used·before·it·is·declared | ||
| 16 | //·Line:·8 | ||
| 7 | public·class·C | 17 | public·class·C |
| 8 | { | 18 | { |
| 9 | » public·static·void·Main·() | 19 | » public·static·void·Main·() |
| 10 | » { | 20 | » { |
| 11 | » ····int·x·=·y; | 21 | » ····int·x·=·y; |
| 12 | » ····int·y·=·1; | 22 | » ····int·y·=·1; |
| 13 | » } | 23 | » } |
| 14 | }</string> | 24 | }</string> |
| 15 | ····<string>//·CS0841:·A·local·variable·` | 25 | ····<string>//·CS0841:·A·local·variable·`y'·cannot·be·used·before·it·is·declared |
| 16 | //·Line:· | 26 | //·Line:·8 |
| 17 | 27 | public·class·C | |
| 18 | { | 28 | { |
| 19 | » public·delegate·void·Fn·(MainClass·o); | ||
| 20 | » public·static·void·Call·(Fn·f) | ||
| 21 | » { | ||
| 22 | » » f(null); | ||
| 23 | » } | ||
| 24 | » public·static·void·Main·() | 29 | » public·static·void·Main·() |
| 25 | » { | 30 | » { |
| 31 | » ····const·int·x·=·y; | ||
| 32 | » ····const·int·y·=·1; | ||
| 26 | » » Call·(delegate·(MainClass·o)·{ | ||
| 27 | » » » n·=·o; | ||
| 28 | » » » MainClass·n·=·new·MainClass·(); | ||
| 29 | » » }); | ||
| 30 | » } | 33 | » } |
| 31 | }</string> | 34 | }</string> |
| 32 | ····<string>//·CS0841:·A·local·variable·`x'·cannot·be·used·before·it·is·declared | 35 | ····<string>//·CS0841:·A·local·variable·`x'·cannot·be·used·before·it·is·declared |
| 33 | //·Line:·8 | 36 | //·Line:·8 |
| 34 | //·Compiler·options:·-langversion:experimental | 37 | //·Compiler·options:·-langversion:experimental |
| 35 | class·X | 38 | class·X |
| Offset 45, 42 lines modified | Offset 47, 40 lines modified | ||
| 45 | » } | 47 | » } |
| 46 | » static·void·Foo·(int·arg,·out·int·value) | 48 | » static·void·Foo·(int·arg,·out·int·value) |
| 47 | » { | 49 | » { |
| 48 | » » value·=·3; | 50 | » » value·=·3; |
| 49 | » } | 51 | » } |
| 50 | }</string> | 52 | }</string> |
| 51 | ····<string>//·CS0841:·A·local·variable·`y'·cannot·be·used·before·it·is·declared | ||
| 52 | //·Line:·8 | ||
| 53 | class·X | ||
| 54 | { | ||
| 55 | ···static·void·y·()·{·} | ||
| 56 | ···static·void·Main·()·{ | ||
| 57 | ·····y·(); | ||
| 58 | ·····int·y·=·5; | ||
| 59 | ···} | ||
| 60 | }</string> | ||
| 61 | ····<string>//·CS0841:·A·local·variable·`y'·cannot·be·used·before·it·is·declared | ||
| 62 | //·Line:·8 | ||
| 63 | public·class·C | ||
| 64 | { | ||
| 65 | » public·static·void·Main·() | ||
| 66 | » { | ||
| 67 | » ····const·int·x·=·y; | ||
| 68 | » ····const·int·y·=·1; | ||
| 69 | » } | ||
| 70 | }</string> | ||
| 71 | ····<string>//·CS0841:·A·local·variable·`v'·cannot·be·used·before·it·is·declared | 53 | ····<string>//·CS0841:·A·local·variable·`v'·cannot·be·used·before·it·is·declared |
| 72 | //·Line:·9 | 54 | //·Line:·9 |
| 73 | public·class·Test | 55 | public·class·Test |
| 74 | { | 56 | { |
| 75 | » static·void·Main·() | 57 | » static·void·Main·() |
| 76 | » { | 58 | » { |
| 77 | » » var·v·=·++v; | 59 | » » var·v·=·++v; |
| 78 | » } | 60 | » } |
| 79 | }</string> | 61 | }</string> |
| 62 | ····<string>//·CS0841:·A·local·variable·`n'·cannot·be·used·before·it·is·declared | ||
| 63 | //·Line:·17 | ||
| 64 | class·MainClass | ||
| 65 | { | ||
| 66 | » public·delegate·void·Fn·(MainClass·o); | ||
| 67 | » public·static·void·Call·(Fn·f) | ||
| 68 | » { | ||
| 69 | » » f(null); | ||
| 70 | » } | ||
| 71 | » public·static·void·Main·() | ||
| 72 | » { | ||
| 73 | » » Call·(delegate·(MainClass·o)·{ | ||
| 74 | » » » n·=·o; | ||
| 75 | » » » MainClass·n·=·new·MainClass·(); | ||
| 76 | » » }); | ||
| 77 | » } | ||
| 78 | }</string> | ||
| 80 | ··</Examples> | 79 | ··</Examples> |
| 81 | </ErrorDocumentation> | 80 | </ErrorDocumentation> |
| Offset 1, 20 lines modified | Offset 1, 24 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS0844</ErrorName> | 3 | ··<ErrorName>CS0844</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS0844:·A·local·variable·` | 5 | ····<string>//·CS0844:·A·local·variable·`s'·cannot·be·used·before·it·is·declared.·Consider·renaming·the·local·variable·when·it·hides·the·member·`C.s' |
| 6 | //·Line:· | 6 | //·Line:·10 |
| 7 | class· | 7 | class·C |
| 8 | { | 8 | { |
| 9 | » static·int·y; | ||
| 10 | » static·void·Main·()·{ | ||
| 11 | » » y·=·10; | ||
| 12 | » | 9 | » string·s·{ |
| 10 | » » set·{} | ||
| 11 | » } | ||
| 12 | » public·void·Test·() | ||
| 13 | » { | ||
| 14 | » » s·=·"x"; | ||
| 15 | » » string·s·=·"a"; | ||
| 13 | » } | 16 | » } |
| 14 | }</string> | 17 | }</string> |
| 15 | ····<string>//·CS0844:·A·local·variable·`top'·cannot·be·used·before·it·is·declared.·Consider·renaming·the·local·variable·when·it·hides·the·member·`X.top' | 18 | ····<string>//·CS0844:·A·local·variable·`top'·cannot·be·used·before·it·is·declared.·Consider·renaming·the·local·variable·when·it·hides·the·member·`X.top' |
| 16 | //·Line:·17 | 19 | //·Line:·17 |
| 17 | class·Symbol | 20 | class·Symbol |
| 18 | { | 21 | { |
| Offset 34, 43 lines modified | Offset 38, 39 lines modified | ||
| 34 | » } | 38 | » } |
| 35 | }</string> | 39 | }</string> |
| 36 | ····<string>//·CS0844:·A·local·variable·`s'·cannot·be·used·before·it·is·declared.·Consider·renaming·the·local·variable·when·it·hides·the·member·`C.s' | 40 | ····<string>//·CS0844:·A·local·variable·`s'·cannot·be·used·before·it·is·declared.·Consider·renaming·the·local·variable·when·it·hides·the·member·`C.s' |
| 37 | //·Line:·10 | 41 | //·Line:·10 |
| 38 | class·C | 42 | class·C |
| 39 | { | 43 | { |
| 40 | » string·s; | 44 | » const·string·s·=·"s"; |
| 41 | » public·void·Test·() | 45 | » public·void·Test·() |
| 42 | » { | 46 | » { |
| 43 | » » s·=·"x"; | 47 | » » s·=·"x"; |
| 44 | » » string·s·=·"a"; | 48 | » » string·s·=·"a"; |
| 45 | » } | 49 | » } |
| 46 | }</string> | 50 | }</string> |
| 47 | ····<string>//·CS0844:·A·local·variable·` | 51 | ····<string>//·CS0844:·A·local·variable·`y'·cannot·be·used·before·it·is·declared.·Consider·renaming·the·local·variable·when·it·hides·the·member·`X.y' |
| 48 | //·Line:· | 52 | //·Line:·8 |
| 49 | class· | 53 | class·X |
| 50 | { | 54 | { |
| 55 | » static·int·y; | ||
| 56 | » static·void·Main·()·{ | ||
| 57 | » » y·=·10; | ||
| 58 | » » int·y·=·5; | ||
| 51 | » const·string·s·=·"s"; | ||
| 52 | » public·void·Test·() | ||
| 53 | » { | ||
| 54 | » » s·=·"x"; | ||
| 55 | » » string·s·=·"a"; | ||
| 56 | » } | 59 | » } |
| 57 | }</string> | 60 | }</string> |
| 58 | ····<string>//·CS0844:·A·local·variable·`s'·cannot·be·used·before·it·is·declared.·Consider·renaming·the·local·variable·when·it·hides·the·member·`C.s' | 61 | ····<string>//·CS0844:·A·local·variable·`s'·cannot·be·used·before·it·is·declared.·Consider·renaming·the·local·variable·when·it·hides·the·member·`C.s' |
| 59 | //·Line:·10 | 62 | //·Line:·10 |
| 60 | class·C | 63 | class·C |
| 61 | { | 64 | { |
| 62 | » string·s | 65 | » string·s; |
| 63 | » » set·{} | ||
| 64 | » } | ||
| 65 | » public·void·Test·() | 66 | » public·void·Test·() |
| 66 | » { | 67 | » { |
| 67 | » » s·=·"x"; | 68 | » » s·=·"x"; |
| 68 | » » string·s·=·"a"; | 69 | » » string·s·=·"a"; |
| 69 | » } | 70 | » } |
| 70 | }</string> | 71 | }</string> |
| Offset 9, 41 lines modified | Offset 9, 41 lines modified | ||
| 9 | { | 9 | { |
| 10 | » public·static·void·Main·() | 10 | » public·static·void·Main·() |
| 11 | » { | 11 | » { |
| 12 | » » int[,,]·i·=·{·{·{·0,·0,·0·},·{·1,·1,·1·}·}, | 12 | » » int[,,]·i·=·{·{·{·0,·0,·0·},·{·1,·1,·1·}·}, |
| 13 | » » » {·{·2·},·{·3,·3,·3·}·}·}; | 13 | » » » {·{·2·},·{·3,·3,·3·}·}·}; |
| 14 | » } | 14 | » } |
| 15 | }</string> | 15 | }</string> |
| 16 | ····<string>//·CS0847:·An·array·initializer·of·length·` | 16 | ····<string>//·CS0847:·An·array·initializer·of·length·`2'·was·expected |
| 17 | //·Line:· | 17 | //·Line:·9 |
| 18 | class·M | 18 | class·M |
| 19 | { | 19 | { |
| 20 | » public·static·void·Main·() | 20 | » public·static·void·Main·() |
| 21 | » { | 21 | » { |
| 22 | » » int[]·i·=· | 22 | » » int[,,]·i·=·{·{·{·0,·0·},·{·1,·1}·}, |
| 23 | » » » {·{·2,·2·}·}·}; | ||
| 23 | » } | 24 | » } |
| 24 | }</string> | 25 | }</string> |
| 25 | ····<string>//·CS0847:·An·array·initializer·of·length·`2'·was·expected | 26 | ····<string>//·CS0847:·An·array·initializer·of·length·`2'·was·expected |
| 26 | //·Line:·9 | 27 | //·Line:·9 |
| 27 | class·M | 28 | class·M |
| 28 | { | 29 | { |
| 29 | » public·static·void·Main·() | 30 | » public·static·void·Main·() |
| 30 | » { | 31 | » { |
| 31 | » » int[,,]·i·=·{·{·{·0,·0·},·{·1,·1}·}, | ||
| 32 | » » | 32 | » » int[,]·i·=·{·{0,·0}, |
| 33 | » » » {·1·}·}; | ||
| 33 | » } | 34 | » } |
| 34 | }</string> | 35 | }</string> |
| 35 | ····<string>//·CS0847:·An·array·initializer·of·length·` | 36 | ····<string>//·CS0847:·An·array·initializer·of·length·`1'·was·expected |
| 36 | //·Line:· | 37 | //·Line:·8 |
| 37 | class·M | 38 | class·M |
| 38 | { | 39 | { |
| 39 | » public·static·void·Main·() | 40 | » public·static·void·Main·() |
| 40 | » { | 41 | » { |
| 42 | » » int[]·i·=·new·int·[1]·{·2,·3·}; | ||
| 41 | » » int[,]·i·=·{·{0,·0}, | ||
| 42 | » » » {·1·}·}; | ||
| 43 | » } | 43 | » } |
| 44 | }</string> | 44 | }</string> |
| 45 | ··</Examples> | 45 | ··</Examples> |
| 46 | </ErrorDocumentation> | 46 | </ErrorDocumentation> |
| Offset 1, 35 lines modified | Offset 1, 11 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1001</ErrorName> | 3 | ··<ErrorName>CS1001</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1001:·Unexpected·symbol·`)',·expecting·identifier | ||
| 6 | //·Line:·6 | ||
| 7 | class·T·{ | ||
| 8 | » //·Change·(args)·to·(string·args)·to·fix·it | ||
| 9 | » public·static·int·Main·(args) | ||
| 10 | » { | ||
| 11 | » } | ||
| 12 | }</string> | ||
| 13 | ····<string>//·CS1001:·Unexpected·symbol·`)',·expecting·identifier | ||
| 14 | //·Line:·6 | ||
| 15 | class·C | ||
| 16 | { | ||
| 17 | » public·void·Foo·(params·System.Action) | ||
| 18 | » { | ||
| 19 | » } | ||
| 20 | }</string> | ||
| 21 | ····<string>//·CS1001:·Missing·identifier·to·pre-processor·directive | ||
| 22 | //·Line:·5 | ||
| 23 | #if·false | ||
| 24 | » #define | ||
| 25 | #endif</string> | ||
| 26 | ····<string>//·CS1001:·Unexpected·symbol·`}',·expecting·identifier | 5 | ····<string>//·CS1001:·Unexpected·symbol·`}',·expecting·identifier |
| 27 | //·Line:·6 | 6 | //·Line:·6 |
| 28 | public·class·Foo | 7 | public·class·Foo |
| 29 | { | 8 | { |
| 30 | ····public·event·System.Collections.Generic.IList<int> | 9 | ····public·event·System.Collections.Generic.IList<int> |
| 31 | }</string> | 10 | }</string> |
| Offset 38, 38 lines modified | Offset 14, 62 lines modified | ||
| 38 | public·class·MonoRuntime | 14 | public·class·MonoRuntime |
| 39 | { | 15 | { |
| 40 | » public·static·void·Main·(A,·B) | 16 | » public·static·void·Main·(A,·B) |
| 41 | » { | 17 | » { |
| 42 | » } | 18 | » } |
| 43 | }</string> | 19 | }</string> |
| 20 | ····<string>//·CS1001:·Unexpected·symbol·`,',·expecting·identifier | ||
| 21 | //·Line:·8 | ||
| 22 | static·class·Converter | ||
| 23 | { | ||
| 24 | » static·Dictionary<Options,·string>·options·=·new·Dictionary<Options,·string>·()· | ||
| 25 | » { | ||
| 26 | » » {·Options.,·"I·am·completed!"·}, | ||
| 27 | » }; | ||
| 28 | }</string> | ||
| 44 | ····<string>//·CS1001:·Unexpected·symbol·`)',·expecting·identifier | 29 | ····<string>//·CS1001:·Unexpected·symbol·`)',·expecting·identifier |
| 45 | //·Line:·6 | 30 | //·Line:·6 |
| 46 | class·B<T> | 31 | class·B<T> |
| 47 | { | 32 | { |
| 48 | » T·Foo·(T) | 33 | » T·Foo·(T) |
| 49 | » { | 34 | » { |
| 50 | » } | 35 | » } |
| 51 | }</string> | 36 | }</string> |
| 52 | ····<string>//·CS1001:·Unexpected·symbol·` | 37 | ····<string>//·CS1001:·Unexpected·symbol·`)',·expecting·identifier |
| 53 | //·Line:·8 | 38 | //·Line:·8 |
| 54 | 39 | class·C | |
| 55 | { | 40 | { |
| 56 | » | 41 | » public·static·void·Main·() |
| 57 | » { | 42 | » { |
| 58 | » » | 43 | » » object·o·=·(int)·=>·null; |
| 59 | » } | 44 | » } |
| 60 | }</string> | 45 | }</string> |
| 61 | ····<string>//·CS1001:·Unexpected·symbol·`)',·expecting·identifier | 46 | ····<string>//·CS1001:·Unexpected·symbol·`)',·expecting·identifier |
| 62 | //·Line:· | 47 | //·Line:·6 |
| 48 | class·T·{ | ||
| 49 | » //·Change·(args)·to·(string·args)·to·fix·it | ||
| 50 | » public·static·int·Main·(args) | ||
| 51 | » { | ||
| 52 | » } | ||
| 53 | }</string> | ||
| 54 | ····<string>//·CS1001:·Unexpected·symbol·`)',·expecting·identifier | ||
| 55 | //·Line:·6 | ||
| 63 | class·C | 56 | class·C |
| 64 | { | 57 | { |
| 65 | » public· | 58 | » public·void·Foo·(params·System.Action) |
| 66 | » { | 59 | » { |
| 67 | » » object·o·=·(int)·=>·null; | ||
| 68 | » } | 60 | » } |
| 69 | }</string> | 61 | }</string> |
| 62 | ····<string>//·CS1001:·Missing·identifier·to·pre-processor·directive | ||
| 63 | //·Line:·5 | ||
| 64 | #if·false | ||
| 65 | » #define | ||
| 66 | #endif</string> | ||
| 70 | ··</Examples> | 67 | ··</Examples> |
| 71 | </ErrorDocumentation> | 68 | </ErrorDocumentation> |
| Offset 1, 19 lines modified | Offset 1, 19 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1009</ErrorName> | 3 | ··<ErrorName>CS1009</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1009:·Unrecognized·escape·sequence | 5 | ····<string>//·CS1009:·Unrecognized·escape·sequence |
| 6 | //·Line·:·6 | 6 | //·Line·:·6 |
| 7 | class·X | 7 | class·X\u10 |
| 8 | { | 8 | { |
| 9 | ····static·string·s·=·"\i"; | ||
| 10 | }</string> | 9 | }</string> |
| 11 | ····<string>//·CS1009:·Unrecognized·escape·sequence | 10 | ····<string>//·CS1009:·Unrecognized·escape·sequence·`\i' |
| 12 | //·Line·:·6 | 11 | //·Line·:·6 |
| 13 | class·X | 12 | class·X |
| 14 | { | 13 | { |
| 14 | ····static·string·s·=·"\i"; | ||
| 15 | }</string> | 15 | }</string> |
| 16 | ··</Examples> | 16 | ··</Examples> |
| 17 | </ErrorDocumentation> | 17 | </ErrorDocumentation> |
| Offset 1, 33 lines modified | Offset 1, 33 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1010</ErrorName> | 3 | ··<ErrorName>CS1010</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1010:·Newline·in·constant | 5 | ····<string>//·CS1010·:·Newline·in·constant |
| 6 | //·Line:· | 6 | //·Line:·8 |
| 7 | class· | 7 | class·C |
| 8 | { | 8 | { |
| 9 | » static·string·s·=·"Hello | ||
| 10 | 9 | » static·void·Main·() | |
| 10 | » { | ||
| 11 | » » var·a·=·1' | ||
| 12 | » » int·i·=·2; | ||
| 13 | » } | ||
| 11 | }</string> | 14 | }</string> |
| 12 | ····<string>//·CS1010:·Newline·in·constant | 15 | ····<string>//·CS1010:·Newline·in·constant |
| 13 | //·Line:·6 | 16 | //·Line:·6 |
| 14 | class·Foo | 17 | class·Foo |
| 15 | { | 18 | { |
| 16 | » static·char·c·=' | 19 | » static·char·c·=' |
| 17 | '; | 20 | '; |
| 18 | }</string> | 21 | }</string> |
| 19 | ····<string>//·CS1010 | 22 | ····<string>//·CS1010:·Newline·in·constant |
| 20 | //·Line:· | 23 | //·Line:·6 |
| 21 | class· | 24 | class·X |
| 22 | { | 25 | { |
| 26 | » static·string·s·=·"Hello | ||
| 27 | world!"; | ||
| 23 | » static·void·Main·() | ||
| 24 | » { | ||
| 25 | » » var·a·=·1' | ||
| 26 | » » int·i·=·2; | ||
| 27 | » } | ||
| 28 | }</string> | 28 | }</string> |
| 29 | ··</Examples> | 29 | ··</Examples> |
| 30 | </ErrorDocumentation> | 30 | </ErrorDocumentation> |
| Offset 3, 68 lines modified | Offset 3, 68 lines modified | ||
| 3 | ··<ErrorName>CS1013</ErrorName> | 3 | ··<ErrorName>CS1013</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1013:·Invalid·number | 5 | ····<string>//·CS1013:·Invalid·number |
| 6 | //·Line·:·6 | 6 | //·Line·:·6 |
| 7 | class·X | 7 | class·X |
| 8 | { | 8 | { |
| 9 | ····static·int·i·=·0 | 9 | ····static·int·i·=·0b_1; |
| 10 | }</string> | 10 | }</string> |
| 11 | ····<string>//·CS1013:·Invalid·number | 11 | ····<string>//·CS1013:·Invalid·number |
| 12 | //·Line·:·6 | 12 | //·Line·:·6 |
| 13 | class·X | 13 | class·X |
| 14 | { | 14 | { |
| 15 | ····static· | 15 | ····static·float·i·=·1_f; |
| 16 | }</string> | 16 | }</string> |
| 17 | ····<string>//·CS1013:·Invalid·number | 17 | ····<string>//·CS1013:·Invalid·number |
| 18 | //·Line·:·6 | 18 | //·Line·:·6 |
| 19 | class·X | 19 | class·X |
| 20 | { | 20 | { |
| 21 | ····static· | 21 | ····static·int·i·=·1_; |
| 22 | }</string> | 22 | }</string> |
| 23 | ····<string>//·CS1013:·Invalid·number | 23 | ····<string>//·CS1013:·Invalid·number |
| 24 | //·Line·:·6 | 24 | //·Line·:·6 |
| 25 | class·X | 25 | class·X |
| 26 | { | 26 | { |
| 27 | ····static·int·i·=·0 | 27 | ····static·int·i·=·0x; |
| 28 | }</string> | 28 | }</string> |
| 29 | ····<string>//·CS1013:·Invalid·number | 29 | ····<string>//·CS1013:·Invalid·number |
| 30 | //·Line·:·6 | 30 | //·Line·:·6 |
| 31 | class·X | 31 | class·X |
| 32 | { | 32 | { |
| 33 | ····static·int·i·=·0 | 33 | ····static·int·i·=·0b; |
| 34 | ····static·void·Main·()·{} | ||
| 34 | }</string> | 35 | }</string> |
| 35 | ····<string>//·CS1013:·Invalid·number | 36 | ····<string>//·CS1013:·Invalid·number |
| 36 | //·Line·:·6 | 37 | //·Line·:·6 |
| 37 | class·X | 38 | class·X |
| 38 | { | 39 | { |
| 39 | ····static·int·i·=· | 40 | ····static·int·i·=·0x0_; |
| 40 | }</string> | 41 | }</string> |
| 41 | ····<string>//·CS1013:·Invalid·number | 42 | ····<string>//·CS1013:·Invalid·number |
| 42 | //·Line·:·6 | 43 | //·Line·:·6 |
| 43 | class·X | 44 | class·X |
| 44 | { | 45 | { |
| 46 | ····static·double·i·=·1_.2; | ||
| 45 | ····static·int·i·=·0b; | ||
| 46 | ····static·void·Main·()·{} | ||
| 47 | }</string> | 47 | }</string> |
| 48 | ····<string>//·CS1013:·Invalid·number | 48 | ····<string>//·CS1013:·Invalid·number |
| 49 | //·Line·:·6 | 49 | //·Line·:·6 |
| 50 | class·X | 50 | class·X |
| 51 | { | 51 | { |
| 52 | ····static·int·i·=·0x_1; | 52 | ····static·int·i·=·0x_1; |
| 53 | }</string> | 53 | }</string> |
| 54 | ····<string>//·CS1013:·Invalid·number | 54 | ····<string>//·CS1013:·Invalid·number |
| 55 | //·Line·:·6 | 55 | //·Line·:·6 |
| 56 | class·X | 56 | class·X |
| 57 | { | 57 | { |
| 58 | ····static· | 58 | ····static·int·i·=·1_e1; |
| 59 | }</string> | 59 | }</string> |
| 60 | ··</Examples> | 60 | ··</Examples> |
| 61 | </ErrorDocumentation> | 61 | </ErrorDocumentation> |
| Offset 11, 23 lines modified | Offset 11, 23 lines modified | ||
| 11 | » } | 11 | » } |
| 12 | }</string> | 12 | }</string> |
| 13 | ····<string>//·CS1021:·Integral·constant·is·too·large | 13 | ····<string>//·CS1021:·Integral·constant·is·too·large |
| 14 | //·Line:·6 | 14 | //·Line:·6 |
| 15 | class·X·{ | 15 | class·X·{ |
| 16 | » public·static·void·Main()·{ | 16 | » public·static·void·Main()·{ |
| 17 | » » int·h·=·0 | 17 | » » int·h·=·0b11111111111111111111111111111111111111111111111111111111111111111; |
| 18 | » } | 18 | » } |
| 19 | }</string> | 19 | }</string> |
| 20 | ····<string>//·CS1021:·Integral·constant·is·too·large | 20 | ····<string>//·CS1021:·Integral·constant·is·too·large |
| 21 | //·Line:·6 | 21 | //·Line:·6 |
| 22 | class·X·{ | 22 | class·X·{ |
| 23 | » public·static·void·Main()·{ | 23 | » public·static·void·Main()·{ |
| 24 | » » int·h·=·0 | 24 | » » int·h·=·0xffffffffffffffffffffffffff; |
| 25 | » } | 25 | » } |
| 26 | }</string> | 26 | }</string> |
| 27 | ····<string>//·CS1021:·Integral·constant·is·too·large | 27 | ····<string>//·CS1021:·Integral·constant·is·too·large |
| 28 | //·Line:·4 | 28 | //·Line:·4 |
| 29 | #line·1238217387921783271985</string> | 29 | #line·1238217387921783271985</string> |
| 30 | ··</Examples> | 30 | ··</Examples> |
| Offset 1, 12 lines modified | Offset 1, 20 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1024</ErrorName> | 3 | ··<ErrorName>CS1024</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1024:·Wrong·preprocessor·directive | 5 | ····<string>//·CS1024:·Wrong·preprocessor·directive |
| 6 | //·Line:·7 | ||
| 7 | class·C | ||
| 8 | { | ||
| 9 | » #region | ||
| 10 | » #end\x0072egion | ||
| 11 | }</string> | ||
| 12 | ····<string>//·CS1024:·Wrong·preprocessor·directive | ||
| 6 | //·Line:·12 | 13 | //·Line:·12 |
| 7 | using·System; | 14 | using·System; |
| 8 | class·C | 15 | class·C |
| 9 | { | 16 | { |
| 10 | » static·void·Main·() | 17 | » static·void·Main·() |
| Offset 15, 20 lines modified | Offset 23, 12 lines modified | ||
| 15 | » » Console.WriteLine·("DEBUG·mode"); | 23 | » » Console.WriteLine·("DEBUG·mode"); |
| 16 | #·something·not·valid·here | 24 | #·something·not·valid·here |
| 17 | » » Console.WriteLine·("NON-DEBUG·mode"); | 25 | » » Console.WriteLine·("NON-DEBUG·mode"); |
| 18 | #endif | 26 | #endif |
| 19 | » } | 27 | » } |
| 20 | }</string> | 28 | }</string> |
| 21 | ····<string>//·CS1024:·Wrong·preprocessor·directive | 29 | ····<string>//·CS1024:·Wrong·preprocessor·directive |
| 22 | //·Line:·7 | ||
| 23 | class·C | ||
| 24 | { | ||
| 25 | » #region | ||
| 26 | » #end\x0072egion | ||
| 27 | }</string> | ||
| 28 | ····<string>//·CS1024:·Wrong·preprocessor·directive | ||
| 29 | //·Line:·4 | 30 | //·Line:·4 |
| 30 | #wrong_directive</string> | 31 | #wrong_directive</string> |
| 31 | ··</Examples> | 32 | ··</Examples> |
| 32 | </ErrorDocumentation> | 33 | </ErrorDocumentation> |
| Offset 1, 38 lines modified | Offset 1, 38 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1025</ErrorName> | 3 | ··<ErrorName>CS1025</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1025·:·Single-line·comment·or·end-of-line·expected | 5 | ····<string>//·CS1025·:·Single-line·comment·or·end-of-line·expected |
| 6 | //·Line:·6 | 6 | //·Line:·6 |
| 7 | #if·RELEASE | ||
| 8 | # | 7 | #if·DEBUG·DEBUG |
| 8 | //·... | ||
| 9 | #endif</string> | 9 | #endif</string> |
| 10 | ····<string>//·CS1525:·Single-line·comment·or·end-of-line·expected | ||
| 11 | //·Line:·4 | ||
| 12 | #line·100·"a"·default</string> | ||
| 10 | ····<string>//·CS1025:·Single-line·comment·or·end-of-line·expected | 13 | ····<string>//·CS1025:·Single-line·comment·or·end-of-line·expected |
| 11 | //·Line:·6 | 14 | //·Line:·6 |
| 12 | #if·DEBUG | 15 | #if·DEBUG |
| 13 | //·... | 16 | //·... |
| 14 | #endif·DEBUG</string> | 17 | #endif·DEBUG</string> |
| 18 | ····<string>//·CS1025:·Single-line·comment·or·end-of-line·expected | ||
| 19 | //·Line:·4 | ||
| 20 | #if·RELEASE·#endif</string> | ||
| 15 | ····<string>//·CS1025·:·Single-line·comment·or·end-of-line·expected | 21 | ····<string>//·CS1025·:·Single-line·comment·or·end-of-line·expected |
| 16 | //·Line:·6 | 22 | //·Line:·6 |
| 17 | #if·RELEASE | 23 | #if·RELEASE |
| 18 | #el | 24 | #else·DEBUG |
| 19 | #endif</string> | 25 | #endif</string> |
| 20 | ····<string>//·CS1525:·Single-line·comment·or·end-of-line·expected | ||
| 21 | //·Line:·4 | ||
| 22 | #line·100·"a"·default</string> | ||
| 23 | ····<string>//·CS1025:·Single-line·comment·or·end-of-line·expected | ||
| 24 | //·Line:·4 | ||
| 25 | #if·RELEASE·#endif</string> | ||
| 26 | ····<string>//·CS1025·:·Single-line·comment·or·end-of-line·expected | 26 | ····<string>//·CS1025·:·Single-line·comment·or·end-of-line·expected |
| 27 | //·Line:·6 | 27 | //·Line:·6 |
| 28 | #if·RELEASE | ||
| 28 | #if·DEBUG·DEBUG | 29 | #elif·DEBUG·DEBUG |
| 29 | //·... | ||
| 30 | #endif</string> | 30 | #endif</string> |
| 31 | ··</Examples> | 31 | ··</Examples> |
| 32 | </ErrorDocumentation> | 32 | </ErrorDocumentation> |
| Offset 1, 20 lines modified | Offset 1, 20 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1027</ErrorName> | 3 | ··<ErrorName>CS1027</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1027:·Expected·`#endif'·directive | 5 | ····<string>//·CS1027:·Expected·`#endif'·directive |
| 6 | //·Line:·6 | 6 | //·Line:·6 |
| 7 | #if·false</string> | ||
| 7 | #if·false | ||
| 8 | /*·hey·*/·#endif</string> | ||
| 9 | ····<string>//·CS1027:·Expected·`#endif'·directive | 8 | ····<string>//·CS1027:·Expected·`#endif'·directive |
| 10 | //·Line:·6 | 9 | //·Line:·6 |
| 11 | #if·false | 10 | #if·false |
| 11 | /*·hey·*/·#endif</string> | ||
| 12 | ····<string>//·CS1027:·Expected·`#endif'·directive | 12 | ····<string>//·CS1027:·Expected·`#endif'·directive |
| 13 | //·Line:·11 | 13 | //·Line:·11 |
| 14 | //·Compiler·options:·-d:NET_2_0 | 14 | //·Compiler·options:·-d:NET_2_0 |
| 15 | #if·NET_2_0 | 15 | #if·NET_2_0 |
| 16 | class·Test | 16 | class·Test |
| Offset 1, 24 lines modified | Offset 1, 12 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1031</ErrorName> | 3 | ··<ErrorName>CS1031</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1031:·Type·expected | 5 | ····<string>//·CS1031:·Type·expected |
| 6 | //·Line:·8 | ||
| 7 | using·System; | ||
| 8 | class·M | ||
| 9 | { | ||
| 10 | » public·static·void·Main·() | ||
| 11 | » { | ||
| 12 | » » Type·t·=·typeof·(this); | ||
| 13 | » } | ||
| 14 | }</string> | ||
| 15 | ····<string>//·CS1031:·Type·expected | ||
| 16 | //·Line:·16 | 6 | //·Line:·16 |
| 17 | public·class·B<Y>··where·Y:·B<Y> | 7 | public·class·B<Y>··where·Y:·B<Y> |
| 18 | { | 8 | { |
| 19 | } | 9 | } |
| 20 | public·class·A<X>:·B<A<X>> | 10 | public·class·A<X>:·B<A<X>> |
| Offset 29, 14 lines modified | Offset 17, 26 lines modified | ||
| 29 | { | 17 | { |
| 30 | » public·static·void·Main·(string[]·args) | 18 | » public·static·void·Main·(string[]·args) |
| 31 | » { | 19 | » { |
| 32 | » » var·h·=·typeof·(B<A<>>); | 20 | » » var·h·=·typeof·(B<A<>>); |
| 33 | » } | 21 | » } |
| 34 | }</string> | 22 | }</string> |
| 35 | ····<string>//·CS1031:·Type·expected | 23 | ····<string>//·CS1031:·Type·expected |
| 24 | //·Line:·8 | ||
| 25 | using·System; | ||
| 26 | class·M | ||
| 27 | { | ||
| 28 | » public·static·void·Main·() | ||
| 29 | » { | ||
| 30 | » » Type·t·=·typeof·(this); | ||
| 31 | » } | ||
| 32 | }</string> | ||
| 33 | ····<string>//·CS1031:·Type·expected | ||
| 36 | //·Line:·4 | 34 | //·Line:·4 |
| 37 | enum·E·:·this | 35 | enum·E·:·this |
| 38 | { | 36 | { |
| 39 | » a·=·1 | 37 | » a·=·1 |
| 40 | }</string> | 38 | }</string> |
| 41 | ····<string>//·CS1031:·Type·expected | 39 | ····<string>//·CS1031:·Type·expected |
| Offset 1, 21 lines modified | Offset 1, 21 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1038</ErrorName> | 3 | ··<ErrorName>CS1038</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1038:·#endregion·directive·expected | 5 | ····<string>//·CS1038:·#endregion·directive·expected |
| 6 | //·Line:·5 | 6 | //·Line:·5 |
| 7 | #region | ||
| 7 | # | 8 | #endif</string> |
| 8 | ····<string>//·CS1038:·#endregion·directive·expected | 9 | ····<string>//·CS1038:·#endregion·directive·expected |
| 9 | //·Line:·5 | 10 | //·Line:·5 |
| 10 | #region | 11 | #region |
| 11 | #else | 12 | #else |
| 12 | #endregion</string> | 13 | #endregion</string> |
| 13 | ····<string>//·CS1038:·#endregion·directive·expected | 14 | ····<string>//·CS1038:·#endregion·directive·expected |
| 14 | //·Line:·5 | 15 | //·Line:·5 |
| 15 | #region | ||
| 16 | #e | 16 | #region</string> |
| 17 | ··</Examples> | 17 | ··</Examples> |
| 18 | </ErrorDocumentation> | 18 | </ErrorDocumentation> |
| Offset 1, 16 lines modified | Offset 1, 16 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1040</ErrorName> | 3 | ··<ErrorName>CS1040</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1040:·Preprocessor·directives·must·appear·as·the·first·non-whitespace·character·on·a·line | 5 | ····<string>//·CS1040:·Preprocessor·directives·must·appear·as·the·first·non-whitespace·character·on·a·line |
| 6 | //·Line:·5 | ||
| 7 | //·Compiler·options:·-t:library | ||
| 8 | /*····*/·#define·AA</string> | ||
| 9 | ····<string>//·CS1040:·Preprocessor·directives·must·appear·as·the·first·non-whitespace·character·on·a·line | ||
| 10 | //·Line:·2 | 6 | //·Line:·2 |
| 11 | //·Compiler·Options:·-t:library | 7 | //·Compiler·Options:·-t:library |
| 12 | /*·hey·*/·#define·a</string> | 8 | /*·hey·*/·#define·a</string> |
| 9 | ····<string>//·CS1040:·Preprocessor·directives·must·appear·as·the·first·non-whitespace·character·on·a·line | ||
| 10 | //·Line:·5 | ||
| 11 | //·Compiler·options:·-t:library | ||
| 12 | /*····*/·#define·AA</string> | ||
| 13 | ··</Examples> | 13 | ··</Examples> |
| 14 | </ErrorDocumentation> | 14 | </ErrorDocumentation> |
| Offset 1, 28 lines modified | Offset 1, 28 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1056</ErrorName> | 3 | ··<ErrorName>CS1056</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1056:·Unexpected·character·` | 5 | ····<string>//·CS1056:·Unexpected·character·`$' |
| 6 | //·Line:· | 6 | //·Line:·8 |
| 7 | 7 | public·class·C | |
| 8 | { | 8 | { |
| 9 | » void·Update·() | ||
| 10 | » { | ||
| 11 | » » int·a·=·$7; | ||
| 12 | » } | ||
| 9 | }</string> | 13 | }</string> |
| 10 | ····<string>//·CS1056:·Unexpected·character·`\0001' | 14 | ····<string>//·CS1056:·Unexpected·character·`\0001' |
| 11 | //·Line:·4 | 15 | //·Line:·4 |
| 12 | na\u0001espace·Test | 16 | na\u0001espace·Test |
| 13 | { | 17 | { |
| 14 | }</string> | 18 | }</string> |
| 15 | ····<string>//·CS1056:·Unexpected·character·` | 19 | ····<string>//·CS1056:·Unexpected·character·`\0001' |
| 16 | //·Line:· | 20 | //·Line:·4 |
| 17 | 21 | \u0001namespace·Test | |
| 18 | { | 22 | { |
| 19 | » void·Update·() | ||
| 20 | » { | ||
| 21 | » » int·a·=·$7; | ||
| 22 | » } | ||
| 23 | }</string> | 23 | }</string> |
| 24 | ··</Examples> | 24 | ··</Examples> |
| 25 | </ErrorDocumentation> | 25 | </ErrorDocumentation> |
| Offset 1, 25 lines modified | Offset 1, 25 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1057</ErrorName> | 3 | ··<ErrorName>CS1057</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1057:·`B. | 5 | ····<string>//·CS1057:·`B.E':·Static·classes·cannot·contain·protected·members |
| 6 | //·Line:·6 | 6 | //·Line:·6 |
| 7 | public·static·class·B | 7 | public·static·class·B |
| 8 | { | 8 | { |
| 9 | » protected·class·E·{} | ||
| 9 | » protected·static·object·_a·=·null; | ||
| 10 | » » ···· | ||
| 11 | }</string> | 10 | }</string> |
| 12 | ····<string>//·CS1057:·`B. | 11 | ····<string>//·CS1057:·`B._a':·Static·classes·cannot·contain·protected·members |
| 13 | //·Line:·6 | 12 | //·Line:·6 |
| 14 | public·static·class·B | 13 | public·static·class·B |
| 15 | { | 14 | { |
| 16 | » protected·c | 15 | » protected·static·object·_a·=·null; |
| 16 | » » ···· | ||
| 17 | }</string> | 17 | }</string> |
| 18 | ····<string>//·CS1057:·`S.P.set':·Static·classes·cannot·contain·protected·members | 18 | ····<string>//·CS1057:·`S.P.set':·Static·classes·cannot·contain·protected·members |
| 19 | //·Line:·6 | 19 | //·Line:·6 |
| 20 | static·class·S | 20 | static·class·S |
| 21 | { | 21 | { |
| 22 | » public·static·int·P·{ | 22 | » public·static·int·P·{ |
| Offset 9, 32 lines modified | Offset 9, 32 lines modified | ||
| 9 | public·class·Test·{ | 9 | public·class·Test·{ |
| 10 | » void·Main·()·{ | 10 | » void·Main·()·{ |
| 11 | » » Console.WriteLine·(++0); | 11 | » » Console.WriteLine·(++0); |
| 12 | » } | 12 | » } |
| 13 | }</string> | 13 | }</string> |
| 14 | ····<string>//·CS1059:·The·operand·of·an·increment·or·decrement·operator·must·be·a·variable,·property·or·indexer | 14 | ····<string>//·CS1059:·The·operand·of·an·increment·or·decrement·operator·must·be·a·variable,·property·or·indexer |
| 15 | //·Line:·9 | ||
| 16 | static·class·C | ||
| 17 | { | ||
| 18 | » static·void·Foo() | ||
| 19 | » { | ||
| 20 | » » const·int·uu·=·1; | ||
| 21 | » » uu++; | ||
| 22 | » } | ||
| 23 | }</string> | ||
| 24 | ····<string>//·CS1059:·The·operand·of·an·increment·or·decrement·operator·must·be·a·variable,·property·or·indexer | ||
| 25 | //·Line:·11 | 15 | //·Line:·11 |
| 26 | using·System; | 16 | using·System; |
| 27 | class·X | 17 | class·X |
| 28 | { | 18 | { |
| 29 | » static·void·Main·() | 19 | » static·void·Main·() |
| 30 | » { | 20 | » { |
| 31 | » » Decimal·v; | 21 | » » Decimal·v; |
| 32 | » » (v·=·new·Decimal·())++; | 22 | » » (v·=·new·Decimal·())++; |
| 33 | » } | 23 | » } |
| 34 | }</string> | 24 | }</string> |
| 25 | ····<string>//·CS1059:·The·operand·of·an·increment·or·decrement·operator·must·be·a·variable,·property·or·indexer | ||
| 26 | //·Line:·9 | ||
| 27 | static·class·C | ||
| 28 | { | ||
| 29 | » static·void·Foo() | ||
| 30 | » { | ||
| 31 | » » const·int·uu·=·1; | ||
| 32 | » » uu++; | ||
| 33 | » } | ||
| 34 | }</string> | ||
| 35 | ··</Examples> | 35 | ··</Examples> |
| 36 | </ErrorDocumentation> | 36 | </ErrorDocumentation> |
| Offset 1, 38 lines modified | Offset 1, 41 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1060</ErrorName> | 3 | ··<ErrorName>CS1060</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1060:·Use·of·possibly·unassigned·field·` | 5 | ····<string>//·CS1060:·Use·of·possibly·unassigned·field·`x' |
| 6 | //·Line:· | 6 | //·Line:·30 |
| 7 | //·Compiler·options:·-warnaserror | 7 | //·Compiler·options:·-warnaserror |
| 8 | using·System; | ||
| 9 | public·class·C | 8 | public·class·C |
| 10 | { | 9 | { |
| 11 | » public· | 10 | » public·int·v; |
| 12 | } | 11 | } |
| 13 | public·struct·S | 12 | public·struct·S |
| 14 | { | 13 | { |
| 15 | » public·C·c; | 14 | » public·C·c; |
| 16 | } | 15 | } |
| 17 | 16 | class·X | |
| 18 | { | 17 | { |
| 19 | » public·S | 18 | » public·S·s; |
| 19 | } | ||
| 20 | struct·S2 | ||
| 21 | { | ||
| 22 | » public·X·x; | ||
| 20 | } | 23 | } |
| 21 | public·class·Test | 24 | public·class·Test |
| 22 | { | 25 | { |
| 23 | » static·void·Main·() | 26 | » static·void·Main·() |
| 24 | » { | 27 | » { |
| 25 | » » S·s; | 28 | » » S2·s2; |
| 26 | » » s. | 29 | » » s2.x.s.c.v·=·5; |
| 27 | » } | 30 | » } |
| 28 | }</string> | 31 | }</string> |
| 29 | ····<string>//·CS1060:·Use·of·possibly·unassigned·field·`c' | 32 | ····<string>//·CS1060:·Use·of·possibly·unassigned·field·`c' |
| 30 | //·Line:·19 | 33 | //·Line:·19 |
| 31 | //·Compiler·options:·-warnaserror | 34 | //·Compiler·options:·-warnaserror |
| 32 | public·class·C | 35 | public·class·C |
| Offset 76, 41 lines modified | Offset 79, 38 lines modified | ||
| 76 | { | 79 | { |
| 77 | » static·void·Main·() | 80 | » static·void·Main·() |
| 78 | » { | 81 | » { |
| 79 | » » S·s; | 82 | » » S·s; |
| 80 | » » s.s2.c.v·=·9; | 83 | » » s.s2.c.v·=·9; |
| 81 | » } | 84 | » } |
| 82 | }</string> | 85 | }</string> |
| 83 | ····<string>//·CS1060:·Use·of·possibly·unassigned·field·` | 86 | ····<string>//·CS1060:·Use·of·possibly·unassigned·field·`c' |
| 84 | //·Line:· | 87 | //·Line:·25 |
| 85 | //·Compiler·options:·-warnaserror | 88 | //·Compiler·options:·-warnaserror |
| 89 | using·System; | ||
| 86 | public·class·C | 90 | public·class·C |
| 87 | { | 91 | { |
| 88 | » public· | 92 | » public·EventHandler·v; |
| 89 | } | 93 | } |
| 90 | public·struct·S | 94 | public·struct·S2 |
| 91 | { | 95 | { |
| 92 | » public·C·c; | 96 | » public·C·c; |
| 93 | } | 97 | } |
| 98 | public·struct·S | ||
| 94 | class·X | ||
| 95 | { | ||
| 96 | » public·S·s; | ||
| 97 | } | ||
| 98 | struct·S2 | ||
| 99 | { | 99 | { |
| 100 | » public· | 100 | » public·S2·s2; |
| 101 | } | 101 | } |
| 102 | public·class·Test | 102 | public·class·Test |
| 103 | { | 103 | { |
| 104 | » static·void·Main·() | 104 | » static·void·Main·() |
| 105 | » { | 105 | » { |
| 106 | » » S | 106 | » » S·s; |
| 107 | » » s | 107 | » » s.s2.c.v·=·null; |
| 108 | » } | 108 | » } |
| 109 | }</string> | 109 | }</string> |
| 110 | ··</Examples> | 110 | ··</Examples> |
| 111 | </ErrorDocumentation> | 111 | </ErrorDocumentation> |
| Offset 20, 70 lines modified | Offset 20, 36 lines modified | ||
| 20 | class·Test·:·I<S> | 20 | class·Test·:·I<S> |
| 21 | { | 21 | { |
| 22 | » void·I<S>.Foo<U2>·(U2·u2) | 22 | » void·I<S>.Foo<U2>·(U2·u2) |
| 23 | » { | 23 | » { |
| 24 | » » u2.Test·(); | 24 | » » u2.Test·(); |
| 25 | » } | 25 | » } |
| 26 | }</string> | 26 | }</string> |
| 27 | ····<string>//·CS1061:·Type·` | 27 | ····<string>//·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? |
| 28 | //·Line:·12 | 28 | //·Line:·12 |
| 29 | class·A<X> | ||
| 29 | using·System.Collections.Generic; | ||
| 30 | public·class·C | ||
| 31 | { | ||
| 32 | » void·M·(IEnumerable<KeyValuePair<string,·dynamic>>·arg) | ||
| 33 | » { | ||
| 34 | » » foreach·(KeyValuePair<string,·object>·o·in·arg) | ||
| 35 | » » { | ||
| 36 | » » » o.Value.Foo·(); | ||
| 37 | » » } | ||
| 38 | » } | ||
| 39 | }</string> | ||
| 40 | ····<string>//·CS1061:·Type·`int'·does·not·contain·a·definition·for·`__0'·and·no·extension·method·`__0'·of·type·`int'·could·be·found.·Are·you·missing·an·assembly·reference? | ||
| 41 | //·Line:·8 | ||
| 42 | static·class·C | ||
| 43 | { | ||
| 44 | » static·void·Main·() | ||
| 45 | » { | ||
| 46 | » » int·c·=·0.__0; | ||
| 47 | » } | ||
| 48 | }</string> | ||
| 49 | ····<string>//·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? | ||
| 50 | //·Line:·11 | ||
| 51 | using·System; | ||
| 52 | using·System.Collections.Generic; | ||
| 53 | public·class·C<T,·U> | ||
| 54 | { | ||
| 55 | » public·C·(IEnumerable<T>·t) | ||
| 56 | » { | ||
| 57 | » » new·List<T>(t).ConvertAll(p·=>·p.Name); | ||
| 58 | » } | ||
| 59 | }</string> | ||
| 60 | ····<string>//·CS1061:·Type·`object'·does·not·contain·a·definition·for·`Test'·and·no·extension·method·`Test'·of·type·`object'·could·be·found.·Are·you·missing·an·assembly·reference? | ||
| 61 | //·Line:·17 | ||
| 62 | public·class·S | ||
| 63 | { | 30 | { |
| 31 | » // | ||
| 32 | » //·This·is·to·test·the·lookup·rules·for·SimpleNames: | ||
| 33 | » //·`X'·is·the·type·parameter,·not·the·class. | ||
| 34 | » // | ||
| 64 | » public· | 35 | » public·void·Test·(X·x) |
| 65 | » { | 36 | » { |
| 37 | » » x.Test·(); | ||
| 66 | » } | 38 | » } |
| 67 | } | 39 | } |
| 68 | 40 | class·X | |
| 69 | { | 41 | { |
| 70 | » public· | 42 | » public·void·Test·() |
| 43 | » {·} | ||
| 71 | » public·void·Main·() | 44 | » public·static·void·Main·() |
| 45 | » {·} | ||
| 72 | » { | ||
| 73 | » » S.Test·(); | ||
| 74 | » } | ||
| 75 | }</string> | 46 | }</string> |
| 76 | ····<string>//·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? | 47 | ····<string>//·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? |
| 77 | //·Line:·24 | 48 | //·Line:·24 |
| 78 | using·System; | 49 | using·System; |
| 79 | using·System.Collections.Generic; | 50 | using·System.Collections.Generic; |
| 80 | using·System.Linq; | 51 | using·System.Linq; |
| Offset 104, 23 lines modified | Offset 70, 36 lines modified | ||
| 104 | » » { | 70 | » » { |
| 105 | » » » int[]·i·=·null; | 71 | » » » int[]·i·=·null; |
| 106 | » » » int·p; | 72 | » » » int·p; |
| 107 | ············var·prods·=·from·pe·in·i.Foo·(p9·=>·p.Value)·select·pe; | 73 | ············var·prods·=·from·pe·in·i.Foo·(p9·=>·p.Value)·select·pe; |
| 108 | » » } | 74 | » » } |
| 109 | » } | 75 | » } |
| 110 | }</string> | 76 | }</string> |
| 111 | ····<string>//·CS1061:·Type·` | 77 | ····<string>//·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? |
| 112 | //·Line:· | 78 | //·Line:·17 |
| 79 | using·System; | ||
| 80 | using·System.Runtime.CompilerServices; | ||
| 113 | class· | 81 | class·A |
| 114 | { | 82 | { |
| 115 | » | 83 | » [IndexerName·("Foo")] |
| 84 | » public·int·this·[int·index]·{ | ||
| 85 | » » get·{·return·index;·} | ||
| 86 | » » set·{·;·} | ||
| 87 | » } | ||
| 88 | » static·void·Test·(A·a,·int·value) | ||
| 116 | » { | 89 | » { |
| 117 | » » int?·i·=·4; | ||
| 118 | » » | 90 | » » a.Foo·=·value; |
| 91 | » } | ||
| 92 | » public·static·void·Main·() | ||
| 93 | » { | ||
| 94 | » » Test·(new·A·(),·9); | ||
| 119 | » } | 95 | » } |
| 120 | }</string> | 96 | }</string> |
| 121 | ····<string>//·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? | 97 | ····<string>//·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? |
| 122 | //·Line:·11 | 98 | //·Line:·11 |
| 123 | using·System; | 99 | using·System; |
| Offset 132, 36 lines modified | Offset 111, 38 lines modified | ||
| 132 | » » Action·a·=·i.Foo; | 111 | » » Action·a·=·i.Foo; |
| 133 | » } | 112 | » } |
| 134 | » static·void·Foo·(this·string·s) | 113 | » static·void·Foo·(this·string·s) |
| 135 | » { | 114 | » { |
| 136 | » } | 115 | » } |
| 137 | }</string> | 116 | }</string> |
| 138 | ····<string>//·CS1061:·Type·` | 117 | ····<string>//·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? |
| 139 | //·Line:·1 | 118 | //·Line:·18 |
| Max diff block lines reached; 5419/9361 bytes (57.89%) of diff not shown. | |||
| Offset 1, 54 lines modified | Offset 1, 54 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1066</ErrorName> | 3 | ··<ErrorName>CS1066</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1066:·The·default·value·specified·for·optional·parameter·` | 5 | ····<string>//·CS1066:·The·default·value·specified·for·optional·parameter·`x'·will·never·be·used |
| 6 | //·Line:· | 6 | //·Line:·12 |
| 7 | //·Compiler·options:·-warnaserror | 7 | //·Compiler·options:·-warnaserror |
| 8 | 8 | interface·I | |
| 9 | { | 9 | { |
| 10 | » | 10 | » void·Method·(int·i); |
| 11 | } | ||
| 12 | class·C·:·I | ||
| 13 | { | ||
| 14 | » void·I.Method·(int·x·=·9) | ||
| 11 | » { | 15 | » { |
| 12 | » » return·null; | ||
| 13 | » } | 16 | » } |
| 14 | }</string> | 17 | }</string> |
| 15 | ····<string>//·CS1066:·The·default·value·specified·for·optional·parameter·`s'·will·never·be·used | 18 | ····<string>//·CS1066:·The·default·value·specified·for·optional·parameter·`s'·will·never·be·used |
| 16 | //·Line:·9 | 19 | //·Line:·9 |
| 17 | //·Compiler·options:·-warnaserror | 20 | //·Compiler·options:·-warnaserror |
| 18 | public·partial·class·C | 21 | public·partial·class·C |
| 19 | { | 22 | { |
| 20 | » partial·void·Test·(int·u,·string·s); | 23 | » partial·void·Test·(int·u,·string·s); |
| 21 | » | 24 | » |
| 22 | » partial·void·Test·(int·u,·string·s·=·"optional") | 25 | » partial·void·Test·(int·u,·string·s·=·"optional") |
| 23 | » { | 26 | » { |
| 24 | » } | 27 | » } |
| 25 | }</string> | 28 | }</string> |
| 26 | ····<string>//·CS1066:·The·default·value·specified·for·optional·parameter·` | 29 | ····<string>//·CS1066:·The·default·value·specified·for·optional·parameter·`i'·will·never·be·used |
| 27 | //·Line:· | 30 | //·Line:·6 |
| 28 | //·Compiler·options:·-warnaserror | 31 | //·Compiler·options:·-warnaserror |
| 32 | public·class·C | ||
| 29 | interface·I | ||
| 30 | { | ||
| 31 | » void·Method·(int·i); | ||
| 32 | } | ||
| 33 | class·C·:·I | ||
| 34 | { | 33 | { |
| 35 | » void·I.Method·(int·x·=·9) | ||
| 36 | » { | 34 | » public·int·this·[int·i·=·1]·{· |
| 35 | » » set·{} | ||
| 37 | » } | 36 | » } |
| 38 | }</string> | 37 | }</string> |
| 39 | ····<string>//·CS1066:·The·default·value·specified·for·optional·parameter·`i'·will·never·be·used | 38 | ····<string>//·CS1066:·The·default·value·specified·for·optional·parameter·`i'·will·never·be·used |
| 40 | //·Line:· | 39 | //·Line:·7 |
| 41 | //·Compiler·options:·-warnaserror | 40 | //·Compiler·options:·-warnaserror |
| 42 | 41 | class·C | |
| 43 | { | 42 | { |
| 44 | » public·int·this·[int·i·=·1]·{· | ||
| 45 | » | 43 | » public·static·implicit·operator·C·(int·i·=·8) |
| 44 | » { | ||
| 45 | » » return·null; | ||
| 46 | » } | 46 | » } |
| 47 | }</string> | 47 | }</string> |
| 48 | ··</Examples> | 48 | ··</Examples> |
| 49 | </ErrorDocumentation> | 49 | </ErrorDocumentation> |
| Offset 2, 21 lines modified | Offset 2, 14 lines modified | ||
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1070</ErrorName> | 3 | ··<ErrorName>CS1070</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·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' | 5 | ····<string>//·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' |
| 6 | //·Line:·5 | 6 | //·Line:·5 |
| 7 | //·Compiler·options:·-r:CS1070-lib.dll | 7 | //·Compiler·options:·-r:CS1070-lib.dll |
| 8 | public·class·D·:·C | ||
| 9 | { | ||
| 10 | }</string> | ||
| 11 | ····<string>//·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' | ||
| 12 | //·Line:·5 | ||
| 13 | //·Compiler·options:·-r:CS1070-lib.dll | ||
| 14 | public·class·D | 8 | public·class·D |
| 15 | { | 9 | { |
| 16 | » static·void·Main·() | 10 | » static·void·Main·() |
| 17 | » { | 11 | » { |
| 18 | » » new·C·(); | 12 | » » new·C·(); |
| 19 | » } | 13 | » } |
| 20 | }</string> | 14 | }</string> |
| Offset 28, 9 lines modified | Offset 21, 16 lines modified | ||
| 28 | public·class·D | 21 | public·class·D |
| 29 | { | 22 | { |
| 30 | » public·void·Foo·(E·e) | 23 | » public·void·Foo·(E·e) |
| 31 | » { | 24 | » { |
| 32 | » } | 25 | » } |
| 33 | }</string> | 26 | }</string> |
| 27 | ····<string>//·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' | ||
| 28 | //·Line:·5 | ||
| 29 | //·Compiler·options:·-r:CS1070-lib.dll | ||
| 30 | public·class·D·:·C | ||
| 31 | { | ||
| 32 | }</string> | ||
| 34 | ··</Examples> | 33 | ··</Examples> |
| 35 | </ErrorDocumentation> | 34 | </ErrorDocumentation> |
| Offset 1, 26 lines modified | Offset 1, 26 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1112</ErrorName> | 3 | ··<ErrorName>CS1112</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1112:·Do·not·use·`System.Runtime.CompilerServices.ExtensionAttribute'·directly.·Use·parameter·modifier·`this'·instead | 5 | ····<string>//·CS1112:·Do·not·use·`System.Runtime.CompilerServices.ExtensionAttribute'·directly.·Use·parameter·modifier·`this'·instead |
| 6 | //·Line:·7 | ||
| 7 | using·System.Runtime.CompilerServices; | ||
| 8 | [assembly:·ExtensionAttribute]</string> | ||
| 9 | ····<string>//·CS1112:·Do·not·use·`System.Runtime.CompilerServices.ExtensionAttribute'·directly.·Use·parameter·modifier·`this'·instead | ||
| 6 | //·Line:·8 | 10 | //·Line:·8 |
| 7 | using·System.Runtime.CompilerServices; | 11 | using·System.Runtime.CompilerServices; |
| 8 | static·class·C | 12 | static·class·C |
| 9 | { | 13 | { |
| 10 | » [Extension] | 14 | » [Extension] |
| 11 | » static·void·Foo·(this·string·s) | 15 | » static·void·Foo·(this·string·s) |
| 12 | » { | 16 | » { |
| 13 | » } | 17 | » } |
| 14 | }</string> | 18 | }</string> |
| 15 | ····<string>//·CS1112:·Do·not·use·`System.Runtime.CompilerServices.ExtensionAttribute'·directly.·Use·parameter·modifier·`this'·instead | ||
| 16 | //·Line:·7 | ||
| 17 | using·System.Runtime.CompilerServices; | ||
| 18 | [assembly:·ExtensionAttribute]</string> | ||
| 19 | ··</Examples> | 19 | ··</Examples> |
| 20 | </ErrorDocumentation> | 20 | </ErrorDocumentation> |
| Offset 1, 58 lines modified | Offset 1, 27 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1501</ErrorName> | 3 | ··<ErrorName>CS1501</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1501:·No·overload·for·method·`Foo'·takes·`2'·arguments | ||
| 6 | //·Line:·13 | ||
| 7 | static·class·C | ||
| 8 | { | ||
| 9 | » public·static·void·Foo·(this·string·s,·int·d,·bool·b) | ||
| 10 | » { | ||
| 11 | » } | ||
| 12 | » static·void·Main() | ||
| 13 | » { | ||
| 14 | » » dynamic·d·=·null; | ||
| 15 | » » "x".Foo·(d); | ||
| 16 | » } | ||
| 17 | }</string> | ||
| 18 | ····<string>//·CS1501:·No·overload·for·method·`Foo'·takes·`0'·arguments | 5 | ····<string>//·CS1501:·No·overload·for·method·`Foo'·takes·`0'·arguments |
| 19 | //·Line:·1 | 6 | //·Line:·15 |
| 20 | class·C | ||
| 21 | { | ||
| 22 | ····static·void·Foo·(string·foo,·params·object·[]·moreFoo) | ||
| 23 | ····{ | ||
| 24 | ····} | ||
| 25 | ····static·void·Main·() | ||
| 26 | ····{ | ||
| 27 | ········Foo·(); | ||
| 28 | ····} | ||
| 29 | }</string> | ||
| 30 | ····<string>//·CS1501:·No·overload·for·method·`Foo'·takes·`2'·arguments | ||
| 31 | //·Line:·17 | ||
| 32 | 7 | class·Base<T> | |
| 33 | { | 8 | { |
| 34 | » p | 9 | » protected·virtual·void·Foo<U>·(U·u) |
| 35 | » { | 10 | » { |
| 36 | » » return·s; | ||
| 37 | » } | 11 | » } |
| 38 | } | 12 | } |
| 39 | 13 | class·Derived<T>·:·Base<int> | |
| 40 | { | 14 | { |
| 41 | » public·static·void·Main·() | ||
| 42 | » { | ||
| 43 | » » 1.Foo·("foo"); | ||
| 44 | 15 | ····protected·override·void·Foo<U>·(U·u) | |
| 16 | ····{ | ||
| 17 | ········base.Foo·(); | ||
| 18 | ····} | ||
| 45 | }</string> | 19 | }</string> |
| 46 | ····<string>//·CS1501:·No·overload·for·method·`XCreateIC'·takes·`1'·arguments | 20 | ····<string>//·CS1501:·No·overload·for·method·`XCreateIC'·takes·`1'·arguments |
| 47 | //·Line:·16 | 21 | //·Line:·16 |
| 48 | using·System; | 22 | using·System; |
| 49 | using·System.Runtime.InteropServices; | 23 | using·System.Runtime.InteropServices; |
| Offset 65, 72 lines modified | Offset 34, 127 lines modified | ||
| 65 | ················public·static·void·Main·() | 34 | ················public·static·void·Main·() |
| 66 | ················{ | 35 | ················{ |
| 67 | ························XCreateIC·(IntPtr.Zero); | 36 | ························XCreateIC·(IntPtr.Zero); |
| 68 | ················} | 37 | ················} |
| 69 | ········} | 38 | ········} |
| 70 | }</string> | 39 | }</string> |
| 71 | ····<string>//·CS1501:·No·overload·for·method·` | 40 | ····<string>//·CS1501:·No·overload·for·method·`Block'·takes·`2'·arguments |
| 72 | //·Line:·1 | 41 | //·Line:·12 |
| 73 | class· | 42 | class·X |
| 74 | { | 43 | { |
| 75 | » p | 44 | » public·static·void·Block·(object·type,·object·variables,·params·object[]·expressions) |
| 76 | » { | 45 | » { |
| 77 | » } | 46 | » } |
| 78 | } | ||
| 79 | 47 | » public·static·void·Main·() | |
| 48 | » { | ||
| 49 | » » Block·(variables:·null,·expressions:·null); | ||
| 50 | » } | ||
| 51 | }</string> | ||
| 52 | ····<string>//·CS1501:·No·overload·for·method·`this'·takes·`2'·arguments | ||
| 53 | //·Line·:·10 | ||
| 54 | class·C | ||
| 80 | { | 55 | { |
| 81 | ····protected·override·void·Foo<U>·(U·u) | ||
| 82 | ····{ | ||
| 83 | ········base.Foo·(); | ||
| 84 | ····} | 56 | » public·bool·this·[int·i]·{·get·{·return·false;·}·set·{}·} |
| 57 | » | ||
| 58 | » void·Foo·() | ||
| 59 | » {» C·c·=·new·C·(); | ||
| 60 | » » c·[0,·0]·=·null; | ||
| 61 | » } | ||
| 85 | }</string> | 62 | }</string> |
| 86 | ····<string>//·CS1501:·No·overload·for·method·`Foo'·takes·` | 63 | ····<string>//·CS1501:·No·overload·for·method·`Foo'·takes·`2'·arguments |
| 87 | //·Line:·1 | 64 | //·Line:·13 |
| 88 | class· | 65 | static·class·C |
| 89 | { | 66 | { |
| 90 | » public·static·void·Foo·( | 67 | » public·static·void·Foo·(this·string·s,·int·d,·bool·b) |
| 91 | » { | 68 | » { |
| 92 | » } | 69 | » } |
| 93 | » static·void·Main | 70 | » static·void·Main() |
| 94 | » { | 71 | » { |
| 95 | » » | 72 | » » dynamic·d·=·null; |
| 73 | » » "x".Foo·(d); | ||
| 96 | » } | 74 | » } |
| 97 | }</string> | 75 | }</string> |
| 98 | ····<string>//·CS1501:·No·overload·for·method·`Foo'·takes·` | 76 | ····<string>//·CS1501:·No·overload·for·method·`Foo'·takes·`2'·arguments |
| 99 | //·Line:·1 | 77 | //·Line:·17 |
| 100 | using·System; | ||
| 101 | using·System.Runtime.InteropServices; | ||
| 102 | 78 | static·class·Extensions | |
| 103 | { | 79 | { |
| 104 | » public·static· | 80 | » public·static·string·Foo·(this·string·s) |
| 105 | » { | 81 | » { |
| 82 | » » return·s; | ||
| 106 | » } | 83 | » } |
| 84 | } | ||
| Max diff block lines reached; 5292/8487 bytes (62.35%) of diff not shown. | |||
| Offset 1, 121 lines modified | Offset 1, 164 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1502</ErrorName> | 3 | ··<ErrorName>CS1502</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1502:·The·best·overloaded·method·match·for·`System. | 5 | ····<string>//·CS1502:··The·best·overloaded·method·match·for·`System.Windows.Forms.X11Xim.XCreateIC(System.IntPtr,·__arglist)'·has·some·invalid·arguments |
| 6 | //·Line:·1 | 6 | //·Line:·16 |
| 7 | using·System; | 7 | using·System; |
| 8 | using·System.Runtime.InteropServices; | ||
| 8 | 9 | namespace·System.Windows.Forms | |
| 9 | { | 10 | { |
| 10 | ········ | 11 | ········internal·class·X11Xim |
| 11 | ········{ | 12 | ········{ |
| 13 | ················[DllImport·("libX11",·EntryPoint="XCreateIC")] | ||
| 14 | ················internal·extern·static·IntPtr·XCreateIC(IntPtr·xim,·__arglist); | ||
| 12 | » » test·MyBug·=·new·test(); | ||
| 13 | ················Console.WriteLine·(MyBug.mytest()); | ||
| 14 | » } | ||
| 15 | } | ||
| 16 | public·class···test | ||
| 17 | { | ||
| 18 | ········public·void· | 15 | ················public·static·void·Main·() |
| 16 | ················{ | ||
| 17 | ························XCreateIC·(IntPtr.Zero,·IntPtr.Zero); | ||
| 18 | ················} | ||
| 19 | ········ | 19 | ········} |
| 20 | ················Console.WriteLine("test"); | ||
| 21 | » } | ||
| 22 | }</string> | 20 | }</string> |
| 23 | ····<string>//·CS1502:·The·best·overloaded·method·match·for·` | 21 | ····<string>//·CS1502:·The·best·overloaded·method·match·for·`X.M(string)'·has·some·invalid·arguments |
| 24 | //·Line:· | 22 | //·Line:·23 |
| 25 | 23 | delegate·void·D1·(object·o); | |
| 24 | delegate·void·D2·(); | ||
| 26 | 25 | class·C | |
| 27 | { | 26 | { |
| 28 | » public· | 27 | » public·C·(D1·d) |
| 29 | » { | 28 | » { |
| 30 | » } | 29 | » } |
| 31 | » | 30 | » |
| 31 | » public·C·(D2·d) | ||
| 32 | » { | 32 | » { |
| 33 | » » Test·(""); | ||
| 34 | » } | 33 | » } |
| 34 | } | ||
| 35 | }</string> | ||
| 36 | ····<string>//·CS1502:·The·best·overloaded·method·match·for·`Test.Test(TestMethod2)'·has·some·invalid·arguments | ||
| 37 | //·Line:·8 | ||
| 38 | 35 | class·X | |
| 39 | { | 36 | { |
| 40 | » void·Foo·() | 37 | » void·Foo·() |
| 41 | » { | 38 | » { |
| 42 | » » new· | 39 | » » new·C·(delegate·(object·state)·{ |
| 40 | » » » M·(1); | ||
| 41 | » » }); | ||
| 43 | » } | 42 | » } |
| 44 | » public·Test·(TestMethod2·test)·{} | ||
| 45 | 43 | » void·M·(string·s) | |
| 44 | » { | ||
| 45 | » } | ||
| 46 | }</string> | ||
| 47 | ····<string>//·CS1502:·The·best·overloaded·method·match·for·`T.Blah(out·int)'·has·some·invalid·arguments | ||
| 48 | //·Line:·11 | ||
| 49 | using·System; | ||
| 46 | public·delegate·void·TestMethod·(); | ||
| 47 | public·delegate·void·TestMethod2·(object·o);</string> | ||
| 48 | ····<string>//·CS1502:·The·best·overloaded·method·match·for·`X.X(int)'·has·some·invalid·arguments | ||
| 49 | //·Line:·14 | ||
| 50 | 50 | class·T·{ | |
| 51 | ········static·void·Blah·(out·int·g)·{·g·=·0;·} | ||
| 51 | » public·X·(int·a) | ||
| 52 | 52 | ········static·int·Main·(string·[]·args)·{ | |
| 53 | ················IntPtr·g; | ||
| 54 | ················Blah·(out·g); | ||
| 55 | » » return·(int)·g; | ||
| 56 | ········} | ||
| 57 | }</string> | ||
| 58 | ····<string>//·CS1502:·The·best·overloaded·method·match·for·`Global.Test1(int?)'·has·some·invalid·arguments | ||
| 59 | //·Line:·8 | ||
| 60 | using·System; | ||
| 61 | class·Global·{ | ||
| 62 | » static·void·Main()·{ | ||
| 63 | » » Console.Write(Test1((decimal?)2)); | ||
| 64 | » }» | ||
| 65 | » static·string·Test1(int?·value)·{ | ||
| 66 | » » return·"ok"; | ||
| 53 | » } | 67 | » } |
| 68 | }</string> | ||
| 69 | ····<string>//·CS1502:·The·best·overloaded·method·match·for·`TestCase.TestS(ref·object)'·has·some·invalid·arguments | ||
| 70 | //·Line:·21 | ||
| 71 | using·System; | ||
| 72 | public·struct·Struct·{ | ||
| 73 | » public·int·x,·y,·z; | ||
| 54 | } | 74 | } |
| 55 | class· | 75 | public·class·TestCase·{ |
| 76 | » | ||
| 56 | » static·void·Main | 77 | » public·static·void·Main()·{ |
| 57 | » { | ||
| 58 | » » | 78 | » » |
| 79 | » » Struct·s·=·new·Struct(); | ||
| 80 | » » | ||
| 81 | » » s.x·=·1; | ||
| 82 | » » s.y·=·2; | ||
| 83 | » » | ||
| 84 | » » System.Console.WriteLine("{0}·{1}·{2}",·s.x,·s.y,·s.z); | ||
| 85 | » » | ||
| 86 | » » TestS(ref·s); | ||
| 87 | » }» | ||
| 88 | » | ||
| 89 | » public·static·void·TestS(ref·object·ino)·{ | ||
| 90 | » » System.Console.WriteLine("{0}",·((Struct)(ino)).x); | ||
| 59 | » } | 91 | » } |
| 92 | » | ||
| Max diff block lines reached; 9120/12710 bytes (71.75%) of diff not shown. | |||
| Offset 1, 11 lines modified | Offset 1, 65 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1503</ErrorName> | 3 | ··<ErrorName>CS1503</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1503:·Argument·`#1'·cannot·convert·`long'·expression·to·type·`ulong' | ||
| 6 | //·Line:·17 | ||
| 7 | class·A | ||
| 8 | { | ||
| 9 | » public·static·long·Prop·{ | ||
| 10 | » » get·{ | ||
| 11 | » » » return·1; | ||
| 12 | » » } | ||
| 13 | » } | ||
| 14 | } | ||
| 15 | class·Test | ||
| 16 | { | ||
| 17 | » static·void·Main·() | ||
| 18 | » { | ||
| 19 | » » Foo·(A.Prop); | ||
| 20 | » } | ||
| 21 | » | ||
| 22 | » static·void·Foo·(ulong·l) | ||
| 23 | » { | ||
| 24 | » } | ||
| 25 | }</string> | ||
| 26 | ····<string>//·CS1503:·Argument·`#5'·cannot·convert·`void'·expression·to·type·`object' | ||
| 27 | //·Line:·14 | ||
| 28 | using·System; | ||
| 29 | public·class·foo | ||
| 30 | { | ||
| 31 | » public·static·void·voidfunc() | ||
| 32 | » { | ||
| 33 | » } | ||
| 34 | » public·static·void·Main() | ||
| 35 | » { | ||
| 36 | » » Console.WriteLine·("Whoops:·{0}·{1}",·0,·1,·2,·voidfunc()); | ||
| 37 | » } | ||
| 38 | }</string> | ||
| 39 | ····<string>//·CS1503:·Argument·`#1'·cannot·convert·`bool'·expression·to·type·`int[]' | ||
| 40 | //·Line:·13 | ||
| 41 | public·class·X | ||
| 42 | { | ||
| 43 | » public·static·void·Test·(params·int[]·a) | ||
| 44 | » { | ||
| 45 | » } | ||
| 46 | » public·static·void·Main() | ||
| 47 | » { | ||
| 48 | » » int·i; | ||
| 49 | » » Test·(true); | ||
| 50 | » } | ||
| 51 | }</string> | ||
| 5 | ····<string>//·CS1503:·Argument·`#1'·cannot·convert·`method·group'·expression·to·type·`IInterface' | 52 | ····<string>//·CS1503:·Argument·`#1'·cannot·convert·`method·group'·expression·to·type·`IInterface' |
| 6 | //·Line:·15 | 53 | //·Line:·15 |
| 7 | public·delegate·void·Del·(); | 54 | public·delegate·void·Del·(); |
| 8 | public·interface·IInterface | 55 | public·interface·IInterface |
| 9 | { | 56 | { |
| Offset 29, 50 lines modified | Offset 83, 34 lines modified | ||
| 29 | » } | 83 | » } |
| 30 | » | 84 | » |
| 31 | » public·static·void·Main·() | 85 | » public·static·void·Main·() |
| 32 | » { | 86 | » { |
| 33 | » » Foo<int>·(true); | 87 | » » Foo<int>·(true); |
| 34 | » } | 88 | » } |
| 35 | }</string> | 89 | }</string> |
| 36 | ····<string>//·CS1503:·Argument·`# | 90 | ····<string>//·CS1503:·Argument·`#2'·cannot·convert·`method·group'·expression·to·type·`System.Collections.Generic.Comparer<int>' |
| 37 | //·Line:· | 91 | //·Line:·20 |
| 92 | using·System; | ||
| 93 | using·System.Collections.Generic; | ||
| 38 | class·A | ||
| 39 | { | ||
| 40 | » public·static·long·Prop·{ | ||
| 41 | » » get·{ | ||
| 42 | » » » return·1; | ||
| 43 | » » } | ||
| 44 | » } | ||
| 45 | } | ||
| 46 | class· | 94 | public·class·C |
| 47 | { | 95 | { |
| 48 | » static·void· | 96 | » static·void·Foo<T>(T·t,·Comparer<T>·tc) |
| 49 | » { | 97 | » { |
| 50 | » » Foo·(A.Prop); | ||
| 51 | » } | 98 | » } |
| 52 | » | 99 | » |
| 100 | » static·int·Compare·(int·a,·int·b) | ||
| 53 | » static·void·Foo·(ulong·l) | ||
| 54 | » { | ||
| 55 | » } | ||
| 56 | }</string> | ||
| 57 | ····<string>//·CS1503:·Argument·`#1'·cannot·convert·`bool'·expression·to·type·`int[]' | ||
| 58 | //·Line:·13 | ||
| 59 | public·class·X | ||
| 60 | { | ||
| 61 | » public·static·void·Test·(params·int[]·a) | ||
| 62 | » { | 101 | » { |
| 102 | » » return·-1; | ||
| 63 | » } | 103 | » } |
| 104 | » | ||
| 64 | » public·static·void·Main() | 105 | » public·static·void·Main·() |
| 65 | » { | 106 | » { |
| 107 | » » Foo·(1,·Compare); | ||
| 66 | » » int·i; | ||
| 67 | » » Test·(true); | ||
| 68 | » } | 108 | » } |
| 69 | }</string> | 109 | }</string> |
| 70 | ····<string>//·CS1503:·Argument·`#1'·cannot·convert·`ref·long'·expression·to·type·`ref·int' | 110 | ····<string>//·CS1503:·Argument·`#1'·cannot·convert·`ref·long'·expression·to·type·`ref·int' |
| 71 | //·Line:·18 | 111 | //·Line:·18 |
| 72 | using·System; | 112 | using·System; |
| Offset 98, 44 lines modified | Offset 136, 90 lines modified | ||
| 98 | » ref·long·Prop·{ | 136 | » ref·long·Prop·{ |
| 99 | » » get·{ | 137 | » » get·{ |
| 100 | » » » return·ref·field; | 138 | » » » return·ref·field; |
| 101 | » » } | 139 | » » } |
| Max diff block lines reached; 4518/6977 bytes (64.76%) of diff not shown. | |||
| Offset 1, 22 lines modified | Offset 1, 40 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1510</ErrorName> | 3 | ··<ErrorName>CS1510</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1510:·A·ref·or·out·argument·must·be·an·assignable·variable | 5 | ····<string>//·CS1510:·A·ref·or·out·argument·must·be·an·assignable·variable |
| 6 | //·Line:·1 | 6 | //·Line:·14 |
| 7 | //·this·is·bug·#56016 | ||
| 8 | using·System; | ||
| 7 | class· | 9 | class·Test·{ |
| 10 | » static·void·test(ref·IConvertible·i)·{ | ||
| 8 | » public·static·void·m·(ref·int·i) | ||
| 9 | » { | ||
| 10 | » » i++; | ||
| 11 | » } | 11 | » } |
| 12 | » | ||
| 13 | » static·void·Main()·{ | ||
| 14 | » » int·i·=·1; | ||
| 12 | » st | 15 | » » test·(ref·(IConvertible)·i); |
| 16 | » } | ||
| 17 | }</string> | ||
| 18 | ····<string>//·CS1510:·A·ref·or·out·argument·must·be·an·assignable·variable | ||
| 19 | //·Line:·13 | ||
| 20 | class·M | ||
| 21 | { | ||
| 22 | » static·void·Test·(ref·byte·b) | ||
| 13 | » { | 23 | » { |
| 14 | » | 24 | » } |
| 25 | » | ||
| 26 | » public·static·void·Main·() | ||
| 27 | » { | ||
| 28 | » » byte·b·=·1; | ||
| 29 | » » Test·(ref·(byte)·b); | ||
| 15 | » } | 30 | » } |
| 16 | }</string> | 31 | }</string> |
| 17 | ····<string>//·CS1510:·A·ref·or·out·argument·must·be·an·assignable·variable | 32 | ····<string>//·CS1510:·A·ref·or·out·argument·must·be·an·assignable·variable |
| 18 | //·Line:·19 | 33 | //·Line:·19 |
| 19 | //·this·is·bug·#70402 | 34 | //·this·is·bug·#70402 |
| 20 | using·System; | 35 | using·System; |
| Offset 33, 54 lines modified | Offset 51, 36 lines modified | ||
| 33 | ········static·void·Main·() | 51 | ········static·void·Main·() |
| 34 | ········{ | 52 | ········{ |
| 35 | ················int·a·=·0; | 53 | ················int·a·=·0; |
| 36 | ················Convert·(out·(A)·a); | 54 | ················Convert·(out·(A)·a); |
| 37 | ········} | 55 | ········} |
| 38 | }</string> | 56 | }</string> |
| 39 | ····<string>//·CS1510:·A·ref·or·out·argument·must·be·an·assignable·variable | 57 | ····<string>//·CS1510:·A·ref·or·out·argument·must·be·an·assignable·variable |
| 40 | //·Line:· | 58 | //·Line:·11 |
| 41 | class· | 59 | class·X·{ |
| 42 | { | ||
| 43 | » public·static·void· | 60 | » public·static·void·m·(ref·int·i) |
| 44 | » { | 61 | » { |
| 62 | » » i++; | ||
| 45 | » » const·char·c·=·'a'; | ||
| 46 | » » Foo·(ref·c); | ||
| 47 | » } | 63 | » } |
| 48 | » static·void· | 64 | » static·void·Main·() |
| 49 | » { | 65 | » { |
| 66 | » » m·(ref·4); | ||
| 50 | » } | 67 | » } |
| 51 | }</string> | 68 | }</string> |
| 52 | ····<string>//·CS1510:·A·ref·or·out·argument·must·be·an·assignable·variable | 69 | ····<string>//·CS1510:·A·ref·or·out·argument·must·be·an·assignable·variable |
| 53 | //·Line:· | 70 | //·Line:·9 |
| 54 | class· | 71 | class·C |
| 55 | { | 72 | { |
| 56 | » static·void·Test·(ref·byte·b) | ||
| 57 | » { | ||
| 58 | » } | ||
| 59 | » | ||
| 60 | » public·static·void·Main·() | 73 | » public·static·void·Main·() |
| 61 | » { | 74 | » { |
| 75 | » » const·char·c·=·'a'; | ||
| 76 | » » Foo·(ref·c); | ||
| 62 | » » byte·b·=·1; | ||
| 63 | » » Test·(ref·(byte)·b); | ||
| 64 | » } | ||
| 65 | }</string> | ||
| 66 | ····<string>//·CS1510:·A·ref·or·out·argument·must·be·an·assignable·variable | ||
| 67 | //·Line:·14 | ||
| 68 | //·this·is·bug·#56016 | ||
| 69 | using·System; | ||
| 70 | class·Test·{ | ||
| 71 | » static·void·test(ref·IConvertible·i)·{ | ||
| 72 | » } | 77 | » } |
| 73 | » | ||
| 74 | » static·void·Main()·{ | ||
| 75 | » » int·i·=·1; | ||
| 76 | » | 78 | » static·void·Foo(ref·char·i) |
| 79 | » { | ||
| 77 | » } | 80 | » } |
| 78 | }</string> | 81 | }</string> |
| 79 | ··</Examples> | 82 | ··</Examples> |
| 80 | </ErrorDocumentation> | 83 | </ErrorDocumentation> |
| Offset 1, 32 lines modified | Offset 1, 32 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1512</ErrorName> | 3 | ··<ErrorName>CS1512</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1512:·Keyword·`base'·is·not·available·in·the·current·context | 5 | ····<string>//·CS1512:·Keyword·`base'·is·not·available·in·the·current·context |
| 6 | //·Line:·11 | 6 | //·Line:·11 |
| 7 | class·Base | ||
| 8 | { | ||
| 9 | ····private·string·B·()·{·return·"a";·} | ||
| 10 | } | ||
| 11 | class·E | ||
| 12 | { | ||
| 13 | ···private·string·B·=·base.B·(); | ||
| 14 | }</string> | ||
| 15 | ····<string>//·CS1512:·Keyword·`base'·is·not·available·in·the·current·context | ||
| 16 | //·Line:·11 | ||
| 17 | struct·S | 7 | struct·S |
| 18 | { | 8 | { |
| 19 | » delegate·int·D·(); | 9 | » delegate·int·D·(); |
| 20 | » | 10 | » |
| 21 | » void·Test·() | 11 | » void·Test·() |
| 22 | » { | 12 | » { |
| 23 | » » D·d·=·delegate·{· | 13 | » » D·d·=·delegate·{· |
| 24 | » » » return·base.GetHashcode·(); | 14 | » » » return·base.GetHashcode·(); |
| 25 | » » }; | 15 | » » }; |
| 26 | » } | 16 | » } |
| 27 | }</string> | 17 | }</string> |
| 18 | ····<string>//·CS1512:·Keyword·`base'·is·not·available·in·the·current·context | ||
| 19 | //·Line:·11 | ||
| 20 | class·Base | ||
| 21 | { | ||
| 22 | ····private·string·B·()·{·return·"a";·} | ||
| 23 | } | ||
| 24 | class·E | ||
| 25 | { | ||
| 26 | ···private·string·B·=·base.B·(); | ||
| 27 | }</string> | ||
| 28 | ··</Examples> | 28 | ··</Examples> |
| 29 | </ErrorDocumentation> | 29 | </ErrorDocumentation> |
| Offset 1, 39 lines modified | Offset 1, 39 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1519</ErrorName> | 3 | ··<ErrorName>CS1519</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1519:·Unexpected·symbol·` | 5 | ····<string>//·CS1519:·Unexpected·symbol·`;'·in·class,·struct,·or·interface·member·declaration |
| 6 | //·Line:· | 6 | //·Line:·8 |
| 7 | class·C | 7 | class·C |
| 8 | {··· | ||
| 9 | 8 | { | |
| 9 | ····public·static·void·Main·() | ||
| 10 | ····{ | ||
| 11 | ····}; | ||
| 10 | }</string> | 12 | }</string> |
| 11 | ····<string>//·CS1519:·Unexpected·symbol·`extern'·in·class,·struct,·or·interface·member·declaration | ||
| 12 | //·Line:·5 | ||
| 13 | public·class·Test·{} | ||
| 14 | extern·alias·Hey;</string> | ||
| 15 | ····<string>//·CS1519:·Unexpected·symbol·`}'·in·class,·struct,·or·interface·member·declaration | 13 | ····<string>//·CS1519:·Unexpected·symbol·`}'·in·class,·struct,·or·interface·member·declaration |
| 16 | //·Line:·7 | 14 | //·Line:·7 |
| 17 | public·class·Foo | 15 | public·class·Foo |
| 18 | { | 16 | { |
| 19 | » public·f· | 17 | » public·f· |
| 20 | }</string> | 18 | }</string> |
| 21 | ····<string>//·CS1519:·Unexpected·symbol·` | 19 | ····<string>//·CS1519:·Unexpected·symbol·`unchecked'·in·class,·struct,·or·interface·member·declaration |
| 22 | //·Line:· | 20 | //·Line:·6 |
| 23 | class·C | 21 | class·C |
| 22 | {··· | ||
| 23 | » unchecked·const·decimal·d·=·79m; | ||
| 24 | { | ||
| 25 | ····public·static·void·Main·() | ||
| 26 | ····{ | ||
| 27 | ····}; | ||
| 28 | }</string> | 24 | }</string> |
| 25 | ····<string>//·CS1519:·Unexpected·symbol·`extern'·in·class,·struct,·or·interface·member·declaration | ||
| 26 | //·Line:·5 | ||
| 27 | public·class·Test·{} | ||
| 28 | extern·alias·Hey;</string> | ||
| 29 | ····<string>//·CS1519:·Unexpected·symbol·`using'·in·class,·struct,·or·interface·member·declaration | 29 | ····<string>//·CS1519:·Unexpected·symbol·`using'·in·class,·struct,·or·interface·member·declaration |
| 30 | //·Line:·5 | 30 | //·Line:·5 |
| 31 | class·X·{·} | 31 | class·X·{·} |
| 32 | using·System;</string> | 32 | using·System;</string> |
| 33 | ··</Examples> | 33 | ··</Examples> |
| 34 | </ErrorDocumentation> | 34 | </ErrorDocumentation> |
| Offset 1, 15 lines modified | Offset 1, 19 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1521</ErrorName> | 3 | ··<ErrorName>CS1521</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1521:·Invalid·base·type·` | 5 | ····<string>//·CS1521:·Invalid·base·type·`C?' |
| 6 | //·Line:· | 6 | //·Line:·8 |
| 7 | 7 | struct·C | |
| 8 | { | ||
| 9 | } | ||
| 10 | class·C2:·C? | ||
| 8 | { | 11 | { |
| 9 | }</string> | 12 | }</string> |
| 10 | ····<string>//·CS1521:·Invalid·base·type·`C*' | 13 | ····<string>//·CS1521:·Invalid·base·type·`C*' |
| 11 | //·Line:·9 | 14 | //·Line:·9 |
| 12 | //·Compiler·options:·-unsafe | 15 | //·Compiler·options:·-unsafe |
| 13 | struct·C | 16 | struct·C |
| Offset 25, 19 lines modified | Offset 29, 15 lines modified | ||
| 25 | class·C | 29 | class·C |
| 26 | { | 30 | { |
| 27 | } | 31 | } |
| 28 | class·C2:·C[] | 32 | class·C2:·C[] |
| 29 | { | 33 | { |
| 30 | }</string> | 34 | }</string> |
| 31 | ····<string>//·CS1521:·Invalid·base·type·` | 35 | ····<string>//·CS1521:·Invalid·base·type·`object[]' |
| 32 | //·Line:· | 36 | //·Line:·4 |
| 33 | struct·C | ||
| 34 | { | ||
| 35 | } | ||
| 36 | class·C2:· | 37 | class·C2:·object[] |
| 37 | { | 38 | { |
| 38 | }</string> | 39 | }</string> |
| 39 | ··</Examples> | 40 | ··</Examples> |
| 40 | </ErrorDocumentation> | 41 | </ErrorDocumentation> |
| Offset 1, 597 lines modified | Offset 1, 597 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1525</ErrorName> | 3 | ··<ErrorName>CS1525</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1525:·Unexpected·symbol·` | 5 | ····<string>//·CS1525:·Unexpected·symbol·`fe',·expecting·`class',·`delegate',·`enum',·`interface',·`partial',·`ref',·or·`struct' |
| 6 | //·Line:· | 6 | //·Line:·6 |
| 7 | class·X·{ | ||
| 8 | » X·()·:·{ | ||
| 9 | 7 | namespace·X | |
| 8 | { | ||
| 9 | » sealed·fe·{} | ||
| 10 | }</string> | ||
| 11 | ····<string>//·CS1525:·Unexpected·symbol·`}',·expecting·`(',·`{',·or·`=>' | ||
| 12 | //·Line:·6 | ||
| 10 | 13 | class·MyClass | |
| 14 | { | ||
| 15 | » void·a<T> | ||
| 11 | }</string> | 16 | }</string> |
| 12 | ····<string>//·CS1525:·Unexpected·symbol·` | 17 | ····<string>//·CS1525:·Unexpected·symbol·`)',·expecting·`.'·or·`[' |
| 13 | //·Line:· | 18 | //·Line:·10 |
| 14 | class·X·{ | ||
| 15 | 19 | using·System.Collections; | |
| 20 | class·Collection·:·CollectionBase | ||
| 21 | { | ||
| 22 | » public·int·Add·(int·x) | ||
| 16 | » { | 23 | » { |
| 17 | » » | 24 | » » return·((IList)·base).Add·(x); |
| 18 | » } | 25 | » } |
| 19 | }</string> | 26 | }</string> |
| 20 | ····<string>//·CS1525:·Unexpected·symbol·` | 27 | ····<string>//·CS1525:·Unexpected·symbol·`ref' |
| 21 | //·Line:· | 28 | //·Line:·8 |
| 22 | using·System; | ||
| 23 | class· | 29 | public·class·Test |
| 24 | { | 30 | { |
| 25 | » | 31 | » static·void·Main·() |
| 26 | » { | 32 | » { |
| 33 | » » string·ref·=·"abc"; | ||
| 27 | » » try·{ | ||
| 28 | » » }·catch·(Exception) | ||
| 29 | » } | 34 | » } |
| 30 | }</string> | 35 | }</string> |
| 31 | ····<string>//·CS1 | 36 | ····<string>//·CS1525:·Unexpected·symbol·`>',·expecting·`[',·`identifier',·`in',·or·`out' |
| 37 | //·Line:·4 | ||
| 38 | public·class·C<> | ||
| 39 | { | ||
| 40 | }</string> | ||
| 41 | ····<string>//·CS1525:·Unexpected·symbol·`}' | ||
| 32 | //·Line:·10 | 42 | //·Line:·10 |
| 33 | using·System; | 43 | using·System; |
| 34 | class·Test·{ | ||
| 35 | ········static·void·Main·() | ||
| 36 | ········{ | ||
| 37 | ················string·uri·=·"http://localhost/"; | ||
| 38 | ················int·default_port·=·(uri.StartsWith·("http://")·?·80·:·-1; | ||
| 39 | 44 | class·Foo | |
| 45 | { | ||
| 46 | » void·Bar·() | ||
| 47 | » { | ||
| 48 | » » throw·new·Exception·("e", | ||
| 49 | » } | ||
| 40 | }</string> | 50 | }</string> |
| 41 | ····<string>//·CS1525:·Unexpected·symbol·` | 51 | ····<string>//·CS1525:·Unexpected·symbol·`int' |
| 42 | //·Line:· | 52 | //·Line:·8 |
| 43 | public·class·TestApp·{ | ||
| 44 | 53 | class·T·{ | |
| 54 | » void·member·() | ||
| 45 | » { | 55 | » { |
| 56 | » » int·a·=·1·|·2 | ||
| 57 | » » int·b; | ||
| 46 | » } | 58 | » } |
| 47 | }</string> | 59 | }</string> |
| 48 | ····<string>//·CS1525:·Unexpected·symbol·` | 60 | ····<string>//·CS1525:·Unexpected·symbol·`i',·expecting·`}',·`case',·or·`default:' |
| 49 | //·Line:·1 | 61 | //·Line:·11 |
| 50 | class· | 62 | class·X·{ |
| 63 | » static·void·Main·() | ||
| 64 | » { | ||
| 65 | » » int·i·=·0; | ||
| 66 | » » switch·(i){ | ||
| 67 | » » » i·=·4; | ||
| 68 | » » } | ||
| 69 | » } | ||
| 70 | }</string> | ||
| 71 | ····<string>//·CS1525:·Unexpected·symbol·`super',·expecting·`base'·or·`this' | ||
| 72 | //·Line:·7 | ||
| 73 | class·Bar | ||
| 51 | { | 74 | { |
| 52 | » | 75 | » Bar(int·a) |
| 76 | » » :super() | ||
| 53 | » { | 77 | » { |
| 54 | » } | 78 | » } |
| 79 | }</string> | ||
| 80 | ····<string>//·CS1525:·Unexpected·symbol·`;',·expecting·`(',·`[',·or·`{' | ||
| 81 | //·Line:·7 | ||
| 82 | class·X·{ | ||
| 55 | » static·void·Main·() | 83 | » static·void·Main·() |
| 56 | » { | 84 | » { |
| 57 | » » | 85 | » » X·x·=·new·X; |
| 58 | » } | 86 | » } |
| 59 | }</string> | 87 | }</string> |
| 60 | ····<string>//·CS15 | 88 | ····<string>//·CS1525:·Unexpected·symbol·`:',·expecting·`,',·`;',·or·`=' |
| 61 | //·Line:· | 89 | //·Line:·7 |
| 62 | class· | 90 | class·X·{ |
| 91 | » public·static·void·Main·() | ||
| 92 | » { | ||
| 93 | » » int·myarray:; | ||
| 94 | » } | ||
| 95 | }</string> | ||
| 96 | ····<string>//·CS1525:·Unexpected·symbol·`default:' | ||
| 97 | //·Line:·12 | ||
| 98 | class·Program | ||
| Max diff block lines reached; 14428/17659 bytes (81.70%) of diff not shown. | |||
| Offset 1, 21 lines modified | Offset 1, 21 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1527</ErrorName> | 3 | ··<ErrorName>CS1527</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1527:·Namespace·elements·cannot·be·explicitly·declared·as·private,·protected,·protected·internal,·or·private·protected | 5 | ····<string>//·CS1527:·Namespace·elements·cannot·be·explicitly·declared·as·private,·protected,·protected·internal,·or·private·protected |
| 6 | //·Line:·4 | 6 | //·Line:·4 |
| 7 | pr | 7 | private·class·X·{ |
| 8 | }</string> | 8 | }</string> |
| 9 | ····<string>//·CS1527:·Namespace·elements·cannot·be·explicitly·declared·as·private,·protected,·protected·internal,·or·private·protected | 9 | ····<string>//·CS1527:·Namespace·elements·cannot·be·explicitly·declared·as·private,·protected,·protected·internal,·or·private·protected |
| 10 | //·Line:·4 | 10 | //·Line:·4 |
| 11 | protected·interface·IFoo·{ | 11 | protected·interface·IFoo·{ |
| 12 | }</string> | 12 | }</string> |
| 13 | ····<string>//·CS1527:·Namespace·elements·cannot·be·explicitly·declared·as·private,·protected,·protected·internal,·or·private·protected | 13 | ····<string>//·CS1527:·Namespace·elements·cannot·be·explicitly·declared·as·private,·protected,·protected·internal,·or·private·protected |
| 14 | //·Line:·4 | 14 | //·Line:·4 |
| 15 | pr | 15 | protected·internal·enum·E·{ |
| 16 | }</string> | 16 | }</string> |
| 17 | ··</Examples> | 17 | ··</Examples> |
| 18 | </ErrorDocumentation> | 18 | </ErrorDocumentation> |
| Offset 1, 26 lines modified | Offset 1, 26 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1535</ErrorName> | 3 | ··<ErrorName>CS1535</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1535:·Overloaded·unary·operator·` | 5 | ····<string>//·CS1535:·Overloaded·unary·operator·`--'·takes·one·parameter |
| 6 | //·Line:·6 | 6 | //·Line:·6 |
| 7 | 7 | class·C | |
| 8 | { | 8 | { |
| 9 | » public·static· | 9 | » public·static·C·operator·--·() |
| 10 | » { | 10 | » { |
| 11 | » » return·null; | 11 | » » return·null; |
| 12 | » } | 12 | » } |
| 13 | }</string> | 13 | }</string> |
| 14 | ····<string>//·CS1535:·Overloaded·unary·operator·` | 14 | ····<string>//·CS1535:·Overloaded·unary·operator·`implicit'·takes·one·parameter |
| 15 | //·Line:·6 | 15 | //·Line:·6 |
| 16 | class· | 16 | public·class·Test |
| 17 | { | 17 | { |
| 18 | » public·static· | 18 | » public·static·implicit·operator·string·() |
| 19 | » { | 19 | » { |
| 20 | » » return·null; | 20 | » » return·null; |
| 21 | » } | 21 | » } |
| 22 | }</string> | 22 | }</string> |
| 23 | ··</Examples> | 23 | ··</Examples> |
| 24 | </ErrorDocumentation> | 24 | </ErrorDocumentation> |
| Offset 1, 26 lines modified | Offset 1, 26 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1536</ErrorName> | 3 | ··<ErrorName>CS1536</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1536:·Invalid·parameter·type·`void' | 5 | ····<string>//·CS1536:·Invalid·parameter·type·`void' |
| 6 | //·Line:·8 | 6 | //·Line:·8 |
| 7 | using·System; | ||
| 8 | class·X | ||
| 9 | { | ||
| 10 | » void·Test·(void·a) | ||
| 11 | » {·} | ||
| 12 | }</string> | ||
| 13 | ····<string>//·CS1536:·Invalid·parameter·type·`void' | ||
| 14 | //·Line:·8 | ||
| 15 | public·class·Test | 7 | public·class·Test |
| 16 | { | 8 | { |
| 17 | » public·static·void·Main·() | 9 | » public·static·void·Main·() |
| 18 | » { | 10 | » { |
| 19 | » » object·o·=·(void·v)·=>·1; | 11 | » » object·o·=·(void·v)·=>·1; |
| 20 | » } | 12 | » } |
| 21 | }</string> | 13 | }</string> |
| 14 | ····<string>//·CS1536:·Invalid·parameter·type·`void' | ||
| 15 | //·Line:·8 | ||
| 16 | using·System; | ||
| 17 | class·X | ||
| 18 | { | ||
| 19 | » void·Test·(void·a) | ||
| 20 | » {·} | ||
| 21 | }</string> | ||
| 22 | ··</Examples> | 22 | ··</Examples> |
| 23 | </ErrorDocumentation> | 23 | </ErrorDocumentation> |
| Offset 1, 23 lines modified | Offset 1, 23 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1537</ErrorName> | 3 | ··<ErrorName>CS1537</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1537:·The·using·alias·`A'·appeared·previously·in·this·namespace | 5 | ····<string>//·CS1537:·The·using·alias·`A'·appeared·previously·in·this·namespace |
| 6 | //·Line:·7 | ||
| 7 | using·A·=·System; | ||
| 8 | using·A·=·System;</string> | ||
| 9 | ····<string>//·CS1537:·The·using·alias·`A'·appeared·previously·in·this·namespace | ||
| 10 | //·Line:·6 | 6 | //·Line:·6 |
| 11 | //·Compiler·options:·-r:CSExternAlias-lib.dll | 7 | //·Compiler·options:·-r:CSExternAlias-lib.dll |
| 12 | extern·alias·A; | 8 | extern·alias·A; |
| 13 | using·A·=·System;</string> | 9 | using·A·=·System;</string> |
| 14 | ····<string>//·CS1537:·The·using·alias·`A'·appeared·previously·in·this·namespace | 10 | ····<string>//·CS1537:·The·using·alias·`A'·appeared·previously·in·this·namespace |
| 15 | //·Line:·6 | 11 | //·Line:·6 |
| 16 | //·Compiler·options:·-r:CSExternAlias-lib.dll | 12 | //·Compiler·options:·-r:CSExternAlias-lib.dll |
| 17 | extern·alias·A; | 13 | extern·alias·A; |
| 18 | extern·alias·A;</string> | 14 | extern·alias·A;</string> |
| 15 | ····<string>//·CS1537:·The·using·alias·`A'·appeared·previously·in·this·namespace | ||
| 16 | //·Line:·7 | ||
| 17 | using·A·=·System; | ||
| 18 | using·A·=·System;</string> | ||
| 19 | ··</Examples> | 19 | ··</Examples> |
| 20 | </ErrorDocumentation> | 20 | </ErrorDocumentation> |
| Offset 1, 99 lines modified | Offset 1, 100 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1540</ErrorName> | 3 | ··<ErrorName>CS1540</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1540:·Cannot·access·protected·member·` | 5 | ····<string>//·CS1540:·Cannot·access·protected·member·`object.MemberwiseClone()'·via·a·qualifier·of·type·`anonymous·type'.·The·qualifier·must·be·of·type·`A'·or·derived·from·it |
| 6 | //·Line:· | 6 | //·Line:·9 |
| 7 | //·Compiler·options:·-r:CS1540-15-lib.dll | ||
| 8 | 7 | class·A | |
| 9 | { | 8 | { |
| 10 | » public· | 9 | » public·A·() |
| 11 | » { | 10 | » { |
| 12 | » » | 11 | » » var·x·=·new·{·s·=·"-"·}; |
| 12 | » » x.MemberwiseClone(); | ||
| 13 | » } | 13 | » } |
| 14 | }</string> | 14 | }</string> |
| 15 | ····<string>//·CS1540:·Cannot·access·protected·member·`A. | 15 | ····<string>//·CS1540:·Cannot·access·protected·member·`A.Test'·via·a·qualifier·of·type·`B'.·The·qualifier·must·be·of·type·`C'·or·derived·from·it |
| 16 | //·Line:· | 16 | //·Line:·17 |
| 17 | 17 | class·A | |
| 18 | { | 18 | { |
| 19 | ····protected·object[]·Test·{·get·{·return·null;·}·} | ||
| 19 | » protected·A·(int·a) | ||
| 20 | » { | ||
| 21 | » } | ||
| 22 | } | 20 | } |
| 23 | 21 | class·B·:·A | |
| 24 | { | 22 | { |
| 23 | } | ||
| 25 | » public·B·() | ||
| 26 | » » :·base·(1) | ||
| 27 | » { | ||
| 28 | » } | ||
| 29 | » | ||
| 30 | » public·static·void·Main·() | ||
| 31 | » { | ||
| 32 | » » A·a·=·new·A·(1); | ||
| 33 | » } | ||
| 34 | }</string> | ||
| 35 | ····<string>//·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 | ||
| 36 | //·Line:·19 | ||
| 37 | 24 | class·C:·A | |
| 38 | { | 25 | { |
| 26 | ····public·void·Test2·(B·b) | ||
| 39 | ····public·class·A | ||
| 40 | ····{ | ||
| 41 | ········protected·int·Property·{ | ||
| 42 | ············get·{·return·0;·} | ||
| 43 | ········} | ||
| 44 | ····} | ||
| 45 | · | ||
| 46 | ····public·class·B·:·A | ||
| 47 | ····{ | 27 | ····{ |
| 48 | ········ | 28 | ········foreach·(object·o·in·b.Test) |
| 49 | ········{ | 29 | ········{ |
| 50 | ············public·C·(A·a) | ||
| 51 | ············{ | ||
| 52 | ················int·test·=·a.Property; | ||
| 53 | ················test++; | ||
| 54 | ············} | ||
| 55 | ········} | 30 | ········} |
| 56 | ····} | 31 | ····} |
| 57 | }</string> | 32 | }</string> |
| 58 | ····<string>//·CS1540:·Cannot·access·protected·member·`A. | 33 | ····<string>//·CS1540:·Cannot·access·protected·member·`A.n'·via·a·qualifier·of·type·`A'.·The·qualifier·must·be·of·type·`B'·or·derived·from·it |
| 59 | //·Line:· | 34 | //·Line:·14 |
| 60 | class·A | 35 | class·A |
| 61 | 36 | { | |
| 37 | ····protected·int·n; | ||
| 62 | } | 38 | } |
| 63 | class·B·:·A | 39 | class·B·:·A |
| 64 | 40 | { | |
| 41 | ····public·static·void·Main·() | ||
| 42 | » { | ||
| 43 | » » A·b·=·new·A·(); | ||
| 44 | » » b.n·=·1; | ||
| 45 | » } | ||
| 65 | 46 | }</string> | |
| 66 | ····<string>//·CS1540:·Cannot·access·protected·member·`A. | 47 | ····<string>//·CS1540:·Cannot·access·protected·member·`A.del'·via·a·qualifier·of·type·`A'.·The·qualifier·must·be·of·type·`B'·or·derived·from·it |
| 67 | //·Line:·1 | 48 | //·Line:·16 |
| 49 | delegate·int·D·(); | ||
| 68 | class·A | 50 | class·A |
| 69 | { | 51 | { |
| 70 | 52 | » protected·D·del; | |
| 71 | } | 53 | } |
| 72 | class·B·:·A | 54 | class·B·:·A |
| 73 | { | 55 | { |
| 56 | ····public·static·void·Main·() | ||
| 57 | » { | ||
| 58 | » » A·b·=·new·A·(); | ||
| 59 | » » var·v·=·b.del·(); | ||
| 60 | » } | ||
| 61 | }</string> | ||
| 62 | ····<string>//·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 | ||
| 63 | //·Line:·17 | ||
| 64 | class·A | ||
| 65 | { | ||
| 66 | » public·object[]·Test·{ | ||
| 67 | » » set·{·} | ||
| 68 | » » protected·get·{·return·null;·} | ||
| 69 | » } | ||
| 74 | } | 70 | } |
| 75 | class· | 71 | class·B·:·A |
| 76 | { | 72 | { |
| 73 | } | ||
| 77 | ····public·void·Test2·(B·b) | ||
| 78 | ····{ | ||
| 79 | ········foreach·(object·o·in·b.Test) | ||
| 80 | ········{ | ||
| 81 | ········} | ||
| 82 | ····} | ||
| 74 | class·C·:·A | ||
| 75 | { | ||
| 76 | » public·void·Test2·(B·b) | ||
| 77 | » { | ||
| 78 | » » foreach·(object·o·in·b.Test)·{ | ||
| 79 | » » } | ||
| Max diff block lines reached; 8928/12554 bytes (71.12%) of diff not shown. | |||
| Offset 1, 12 lines modified | Offset 1, 23 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1547</ErrorName> | 3 | ··<ErrorName>CS1547</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1547:·Keyword·`void'·cannot·be·used·in·this·context | 5 | ····<string>//·CS1547:·Keyword·`void'·cannot·be·used·in·this·context |
| 6 | //·Line:·8 | ||
| 7 | class·X | ||
| 8 | { | ||
| 9 | » static·void·Main·() | ||
| 10 | » { | ||
| 11 | » » var·e·=·from·void·v·in·new·int·[]·{·0·}·select·i; | ||
| 12 | » } | ||
| 13 | }</string> | ||
| 14 | ····<string>//·CS1547:·Keyword·`void'·cannot·be·used·in·this·context | ||
| 6 | //·Line:·6 | 15 | //·Line:·6 |
| 7 | class·C·{ | 16 | class·C·{ |
| 8 | » const·string·s·=·"3"; | 17 | » const·string·s·=·"3"; |
| 9 | » public·object·o·=·(void)s; | 18 | » public·object·o·=·(void)s; |
| 10 | }</string> | 19 | }</string> |
| 11 | ····<string>//·CS1547:·Keyword·`void'·cannot·be·used·in·this·context | 20 | ····<string>//·CS1547:·Keyword·`void'·cannot·be·used·in·this·context |
| Offset 19, 113 lines modified | Offset 30, 102 lines modified | ||
| 19 | » { | 30 | » { |
| 20 | » » void[]·a; | 31 | » » void[]·a; |
| 21 | » } | 32 | » } |
| 22 | }</string> | 33 | }</string> |
| 23 | ····<string>//·CS1547:·Keyword·`void'·cannot·be·used·in·this·context | 34 | ····<string>//·CS1547:·Keyword·`void'·cannot·be·used·in·this·context |
| 24 | //·Line:·6 | 35 | //·Line:·6 |
| 36 | class·C·{ | ||
| 37 | » object·o·=·new·void(); | ||
| 25 | interface·IA | ||
| 26 | { | ||
| 27 | » ref·void·Foo·(); | ||
| 28 | }</string> | 38 | }</string> |
| 29 | ····<string>//·CS1547:·Keyword·`void'·cannot·be·used·in·this·context | 39 | ····<string>//·CS1547:·Keyword·`void'·cannot·be·used·in·this·context |
| 30 | //·Line:· | 40 | //·Line:·6 |
| 31 | class· | 41 | class·C |
| 32 | { | 42 | { |
| 33 | » | 43 | » int·Foo·() |
| 34 | » { | 44 | » { |
| 35 | » » | 45 | » » foreach·(void·v·in·this) |
| 46 | » » { | ||
| 47 | » » } | ||
| 36 | » } | 48 | » } |
| 37 | }</string> | 49 | }</string> |
| 38 | ····<string>//·CS1547:·Keyword·`void'·cannot·be·used·in·this·context | 50 | ····<string>//·CS1547:·Keyword·`void'·cannot·be·used·in·this·context |
| 39 | //·Line:· | 51 | //·Line:·8 |
| 40 | using·System; | ||
| 41 | class· | 52 | class·C |
| 42 | { | 53 | { |
| 43 | » static·void·Main·() | 54 | » static·void·Main·() |
| 44 | » { | 55 | » { |
| 45 | » » | 56 | » » bool·b·=·1·is·void; |
| 46 | » } | 57 | » } |
| 47 | }</string> | 58 | }</string> |
| 48 | ····<string>//·CS1547:·Keyword·`void'·cannot·be·used·in·this·context | 59 | ····<string>//·CS1547:·Keyword·`void'·cannot·be·used·in·this·context |
| 49 | //·Line:·6 | 60 | //·Line:·6 |
| 50 | class·C·{ | 61 | class·C·{ |
| 51 | » static·void·Main·()·{ | 62 | » static·void·Main·()·{ |
| 52 | » » int·i·=·sizeof·(void); | 63 | » » int·i·=·sizeof·(void); |
| 53 | » } | 64 | » } |
| 54 | }</string> | 65 | }</string> |
| 55 | ····<string>//·CS1547:·Keyword·`void'·cannot·be·used·in·this·context | 66 | ····<string>//·CS1547:·Keyword·`void'·cannot·be·used·in·this·context |
| 56 | //·Line:·5 | ||
| 57 | class·C·{ | ||
| 58 | ········public·const·void·val·=·null; | ||
| 59 | }</string> | ||
| 60 | ····<string>//·CS1547:·Keyword·`void'·cannot·be·used·in·this·context | ||
| 61 | //·Line:·1 | 67 | //·Line:·11 |
| 62 | class·Foo<T> | ||
| 63 | {·} | ||
| 64 | 68 | namespace·OtherTest | |
| 65 | { | 69 | { |
| 66 | » static· | 70 | » public·static·class·Program |
| 67 | » { | 71 | » { |
| 68 | » » | 72 | » » static·void·MainD·(object·p) |
| 73 | » » { | ||
| 74 | » » » if·(p·is·String) | ||
| 75 | » » » » (void)((string)·p).ToString·(); | ||
| 76 | » » } | ||
| 69 | » } | 77 | » } |
| 70 | }</string> | 78 | }</string> |
| 71 | ····<string>//·CS1547:·Keyword·`void'·cannot·be·used·in·this·context | 79 | ····<string>//·CS1547:·Keyword·`void'·cannot·be·used·in·this·context |
| 72 | //·Line:·8 | 80 | //·Line:·8 |
| 73 | class·X | 81 | class·X |
| 74 | { | 82 | { |
| 75 | » static·void·Main·() | 83 | » static·void·Main·() |
| 76 | » { | 84 | » { |
| 77 | » » object·o·=·default(void); | 85 | » » object·o·=·default(void); |
| 78 | » } | 86 | » } |
| 79 | }</string> | 87 | }</string> |
| 80 | ····<string>//·CS1547:·Keyword·`void'·cannot·be·used·in·this·context | 88 | ····<string>//·CS1547:·Keyword·`void'·cannot·be·used·in·this·context |
| 81 | //·Line:· | 89 | //·Line:·5 |
| 90 | class·C·{ | ||
| 91 | ········public·const·void·val·=·null; | ||
| 82 | namespace·OtherTest | ||
| 83 | { | ||
| 84 | » public·static·class·Program | ||
| 85 | » { | ||
| 86 | » » static·void·MainD·(object·p) | ||
| 87 | » » { | ||
| 88 | » » » if·(p·is·String) | ||
| 89 | » » » » (void)((string)·p).ToString·(); | ||
| 90 | » » } | ||
| 91 | » } | ||
| 92 | }</string> | 92 | }</string> |
| 93 | ····<string>//·CS1547:·Keyword·`void'·cannot·be·used·in·this·context | 93 | ····<string>//·CS1547:·Keyword·`void'·cannot·be·used·in·this·context |
| 94 | //·Line:· | 94 | //·Line:·10 |
| 95 | class·Foo<T> | ||
| 96 | {·} | ||
| 95 | class· | 97 | class·X |
| 96 | { | 98 | { |
| 97 | » static·void·Main·() | 99 | » static·void·Main·() |
| 98 | » { | 100 | » { |
| 99 | » » | 101 | » » Foo<void>·foo; |
| Max diff block lines reached; 454/3166 bytes (14.34%) of diff not shown. | |||
| Offset 1, 17 lines modified | Offset 1, 17 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1548</ErrorName> | 3 | ··<ErrorName>CS1548</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1548:·Error·during·assembly·signing.·The·specified·key·file·` | 5 | ····<string>//·CS1548:·Error·during·assembly·signing.·The·specified·key·file·`cs1548-2.cs'·has·incorrect·format |
| 6 | //·Line:·0 | 6 | //·Line:·0 |
| 7 | using·System.Reflection; | 7 | using·System.Reflection; |
| 8 | [assembly:·AssemblyKeyFile·(" | 8 | [assembly:·AssemblyKeyFile·("cs1548-2.cs")] |
| 9 | class·MyClass·{ | 9 | class·MyClass·{ |
| 10 | » public·static·void·Main·(string·[]·args) | 10 | » public·static·void·Main·(string·[]·args) |
| 11 | » { | 11 | » { |
| 12 | » } | 12 | » } |
| 13 | }</string> | 13 | }</string> |
| Offset 28, 20 lines modified | Offset 28, 20 lines modified | ||
| 28 | class·MyClass·{ | 28 | class·MyClass·{ |
| 29 | » public·static·void·Main·(string·[]·args) | 29 | » public·static·void·Main·(string·[]·args) |
| 30 | » { | 30 | » { |
| 31 | » } | 31 | » } |
| 32 | }</string> | 32 | }</string> |
| 33 | ····<string>//·CS1548:·Error·during·assembly·signing.·The·specified·key·file·` | 33 | ····<string>//·CS1548:·Error·during·assembly·signing.·The·specified·key·file·`file_not_found.snk'·does·not·exist |
| 34 | //·Line:·0 | 34 | //·Line:·0 |
| 35 | using·System.Reflection; | 35 | using·System.Reflection; |
| 36 | [assembly:·AssemblyKeyFile·(" | 36 | [assembly:·AssemblyKeyFile·("file_not_found.snk")] |
| 37 | class·MyClass·{ | 37 | class·MyClass·{ |
| 38 | » public·static·void·Main·(string·[]·args) | 38 | » public·static·void·Main·(string·[]·args) |
| 39 | » { | 39 | » { |
| 40 | » } | 40 | » } |
| 41 | }</string> | 41 | }</string> |
| Offset 1, 52 lines modified | Offset 1, 56 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1570</ErrorName> | 3 | ··<ErrorName>CS1570</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1570:·XML·documentation·comment·on·`Testing. | 5 | ····<string>//·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.) |
| 6 | //·Line:·1 | 6 | //·Line:·12 |
| 7 | //·Compiler·options:·-doc:dummy.xml·-warn | 7 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:1 |
| 8 | namespace·Testing | ||
| 9 | { | ||
| 10 | » ///<summary>· | ||
| 11 | » ///·incorrect·markup·comment·for·struct | ||
| 12 | » ///</incorrect> | ||
| 13 | » public·struct·StructTest2 | ||
| 14 | » { | ||
| 15 | » } | ||
| 16 | }</string> | ||
| 17 | ····<string>//·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.) | ||
| 18 | //·Line:·19 | ||
| 19 | //·Compiler·options:·-doc:dummy.xml·-warn:1·-warnaserror | ||
| 20 | using·System; | 8 | using·System; |
| 21 | namespace·Testing | 9 | namespace·Testing |
| 22 | { | 10 | { |
| 11 | » ///·<summary> | ||
| 12 | » ///·Incorrect·comment·markup. | ||
| 13 | » ///·</incorrect> | ||
| 23 | » public·class·Test | 14 | » public·class·Test2 |
| 24 | » { | 15 | » { |
| 25 | » » ///·<summary> | ||
| 26 | » » ///·invalid·comment·for·const·declaration | ||
| 27 | » » ///·</invalid> | ||
| 28 | » » const·string·Constant2·=·"CONSTANT·STRING"; | ||
| 29 | » } | 16 | » } |
| 30 | }</string> | 17 | }</string> |
| 18 | ····<string>//·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.) | ||
| 19 | //·Line:·13 | ||
| 20 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:1 | ||
| 21 | ///·Text·goes·here. | ||
| 22 | /// | ||
| 23 | ///·<?xml·version·=·"1.0"·encoding·=·"utf-8"·?> | ||
| 24 | ///·<configuration> | ||
| 25 | ///·····<appSettings> | ||
| 26 | ///·········<add·key·=·"blah"·value·=·"blech"/> | ||
| 27 | ///·····</appSettings> | ||
| 28 | ///·</configuration>· | ||
| 29 | public·class·Test | ||
| 30 | {···· | ||
| 31 | ····static·void·Main·() | ||
| 32 | ····{ | ||
| 33 | ····} | ||
| 34 | }</string> | ||
| 31 | ····<string>//·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.) | 35 | ····<string>//·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.) |
| 32 | //·Line:·12 | 36 | //·Line:·12 |
| 33 | //·Compiler·options:·-doc:dummy.xml·-warn:1·-warnaserror | 37 | //·Compiler·options:·-doc:dummy.xml·-warn:1·-warnaserror |
| 34 | using·System; | 38 | using·System; |
| 35 | namespace·Testing | 39 | namespace·Testing |
| 36 | { | 40 | { |
| 37 | » ///<summary> | 41 | » ///<summary> |
| 38 | » ///· | 42 | » ///·incorrect·markup·comment·for·interface |
| 39 | » ///</incorrect> | 43 | » ///</incorrect> |
| 40 | » public· | 44 | » public·interface·InterfaceTest2 |
| 41 | » { | 45 | » { |
| 42 | » } | 46 | » } |
| 43 | }</string> | 47 | }</string> |
| 44 | ····<string>//·CS1570:·XML·documentation·comment·on·`Testing.Test.PublicProperty2'·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.) | 48 | ····<string>//·CS1570:·XML·documentation·comment·on·`Testing.Test.PublicProperty2'·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.) |
| 45 | //·Line:·32 | 49 | //·Line:·32 |
| 46 | //·Compiler·options:·-doc:dummy.xml·-warn:1·-warnaserror | 50 | //·Compiler·options:·-doc:dummy.xml·-warn:1·-warnaserror |
| Offset 98, 27 lines modified | Offset 102, 29 lines modified | ||
| 98 | » » » On·public·setter·-·no·effect | 102 | » » » On·public·setter·-·no·effect |
| 99 | » » » </summary> | 103 | » » » </summary> |
| 100 | » » » */ | 104 | » » » */ |
| 101 | » » » set·{·} | 105 | » » » set·{·} |
| 102 | » » } | 106 | » » } |
| 103 | » } | 107 | » } |
| 104 | }</string> | 108 | }</string> |
| 105 | ····<string>//·CS1570:·XML·documentation·comment·on·`Testing.Test2'·is·not·well-formed·XML·markup·(The·'summary'·start·tag·on·line·1·position· | 109 | ····<string>//·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.) |
| 106 | //·Line:·12 | 110 | //·Line:·12 |
| 107 | //·Compiler·options:·-doc:dummy.xml·-warn | 111 | //·Compiler·options:·-doc:dummy.xml·-warn:1·-warnaserror |
| 108 | using·System; | 112 | using·System; |
| 109 | namespace·Testing | 113 | namespace·Testing |
| 110 | { | 114 | { |
| 111 | » /// | 115 | » ///<summary> |
| 112 | » ///· | 116 | » ///·comment·for·enum·type |
| 113 | » /// | 117 | » ///</incorrect> |
| 114 | » | 118 | » enum·EnumTest2 |
| 115 | » { | 119 | » { |
| 120 | » » Foo, | ||
| 121 | » » Bar, | ||
| 116 | » } | 122 | » } |
| 117 | }</string> | 123 | }</string> |
| 118 | ····<string>//·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.) | 124 | ····<string>//·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.) |
| 119 | //·Line:·9 | 125 | //·Line:·9 |
| 120 | //·Compiler·options:·-doc:dummy.xml·-warn:1·-warnaserror | 126 | //·Compiler·options:·-doc:dummy.xml·-warn:1·-warnaserror |
| 121 | using·System; | 127 | using·System; |
| Offset 126, 29 lines modified | Offset 132, 14 lines modified | ||
| 126 | namespace·Testing | 132 | namespace·Testing |
| 127 | { | 133 | { |
| 128 | » ///·<6roken>·broken·markup | 134 | » ///·<6roken>·broken·markup |
| 129 | » public·class·Test2 | 135 | » public·class·Test2 |
| 130 | » { | 136 | » { |
| 131 | » } | 137 | » } |
| 132 | }</string> | 138 | }</string> |
| 133 | ····<string>//·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.) | ||
| 134 | //·Line:·12 | ||
| 135 | //·Compiler·options:·-doc:dummy.xml·-warn:1·-warnaserror | ||
| 136 | using·System; | ||
| 137 | namespace·Testing | ||
| 138 | { | ||
| 139 | » ///<summary> | ||
| 140 | » ///·incorrect·markup·comment·for·interface | ||
| 141 | » ///</incorrect> | ||
| 142 | » public·interface·InterfaceTest2 | ||
| 143 | » { | ||
| 144 | » } | ||
| 145 | }</string> | ||
| 146 | ····<string>//·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.) | 139 | ····<string>//·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.) |
| Max diff block lines reached; 3741/9030 bytes (41.43%) of diff not shown. | |||
| Offset 1, 33 lines modified | Offset 1, 33 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1572</ErrorName> | 3 | ··<ErrorName>CS1572</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1572:·XML·comment·on·`Testing.Test. | 5 | ····<string>//·CS1572:·XML·comment·on·`Testing.Test.D'·has·a·param·tag·for·`mismatch',·but·there·is·no·parameter·by·that·name |
| 6 | //·Line:·10 | 6 | //·Line:·10 |
| 7 | //·Compiler·options:·-doc:dummy.xml·-warn:2·-warnaserror | 7 | //·Compiler·options:·-doc:dummy.xml·-warn:2·-warnaserror |
| 8 | namespace·Testing | 8 | namespace·Testing |
| 9 | { | 9 | { |
| 10 | » | 10 | » class·Test |
| 11 | » { | 11 | » { |
| 12 | » » ///·<param·name='mismatch'>mismatch</param> | 12 | » » ///·<param·name='mismatch'>mismatch</param> |
| 13 | » » public·void· | 13 | » » public·delegate·void·D·(int·i); |
| 14 | » } | 14 | » } |
| 15 | }</string> | 15 | }</string> |
| 16 | ····<string>//·CS1572:·XML·comment·on·`Testing.Test. | 16 | ····<string>//·CS1572:·XML·comment·on·`Testing.Test.Baz(int)'·has·a·param·tag·for·`mismatch',·but·there·is·no·parameter·by·that·name |
| 17 | //·Line:·10 | 17 | //·Line:·10 |
| 18 | //·Compiler·options:·-doc:dummy.xml·-warn:2·-warnaserror | 18 | //·Compiler·options:·-doc:dummy.xml·-warn:2·-warnaserror |
| 19 | namespace·Testing | 19 | namespace·Testing |
| 20 | { | 20 | { |
| 21 | » class·Test | 21 | » public·class·Test |
| 22 | » { | 22 | » { |
| 23 | » » ///·<param·name='mismatch'>mismatch</param> | 23 | » » ///·<param·name='mismatch'>mismatch</param> |
| 24 | » » public· | 24 | » » public·void·Baz·(int·i)·{} |
| 25 | » } | 25 | » } |
| 26 | }</string> | 26 | }</string> |
| 27 | ····<string>//·CS1572:·XML·comment·on·`Testing.Test.this[int]'·has·a·param·tag·for·`mismatch',·but·there·is·no·parameter·by·that·name | 27 | ····<string>//·CS1572:·XML·comment·on·`Testing.Test.this[int]'·has·a·param·tag·for·`mismatch',·but·there·is·no·parameter·by·that·name |
| 28 | //·Line:·10 | 28 | //·Line:·10 |
| 29 | //·Compiler·options:·-doc:dummy.xml·-warn:2·-warnaserror | 29 | //·Compiler·options:·-doc:dummy.xml·-warn:2·-warnaserror |
| 30 | namespace·Testing | 30 | namespace·Testing |
| Offset 1, 50 lines modified | Offset 1, 34 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1574</ErrorName> | 3 | ··<ErrorName>CS1574</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1574:·XML·comment·on·`Test'·has·cref·attribute·`Fo | 5 | ····<string>//·CS1574:·XML·comment·on·`Test'·has·cref·attribute·`Test.Foo(int)'·that·could·not·be·resolved |
| 6 | //·Line:· | 6 | //·Line:·8 |
| 7 | //·Compiler·options:·-doc:dummy.xml·-warnaserror | 7 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:1 |
| 8 | ///·<summary> | ||
| 9 | ///·<see·cref="Format()"·/> | ||
| 10 | ///·<see·cref="Test()"·/> | ||
| 11 | ///·</summary> | ||
| 12 | public·class·Test·{ | ||
| 13 | ··static·void·Main·()·{ | ||
| 14 | ··} | ||
| 8 | using·System; | ||
| 15 | ··///·<summary·/> | ||
| 16 | ··public·Test·(string·a)·{ | ||
| 17 | ··} | ||
| 18 | ··///·<summary·/> | ||
| 19 | ··public·static·void·Format·(object·a) | ||
| 20 | ··{ | ||
| 21 | ·· | 9 | ///·<see·cref="Test.Foo(int)"/>·Test·has·Foo,·but·is·property·that·has·no·args. |
| 10 | public·class·Test | ||
| 11 | { | ||
| 12 | » string·Foo·{ | ||
| 13 | » » get·{·return·null;·} | ||
| 14 | » } | ||
| 22 | }</string> | 15 | }</string> |
| 23 | ····<string>//·CS1574:·XML·comment·on·` | 16 | ····<string>//·CS1574:·XML·comment·on·`Test'·has·cref·attribute·`System.Xml.XmlDocument'·that·could·not·be·resolved |
| 24 | //·Line:· | 17 | //·Line:·9 |
| 25 | //·Compiler·options:·-doc:dummy.xml·-warnaserror | 18 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-noconfig |
| 26 | ///·<summary·/> | ||
| 27 | public·interface·IExecutable·{ | ||
| 28 | » ///·<summary·/> | ||
| 29 | » void·ExecuteSilently·(); | ||
| 30 | } | ||
| 19 | using·System; | ||
| 31 | ///·<summary> | ||
| 32 | ///·<see·cref="ExecuteSilently">this·is·not·allowed</see> | ||
| 33 | ///·</summary> | ||
| 34 | public·class·A·:·IExecutable·{ | ||
| 35 | » static·void·Main·()·{ | ||
| 36 | » } | ||
| 37 | » ///·<summary·/> | ||
| 38 | » void·IExecutable.ExecuteSilently·()·{ | ||
| 39 | 20 | ///·<seealso·cref="System.Xml.XmlDocument"/> | |
| 21 | ///·with·/noconfig,·it·cannot·be·resolved. | ||
| 22 | public·class·Test | ||
| 23 | { | ||
| 40 | }</string> | 24 | }</string> |
| 41 | ····<string>//·CS1574:·XML·comment·on·`Test'·has·cref·attribute·`Goo'·that·could·not·be·resolved | 25 | ····<string>//·CS1574:·XML·comment·on·`Test'·has·cref·attribute·`Goo'·that·could·not·be·resolved |
| 42 | //·Line:·8 | 26 | //·Line:·8 |
| 43 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:1 | 27 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:1 |
| 44 | using·System; | 28 | using·System; |
| Offset 57, 96 lines modified | Offset 41, 112 lines modified | ||
| 57 | } | 41 | } |
| 58 | class·X | 42 | class·X |
| 59 | { | 43 | { |
| 60 | » static·void·Main·() | 44 | » static·void·Main·() |
| 61 | » {·} | 45 | » {·} |
| 62 | }</string> | 46 | }</string> |
| 63 | ····<string>//·CS1574:·XML·comment·on·` | 47 | ····<string>//·CS1574:·XML·comment·on·`Test'·has·cref·attribute·`Method(x,y)'·that·could·not·be·resolved |
| 64 | //·Line:·8 | ||
| 65 | //·Compiler·options:·-doc:dummy.xml·-warnaserror | ||
| 66 | class·C | ||
| 67 | { | ||
| 68 | » ///·<returns>A·<see·cref="int(int)"·/>.</returns> | ||
| 69 | » void·MM·() | ||
| 70 | » { | ||
| 71 | » } | ||
| 72 | }</string> | ||
| 73 | ····<string>//·CS1574:·XML·comment·on·`Test'·has·cref·attribute·`explicit·operator·int·(bool)'·that·could·not·be·resolved | ||
| 74 | //·Line:·7 | 48 | //·Line:·7 |
| 75 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:1 | 49 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:1 |
| 76 | using·System; | 50 | using·System; |
| 77 | ///·<see | 51 | ///·<see·cref="Method(x,y)"/> |
| 78 | public·class·Test | 52 | public·class·Test |
| 79 | { | 53 | { |
| 80 | }</string> | 54 | }</string> |
| 81 | ····<string>//·CS1574:·XML·comment·on·`Test'·has·cref·attribute·`Method(System.String)'·that·could·not·be·resolved | 55 | ····<string>//·CS1574:·XML·comment·on·`Test'·has·cref·attribute·`Method(System.String)'·that·could·not·be·resolved |
| 82 | //·Line:·8 | 56 | //·Line:·8 |
| 83 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:1 | 57 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:1 |
| 84 | using·System; | 58 | using·System; |
| 85 | ///·<seealso·cref="Method(System.String)"/> | 59 | ///·<seealso·cref="Method(System.String)"/> |
| 86 | public·class·Test | 60 | public·class·Test |
| 87 | { | 61 | { |
| 88 | }</string> | 62 | }</string> |
| 63 | ····<string>//·CS1574:·XML·comment·on·`Test'·has·cref·attribute·`explicit·operator·int·(bool)'·that·could·not·be·resolved | ||
| 64 | //·Line:·7 | ||
| 65 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:1 | ||
| 66 | using·System; | ||
| 67 | ///·<seealso·cref="explicit·operator·int·(bool)"/> | ||
| 68 | public·class·Test | ||
| 69 | { | ||
| 70 | }</string> | ||
| 71 | ····<string>//·CS1574:·XML·comment·on·`A'·has·cref·attribute·`ExecuteSilently'·that·could·not·be·resolved | ||
| 72 | //·Line:·11 | ||
| 73 | //·Compiler·options:·-doc:dummy.xml·-warnaserror | ||
| 74 | ///·<summary·/> | ||
| 75 | public·interface·IExecutable·{ | ||
| 76 | » ///·<summary·/> | ||
| 77 | » void·ExecuteSilently·(); | ||
| 78 | } | ||
| 79 | ///·<summary> | ||
| 80 | ///·<see·cref="ExecuteSilently">this·is·not·allowed</see> | ||
| 81 | ///·</summary> | ||
| 82 | public·class·A·:·IExecutable·{ | ||
| 83 | » static·void·Main·()·{ | ||
| 84 | » } | ||
| 85 | » ///·<summary·/> | ||
| 86 | » void·IExecutable.ExecuteSilently·()·{ | ||
| 87 | » } | ||
| 88 | }</string> | ||
| Max diff block lines reached; 2342/6481 bytes (36.14%) of diff not shown. | |||
| Offset 1, 28 lines modified | Offset 1, 28 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1576</ErrorName> | 3 | ··<ErrorName>CS1576</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1576:·The·line·number·specified·for·#line·directive·is·missing·or·invalid | 5 | ····<string>//·CS1576:·The·line·number·specified·for·#line·directive·is·missing·or·invalid |
| 6 | //·Line:·4 | 6 | //·Line:·4 |
| 7 | #line·0</string> | ||
| 8 | ····<string>//·CS1576:·The·line·number·specified·for·#line·directive·is·missing·or·invalid | ||
| 9 | //·Line:·4 | ||
| 10 | #line·-9</string> | 7 | #line·-9</string> |
| 11 | ····<string>//·CS1576:·The·line·number·specified·for·#line·directive·is·missing·or·invalid | 8 | ····<string>//·CS1576:·The·line·number·specified·for·#line·directive·is·missing·or·invalid |
| 12 | //·Line:·4 | 9 | //·Line:·4 |
| 13 | #line</string> | 10 | #line·0</string> |
| 14 | ····<string>//·CS1576:·The·line·number·specified·for·#line·directive·is·missing·or·invalid | 11 | ····<string>//·CS1576:·The·line·number·specified·for·#line·directive·is·missing·or·invalid |
| 15 | //·Line:·8 | 12 | //·Line:·8 |
| 16 | public·struct·S | 13 | public·struct·S |
| 17 | { | 14 | { |
| 18 | ···static·void·Main() | 15 | ···static·void·Main() |
| 19 | ···{ | 16 | ···{ |
| 20 | ······#line·"error" | 17 | ······#line·"error" |
| 21 | ···} | 18 | ···} |
| 22 | }</string> | 19 | }</string> |
| 20 | ····<string>//·CS1576:·The·line·number·specified·for·#line·directive·is·missing·or·invalid | ||
| 21 | //·Line:·4 | ||
| 22 | #line</string> | ||
| 23 | ··</Examples> | 23 | ··</Examples> |
| 24 | </ErrorDocumentation> | 24 | </ErrorDocumentation> |
| Offset 1, 11 lines modified | Offset 1, 51 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1579</ErrorName> | 3 | ··<ErrorName>CS1579</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1579:·foreach·statement·cannot·operate·on·variables·of·type·`C'·because·it·does·not·contain·a·definition·for·`GetEnumerator'·or·is·inaccessible | ||
| 6 | //·Line:·37 | ||
| 7 | using·System; | ||
| 8 | public·class·Enumerator | ||
| 9 | { | ||
| 10 | » public·bool·MoveNext·() | ||
| 11 | » { | ||
| 12 | » » return·false; | ||
| 13 | » } | ||
| 14 | » public·int·Current·{·get;·set;·} | ||
| 15 | } | ||
| 16 | public·class·Base | ||
| 17 | { | ||
| 18 | » public·Enumerator·GetEnumerator·() | ||
| 19 | » { | ||
| 20 | » » return·new·Enumerator·(); | ||
| 21 | » } | ||
| 22 | } | ||
| 23 | public·class·C·:·Base | ||
| 24 | { | ||
| 25 | » new·internal·Enumerator·GetEnumerator·() | ||
| 26 | » { | ||
| 27 | » » return·new·Enumerator·(); | ||
| 28 | » } | ||
| 29 | } | ||
| 30 | class·Test | ||
| 31 | { | ||
| 32 | » public·static·void·Main·() | ||
| 33 | » { | ||
| 34 | » » foreach·(var·e·in·new·C·()) | ||
| 35 | » » » Console.WriteLine·(e); | ||
| 36 | » } | ||
| 37 | }</string> | ||
| 5 | ····<string>//·CS1579:·foreach·statement·cannot·operate·on·variables·of·type·`Foo'·because·it·does·not·contain·a·definition·for·`GetEnumerator'·or·is·inaccessible | 38 | ····<string>//·CS1579:·foreach·statement·cannot·operate·on·variables·of·type·`Foo'·because·it·does·not·contain·a·definition·for·`GetEnumerator'·or·is·inaccessible |
| 6 | //·Line:·12 | 39 | //·Line:·12 |
| 7 | using·System; | 40 | using·System; |
| 8 | using·System.Collections; | 41 | using·System.Collections; |
| 9 | public·class·Test | 42 | public·class·Test |
| Offset 55, 49 lines modified | Offset 95, 9 lines modified | ||
| 55 | » void·yy·(X·b) | 95 | » void·yy·(X·b) |
| 56 | » { | 96 | » { |
| 57 | » » | 97 | » » |
| 58 | » » foreach·(object·a·in·b) | 98 | » » foreach·(object·a·in·b) |
| 59 | » » » ; | 99 | » » » ; |
| 60 | » } | 100 | » } |
| 61 | }</string> | 101 | }</string> |
| 62 | ····<string>//·CS1579:·foreach·statement·cannot·operate·on·variables·of·type·`C'·because·it·does·not·contain·a·definition·for·`GetEnumerator'·or·is·inaccessible | ||
| 63 | //·Line:·37 | ||
| 64 | using·System; | ||
| 65 | public·class·Enumerator | ||
| 66 | { | ||
| 67 | » public·bool·MoveNext·() | ||
| 68 | » { | ||
| 69 | » » return·false; | ||
| 70 | » } | ||
| 71 | » public·int·Current·{·get;·set;·} | ||
| 72 | } | ||
| 73 | public·class·Base | ||
| 74 | { | ||
| 75 | » public·Enumerator·GetEnumerator·() | ||
| 76 | » { | ||
| 77 | » » return·new·Enumerator·(); | ||
| 78 | » } | ||
| 79 | } | ||
| 80 | public·class·C·:·Base | ||
| 81 | { | ||
| 82 | » new·internal·Enumerator·GetEnumerator·() | ||
| 83 | » { | ||
| 84 | » » return·new·Enumerator·(); | ||
| 85 | » } | ||
| 86 | } | ||
| 87 | class·Test | ||
| 88 | { | ||
| 89 | » public·static·void·Main·() | ||
| 90 | » { | ||
| 91 | » » foreach·(var·e·in·new·C·()) | ||
| 92 | » » » Console.WriteLine·(e); | ||
| 93 | » } | ||
| 94 | }</string> | ||
| 95 | ··</Examples> | 102 | ··</Examples> |
| 96 | </ErrorDocumentation> | 103 | </ErrorDocumentation> |
| Offset 1, 34 lines modified | Offset 1, 34 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1581</ErrorName> | 3 | ··<ErrorName>CS1581</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1581:·Invalid·return·type·in·XML·comment·cref·attribute·`explicit·operator·int·(Test)' | 5 | ····<string>//·CS1581:·Invalid·return·type·in·XML·comment·cref·attribute·`explicit·operator·intp·(Test)' |
| 6 | //·Line:·7 | 6 | //·Line:·7 |
| 7 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:1 | 7 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:1 |
| 8 | using·System; | 8 | using·System; |
| 9 | ///·<seealso·cref="explicit·operator·int·(Test)"/> | 9 | ///·<seealso·cref="explicit·operator·intp·(Test)"/> |
| 10 | public·class·Test | 10 | public·class·Test |
| 11 | { | 11 | { |
| 12 | » ///·operator. | 12 | » ///·operator. |
| 13 | » public·static·explicit·operator·int· | 13 | » public·static·explicit·operator·int·(Test·t) |
| 14 | » { | 14 | » { |
| 15 | » » return· | 15 | » » return·0; |
| 16 | » } | 16 | » } |
| 17 | }</string> | 17 | }</string> |
| 18 | ····<string>//·CS1581:·Invalid·return·type·in·XML·comment·cref·attribute·`explicit·operator·int | 18 | ····<string>//·CS1581:·Invalid·return·type·in·XML·comment·cref·attribute·`explicit·operator·int·(Test)' |
| 19 | //·Line:·7 | 19 | //·Line:·7 |
| 20 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:1 | 20 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:1 |
| 21 | using·System; | 21 | using·System; |
| 22 | ///·<seealso·cref="explicit·operator·int | 22 | ///·<seealso·cref="explicit·operator·int·(Test)"/> |
| 23 | public·class·Test | 23 | public·class·Test |
| 24 | { | 24 | { |
| 25 | » ///·operator. | 25 | » ///·operator. |
| 26 | » public·static·explicit·operator·int·(Test·t) | 26 | » public·static·explicit·operator·int·[]·(Test·t) |
| 27 | » { | 27 | » { |
| 28 | » » return·0; | 28 | » » return·new·int·[0]; |
| 29 | » } | 29 | » } |
| 30 | }</string> | 30 | }</string> |
| 31 | ··</Examples> | 31 | ··</Examples> |
| 32 | </ErrorDocumentation> | 32 | </ErrorDocumentation> |
| Offset 7, 56 lines modified | Offset 7, 56 lines modified | ||
| 7 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:1 | 7 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:1 |
| 8 | using·System; | 8 | using·System; |
| 9 | ///·<see·cref="Mai()n"·/> | 9 | ///·<see·cref="Mai()n"·/> |
| 10 | public·class·Test | 10 | public·class·Test |
| 11 | { | 11 | { |
| 12 | }</string> | 12 | }</string> |
| 13 | ····<string>//·CS1584:·XML·comment·on·`Test'·has·syntactically·incorrect·cref·attribute·` | 13 | ····<string>//·CS1584:·XML·comment·on·`Test'·has·syntactically·incorrect·cref·attribute·`' |
| 14 | //·Line:·8 | 14 | //·Line:·8 |
| 15 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:1 | 15 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:1 |
| 16 | using·System; | ||
| 16 | using·System.Collections.Generic; | ||
| 17 | ///·<returns>A·<see·cref="IList({})"·/>.</returns> | ||
| 18 | public·class·Test | ||
| 19 | { | ||
| 20 | }</string> | ||
| 21 | ····<string>//·CS1584:·XML·comment·on·`Test'·has·syntactically·incorrect·cref·attribute·`Test[]' | ||
| 22 | //·Line:·6 | ||
| 23 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:1 | ||
| 24 | ///·<see·cref=" | 17 | ///·<see·cref=""·/> |
| 25 | public·class·Test | 18 | public·class·Test |
| 26 | { | 19 | { |
| 27 | }</string> | 20 | }</string> |
| 28 | ····<string>//·CS1584:·XML·comment·on·`Test'·has·syntactically·incorrect·cref·attribute·`' | 21 | ····<string>//·CS1584:·XML·comment·on·`Test'·has·syntactically·incorrect·cref·attribute·`.' |
| 29 | //·Line:·8 | 22 | //·Line:·8 |
| 30 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:1 | 23 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:1 |
| 31 | using·System; | 24 | using·System; |
| 32 | ///·<see·cref=""·/> | 25 | ///·<see·cref="."·/> |
| 33 | public·class·Test | 26 | public·class·Test |
| 34 | { | 27 | { |
| 35 | }</string> | 28 | }</string> |
| 36 | ····<string>//·CS1584:·XML·comment·on·`Test'·has·syntactically·incorrect·cref·attribute·` | 29 | ····<string>//·CS1584:·XML·comment·on·`Test'·has·syntactically·incorrect·cref·attribute·`IList(<>)' |
| 37 | //·Line:·8 | 30 | //·Line:·8 |
| 38 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:1 | 31 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:1 |
| 39 | using·System; | 32 | using·System.Collections.Generic; |
| 40 | ///·<see·cref=" | 33 | ///·<returns>A·<see·cref="IList({})"·/>.</returns> |
| 41 | public·class·Test | 34 | public·class·Test |
| 42 | { | 35 | { |
| 43 | }</string> | 36 | }</string> |
| 44 | ····<string>//·CS1584:·XML·comment·on·`Test'·has·syntactically·incorrect·cref·attribute·`operator·foo(int,Test)' | 37 | ····<string>//·CS1584:·XML·comment·on·`Test'·has·syntactically·incorrect·cref·attribute·`operator·foo(int,Test)' |
| 45 | //·Line:·7 | 38 | //·Line:·7 |
| 46 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:1 | 39 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:1 |
| 47 | using·System; | 40 | using·System; |
| 48 | ///·<seealso·cref="operator·foo(int,Test)"/> | 41 | ///·<seealso·cref="operator·foo(int,Test)"/> |
| 49 | public·class·Test | 42 | public·class·Test |
| 50 | { | 43 | { |
| 51 | }</string> | 44 | }</string> |
| 45 | ····<string>//·CS1584:·XML·comment·on·`Test'·has·syntactically·incorrect·cref·attribute·`Test[]' | ||
| 46 | //·Line:·6 | ||
| 47 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:1 | ||
| 48 | ///·<see·cref="Test[]"·/> | ||
| 49 | public·class·Test | ||
| 50 | { | ||
| 51 | }</string> | ||
| 52 | ··</Examples> | 52 | ··</Examples> |
| 53 | </ErrorDocumentation> | 53 | </ErrorDocumentation> |
| Offset 1, 50 lines modified | Offset 1, 12 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1587</ErrorName> | 3 | ··<ErrorName>CS1587</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1587:·XML·comment·is·not·placed·on·a·valid·language·element | 5 | ····<string>//·CS1587:·XML·comment·is·not·placed·on·a·valid·language·element |
| 6 | //·Line:·7 | ||
| 7 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:2 | ||
| 8 | using·System; | ||
| 9 | [Flags] | ||
| 10 | ///·invalid·comment·between·attributes·and·type·declaration. | ||
| 11 | enum·Foo·{ | ||
| 12 | }</string> | ||
| 13 | ····<string>//·CS1587:·XML·comment·is·not·placed·on·a·valid·language·element | ||
| 14 | //·Line:·15 | ||
| 15 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:2 | ||
| 16 | using·System; | ||
| 17 | namespace·TopNS | ||
| 18 | { | ||
| 19 | » class·Foo | ||
| 20 | » { | ||
| 21 | » » string·this·[string·bar]·{ | ||
| 22 | » » » ///·incorrect | ||
| 23 | » » » get·{·return·"";·} | ||
| 24 | » » » set·{·} | ||
| 25 | » » } | ||
| 26 | » } | ||
| 27 | }</string> | ||
| 28 | ····<string>//·CS1587:·XML·comment·is·not·placed·on·a·valid·language·element | ||
| 29 | //·Line:·9 | ||
| 30 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:2 | ||
| 31 | using·System; | ||
| 32 | namespace·TopNS | ||
| 33 | { | ||
| 34 | » internal·/**·comment·*/·/**·comment2·*/·class·Hoge | ||
| 35 | » { | ||
| 36 | » } | ||
| 37 | }</string> | ||
| 38 | ····<string>//·CS1587:·XML·comment·is·not·placed·on·a·valid·language·element | ||
| 39 | //·Line:·13 | 6 | //·Line:·13 |
| 40 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:2 | 7 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:2 |
| 41 | using·System; | 8 | using·System; |
| 42 | namespace·TopNS | 9 | namespace·TopNS |
| 43 | { | 10 | { |
| Offset 57, 54 lines modified | Offset 19, 46 lines modified | ||
| 57 | » » } | 19 | » » } |
| 58 | » } | 20 | » } |
| 59 | }</string> | 21 | }</string> |
| 60 | ····<string>//·CS1587:·XML·comment·is·not·placed·on·a·valid·language·element | 22 | ····<string>//·CS1587:·XML·comment·is·not·placed·on·a·valid·language·element |
| 61 | //·Line:·6 | 23 | //·Line:·6 |
| 62 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:2 | 24 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:2 |
| 63 | ///·invalid·comment·placed·on·namespace. | ||
| 64 | 25 | ///·invalid·comment·on·global·attributes. | |
| 26 | [assembly:System.CLSCompliant·(true)] | ||
| 65 | enum·Foo·{ | 27 | enum·Foo·{ |
| 66 | }</string> | 28 | }</string> |
| 67 | ····<string>//·CS1587:·XML·comment·is·not·placed·on·a·valid·language·element | 29 | ····<string>//·CS1587:·XML·comment·is·not·placed·on·a·valid·language·element |
| 68 | //·Line:· | 30 | //·Line:·8 |
| 69 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:2 | 31 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:2 |
| 70 | using·System; | 32 | using·System; |
| 33 | ///·invalid·comment·on·using·alias·directive. | ||
| 34 | using·Hoge·=·System.Xml.XmlDocument; | ||
| 71 | namespace·TopNS | ||
| 72 | { | ||
| 73 | » enum·Enum3·{ | ||
| 74 | » » Foo·/**·invalid·comment·between·enum·identifier·and·comma·*/, | ||
| 75 | » » Bar | ||
| 76 | » } | ||
| 77 | }</string> | ||
| 78 | ····<string>//·CS1587:·XML·comment·is·not·placed·on·a·valid·language·element | ||
| 79 | //·Line:·9 | ||
| 80 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:2 | ||
| 81 | using·System; | ||
| 82 | namespace·TopNS | 35 | namespace·TopNS |
| 83 | { | 36 | { |
| 84 | » [Flags/**·here·is·also·incorrect·comment·*/] | ||
| 85 | » enum·Enum2·{ | ||
| 37 | » enum·Foo·{ | ||
| 86 | » } | 38 | » } |
| 87 | }</string> | 39 | }</string> |
| 88 | ····<string>//·CS1587:·XML·comment·is·not·placed·on·a·valid·language·element | 40 | ····<string>//·CS1587:·XML·comment·is·not·placed·on·a·valid·language·element |
| 89 | //·Line:·11 | 41 | //·Line:·11 |
| 90 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:2 | 42 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:2 |
| 91 | using·System; | 43 | using·System; |
| 92 | namespace·TopNS | 44 | namespace·TopNS |
| 93 | { | 45 | { |
| 94 | » class·Foo | 46 | » class·Foo |
| 95 | » { | 47 | » { |
| 96 | » » | 48 | » » static·///·incorrect |
| 49 | » » Foo·() | ||
| 97 | » » { | 50 | » » { |
| 98 | » » } | 51 | » » } |
| 99 | » } | 52 | » } |
| 100 | }</string> | 53 | }</string> |
| 101 | ····<string>//·CS1587:·XML·comment·is·not·placed·on·a·valid·language·element | 54 | ····<string>//·CS1587:·XML·comment·is·not·placed·on·a·valid·language·element |
| 102 | //·Line:·13 | 55 | //·Line:·13 |
| Offset 112, 89 lines modified | Offset 66, 86 lines modified | ||
| 112 | using·System; | 66 | using·System; |
| 113 | namespace·TopNS | 67 | namespace·TopNS |
| 114 | { | 68 | { |
| 115 | » class·Foo | 69 | » class·Foo |
| 116 | » { | 70 | » { |
| 117 | » » Foo·( | 71 | » » Foo·(string·foo) |
| 118 | » » { | 72 | » » { |
| 73 | » » » /**·incorrect·doccomment*/ | ||
| 119 | » » } | 74 | » » } |
| 120 | » } | 75 | » } |
| 121 | }</string> | 76 | }</string> |
| 122 | ····<string>//·CS1587:·XML·comment·is·not·placed·on·a·valid·language·element | 77 | ····<string>//·CS1587:·XML·comment·is·not·placed·on·a·valid·language·element |
| 123 | //·Line:· | 78 | //·Line:·9 |
| Max diff block lines reached; 7839/10850 bytes (72.25%) of diff not shown. | |||
| Offset 1, 39 lines modified | Offset 1, 39 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1589</ErrorName> | 3 | ··<ErrorName>CS1589</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1589:·Unable·to·include·XML·fragment·`/ | 5 | ····<string>//·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" |
| 6 | //·Line:·1 | 6 | //·Line:·12 |
| 7 | //·Compiler·options:·-doc:dummy.xml·-warn:1·-warnaserror | 7 | //·Compiler·options:·-doc:dummy.xml·-warn:1·-warnaserror |
| 8 | namespace·Testing | 8 | namespace·Testing |
| 9 | { | 9 | { |
| 10 | ···///· | 10 | ···///·blah |
| 11 | ···public·class·Test | 11 | ···public·class·Test |
| 12 | ···{ | 12 | ···{ |
| 13 | » | 13 | » //·warning |
| 14 | » ///·<include·file='there-is-no-such-file'·path='/foo/bar'·/> | ||
| 15 | » public·void·Baz·(int·x) | ||
| 14 | » { | 16 | » { |
| 15 | » } | 17 | » } |
| 16 | » ///·<include·file='cs1589.inc'·path='/root/@attr'/> | ||
| 17 | » public·string·S3; | ||
| 18 | ···} | 18 | ···} |
| 19 | }</string> | 19 | }</string> |
| 20 | ····<string>//·CS1589:·Unable·to·include·XML·fragment·`/ | 20 | ····<string>//·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 |
| 21 | //·Line:·1 | 21 | //·Line:·15 |
| 22 | //·Compiler·options:·-doc:dummy.xml·-warn:1·-warnaserror | 22 | //·Compiler·options:·-doc:dummy.xml·-warn:1·-warnaserror |
| 23 | namespace·Testing | 23 | namespace·Testing |
| 24 | { | 24 | { |
| 25 | ···///· | 25 | ···///·<include·file='cs1589.inc'·path='/foo'·/> |
| 26 | ···public·class·Test | 26 | ···public·class·Test |
| 27 | ···{ | 27 | ···{ |
| 28 | » public·static·void·Main·() | ||
| 28 | » //·warning | ||
| 29 | » ///·<include·file='there-is-no-such-file'·path='/foo/bar'·/> | ||
| 30 | » public·void·Baz·(int·x) | ||
| 31 | » { | 29 | » { |
| 32 | » } | 30 | » } |
| 31 | » ///·<include·file='cs1589.inc'·path='/root/@attr'/> | ||
| 32 | » public·string·S3; | ||
| 33 | ···} | 33 | ···} |
| 34 | }</string> | 34 | }</string> |
| 35 | ··</Examples> | 35 | ··</Examples> |
| 36 | </ErrorDocumentation> | 36 | </ErrorDocumentation> |
| Offset 1, 12 lines modified | Offset 1, 23 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1590</ErrorName> | 3 | ··<ErrorName>CS1590</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1590:·Invalid·XML·`include'·element.·Missing·`file'·attribute | 5 | ····<string>//·CS1590:·Invalid·XML·`include'·element.·Missing·`file'·attribute |
| 6 | //·Line:·8 | ||
| 7 | //·Compiler·options:·-doc:dummy.xml·-warn:1·-warnaserror | ||
| 8 | namespace·Testing | ||
| 9 | { | ||
| 10 | ···///·<include/> | ||
| 11 | ···public·class·Test | ||
| 12 | ···{ | ||
| 13 | ···} | ||
| 14 | }</string> | ||
| 15 | ····<string>//·CS1590:·Invalid·XML·`include'·element.·Missing·`file'·attribute | ||
| 6 | //·Line:·16 | 16 | //·Line:·16 |
| 7 | //·Compiler·options:·-doc:dummy.xml·-warn:1·-warnaserror | 17 | //·Compiler·options:·-doc:dummy.xml·-warn:1·-warnaserror |
| 8 | namespace·Testing | 18 | namespace·Testing |
| 9 | { | 19 | { |
| 10 | ···///·comment | 20 | ···///·comment |
| 11 | ···public·class·Test | 21 | ···public·class·Test |
| Offset 18, 25 lines modified | Offset 29, 14 lines modified | ||
| 18 | » ///·<include·path='/foo/bar'·/> | 29 | » ///·<include·path='/foo/bar'·/> |
| 19 | » public·void·Bar·(int·x) | 30 | » public·void·Bar·(int·x) |
| 20 | » { | 31 | » { |
| 21 | » } | 32 | » } |
| 22 | ···} | 33 | ···} |
| 23 | }</string> | 34 | }</string> |
| 24 | ····<string>//·CS1590:·Invalid·XML·`include'·element.·Missing·`file'·attribute | ||
| 25 | //·Line:·8 | ||
| 26 | //·Compiler·options:·-doc:dummy.xml·-warn:1·-warnaserror | ||
| 27 | namespace·Testing | ||
| 28 | { | ||
| 29 | ···///·<include/> | ||
| 30 | ···public·class·Test | ||
| 31 | ···{ | ||
| 32 | ···} | ||
| 33 | }</string> | ||
| 34 | ····<string>//·CS1590:·Invalid·XML·`include'·element.·Missing·`path'·attribute | 35 | ····<string>//·CS1590:·Invalid·XML·`include'·element.·Missing·`path'·attribute |
| 35 | //·Line:·11 | 36 | //·Line:·11 |
| 36 | //·Compiler·options:·-doc:dummy.xml·-warn:1·-warnaserror | 37 | //·Compiler·options:·-doc:dummy.xml·-warn:1·-warnaserror |
| 37 | namespace·Testing | 38 | namespace·Testing |
| 38 | { | 39 | { |
| 39 | ···///·comment | 40 | ···///·comment |
| Offset 1, 71 lines modified | Offset 1, 69 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1591</ErrorName> | 3 | ··<ErrorName>CS1591</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1591:·Missing·XML·comment·for·publicly·visible·type·or·member·`Testing.MyDelegate' | ||
| 6 | //·Line:·9 | ||
| 7 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:4 | ||
| 8 | using·System; | ||
| 9 | namespace·Testing | ||
| 10 | { | ||
| 11 | » public·delegate·void·MyDelegate·(object·o,·EventArgs·e); | ||
| 12 | }</string> | ||
| 13 | ····<string>//·CS1591:·Missing·XML·comment·for·publicly·visible·type·or·member·`Testing.Test. | 5 | ····<string>//·CS1591:·Missing·XML·comment·for·publicly·visible·type·or·member·`Testing.Test.Constant' |
| 14 | //·Line:·14 | 6 | //·Line:·14 |
| 15 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:4 | 7 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:4 |
| 16 | using·System; | 8 | using·System; |
| 17 | namespace·Testing | 9 | namespace·Testing |
| 18 | { | 10 | { |
| 19 | » ///·<summary> | 11 | » ///·<summary> |
| 20 | » ///·description·for·class·Test | 12 | » ///·description·for·class·Test |
| 21 | » ///·</summary> | 13 | » ///·</summary> |
| 22 | » public·class·Test | 14 | » public·class·Test |
| 23 | » { | 15 | » { |
| 16 | » » public·const·string·Constant·=·"CONSTANT·STRING"; | ||
| 24 | » » protected·class·InternalClass | ||
| 25 | » » { | ||
| 26 | » » } | ||
| 27 | » } | 17 | » } |
| 28 | }</string> | 18 | }</string> |
| 19 | ····<string>//·CS1591:·Missing·XML·comment·for·publicly·visible·type·or·member·`EntryPoint.Create(bool)' | ||
| 20 | //·Line:·6 | ||
| 21 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:4 | ||
| 22 | ///·<summary>test</summary> | ||
| 23 | public·class·EntryPoint·{ | ||
| 24 | » protected·void·Create·(bool·test)·{ | ||
| 25 | » } | ||
| 26 | » protected·void·Remove·()·{ | ||
| 27 | » } | ||
| 28 | }</string> | ||
| 29 | ····<string>//·CS1591:·Missing·XML·comment·for·publicly·visible·type·or·member·`Testing. | 29 | ····<string>//·CS1591:·Missing·XML·comment·for·publicly·visible·type·or·member·`Testing.Test.PublicField' |
| 30 | //·Line:·14 | 30 | //·Line:·14 |
| 31 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:4 | 31 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:4 |
| 32 | using·System; | 32 | using·System; |
| 33 | namespace·Testing | 33 | namespace·Testing |
| 34 | { | 34 | { |
| 35 | » ///·<summary> | 35 | » ///·<summary> |
| 36 | » ///·description·for· | 36 | » ///·description·for·class·Test |
| 37 | » ///·</summary> | 37 | » ///·</summary> |
| 38 | » public· | 38 | » public·class·Test |
| 39 | » { | 39 | » { |
| 40 | » » string· | 40 | » » public·string·PublicField; |
| 41 | » } | 41 | » } |
| 42 | }</string> | 42 | }</string> |
| 43 | ····<string>//·CS1591:·Missing·XML·comment·for·publicly·visible·type·or·member·`Testing.Test. | 43 | ····<string>//·CS1591:·Missing·XML·comment·for·publicly·visible·type·or·member·`Testing.Test.InternalStruct' |
| 44 | //·Line:·14 | 44 | //·Line:·14 |
| 45 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:4 | 45 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:4 |
| 46 | using·System; | 46 | using·System; |
| 47 | namespace·Testing | 47 | namespace·Testing |
| 48 | { | 48 | { |
| 49 | » ///·<summary> | 49 | » ///·<summary> |
| 50 | » ///·description·for·class·Test | 50 | » ///·description·for·class·Test |
| 51 | » ///·</summary> | 51 | » ///·</summary> |
| 52 | » public·class·Test | 52 | » public·class·Test |
| 53 | » { | 53 | » { |
| 54 | » » public·st | 54 | » » public·struct·InternalStruct |
| 55 | » » { | 55 | » » { |
| 56 | » » » return·false; | ||
| 57 | » » } | 56 | » » } |
| 58 | » } | 57 | » } |
| 59 | }</string> | 58 | }</string> |
| 60 | ····<string>//·CS1591:·Missing·XML·comment·for·publicly·visible·type·or·member·`Testing.InterfaceTest' | 59 | ····<string>//·CS1591:·Missing·XML·comment·for·publicly·visible·type·or·member·`Testing.InterfaceTest' |
| 61 | //·Line:·9 | 60 | //·Line:·9 |
| 62 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:4 | 61 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:4 |
| Offset 73, 83 lines modified | Offset 71, 84 lines modified | ||
| 73 | namespace·Testing | 71 | namespace·Testing |
| 74 | { | 72 | { |
| 75 | » public·interface·InterfaceTest | 73 | » public·interface·InterfaceTest |
| 76 | » { | 74 | » { |
| 77 | » } | 75 | » } |
| 78 | }</string> | 76 | }</string> |
| 79 | ····<string>//·CS1591:·Missing·XML·comment·for·publicly·visible·type·or·member·`Testing.Test | 77 | ····<string>//·CS1591:·Missing·XML·comment·for·publicly·visible·type·or·member·`Testing.Test.Test()' |
| 80 | //·Line:· | 78 | //·Line:·14 |
| 81 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:4 | 79 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:4 |
| 82 | using·System; | 80 | using·System; |
| 83 | namespace·Testing | 81 | namespace·Testing |
| 84 | { | 82 | { |
| 83 | » ///·<summary> | ||
| 84 | » ///·description·for·class·Test | ||
| 85 | » ///·</summary> | ||
| 85 | » public·class·Test | 86 | » public·class·Test |
| 86 | » { | 87 | » { |
| 88 | » » public·Test·() | ||
| 89 | » » { | ||
| 90 | » » } | ||
| 87 | » } | 91 | » } |
| 88 | }</string> | 92 | }</string> |
| 89 | ····<string>//·CS1591:·Missing·XML·comment·for·publicly·visible·type·or·member·`Testing.Foo' | 93 | ····<string>//·CS1591:·Missing·XML·comment·for·publicly·visible·type·or·member·`Testing.IFoo.Foo' |
| 90 | //·Line:·1 | 94 | //·Line:·14 |
| 91 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:4 | 95 | //·Compiler·options:·-doc:dummy.xml·-warnaserror·-warn:4 |
| 92 | using·System; | 96 | using·System; |
| 93 | namespace·Testing | 97 | namespace·Testing |
| 94 | { | 98 | { |
| 95 | » | 99 | » ///·<summary> |
| 100 | » ///·description·for·interface·IFoo | ||
| 101 | » ///·</summary> | ||
| 102 | » public·interface·IFoo | ||
| 96 | » { | 103 | » { |
| 104 | » » string·Foo·{·get;·} | ||
| 97 | » } | 105 | » } |
| 98 | }</string> | 106 | }</string> |
| 99 | ····<string>//·CS1591:·Missing·XML·comment·for·publicly·visible·type·or·member·`Testing.Test. | 107 | ····<string>//·CS1591:·Missing·XML·comment·for·publicly·visible·type·or·member·`Testing.Test.Foo()' |
| 100 | //·Line:·14 | 108 | //·Line:·14 |
| Max diff block lines reached; 5514/9537 bytes (57.82%) of diff not shown. | |||
| Offset 1, 28 lines modified | Offset 1, 11 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1593</ErrorName> | 3 | ··<ErrorName>CS1593</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1593:·Delegate·`System.Func<int,int>'·does·not·take·`2'·arguments | ||
| 6 | //·Line:·11 | ||
| 7 | using·System; | ||
| 8 | class·C | ||
| 9 | { | ||
| 10 | » static·void·Main·(string·[]·args) | ||
| 11 | » { | ||
| 12 | » » M·((x,·y)·=>·2); | ||
| 13 | » } | ||
| 14 | » static·void·M·(Func<int,·int>·a) | ||
| 15 | » { | ||
| 16 | » } | ||
| 17 | }</string> | ||
| 18 | ····<string>//·CS1593:·Delegate·`System.Action<System.Exception,object>'·does·not·take·`1'·arguments | 5 | ····<string>//·CS1593:·Delegate·`System.Action<System.Exception,object>'·does·not·take·`1'·arguments |
| 19 | //·Line:·16 | 6 | //·Line:·16 |
| 20 | using·System; | 7 | using·System; |
| 21 | using·System.Threading.Tasks; | 8 | using·System.Threading.Tasks; |
| 22 | class·MainClass | 9 | class·MainClass |
| Offset 54, 28 lines modified | Offset 37, 71 lines modified | ||
| 54 | » { | 37 | » { |
| 55 | » » Action<int>·a·=·(i)·=>·{}; | 38 | » » Action<int>·a·=·(i)·=>·{}; |
| 56 | » » dynamic·d·=·1; | 39 | » » dynamic·d·=·1; |
| 57 | » » a·(d,·true); | 40 | » » a·(d,·true); |
| 58 | » } | 41 | » } |
| 59 | }</string> | 42 | }</string> |
| 43 | ····<string>//·CS1593:·Delegate·`System.Action<System.Threading.Tasks.Task>'·does·not·take·`0'·arguments | ||
| 44 | //·Line:·17 | ||
| 45 | using·System; | ||
| 46 | using·System.Threading.Tasks; | ||
| 47 | using·System.Collections.Generic; | ||
| 48 | namespace·CrashRepro.Core | ||
| 49 | { | ||
| 50 | » public·class·X | ||
| 51 | » {» » | ||
| 52 | » » async·void·Foo·() | ||
| 53 | » » { | ||
| 54 | » » » var·pushes·=·await·Run·().ContinueWith·(l·=> | ||
| 55 | » » » { | ||
| 56 | » » » » for·(int·i·=·0;·i·<·1;·++i) | ||
| 57 | » » » » » Run·().ContinueWith(()·=>·{·}); | ||
| 58 | » » » }); | ||
| 59 | » » } | ||
| 60 | » » Task·Run·() | ||
| 61 | » » { | ||
| 62 | » » » return·null; | ||
| 63 | » » } | ||
| 64 | » } | ||
| 65 | }</string> | ||
| 60 | ····<string>//·CS1593:·Delegate·`D'·does·not·take·`0'·arguments | 66 | ····<string>//·CS1593:·Delegate·`D'·does·not·take·`0'·arguments |
| 61 | //·Line:·11 | 67 | //·Line:·11 |
| 62 | // | 68 | // |
| 63 | //·The·delegate·has·an·explicit·signature·with·0·arguments,·so·it· | 69 | //·The·delegate·has·an·explicit·signature·with·0·arguments,·so·it· |
| 64 | //·can·not·be·assigned·to·a·delegate·with·one·argument. | 70 | //·can·not·be·assigned·to·a·delegate·with·one·argument. |
| 65 | // | 71 | // |
| 66 | delegate·void·D·(int·x); | 72 | delegate·void·D·(int·x); |
| 67 | class·X·{ | 73 | class·X·{ |
| 68 | » static·void·Main·() | 74 | » static·void·Main·() |
| 69 | » { | 75 | » { |
| 70 | » » D·d2·=·delegate·()·{}; | 76 | » » D·d2·=·delegate·()·{}; |
| 71 | » } | 77 | » } |
| 72 | }</string> | 78 | }</string> |
| 79 | ····<string>//·CS1593:·Delegate·`System.Func<int,int>'·does·not·take·`2'·arguments | ||
| 80 | //·Line:·11 | ||
| 81 | using·System; | ||
| 82 | class·C | ||
| 83 | { | ||
| 84 | » static·void·Main·(string·[]·args) | ||
| 85 | » { | ||
| 86 | » » M·((x,·y)·=>·2); | ||
| 87 | » } | ||
| 88 | » static·void·M·(Func<int,·int>·a) | ||
| 89 | » { | ||
| 90 | » } | ||
| 91 | }</string> | ||
| 73 | ····<string>//·CS1593:·Delegate·`Blah.MyDelegate'·does·not·take·`1'·arguments | 92 | ····<string>//·CS1593:·Delegate·`Blah.MyDelegate'·does·not·take·`1'·arguments |
| 74 | //·Line·:·21 | 93 | //·Line·:·21 |
| 75 | using·System; | 94 | using·System; |
| 76 | public·class·Blah·{ | 95 | public·class·Blah·{ |
| Offset 98, 35 lines modified | Offset 124, 9 lines modified | ||
| 98 | » » » return·0; | 124 | » » » return·0; |
| 99 | » » else | 125 | » » else |
| 100 | » » » return·1; | 126 | » » » return·1; |
| 101 | » } | 127 | » } |
| 102 | }</string> | 128 | }</string> |
| 103 | ····<string>//·CS1593:·Delegate·`System.Action<System.Threading.Tasks.Task>'·does·not·take·`0'·arguments | ||
| 104 | //·Line:·17 | ||
| 105 | using·System; | ||
| 106 | using·System.Threading.Tasks; | ||
| 107 | using·System.Collections.Generic; | ||
| 108 | namespace·CrashRepro.Core | ||
| 109 | { | ||
| 110 | » public·class·X | ||
| 111 | » {» » | ||
| 112 | » » async·void·Foo·() | ||
| 113 | » » { | ||
| 114 | » » » var·pushes·=·await·Run·().ContinueWith·(l·=> | ||
| 115 | » » » { | ||
| 116 | » » » » for·(int·i·=·0;·i·<·1;·++i) | ||
| 117 | » » » » » Run·().ContinueWith(()·=>·{·}); | ||
| 118 | » » » }); | ||
| 119 | » » } | ||
| Max diff block lines reached; 23/2622 bytes (0.88%) of diff not shown. | |||
| Offset 7, 15 lines modified | Offset 7, 28 lines modified | ||
| 7 | namespace·Test·{ | 7 | namespace·Test·{ |
| 8 | » delegate·void·Foo·(string·x,·params·string·[]·args); | 8 | » delegate·void·Foo·(string·x,·params·string·[]·args); |
| 9 | » class·Testee·{ | 9 | » class·Testee·{ |
| 10 | » » static·void·Bar·(string·x,·params·string·[]·args)·{} | 10 | » » static·void·Bar·(string·x,·params·string·[]·args)·{} |
| 11 | » » static·void·Main·()·{ | 11 | » » static·void·Main·()·{ |
| 12 | » » » Foo·bar·=·new·Foo·(Bar); | 12 | » » » Foo·bar·=·new·Foo·(Bar); |
| 13 | » » » bar·("i·=·",·5); | ||
| 14 | » » } | ||
| 15 | » } | ||
| 16 | }</string> | ||
| 17 | ····<string>//·CS1594:·Delegate·`Test.Foo'·has·some·invalid·arguments | ||
| 18 | //·Line:·10 | ||
| 19 | namespace·Test·{ | ||
| 20 | » delegate·void·Foo·(string·x,·params·string·[]·args); | ||
| 21 | » class·Testee·{ | ||
| 22 | » » static·void·Bar·(string·x,·params·string·[]·args)·{} | ||
| 23 | » » static·void·Main·()·{ | ||
| 24 | » » » Foo·bar·=·new·Foo·(Bar); | ||
| 13 | » » » bar·("x' | 25 | » » » bar·("x'·=·",·new·object·[]·{"Foo",·5,·3.6·}); |
| 14 | » » } | 26 | » » } |
| 15 | » } | 27 | » } |
| 16 | }</string> | 28 | }</string> |
| 17 | ····<string>//·CS1594:·Delegate·`Blah.MyDelegate'·has·some·invalid·arguments | 29 | ····<string>//·CS1594:·Delegate·`Blah.MyDelegate'·has·some·invalid·arguments |
| 18 | //·Line·:·21 | 30 | //·Line·:·21 |
| 19 | using·System; | 31 | using·System; |
| Offset 50, 26 lines modified | Offset 63, 13 lines modified | ||
| 50 | namespace·Test·{ | 63 | namespace·Test·{ |
| 51 | » delegate·void·Foo·(string·x,·params·string·[]·args); | 64 | » delegate·void·Foo·(string·x,·params·string·[]·args); |
| 52 | » class·Testee·{ | 65 | » class·Testee·{ |
| 53 | » » static·void·Bar·(string·x,·params·string·[]·args)·{} | 66 | » » static·void·Bar·(string·x,·params·string·[]·args)·{} |
| 54 | » » static·void·Main·()·{ | 67 | » » static·void·Main·()·{ |
| 55 | » » » Foo·bar·=·new·Foo·(Bar); | 68 | » » » Foo·bar·=·new·Foo·(Bar); |
| 56 | » » » bar·("i·=·",·5); | ||
| 57 | » » } | ||
| 58 | » } | ||
| 59 | }</string> | ||
| 60 | ····<string>//·CS1594:·Delegate·`Test.Foo'·has·some·invalid·arguments | ||
| 61 | //·Line:·10 | ||
| 62 | namespace·Test·{ | ||
| 63 | » delegate·void·Foo·(string·x,·params·string·[]·args); | ||
| 64 | » class·Testee·{ | ||
| 65 | » » static·void·Bar·(string·x,·params·string·[]·args)·{} | ||
| 66 | » » static·void·Main·()·{ | ||
| 67 | » » » Foo·bar·=·new·Foo·(Bar); | ||
| 68 | » » » bar·("x'·=·", | 69 | » » » bar·("x''·=·",·"Foo",·5,·3.6); |
| 69 | » » } | 70 | » » } |
| 70 | » } | 71 | » } |
| 71 | }</string> | 72 | }</string> |
| 72 | ··</Examples> | 73 | ··</Examples> |
| 73 | </ErrorDocumentation> | 74 | </ErrorDocumentation> |
| Offset 1, 32 lines modified | Offset 1, 32 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1601</ErrorName> | 3 | ··<ErrorName>CS1601</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1601:·Method·or·delegate·parameter·cannot·be·of·type·`ref·System. | 5 | ····<string>//·CS1601:·Method·or·delegate·parameter·cannot·be·of·type·`ref·System.ArgIterator' |
| 6 | //·Line:·10 | 6 | //·Line:·10 |
| 7 | using·System; | 7 | using·System; |
| 8 | class·X·{ | 8 | class·X·{ |
| 9 | » static·void·Main·() | 9 | » static·void·Main·() |
| 10 | » { | 10 | » { |
| 11 | » } | 11 | » } |
| 12 | » static·void·M·(ref· | 12 | » static·void·M·(ref·ArgIterator·a) |
| 13 | » { | 13 | » { |
| 14 | » } | 14 | » } |
| 15 | }</string> | 15 | }</string> |
| 16 | ····<string>//·CS1601:·Method·or·delegate·parameter·cannot·be·of·type·`ref·System. | 16 | ····<string>//·CS1601:·Method·or·delegate·parameter·cannot·be·of·type·`ref·System.TypedReference' |
| 17 | //·Line:·10 | 17 | //·Line:·10 |
| 18 | using·System; | 18 | using·System; |
| 19 | class·X·{ | 19 | class·X·{ |
| 20 | » static·void·Main·() | 20 | » static·void·Main·() |
| 21 | » { | 21 | » { |
| 22 | » } | 22 | » } |
| 23 | » static·void·M·(ref· | 23 | » static·void·M·(ref·TypedReference·a) |
| 24 | » { | 24 | » { |
| 25 | » } | 25 | » } |
| 26 | }</string> | 26 | }</string> |
| 27 | ··</Examples> | 27 | ··</Examples> |
| 28 | </ErrorDocumentation> | 28 | </ErrorDocumentation> |
| Offset 1, 27 lines modified | Offset 1, 27 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1604</ErrorName> | 3 | ··<ErrorName>CS1604</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1604:·Cannot·assign·to·`this'·because·it·is·read-only | 5 | ····<string>//·CS1604:·Cannot·assign·to·`this'·because·it·is·read-only |
| 6 | //·Line:·8 | 6 | //·Line:·8 |
| 7 | class·C | ||
| 8 | { | ||
| 9 | ····public·void·Main·() | ||
| 10 | ····{ | ||
| 11 | » » this·=·null; | ||
| 12 | ····} | ||
| 13 | }</string> | ||
| 14 | ····<string>//·CS1604:·Cannot·assign·to·`this'·because·it·is·read-only | ||
| 15 | //·Line:·8 | ||
| 16 | //·Compiler·options:·-langversion:latest | 7 | //·Compiler·options:·-langversion:latest |
| 17 | readonly·struct·S | 8 | readonly·struct·S |
| 18 | { | 9 | { |
| 19 | » void·Foo·() | 10 | » void·Foo·() |
| 20 | » { | 11 | » { |
| 21 | » » this·=·new·S·(); | 12 | » » this·=·new·S·(); |
| 22 | » } | 13 | » } |
| 23 | }</string> | 14 | }</string> |
| 15 | ····<string>//·CS1604:·Cannot·assign·to·`this'·because·it·is·read-only | ||
| 16 | //·Line:·8 | ||
| 17 | class·C | ||
| 18 | { | ||
| 19 | ····public·void·Main·() | ||
| 20 | ····{ | ||
| 21 | » » this·=·null; | ||
| 22 | ····} | ||
| 23 | }</string> | ||
| 24 | ··</Examples> | 24 | ··</Examples> |
| 25 | </ErrorDocumentation> | 25 | </ErrorDocumentation> |
| Offset 1, 44 lines modified | Offset 1, 55 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1612</ErrorName> | 3 | ··<ErrorName>CS1612</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1612:·Cannot·modify·a·value·type·return·value·of·` | 5 | ····<string>//·CS1612:·Cannot·modify·a·value·type·return·value·of·`Test.v'.·Consider·storing·the·value·in·a·temporary·variable |
| 6 | //·Line:· | 6 | //·Line:·28 |
| 7 | 7 | public·struct·V | |
| 8 | { | ||
| 9 | » public·int·this·[int·i]·{ | ||
| 10 | » » set·{ | ||
| 11 | » » } | ||
| 12 | » } | ||
| 13 | » | ||
| 8 | » public·int·x; | 14 | » public·int·x; |
| 9 | } | 15 | } |
| 10 | class·bar·{ | ||
| 11 | » public·foo·this·[int·x]·{ | ||
| 12 | » » get·{·return·new·foo·();·} | ||
| 13 | 16 | class·Test | |
| 17 | { | ||
| 18 | » V·m_value; | ||
| 19 | » public·V·v·{·get·{·return·m_value;·}·} | ||
| 20 | » public·Test·() | ||
| 21 | » { | ||
| 22 | » » m_value·=·new·V·(); | ||
| 14 | » } | 23 | » } |
| 15 | } | ||
| 16 | class·main·{ | ||
| 17 | » static·void·Main·() | 24 | » public·static·void·Main·() |
| 18 | » { | 25 | » { |
| 19 | » » bar·b·=·new·bar·(); | ||
| 20 | » » | 26 | » » Test·t·=·new·Test·(); |
| 27 | » » t.v·[0]·=·9; | ||
| 21 | » } | 28 | » } |
| 22 | }</string> | 29 | }</string> |
| 23 | ····<string>//·CS1612:·Cannot·modify·a·value·type·return·value·of·`X.P'.·Consider·storing·the·value·in·a·temporary·variable | 30 | ····<string>//·CS1612:·Cannot·modify·a·value·type·return·value·of·`X.P'.·Consider·storing·the·value·in·a·temporary·variable |
| 24 | //·Line:·9 | 31 | //·Line:·9 |
| 25 | using·System; | 32 | using·System; |
| 26 | class·X·{ | 33 | class·X·{ |
| 27 | » static·void·Main·() | 34 | » static·void·Main·() |
| 28 | » { | 35 | » { |
| 29 | » » | 36 | » » bar·(out·P.x); |
| 30 | » » Console.WriteLine·("Got:·"·+·P.x); | 37 | » » Console.WriteLine·("Got:·"·+·P.x); |
| 31 | » } | 38 | » } |
| 39 | » static·void·bar·(out·int·x)·{·x·=·10;·} | ||
| 32 | » static·G·P·{ | 40 | » static·G·P·{ |
| 33 | » ·get·{ | 41 | » ·get·{ |
| 34 | » » return·g; | 42 | » » return·g; |
| 35 | » ·} | 43 | » ·} |
| 36 | » } | 44 | » } |
| 37 | » static·G·g·=·new·G·(); | 45 | » static·G·g·=·new·G·(); |
| Offset 51, 52 lines modified | Offset 62, 49 lines modified | ||
| 51 | //·Line:·9 | 62 | //·Line:·9 |
| 52 | using·System; | 63 | using·System; |
| 53 | class·X·{ | 64 | class·X·{ |
| 54 | » static·void·Main·() | 65 | » static·void·Main·() |
| 55 | » { | 66 | » { |
| 56 | » » | 67 | » » P.x·+=·10; |
| 57 | » » Console.WriteLine·("Got:·"·+·P.x); | 68 | » » Console.WriteLine·("Got:·"·+·P.x); |
| 58 | » } | 69 | » } |
| 59 | » static·void·bar·(out·int·x)·{·x·=·10;·} | ||
| 60 | » static·G·P·{ | 70 | » static·G·P·{ |
| 61 | » ·get·{ | 71 | » ·get·{ |
| 62 | » » return·g; | 72 | » » return·g; |
| 63 | » ·} | 73 | » ·} |
| 64 | » } | 74 | » } |
| 65 | » static·G·g·=·new·G·(); | 75 | » static·G·g·=·new·G·(); |
| 66 | » struct·G·{ | 76 | » struct·G·{ |
| 67 | » » public·int·x; | 77 | » » public·int·x; |
| 68 | » } | 78 | » } |
| 69 | }</string> | 79 | }</string> |
| 70 | ····<string>//·CS1612:·Cannot·modify·a·value·type·return·value·of·` | 80 | ····<string>//·CS1612:·Cannot·modify·a·value·type·return·value·of·`R.Size'.·Consider·storing·the·value·in·a·temporary·variable |
| 71 | //·Line:·19 | 81 | //·Line:·19 |
| 72 | struct·foo·{ | ||
| 73 | 82 | struct·R | |
| 83 | { | ||
| 84 | » public·S·Size·{·get;·set;·} | ||
| 74 | } | 85 | } |
| 86 | struct·S | ||
| 87 | { | ||
| 88 | » public·float·Height·{·get;·set;·} | ||
| 75 | class·bar·{ | ||
| 76 | » public·foo·this·[int·x]·{ | ||
| 77 | » » get·{·return·new·foo·();·} | ||
| 78 | » » set·{·} | ||
| 79 | » } | ||
| 80 | } | 89 | } |
| 81 | class·main·{ | ||
| 82 | 90 | public·class·Test | |
| 91 | { | ||
| 83 | » static·void·Main·() | 92 | » public·static·void·Main·() |
| 84 | » { | 93 | » { |
| 85 | » » | 94 | » » var·r·=·new·R·(); |
| 86 | » » | 95 | » » r.Size.Height·=·3; |
| 87 | » } | 96 | » } |
| 88 | }</string> | 97 | }</string> |
| 89 | ····<string>//·CS1612:·Cannot·modify·a·value·type·return·value·of·`Test.v()'.·Consider·storing·the·value·in·a·temporary·variable | 98 | ····<string>//·CS1612:·Cannot·modify·a·value·type·return·value·of·`Test.v()'.·Consider·storing·the·value·in·a·temporary·variable |
| 90 | //·Line:·28 | 99 | //·Line:·28 |
| 91 | public·struct·V | 100 | public·struct·V |
| 92 | { | 101 | { |
| Offset 121, 14 lines modified | Offset 129, 57 lines modified | ||
| 121 | » public·static·void·Main·() | 129 | » public·static·void·Main·() |
| 122 | » { | 130 | » { |
| 123 | » » Test·t·=·new·Test·(); | 131 | » » Test·t·=·new·Test·(); |
| 124 | » » t.v()·[0]·=·9; | 132 | » » t.v()·[0]·=·9; |
| 125 | » } | 133 | » } |
| Max diff block lines reached; 1934/4656 bytes (41.54%) of diff not shown. | |||
| Offset 1, 11 lines modified | Offset 1, 30 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1615</ErrorName> | 3 | ··<ErrorName>CS1615</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1615:·Argument·`#1'·does·not·require·`out'·modifier.·Consider·removing·`out'·modifier | ||
| 6 | //·Line:·8 | ||
| 7 | //·Compiler·options:·-langversion:experimental | ||
| 8 | public·class·C | ||
| 9 | { | ||
| 10 | » public·static·void·Main·() | ||
| 11 | » { | ||
| 12 | » » Foo·(out·var·y); | ||
| 13 | » } | ||
| 14 | » static·void·Foo·(int·x) | ||
| 15 | » { | ||
| 16 | » } | ||
| 17 | » static·void·Foo·(string·x) | ||
| 18 | » { | ||
| 19 | » } | ||
| 20 | }</string> | ||
| 5 | ····<string>//·CS1615:·Argument·`#2'·does·not·require·`out'·modifier.·Consider·removing·`out'·modifier | 21 | ····<string>//·CS1615:·Argument·`#2'·does·not·require·`out'·modifier.·Consider·removing·`out'·modifier |
| 6 | //·Line:·13 | 22 | //·Line:·13 |
| 7 | public·class·X | 23 | public·class·X |
| 8 | { | 24 | { |
| 9 | » public·static·void·Test·(params·int[]·a) | 25 | » public·static·void·Test·(params·int[]·a) |
| 10 | » { | 26 | » { |
| Offset 26, 28 lines modified | Offset 45, 9 lines modified | ||
| 26 | » public·static·void·Main() | 45 | » public·static·void·Main() |
| 27 | » { | 46 | » { |
| 28 | » » int·i·=·1; | 47 | » » int·i·=·1; |
| 29 | » » test·(ref·i); | 48 | » » test·(ref·i); |
| 30 | » } | 49 | » } |
| 31 | }</string> | 50 | }</string> |
| 32 | ····<string>//·CS1615:·Argument·`#1'·does·not·require·`out'·modifier.·Consider·removing·`out'·modifier | ||
| 33 | //·Line:·8 | ||
| 34 | //·Compiler·options:·-langversion:experimental | ||
| 35 | public·class·C | ||
| 36 | { | ||
| 37 | » public·static·void·Main·() | ||
| 38 | » { | ||
| 39 | » » Foo·(out·var·y); | ||
| 40 | » } | ||
| 41 | » static·void·Foo·(int·x) | ||
| 42 | » { | ||
| 43 | » } | ||
| 44 | » static·void·Foo·(string·x) | ||
| 45 | » { | ||
| 46 | » } | ||
| 47 | }</string> | ||
| 48 | ··</Examples> | 51 | ··</Examples> |
| 49 | </ErrorDocumentation> | 52 | </ErrorDocumentation> |
| Offset 13, 14 lines modified | Offset 13, 40 lines modified | ||
| 13 | » } | 13 | » } |
| 14 | » public·static·void·Main()·{ | 14 | » public·static·void·Main()·{ |
| 15 | » » int·i·=·1; | 15 | » » int·i·=·1; |
| 16 | » » test·(ref·i); | 16 | » » test·(ref·i); |
| 17 | » } | 17 | » } |
| 18 | }</string> | 18 | }</string> |
| 19 | ····<string>//·CS1620:··Argument·`#1'·is·missing·`ref'·modifier | ||
| 20 | //·Line:·24 | ||
| 21 | public·class·X | ||
| 22 | { | ||
| 23 | » public·void·Foo·(string[]·b) | ||
| 24 | » { | ||
| 25 | » } | ||
| 26 | » | ||
| 27 | » public·void·Foo·(ref·string·i) | ||
| 28 | » { | ||
| 29 | » } | ||
| 30 | » | ||
| 31 | » public·void·Foo·(int·i) | ||
| 32 | » { | ||
| 33 | » } | ||
| 34 | } | ||
| 35 | class·D | ||
| 36 | { | ||
| 37 | » static·void·Main·() | ||
| 38 | » { | ||
| 39 | » » X·x·=·null; | ||
| 40 | » » x.Foo·("hola"); | ||
| 41 | » } | ||
| 42 | }</string> | ||
| 19 | ····<string>//·CS1620:·Argument·`#1'·is·missing·`out'·modifier | 43 | ····<string>//·CS1620:·Argument·`#1'·is·missing·`out'·modifier |
| 20 | //·Line:·24 | 44 | //·Line:·24 |
| 21 | using·System; | 45 | using·System; |
| 22 | namespace·TestNamespace | 46 | namespace·TestNamespace |
| 23 | { | 47 | { |
| Offset 50, 35 lines modified | Offset 76, 9 lines modified | ||
| 50 | » } | 76 | » } |
| 51 | » static·void·Run·(out·int·mengano) | 77 | » static·void·Run·(out·int·mengano) |
| 52 | » { | 78 | » { |
| 53 | » » Jajaja·(mengano); | 79 | » » Jajaja·(mengano); |
| 54 | » } | 80 | » } |
| 55 | }</string> | 81 | }</string> |
| 56 | ····<string>//·CS1620:··Argument·`#1'·is·missing·`ref'·modifier | ||
| 57 | //·Line:·24 | ||
| 58 | public·class·X | ||
| 59 | { | ||
| 60 | » public·void·Foo·(string[]·b) | ||
| 61 | » { | ||
| 62 | » } | ||
| 63 | » | ||
| 64 | » public·void·Foo·(ref·string·i) | ||
| 65 | » { | ||
| 66 | » } | ||
| 67 | » | ||
| 68 | » public·void·Foo·(int·i) | ||
| 69 | » { | ||
| 70 | » } | ||
| 71 | } | ||
| 72 | class·D | ||
| 73 | { | ||
| 74 | » static·void·Main·() | ||
| 75 | » { | ||
| 76 | » » X·x·=·null; | ||
| 77 | » » x.Foo·("hola"); | ||
| 78 | » } | ||
| 79 | }</string> | ||
| 80 | ··</Examples> | 82 | ··</Examples> |
| 81 | </ErrorDocumentation> | 83 | </ErrorDocumentation> |
| Offset 1, 27 lines modified | Offset 1, 11 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1621</ErrorName> | 3 | ··<ErrorName>CS1621</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS01621:·The·yield·statement·cannot·be·used·inside·anonymous·method·blocks | ||
| 6 | //·Line:·13 | ||
| 7 | using·System.Collections; | ||
| 8 | delegate·object·D·(); | ||
| 9 | class·C:·IEnumerable | ||
| 10 | { | ||
| 11 | ···public·IEnumerator·GetEnumerator·() | ||
| 12 | ···{ | ||
| 13 | ······D·d·=·delegate·{ | ||
| 14 | » » yield·return·this; | ||
| 15 | » ··}; | ||
| 16 | ···} | ||
| 17 | }</string> | ||
| 18 | ····<string>//·CS1621:·The·yield·statement·cannot·be·used·inside·anonymous·method·blocks | 5 | ····<string>//·CS1621:·The·yield·statement·cannot·be·used·inside·anonymous·method·blocks |
| 19 | //·Line:·12 | 6 | //·Line:·12 |
| 20 | using·System; | 7 | using·System; |
| 21 | using·System.Collections; | 8 | using·System.Collections; |
| 22 | public·class·Test | 9 | public·class·Test |
| Offset 35, 9 lines modified | Offset 19, 25 lines modified | ||
| 35 | » » yield·break; | 19 | » » yield·break; |
| 36 | » } | 20 | » } |
| 37 | » void·Call·(Action·a) | 21 | » void·Call·(Action·a) |
| 38 | » { | 22 | » { |
| 39 | » } | 23 | » } |
| 40 | }</string> | 24 | }</string> |
| 25 | ····<string>//·CS01621:·The·yield·statement·cannot·be·used·inside·anonymous·method·blocks | ||
| 26 | //·Line:·13 | ||
| 27 | using·System.Collections; | ||
| 28 | delegate·object·D·(); | ||
| 29 | class·C:·IEnumerable | ||
| 30 | { | ||
| 31 | ···public·IEnumerator·GetEnumerator·() | ||
| 32 | ···{ | ||
| 33 | ······D·d·=·delegate·{ | ||
| 34 | » » yield·return·this; | ||
| 35 | » ··}; | ||
| 36 | ···} | ||
| 37 | }</string> | ||
| 41 | ··</Examples> | 38 | ··</Examples> |
| 42 | </ErrorDocumentation> | 39 | </ErrorDocumentation> |
| Offset 1, 30 lines modified | Offset 1, 12 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1622</ErrorName> | 3 | ··<ErrorName>CS1622</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1622:·Cannot·return·a·value·from·iterators.·Use·the·yield·return·statement·to·return·a·value,·or·yield·break·to·end·the·iteration | 5 | ····<string>//·CS1622:·Cannot·return·a·value·from·iterators.·Use·the·yield·return·statement·to·return·a·value,·or·yield·break·to·end·the·iteration |
| 6 | //·Line:·14 | ||
| 7 | using·System.Collections; | ||
| 8 | public·class·C | ||
| 9 | { | ||
| 10 | » internal·static·IEnumerable·PrivateBinPath | ||
| 11 | » { | ||
| 12 | » » get | ||
| 13 | » » { | ||
| 14 | » » » string·a·=·"a"; | ||
| 15 | » » » if·(a·==·null) | ||
| 16 | » » » » return·false; | ||
| 17 | » » » yield·return·a; | ||
| 18 | » » } | ||
| 19 | » } | ||
| 20 | }</string> | ||
| 21 | ····<string>//·CS1622:·Cannot·return·a·value·from·iterators.·Use·the·yield·return·statement·to·return·a·value,·or·yield·break·to·end·the·iteration | ||
| 22 | //·Line:·11 | 6 | //·Line:·11 |
| 23 | using·System.Collections; | 7 | using·System.Collections; |
| 24 | class·X·{ | 8 | class·X·{ |
| 25 | » IEnumerator·MyEnumerator·(int·a) | 9 | » IEnumerator·MyEnumerator·(int·a) |
| 26 | » { | 10 | » { |
| 27 | » » if·(a·==·0) | 11 | » » if·(a·==·0) |
| Offset 59, 14 lines modified | Offset 41, 32 lines modified | ||
| 59 | » » » catch·{ | 41 | » » » catch·{ |
| 60 | » » » » return·true; | 42 | » » » » return·true; |
| 61 | » » » } | 43 | » » » } |
| 62 | » » } | 44 | » » } |
| 63 | » } | 45 | » } |
| 64 | }</string> | 46 | }</string> |
| 65 | ····<string>//·CS1622:·Cannot·return·a·value·from·iterators.·Use·the·yield·return·statement·to·return·a·value,·or·yield·break·to·end·the·iteration | 47 | ····<string>//·CS1622:·Cannot·return·a·value·from·iterators.·Use·the·yield·return·statement·to·return·a·value,·or·yield·break·to·end·the·iteration |
| 48 | //·Line:·14 | ||
| 49 | using·System.Collections; | ||
| 50 | public·class·C | ||
| 51 | { | ||
| 52 | » internal·static·IEnumerable·PrivateBinPath | ||
| 53 | » { | ||
| 54 | » » get | ||
| 55 | » » { | ||
| 56 | » » » string·a·=·"a"; | ||
| 57 | » » » if·(a·==·null) | ||
| 58 | » » » » return·false; | ||
| 59 | » » » yield·return·a; | ||
| 60 | » » } | ||
| 61 | » } | ||
| 62 | }</string> | ||
| 63 | ····<string>//·CS1622:·Cannot·return·a·value·from·iterators.·Use·the·yield·return·statement·to·return·a·value,·or·yield·break·to·end·the·iteration | ||
| 66 | //·Line:·21 | 64 | //·Line:·21 |
| 67 | using·System.Collections.Generic; | 65 | using·System.Collections.Generic; |
| 68 | namespace·McsDiff | 66 | namespace·McsDiff |
| 69 | { | 67 | { |
| 70 | » class·MyObj | 68 | » class·MyObj |
| Offset 8, 14 lines modified | Offset 8, 32 lines modified | ||
| 8 | class·Program·{ | 8 | class·Program·{ |
| 9 | ········public·Program()·{ | 9 | ········public·Program()·{ |
| 10 | ················yield·break; | 10 | ················yield·break; |
| 11 | ········} | 11 | ········} |
| 12 | ········static·public·void·Main()·{ | 12 | ········static·public·void·Main()·{ |
| 13 | ········} | 13 | ········} |
| 14 | }</string> | 14 | }</string> |
| 15 | ····<string>//·CS1624:·The·body·of·`X.Test(int)'·cannot·be·an·iterator·block·because·`System.Collections.ArrayList'·is·not·an·iterator·interface·type | ||
| 16 | //·Line:·8 | ||
| 17 | using·System; | ||
| 18 | using·System.Collections; | ||
| 19 | class·X | ||
| 20 | { | ||
| 21 | » public·static·ArrayList·Test·(int·a) | ||
| 22 | » { | ||
| 23 | » » yield·return·0; | ||
| 24 | ········} | ||
| 25 | » static·void·Main·() | ||
| 26 | » { | ||
| 27 | » » IEnumerable·a·=·Test·(3); | ||
| 28 | » » Console.WriteLine·(a); | ||
| 29 | » } | ||
| 30 | }</string> | ||
| 15 | ····<string>//·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 | 31 | ····<string>//·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 |
| 16 | //·Line:·8 | 32 | //·Line:·8 |
| 17 | using·System.Collections.Generic; | 33 | using·System.Collections.Generic; |
| 18 | public·class·C | 34 | public·class·C |
| 19 | { | 35 | { |
| Offset 41, 27 lines modified | Offset 59, 9 lines modified | ||
| 41 | » ····} | 59 | » ····} |
| 42 | » ····set | 60 | » ····set |
| 43 | » ····{ | 61 | » ····{ |
| 44 | » » yield·return·3;» » | 62 | » » yield·return·3;» » |
| 45 | » ····}» ···· | 63 | » ····}» ···· |
| 46 | » } | 64 | » } |
| 47 | }</string> | 65 | }</string> |
| 48 | ····<string>//·CS1624:·The·body·of·`X.Test(int)'·cannot·be·an·iterator·block·because·`System.Collections.ArrayList'·is·not·an·iterator·interface·type | ||
| 49 | //·Line:·8 | ||
| 50 | using·System; | ||
| 51 | using·System.Collections; | ||
| 52 | class·X | ||
| 53 | { | ||
| 54 | » public·static·ArrayList·Test·(int·a) | ||
| 55 | » { | ||
| 56 | » » yield·return·0; | ||
| 57 | ········} | ||
| 58 | » static·void·Main·() | ||
| 59 | » { | ||
| 60 | » » IEnumerable·a·=·Test·(3); | ||
| 61 | » » Console.WriteLine·(a); | ||
| 62 | » } | ||
| 63 | }</string> | ||
| 64 | ··</Examples> | 66 | ··</Examples> |
| 65 | </ErrorDocumentation> | 67 | </ErrorDocumentation> |
| Offset 1, 70 lines modified | Offset 1, 70 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1625</ErrorName> | 3 | ··<ErrorName>CS1625</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1625:·Cannot·yield·in·the·body·of·a·finally·clause | 5 | ····<string>//·CS1625:·Cannot·yield·in·the·body·of·a·finally·clause |
| 6 | //·Line:·1 | 6 | //·Line:·13 |
| 7 | using·System; | 7 | using·System; |
| 8 | using·System.Collections; | 8 | using·System.Collections; |
| 9 | class·X | 9 | class·X |
| 10 | { | 10 | { |
| 11 | » public·static·IEnumerable·Test·(int·a) | 11 | » public·static·IEnumerable·Test·(int·a) |
| 12 | » { | 12 | » { |
| 13 | » » try·{ | 13 | » » try·{ |
| 14 | » » » ; | 14 | » » » ; |
| 15 | » » }·finally·{ | 15 | » » }·finally·{ |
| 16 | » » ····try·{ | ||
| 17 | » » » yield·return·0; | 16 | » » » yield·return·0; |
| 18 | » » ····} | ||
| 19 | » » ····finally·{} | ||
| 20 | » » } | 17 | » » } |
| 21 | ········} | 18 | ········} |
| 19 | » static·void·Main·() | ||
| 20 | » { | ||
| 21 | » » IEnumerable·a·=·Test·(3); | ||
| 22 | » » Console.WriteLine·(a); | ||
| 23 | » } | ||
| 22 | }</string> | 24 | }</string> |
| 23 | ····<string>//·CS1625:·Cannot·yield·in·the·body·of·a·finally·clause | 25 | ····<string>//·CS1625:·Cannot·yield·in·the·body·of·a·finally·clause |
| 24 | //·Line:·13 | 26 | //·Line:·13 |
| 25 | using·System; | 27 | using·System; |
| 26 | using·System.Collections; | 28 | using·System.Collections; |
| 27 | class·X | 29 | class·X |
| 28 | { | 30 | { |
| 29 | » public·static·IEnumerable·Test·(int·a) | 31 | » public·static·IEnumerable·Test·(int·a) |
| 30 | » { | 32 | » { |
| 31 | » » try·{ | 33 | » » try·{ |
| 32 | » » » ; | 34 | » » » ; |
| 33 | » » }·finally·{ | 35 | » » }·finally·{ |
| 34 | » » » yield· | 36 | » » » yield·break; |
| 35 | » » } | 37 | » » } |
| 36 | ········} | 38 | ········} |
| 37 | » static·void·Main·() | 39 | » static·void·Main·() |
| 38 | » { | 40 | » { |
| 39 | » » IEnumerable·a·=·Test·(3); | 41 | » » IEnumerable·a·=·Test·(3); |
| 40 | » » Console.WriteLine·(a); | 42 | » » Console.WriteLine·(a); |
| 41 | » } | 43 | » } |
| 42 | }</string> | 44 | }</string> |
| 43 | ····<string>//·CS1625:·Cannot·yield·in·the·body·of·a·finally·clause | 45 | ····<string>//·CS1625:·Cannot·yield·in·the·body·of·a·finally·clause |
| 44 | //·Line:·1 | 46 | //·Line:·16 |
| 45 | using·System; | 47 | using·System; |
| 46 | using·System.Collections; | 48 | using·System.Collections; |
| 47 | class·X | 49 | class·X |
| 48 | { | 50 | { |
| 49 | » public·static·IEnumerable·Test·(int·a) | 51 | » public·static·IEnumerable·Test·(int·a) |
| 50 | » { | 52 | » { |
| 51 | » » try·{ | 53 | » » try·{ |
| 52 | » » » ; | 54 | » » » ; |
| 53 | » » }·finally·{ | 55 | » » }·finally·{ |
| 54 | » » | 56 | » » ····try·{ |
| 57 | » » » yield·return·0; | ||
| 58 | » » ····} | ||
| 59 | » » ····finally·{} | ||
| 55 | » » } | 60 | » » } |
| 56 | ········} | 61 | ········} |
| 57 | » static·void·Main·() | ||
| 58 | » { | ||
| 59 | » » IEnumerable·a·=·Test·(3); | ||
| 60 | » » Console.WriteLine·(a); | ||
| 61 | » } | ||
| 62 | }</string> | 62 | }</string> |
| 63 | ··</Examples> | 63 | ··</Examples> |
| 64 | </ErrorDocumentation> | 64 | </ErrorDocumentation> |
| Offset 1, 11 lines modified | Offset 1, 22 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1628</ErrorName> | 3 | ··<ErrorName>CS1628</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1628:·Parameter·`i'·cannot·be·used·inside·`anonymous·method'·when·using·`ref'·or·`out'·modifier | ||
| 6 | //·Line:·8 | ||
| 7 | public·class·Test·{ | ||
| 8 | ··public·void·test(out·int·i)·{ | ||
| 9 | ····i·=·0; | ||
| 10 | ····System.EventHandler·test·=·delegate·{ | ||
| 11 | ······i++; | ||
| 12 | ····}; | ||
| 13 | ··} | ||
| 14 | }</string> | ||
| 5 | ····<string>//·CS1628:·Parameter·`a'·cannot·be·used·inside·`anonymous·method'·when·using·`ref'·or·`out'·modifier | 15 | ····<string>//·CS1628:·Parameter·`a'·cannot·be·used·inside·`anonymous·method'·when·using·`ref'·or·`out'·modifier |
| 6 | //·Line:·15 | 16 | //·Line:·15 |
| 7 | using·System; | 17 | using·System; |
| 8 | delegate·void·D·(); | 18 | delegate·void·D·(); |
| 9 | class·X·{ | 19 | class·X·{ |
| Offset 16, 20 lines modified | Offset 27, 9 lines modified | ||
| 16 | » static·void·Host·(ref·int·a) | 27 | » static·void·Host·(ref·int·a) |
| 17 | » { | 28 | » { |
| 18 | » » D·b·=·delegate·{ | 29 | » » D·b·=·delegate·{ |
| 19 | » » » a·=·1; | 30 | » » » a·=·1; |
| 20 | » » }; | 31 | » » }; |
| 21 | » } | 32 | » } |
| 22 | }</string> | 33 | }</string> |
| 23 | ····<string>//·CS1628:·Parameter·`i'·cannot·be·used·inside·`anonymous·method'·when·using·`ref'·or·`out'·modifier | ||
| 24 | //·Line:·8 | ||
| 25 | public·class·Test·{ | ||
| 26 | ··public·void·test(out·int·i)·{ | ||
| 27 | ····i·=·0; | ||
| 28 | ····System.EventHandler·test·=·delegate·{ | ||
| 29 | ······i++; | ||
| 30 | ····}; | ||
| 31 | ··} | ||
| 32 | }</string> | ||
| 33 | ··</Examples> | 34 | ··</Examples> |
| 34 | </ErrorDocumentation> | 35 | </ErrorDocumentation> |
| Offset 1, 32 lines modified | Offset 1, 12 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1632</ErrorName> | 3 | ··<ErrorName>CS1632</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1632:·Control·cannot·leave·the·body·of·an·anonymous·method | 5 | ····<string>//·CS1632:·Control·cannot·leave·the·body·of·an·anonymous·method |
| 6 | //·Line:·14 | ||
| 7 | using·System; | ||
| 8 | class·X | ||
| 9 | { | ||
| 10 | » public·static·void·Main·() | ||
| 11 | » { | ||
| 12 | » » int·b·=·0; | ||
| 13 | » » switch·(b)·{ | ||
| 14 | » » » case·1: | ||
| 15 | » » » Action·a·=·()·=>·{ | ||
| 16 | » » » » break; | ||
| 17 | » » » }; | ||
| 18 | » » » | ||
| 19 | » » » break; | ||
| 20 | » » } | ||
| 21 | » } | ||
| 22 | }</string> | ||
| 23 | ····<string>//·CS1632:·Control·cannot·leave·the·body·of·an·anonymous·method | ||
| 24 | //·Line:·12 | 6 | //·Line:·12 |
| 25 | using·System; | 7 | using·System; |
| 26 | class·X | 8 | class·X |
| 27 | { | 9 | { |
| 28 | » public·static·void·Main·() | 10 | » public·static·void·Main·() |
| Offset 58, 14 lines modified | Offset 38, 34 lines modified | ||
| 58 | » } | 38 | » } |
| 59 | }</string> | 39 | }</string> |
| 60 | ····<string>//·CS1632:·Control·cannot·leave·the·body·of·an·anonymous·method | 40 | ····<string>//·CS1632:·Control·cannot·leave·the·body·of·an·anonymous·method |
| 61 | //·Line:·14 | 41 | //·Line:·14 |
| 62 | using·System; | 42 | using·System; |
| 43 | class·X | ||
| 44 | { | ||
| 45 | » public·static·void·Main·() | ||
| 46 | » { | ||
| 47 | » » int·b·=·0; | ||
| 48 | » » switch·(b)·{ | ||
| 49 | » » » case·1: | ||
| 50 | » » » Action·a·=·()·=>·{ | ||
| 51 | » » » » break; | ||
| 52 | » » » }; | ||
| 53 | » » » | ||
| 54 | » » » break; | ||
| 55 | » » } | ||
| 56 | » } | ||
| 57 | }</string> | ||
| 58 | ····<string>//·CS1632:·Control·cannot·leave·the·body·of·an·anonymous·method | ||
| 59 | //·Line:·14 | ||
| 60 | using·System; | ||
| 63 | class·X | 61 | class·X |
| 64 | { | 62 | { |
| 65 | » public·static·void·Main·() | 63 | » public·static·void·Main·() |
| 66 | » { | 64 | » { |
| 67 | » » int·b·=·0; | 65 | » » int·b·=·0; |
| 68 | » » switch·(b)·{ | 66 | » » switch·(b)·{ |
| 69 | » » case·1: | 67 | » » case·1: |
| Offset 1, 137 lines modified | Offset 1, 97 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1644</ErrorName> | 3 | ··<ErrorName>CS1644</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1644:·Feature·`generic·type·variance'·cannot·be·used·because·it·is·not·part·of·the·C#·3.0·language·specification | ||
| 6 | //·Line:·5 | ||
| 7 | //·Compiler·options:·-langversion:3 | ||
| 8 | public·interface·IFoo<in·T> | ||
| 9 | { | ||
| 10 | }</string> | ||
| 11 | ····<string>//·CS1644:·Feature·`readonly·structs'·cannot·be·used·because·it·is·not·part·of·the·C#·7.0·language·specification | ||
| 12 | //·Line:·5 | ||
| 13 | //·Compiler·options:·-langversion:7 | ||
| 14 | readonly·struct·S | ||
| 15 | { | ||
| 16 | }</string> | ||
| 17 | ····<string>//·CS1644:·Feature·`query·expressions'·cannot·be·used·because·it·is·not·part·of·the·C#·2.0·language·specification | ||
| 18 | //·Line:·11 | ||
| 19 | //·Compiler·options:·-langversion:ISO-2 | ||
| 20 | using·System.Linq; | ||
| 21 | public·class·C | ||
| 22 | { | ||
| 23 | » public·static·void·Main·() | ||
| 24 | » { | ||
| 25 | » » var·e·=·from·a·in·"aaa"·select·a; | ||
| 26 | » } | ||
| 27 | }</string> | ||
| 28 | ····<string>//·CS1644:·Feature·`asynchronous·functions'·cannot·be·used·because·it·is·not·part·of·the·C#·4.0·language·specification | 5 | ····<string>//·CS1644:·Feature·`asynchronous·functions'·cannot·be·used·because·it·is·not·part·of·the·C#·4.0·language·specification |
| 29 | //·Line:·10 | 6 | //·Line:·10 |
| 30 | //·Compiler·options:·-langversion:4 | 7 | //·Compiler·options:·-langversion:4 |
| 31 | using·System; | 8 | using·System; |
| 32 | class·C | 9 | class·C |
| 33 | { | 10 | { |
| 34 | » public·void·Foo·() | 11 | » public·void·Foo·() |
| 35 | » { | 12 | » { |
| 36 | » » Action·a·=·async·()·=>·{·}; | 13 | » » Action·a·=·async·()·=>·{·}; |
| 37 | » } | 14 | » } |
| 38 | }</string> | 15 | }</string> |
| 39 | ····<string>//·CS1644:·Feature·` | 16 | ····<string>//·CS1644:·Feature·`private·protected'·cannot·be·used·because·it·is·not·part·of·the·C#·6.0·language·specification |
| 40 | //·Line:· | 17 | //·Line:·7 |
| 41 | //·Compiler·options:·-langversion: | 18 | //·Compiler·options:·-langversion:6 |
| 42 | using·System.Collections.Generic; | ||
| 43 | class·C | 19 | class·C |
| 44 | { | 20 | { |
| 45 | » p | 21 | » private·protected·enum·E |
| 46 | » { | 22 | » { |
| 47 | » » var·d·=·new·Dictionary<string,·int>·{ | ||
| 48 | » » » ["a"]·=·1 | ||
| 49 | » » }; | ||
| 50 | » } | 23 | » } |
| 51 | }</string> | 24 | }</string> |
| 52 | ····<string>//·CS1644:·Feature·` | 25 | ····<string>//·CS1644:·Feature·`readonly·references'·cannot·be·used·because·it·is·not·part·of·the·C#·7.0·language·specification |
| 53 | //·Line:·9 | 26 | //·Line:·9 |
| 54 | //·Compiler·options:·-langversion: | 27 | //·Compiler·options:·-langversion:7 |
| 55 | class· | 28 | class·X |
| 56 | { | 29 | { |
| 30 | » int·i; | ||
| 57 | » static·void·Foo·(object·arg) | ||
| 58 | » { | ||
| 59 | » » if·(arg·is·Type·v)·{ | ||
| 60 | » » » return; | ||
| 61 | » » } | ||
| 62 | » }» | ||
| 63 | }</string> | ||
| 64 | ····<string>//·CS1644:·Feature·`null·propagating·operator'·cannot·be·used·because·it·is·not·part·of·the·C#·5.0·language·specification | ||
| 65 | //·Line:·10 | ||
| 66 | //·Compiler·options:·-langversion:5 | ||
| 31 | » ref·readonly·int·Test·() | ||
| 67 | class·C | ||
| 68 | { | ||
| 69 | » static·void·Main·() | ||
| 70 | » { | 32 | » { |
| 33 | » » return·ref·i; | ||
| 71 | » » string[]·a·=·null; | ||
| 72 | » » var·s·=·a?[0]; | ||
| 73 | » } | 34 | » } |
| 74 | }</string> | 35 | }</string> |
| 75 | ····<string>//·CS1644:·Feature·`throw·expression'·cannot·be·used·because·it·is·not·part·of·the·C#·6.0·language·specification | ||
| 76 | //·Line:·5 | ||
| 77 | //·Compiler·options:·-langversion:6 | ||
| 78 | static·class·Class | ||
| 79 | { | ||
| 80 | » int·Prop·=>·throw·null; | ||
| 81 | }</string> | ||
| 82 | ····<string>//·CS1644:·Feature·` | 36 | ····<string>//·CS1644:·Feature·`implicitly·typed·arrays'·cannot·be·used·because·it·is·not·part·of·the·C#·1.0·language·specification |
| 83 | //·Line:·7 | 37 | //·Line:·7 |
| 84 | //·Compiler·options:·-langversion:ISO-1 | 38 | //·Compiler·options:·-langversion:ISO-1 |
| 85 | class· | 39 | class·A |
| 86 | { | 40 | { |
| 41 | » string[]·array·=·new·[]·{·"Foo",·"Bar",·"Baz"·}; | ||
| 87 | » int?·i; | ||
| 88 | » static·void·Main·()·{} | ||
| 89 | }</string> | 42 | }</string> |
| 90 | ····<string>//·CS1644:·Feature·`p | 43 | ····<string>//·CS1644:·Feature·`expression·body·property·accessor'·cannot·be·used·because·it·is·not·part·of·the·C#·6.0·language·specification· |
| 91 | //·Line:· | 44 | //·Line:·11 |
| 92 | //·Compiler·options:·-langversion: | 45 | //·Compiler·options:·-langversion:6 |
| 93 | 46 | using·System; | |
| 47 | class·C | ||
| 94 | { | 48 | { |
| 95 | » p | 49 | » public·int·Integer |
| 50 | » { | ||
| 51 | » » get·=>·0; | ||
| 52 | » } | ||
| 96 | }</string> | 53 | }</string> |
| 97 | ····<string>//·CS1644:·Feature·`n | 54 | ····<string>//·CS1644:·Feature·`nameof·operator'·cannot·be·used·because·it·is·not·part·of·the·C#·5.0·language·specification |
| 98 | //·Line:·9 | 55 | //·Line:·9 |
| 99 | //·Compiler·options:·-langversion: | 56 | //·Compiler·options:·-langversion:5 |
| 100 | 57 | class·C | |
| 101 | { | 58 | { |
| 102 | » void· | 59 | » public·static·void·Main·() |
| 103 | » { | 60 | » { |
| 104 | » » | 61 | » » var·res·=·nameof·(C.Main); |
| Max diff block lines reached; 25681/29940 bytes (85.77%) of diff not shown. | |||
| Offset 21, 14 lines modified | Offset 21, 29 lines modified | ||
| 21 | » » p.foo·=·0; | 21 | » » p.foo·=·0; |
| 22 | » } | 22 | » } |
| 23 | » public·static·void·Main·() | 23 | » public·static·void·Main·() |
| 24 | » { | 24 | » { |
| 25 | » } | 25 | » } |
| 26 | }</string> | 26 | }</string> |
| 27 | ····<string>//·CS1648:·Members·of·readonly·field·`C.s'·cannot·be·modified·(except·in·a·constructor·or·a·variable·initializer) | ||
| 28 | //·Line:·13 | ||
| 29 | struct·S·{ | ||
| 30 | » public·int·x; | ||
| 31 | } | ||
| 32 | class·C·{ | ||
| 33 | » readonly·S·s; | ||
| 34 | » public·void·Test·() | ||
| 35 | ········{ | ||
| 36 | » » s.x·=·42; | ||
| 37 | » } | ||
| 38 | }</string> | ||
| 27 | ····<string>//·CS1648:·Members·of·readonly·field·`Test.p'·cannot·be·modified·(except·in·a·constructor·or·a·variable·initializer) | 39 | ····<string>//·CS1648:·Members·of·readonly·field·`Test.p'·cannot·be·modified·(except·in·a·constructor·or·a·variable·initializer) |
| 28 | //·Line:·17 | 40 | //·Line:·17 |
| 29 | using·System; | 41 | using·System; |
| 30 | public·class·Test | 42 | public·class·Test |
| 31 | { | 43 | { |
| Offset 47, 24 lines modified | Offset 62, 9 lines modified | ||
| 47 | » » p[0]·=·0; | 62 | » » p[0]·=·0; |
| 48 | » } | 63 | » } |
| 49 | » public·static·void·Main·() | 64 | » public·static·void·Main·() |
| 50 | » { | 65 | » { |
| 51 | » } | 66 | » } |
| 52 | }</string> | 67 | }</string> |
| 53 | ····<string>//·CS1648:·Members·of·readonly·field·`C.s'·cannot·be·modified·(except·in·a·constructor·or·a·variable·initializer) | ||
| 54 | //·Line:·13 | ||
| 55 | struct·S·{ | ||
| 56 | » public·int·x; | ||
| 57 | } | ||
| 58 | class·C·{ | ||
| 59 | » readonly·S·s; | ||
| 60 | » public·void·Test·() | ||
| 61 | ········{ | ||
| 62 | » » s.x·=·42; | ||
| 63 | » } | ||
| 64 | }</string> | ||
| 65 | ··</Examples> | 68 | ··</Examples> |
| 66 | </ErrorDocumentation> | 69 | </ErrorDocumentation> |
| Offset 15, 31 lines modified | Offset 15, 14 lines modified | ||
| 15 | » static·readonly·S·s; | 15 | » static·readonly·S·s; |
| 16 | » public·static·void·Main·(string[]·args) | 16 | » public·static·void·Main·(string[]·args) |
| 17 | » { | 17 | » { |
| 18 | » » s.x·=·42; | 18 | » » s.x·=·42; |
| 19 | » } | 19 | » } |
| 20 | }</string> | 20 | }</string> |
| 21 | ····<string>//·CS1650:·Fields·of·static·readonly·field·`C.s'·cannot·be·assigned·to·(except·in·a·static·constructor·or·a·variable·initializer) | ||
| 22 | //·Line:·14 | ||
| 23 | using·System; | ||
| 24 | struct·S·{ | ||
| 25 | » public·int·x; | ||
| 26 | } | ||
| 27 | class·C·{ | ||
| 28 | » static·readonly·S·s; | ||
| 29 | » public·static·void·Main(String[]·args)·{ | ||
| 30 | » » s.x·=·42; | ||
| 31 | » » Console.WriteLine(s.x); | ||
| 32 | » } | ||
| 33 | }</string> | ||
| 34 | ····<string>//·CS1650:·Fields·of·static·readonly·field·`C<T>.t'·cannot·be·assigned·to·(except·in·a·static·constructor·or·a·variable·initializer) | 21 | ····<string>//·CS1650:·Fields·of·static·readonly·field·`C<T>.t'·cannot·be·assigned·to·(except·in·a·static·constructor·or·a·variable·initializer) |
| 35 | //·Line:·17 | 22 | //·Line:·17 |
| 36 | using·System; | 23 | using·System; |
| 37 | interface·I | 24 | interface·I |
| 38 | { | 25 | { |
| Offset 51, 9 lines modified | Offset 34, 26 lines modified | ||
| 51 | » static·readonly·T·t; | 34 | » static·readonly·T·t; |
| 52 | » public·static·void·Foo·() | 35 | » public·static·void·Foo·() |
| 53 | » { | 36 | » { |
| 54 | » » t.X·=·42; | 37 | » » t.X·=·42; |
| 55 | » } | 38 | » } |
| 56 | }</string> | 39 | }</string> |
| 40 | ····<string>//·CS1650:·Fields·of·static·readonly·field·`C.s'·cannot·be·assigned·to·(except·in·a·static·constructor·or·a·variable·initializer) | ||
| 41 | //·Line:·14 | ||
| 42 | using·System; | ||
| 43 | struct·S·{ | ||
| 44 | » public·int·x; | ||
| 45 | } | ||
| 46 | class·C·{ | ||
| 47 | » static·readonly·S·s; | ||
| 48 | » public·static·void·Main(String[]·args)·{ | ||
| 49 | » » s.x·=·42; | ||
| 50 | » » Console.WriteLine(s.x); | ||
| 51 | » } | ||
| 52 | }</string> | ||
| 57 | ··</Examples> | 53 | ··</Examples> |
| 58 | </ErrorDocumentation> | 54 | </ErrorDocumentation> |
| Offset 1, 53 lines modified | Offset 1, 34 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1654</ErrorName> | 3 | ··<ErrorName>CS1654</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1654:·Cannot·assign·to·members·of·` | 5 | ····<string>//·CS1654:·Cannot·assign·to·members·of·`f'·because·it·is·a·`using·variable' |
| 6 | //·Line:· | 6 | //·Line:·22 |
| 7 | using·System.Collections; | ||
| 7 | using·System; | ||
| 8 | struct·P·{ | ||
| 9 | » public·int·x; | ||
| 10 | } | ||
| 11 | class·Test·{ | ||
| 12 | 8 | struct·Foo·:·IDisposable | |
| 9 | { | ||
| 10 | » public·int·this[int·arg]·{ | ||
| 11 | » » set·{·} | ||
| 12 | » } | ||
| 13 | » | 13 | » public·void·Dispose·() |
| 14 | » { | 14 | » { |
| 15 | » » IEnumerable·f·=·foo·(); | ||
| 16 | » » if·(f·!=·null) | ||
| 17 | » » » foreach·(P·p·in·f) | ||
| 18 | » » » » p.x·=·0; | ||
| 19 | » } | 15 | » } |
| 20 | }</string> | ||
| 21 | ····<string>//·CS1654:·Cannot·assign·to·members·of·`q'·because·it·is·a·`foreach·iteration·variable' | ||
| 22 | //·Line:·22 | ||
| 23 | using·System.Collections; | ||
| 24 | struct·P·{ | ||
| 25 | » public·int·x; | ||
| 26 | } | ||
| 27 | struct·Q·{ | ||
| 28 | » public·P·p; | ||
| 29 | } | 16 | } |
| 17 | class·Bar | ||
| 18 | { | ||
| 30 | class·Test·{ | ||
| 31 | » static·IEnumerable·foo·()·{·return·null;·} | ||
| 32 | » static·void·Main·() | 19 | » static·void·Main·() |
| 33 | » { | 20 | » { |
| 21 | » » using·(var·f·=·new·Foo·())·{ | ||
| 22 | » » » f[0]·=·1; | ||
| 23 | » » } | ||
| 34 | » » IEnumerable·f·=·foo·(); | ||
| 35 | » » if·(f·!=·null) | ||
| 36 | » » » foreach·(Q·q·in·f) | ||
| 37 | » » » » q.p.x·=·0; | ||
| 38 | » } | 24 | » } |
| 39 | }</string> | 25 | }</string> |
| 40 | ····<string>//·CS1654:·Cannot·assign·to·members·of·`f'·because·it·is·a·`using·variable' | 26 | ····<string>//·CS1654:·Cannot·assign·to·members·of·`f'·because·it·is·a·`using·variable' |
| 41 | //·Line:·22 | 27 | //·Line:·22 |
| 42 | using·System; | 28 | using·System; |
| Offset 83, 34 lines modified | Offset 64, 53 lines modified | ||
| 83 | class·Test·{ | 64 | class·Test·{ |
| 84 | » static·void·Foo·(IEnumerable·f) | 65 | » static·void·Foo·(IEnumerable·f) |
| 85 | » { | 66 | » { |
| 86 | » » foreach·(P·p·in·f) | 67 | » » foreach·(P·p·in·f) |
| 87 | » » » p.x·+=·2; | 68 | » » » p.x·+=·2; |
| 88 | » } | 69 | » } |
| 89 | }</string> | 70 | }</string> |
| 90 | ····<string>//·CS1654:·Cannot·assign·to·members·of·` | 71 | ····<string>//·CS1654:·Cannot·assign·to·members·of·`p'·because·it·is·a·`foreach·iteration·variable' |
| 91 | //·Line:· | 72 | //·Line:·18 |
| 92 | using·System; | 73 | using·System.Collections; |
| 74 | struct·P·{ | ||
| 75 | » public·int·x; | ||
| 76 | } | ||
| 93 | struct·Foo·:·IDisposable | ||
| 94 | { | ||
| 95 | » public·int·this[int·arg]·{ | ||
| 96 | » » set·{·} | ||
| 97 | » } | ||
| 98 | 77 | class·Test·{ | |
| 78 | » static·IEnumerable·foo·()·{·return·null;·} | ||
| 79 | » static·void·Main·() | ||
| 99 | » { | 80 | » { |
| 81 | » » IEnumerable·f·=·foo·(); | ||
| 82 | » » if·(f·!=·null) | ||
| 83 | » » » foreach·(P·p·in·f) | ||
| 84 | » » » » p.x·=·0; | ||
| 100 | » } | 85 | » } |
| 86 | }</string> | ||
| 87 | ····<string>//·CS1654:·Cannot·assign·to·members·of·`q'·because·it·is·a·`foreach·iteration·variable' | ||
| 88 | //·Line:·22 | ||
| 89 | using·System.Collections; | ||
| 90 | struct·P·{ | ||
| 91 | » public·int·x; | ||
| 101 | } | 92 | } |
| 102 | class·Bar | ||
| 103 | { | 93 | struct·Q·{ |
| 94 | » public·P·p; | ||
| 95 | } | ||
| 96 | class·Test·{ | ||
| 97 | » static·IEnumerable·foo·()·{·return·null;·} | ||
| 104 | » static·void·Main·() | 98 | » static·void·Main·() |
| 105 | » { | 99 | » { |
| 106 | » » using·(var·f·=·new·Foo·())·{ | ||
| 107 | » » » f[0]·=·1; | ||
| 108 | » » | 100 | » » IEnumerable·f·=·foo·(); |
| 101 | » » if·(f·!=·null) | ||
| 102 | » » » foreach·(Q·q·in·f) | ||
| 103 | » » » » q.p.x·=·0; | ||
| 109 | » } | 104 | » } |
| 110 | }</string> | 105 | }</string> |
| 111 | ··</Examples> | 106 | ··</Examples> |
| 112 | </ErrorDocumentation> | 107 | </ErrorDocumentation> |
| Offset 42, 23 lines modified | Offset 42, 25 lines modified | ||
| 42 | » { | 42 | » { |
| 43 | » » IEnumerable·f·=·foo·(); | 43 | » » IEnumerable·f·=·foo·(); |
| 44 | » » if·(f·!=·null) | 44 | » » if·(f·!=·null) |
| 45 | » » » foreach·(int·i·in·f) | 45 | » » » foreach·(int·i·in·f) |
| 46 | » » » » i·=·0; | 46 | » » » » i·=·0; |
| 47 | » } | 47 | » } |
| 48 | }</string> | 48 | }</string> |
| 49 | ····<string>//·CS1656:·Cannot·assign·to·` | 49 | ····<string>//·CS1656:·Cannot·assign·to·`m'·because·it·is·a·`using·variable' |
| 50 | //·Line:· | 50 | //·Line:·10 |
| 51 | using·System.IO; | ||
| 52 | class·X·{ | ||
| 51 | class·Test | ||
| 52 | { | ||
| 53 | » static·void·Main·() | 53 | » static·void·Main·() |
| 54 | » { | 54 | » { |
| 55 | » » foreach·(int·i·in·new·int[]·{·1,·2}) | ||
| 56 | » » | 55 | » » using·(MemoryStream·m·=·new·MemoryStream·()){ |
| 56 | » » » m·=·null; | ||
| 57 | » » } | ||
| 57 | » } | 58 | » } |
| 58 | }</string> | 59 | }</string> |
| 59 | ····<string>//·CS1656:·Cannot·assign·to·`p'·because·it·is·a·`fixed·variable' | 60 | ····<string>//·CS1656:·Cannot·assign·to·`p'·because·it·is·a·`fixed·variable' |
| 60 | //·Line:·10 | 61 | //·Line:·10 |
| 61 | //·Compiler·options:·-unsafe | 62 | //·Compiler·options:·-unsafe |
| 62 | unsafe·class·X·{ | 63 | unsafe·class·X·{ |
| Offset 66, 22 lines modified | Offset 68, 20 lines modified | ||
| 66 | » static·int·x·=·0; | 68 | » static·int·x·=·0; |
| 67 | » static·void·Main·()·{ | 69 | » static·void·Main·()·{ |
| 68 | » » fixed·(int*·p·=·&x)·{ | 70 | » » fixed·(int*·p·=·&x)·{ |
| 69 | » » ····p·=·(int*)22; | 71 | » » ····p·=·(int*)22; |
| 70 | » » } | 72 | » » } |
| 71 | » }» » ···· | 73 | » }» » ···· |
| 72 | }</string> | 74 | }</string> |
| 73 | ····<string>//·CS1656:·Cannot·assign·to·` | 75 | ····<string>//·CS1656:·Cannot·assign·to·`i'·because·it·is·a·`foreach·iteration·variable' |
| 74 | //·Line:· | 76 | //·Line:·9 |
| 75 | using·System.IO; | ||
| 76 | class·X·{ | ||
| 77 | class·Test | ||
| 78 | { | ||
| 77 | » static·void·Main·() | 79 | » static·void·Main·() |
| 78 | » { | 80 | » { |
| 81 | » » foreach·(int·i·in·new·int[]·{·1,·2}) | ||
| 82 | » » » i++; | ||
| 79 | » » using·(MemoryStream·m·=·new·MemoryStream·()){ | ||
| 80 | » » » m·=·null; | ||
| 81 | » » } | ||
| 82 | » } | 83 | » } |
| 83 | }</string> | 84 | }</string> |
| 84 | ··</Examples> | 85 | ··</Examples> |
| 85 | </ErrorDocumentation> | 86 | </ErrorDocumentation> |
| Offset 1, 11 lines modified | Offset 1, 25 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1657</ErrorName> | 3 | ··<ErrorName>CS1657</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1657:·Cannot·pass·`i'·as·a·ref·or·out·argument·because·it·is·a·`foreach·iteration·variable' | ||
| 6 | //·Line:·9 | ||
| 7 | class·E | ||
| 8 | { | ||
| 9 | ····public·E·(int[]·args) | ||
| 10 | ····{ | ||
| 11 | ········foreach·(int·i·in·args) | ||
| 12 | ············Init·(ref·i); | ||
| 13 | ····} | ||
| 14 | ···· | ||
| 15 | ····void·Init·(ref·int·val)·{} | ||
| 16 | ······· | ||
| 17 | }</string> | ||
| 5 | ····<string>//·CS1657:·Cannot·pass·`m'·as·a·ref·or·out·argument·because·it·is·a·`using·variable' | 18 | ····<string>//·CS1657:·Cannot·pass·`m'·as·a·ref·or·out·argument·because·it·is·a·`using·variable' |
| 6 | //·Line:·11 | 19 | //·Line:·11 |
| 7 | using·System.IO; | 20 | using·System.IO; |
| 8 | class·E | 21 | class·E |
| 9 | { | 22 | { |
| Offset 17, 23 lines modified | Offset 31, 9 lines modified | ||
| 17 | ····} | 31 | ····} |
| 18 | ···· | 32 | ···· |
| 19 | ····void·Init·(out·MemoryStream·val) | 33 | ····void·Init·(out·MemoryStream·val) |
| 20 | ····{ | 34 | ····{ |
| 21 | » val·=·null; | 35 | » val·=·null; |
| 22 | ····} | 36 | ····} |
| 23 | }</string> | 37 | }</string> |
| 24 | ····<string>//·CS1657:·Cannot·pass·`i'·as·a·ref·or·out·argument·because·it·is·a·`foreach·iteration·variable' | ||
| 25 | //·Line:·9 | ||
| 26 | class·E | ||
| 27 | { | ||
| 28 | ····public·E·(int[]·args) | ||
| 29 | ····{ | ||
| 30 | ········foreach·(int·i·in·args) | ||
| 31 | ············Init·(ref·i); | ||
| 32 | ····} | ||
| 33 | ···· | ||
| 34 | ····void·Init·(ref·int·val)·{} | ||
| 35 | ······· | ||
| 36 | }</string> | ||
| 37 | ··</Examples> | 38 | ··</Examples> |
| 38 | </ErrorDocumentation> | 39 | </ErrorDocumentation> |
| Offset 1, 22 lines modified | Offset 1, 11 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1660</ErrorName> | 3 | ··<ErrorName>CS1660</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1660:·Cannot·convert·`anonymous·method'·to·non-delegate·type·`int' | ||
| 6 | //·Line:·9 | ||
| 7 | using·System; | ||
| 8 | class·X·{ | ||
| 9 | » static·void·Main·() | ||
| 10 | » { | ||
| 11 | » » int·o·=·delegate·{}; | ||
| 12 | » } | ||
| 13 | }</string> | ||
| 14 | ····<string>//·CS1660:·Cannot·convert·`anonymous·method'·to·non-delegate·type·`object' | 5 | ····<string>//·CS1660:·Cannot·convert·`anonymous·method'·to·non-delegate·type·`object' |
| 15 | //·Line:·9 | 6 | //·Line:·9 |
| 16 | using·System; | 7 | using·System; |
| 17 | class·X·{ | 8 | class·X·{ |
| 18 | » static·void·Main·() | 9 | » static·void·Main·() |
| Offset 41, 9 lines modified | Offset 30, 20 lines modified | ||
| 41 | class·X·{ | 30 | class·X·{ |
| 42 | » static·void·Main·() | 31 | » static·void·Main·() |
| 43 | » { | 32 | » { |
| 44 | » » object·o·=·()·=>·true; | 33 | » » object·o·=·()·=>·true; |
| 45 | » } | 34 | » } |
| 46 | }</string> | 35 | }</string> |
| 36 | ····<string>//·CS1660:·Cannot·convert·`anonymous·method'·to·non-delegate·type·`int' | ||
| 37 | //·Line:·9 | ||
| 38 | using·System; | ||
| 39 | class·X·{ | ||
| 40 | » static·void·Main·() | ||
| 41 | » { | ||
| 42 | » » int·o·=·delegate·{}; | ||
| 43 | » } | ||
| 44 | }</string> | ||
| 47 | ··</Examples> | 45 | ··</Examples> |
| 48 | </ErrorDocumentation> | 46 | </ErrorDocumentation> |
| Offset 1, 34 lines modified | Offset 1, 34 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1661</ErrorName> | 3 | ··<ErrorName>CS1661</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1661:·Cannot·convert·`anonymous·method'·to·delegate·type·`D'·since·there·is·a·parameter·mismatch | ||
| 6 | //·Line:·9 | ||
| 7 | delegate·void·D·(int·x); | ||
| 8 | class·X·{ | ||
| 9 | » static·void·Main·() | ||
| 10 | » { | ||
| 11 | » » D·d2·=·delegate·(ref·int·x)·{}; | ||
| 12 | » } | ||
| 13 | }</string> | ||
| 14 | ····<string>//·CS1661:·Cannot·convert·`lambda·expression'·to·delegate·type·`C.WithOutParam'·since·there·is·a·parameter·mismatch | 5 | ····<string>//·CS1661:·Cannot·convert·`lambda·expression'·to·delegate·type·`C.WithOutParam'·since·there·is·a·parameter·mismatch |
| 15 | //·Line:·10 | 6 | //·Line:·10 |
| 16 | class·C | 7 | class·C |
| 17 | { | 8 | { |
| 18 | » delegate·void·WithOutParam·(out·string·value); | 9 | » delegate·void·WithOutParam·(out·string·value); |
| 19 | » static·void·Main()· | 10 | » static·void·Main()· |
| 20 | » { | 11 | » { |
| 21 | » » WithOutParam·o·=·(string·l)·=>·{·return;·}; | 12 | » » WithOutParam·o·=·(string·l)·=>·{·return;·}; |
| 22 | » } | 13 | » } |
| 23 | }</string> | 14 | }</string> |
| 15 | ····<string>//·CS1661:·Cannot·convert·`anonymous·method'·to·delegate·type·`D'·since·there·is·a·parameter·mismatch | ||
| 16 | //·Line:·9 | ||
| 17 | delegate·void·D·(int·x); | ||
| 18 | class·X·{ | ||
| 19 | » static·void·Main·() | ||
| 20 | » { | ||
| 21 | » » D·d2·=·delegate·(ref·int·x)·{}; | ||
| 22 | » } | ||
| 23 | }</string> | ||
| 24 | ····<string>//·CS1661:·Cannot·convert·`anonymous·method'·to·delegate·type·`System.Predicate<T>'·since·there·is·a·parameter·mismatch | 24 | ····<string>//·CS1661:·Cannot·convert·`anonymous·method'·to·delegate·type·`System.Predicate<T>'·since·there·is·a·parameter·mismatch |
| 25 | //·Line:·8 | 25 | //·Line:·8 |
| 26 | class·Test<T> | 26 | class·Test<T> |
| 27 | { | 27 | { |
| 28 | » void·test·(Test<T>·t,·System.Predicate<T>·p) | 28 | » void·test·(Test<T>·t,·System.Predicate<T>·p) |
| 29 | » { | 29 | » { |
| Offset 1, 50 lines modified | Offset 1, 51 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1667</ErrorName> | 3 | ··<ErrorName>CS1667</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·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 | 5 | ····<string>//·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 |
| 6 | //·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 | 6 | //·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 |
| 7 | //·Line:· | 7 | //·Line:·8 |
| 8 | using·System; | 8 | using·System; |
| 9 | using·System.Diagnostics; | ||
| 9 | public·interface·X·{ | ||
| 10 | ··[method:CLSCompliant·(false)] | ||
| 11 | ··event·EventHandler·XEvent; | ||
| 10 | class·Class1· | ||
| 11 | { | ||
| 12 | ········public·event·ResolveEventHandler·G·{ | ||
| 13 | ············[CLSCompliant(false)] | ||
| 14 | ············add·{} | ||
| 15 | ············remove·{} | ||
| 16 | » } | ||
| 17 | }</string> | 12 | }</string> |
| 18 | ····<string>//·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 | 13 | ····<string>//·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 |
| 19 | //·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 | 14 | //·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 |
| 20 | //·Line:· | 15 | //·Line:·15 |
| 21 | 16 | class·Test·{ | |
| 17 | ········public·static·bool·Error·{ | ||
| 18 | ············[System.CLSCompliant·(true)]·get·{ | ||
| 19 | ················return·false; | ||
| 20 | ············} | ||
| 21 | ········} | ||
| 22 | } | ||
| 22 | public·interface·X·{ | ||
| 23 | ··[method:CLSCompliant·(false)] | ||
| 24 | 23 | class·MainClass·{ | |
| 24 | ········public·static·void·Main·()·{ | ||
| 25 | ················System.Console.WriteLine·(Test.Error); | ||
| 26 | ········} | ||
| 25 | }</string> | 27 | }</string> |
| 26 | ····<string>//·CS1667:·Attribute·`System.Diagnostics.ConditionalAttribute'·is·not·valid·on·property·or·event·accessors.·It·is·valid·on·`method'·declarations·only | ||
| 27 | 28 | ····<string>//·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 | |
| 29 | //·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 | ||
| 28 | //·Line:·11 | 30 | //·Line:·11 |
| 29 | using·System; | 31 | using·System; |
| 30 | using·System.Diagnostics; | 32 | using·System.Diagnostics; |
| 31 | class·Class1· | 33 | class·Class1· |
| 32 | { | 34 | { |
| 35 | ········public·event·ResolveEventHandler·G·{ | ||
| 36 | ············[CLSCompliant(false)] | ||
| 33 | ········public·int·G·{ | ||
| 34 | ············[Conditional("DEBUG")] | ||
| 35 | ············get·{ | ||
| 36 | ····················return·1; | ||
| 37 | ············} | 37 | ············add·{} |
| 38 | ············remove·{} | ||
| 38 | » } | 39 | » } |
| 39 | }</string> | 40 | }</string> |
| 40 | ····<string>//·CS1667:·Attribute·`System.ObsoleteAttribute'·is·not·valid·on·property·or·event·accessors.·It·is·valid·on·`class,·struct,·enum,·constructor,·method,·property,·indexer,·field,·event,·interface,·delegate'·declarations·only | 41 | ····<string>//·CS1667:·Attribute·`System.ObsoleteAttribute'·is·not·valid·on·property·or·event·accessors.·It·is·valid·on·`class,·struct,·enum,·constructor,·method,·property,·indexer,·field,·event,·interface,·delegate'·declarations·only |
| 41 | //·Line:·14 | 42 | //·Line:·14 |
| 42 | class·Test·{ | 43 | class·Test·{ |
| 43 | ········public·static·bool·Error·{ | 44 | ········public·static·bool·Error·{ |
| Offset 54, 26 lines modified | Offset 55, 25 lines modified | ||
| 54 | } | 55 | } |
| 55 | class·MainClass·{ | 56 | class·MainClass·{ |
| 56 | ········public·static·void·Main·()·{ | 57 | ········public·static·void·Main·()·{ |
| 57 | ················Test.Error·=·false; | 58 | ················Test.Error·=·false; |
| 58 | ········} | 59 | ········} |
| 59 | }</string> | 60 | }</string> |
| 60 | ····<string>//·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 | ||
| 61 | 61 | ····<string>//·CS1667:·Attribute·`System.Diagnostics.ConditionalAttribute'·is·not·valid·on·property·or·event·accessors.·It·is·valid·on·`method'·declarations·only | |
| 62 | //·GMCS1667:·Attribute·`System.Diagnostics.ConditionalAttribute'·is·not·valid·on·property·or·event·accessors.·It·is·valid·on·`class,·method'·declarations·only | ||
| 62 | //·Line:·1 | 63 | //·Line:·11 |
| 64 | using·System; | ||
| 65 | using·System.Diagnostics; | ||
| 63 | class·Test·{ | ||
| 64 | ········public·static·bool·Error·{ | ||
| 65 | ············[System.CLSCompliant·(true)]·get·{ | ||
| 66 | ················return·false; | ||
| 67 | ············} | ||
| 68 | ········} | ||
| 69 | } | ||
| 70 | class· | 66 | class·Class1· |
| 71 | ········public·static·void·Main·()·{ | ||
| 72 | 67 | { | |
| 68 | ········public·int·G·{ | ||
| 69 | ············[Conditional("DEBUG")] | ||
| 70 | ············get·{ | ||
| 71 | ····················return·1; | ||
| 73 | ········} | 72 | ············} |
| 73 | » } | ||
| 74 | }</string> | 74 | }</string> |
| 75 | ··</Examples> | 75 | ··</Examples> |
| 76 | </ErrorDocumentation> | 76 | </ErrorDocumentation> |
| Offset 1, 19 lines modified | Offset 1, 12 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1669</ErrorName> | 3 | ··<ErrorName>CS1669</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1669:·__arglist·is·not·valid·in·this·context | 5 | ····<string>//·CS1669:·__arglist·is·not·valid·in·this·context |
| 6 | //·Line:·6 | ||
| 7 | public·class·E | ||
| 8 | { | ||
| 9 | ····int·this·[__arglist]·{·get·{·return·1;·}·} | ||
| 10 | }</string> | ||
| 11 | ····<string>//·CS1669:·__arglist·is·not·valid·in·this·context | ||
| 12 | //·Line:·10 | 6 | //·Line:·10 |
| 13 | delegate·object·D·(object·o); | 7 | delegate·object·D·(object·o); |
| 14 | class·C | 8 | class·C |
| 15 | { | 9 | { |
| 16 | ···public·void·Test·() | 10 | ···public·void·Test·() |
| Offset 33, 9 lines modified | Offset 26, 16 lines modified | ||
| 33 | » » return·null; | 26 | » » return·null; |
| 34 | » } | 27 | » } |
| 35 | }</string> | 28 | }</string> |
| 36 | ····<string>//·CS1669:·__arglist·is·not·valid·in·this·context | 29 | ····<string>//·CS1669:·__arglist·is·not·valid·in·this·context |
| 37 | //·Line:·4 | 30 | //·Line:·4 |
| 38 | delegate·void·F·(__arglist);</string> | 31 | delegate·void·F·(__arglist);</string> |
| 32 | ····<string>//·CS1669:·__arglist·is·not·valid·in·this·context | ||
| 33 | //·Line:·6 | ||
| 34 | public·class·E | ||
| 35 | { | ||
| 36 | ····int·this·[__arglist]·{·get·{·return·1;·}·} | ||
| 37 | }</string> | ||
| 39 | ··</Examples> | 38 | ··</Examples> |
| 40 | </ErrorDocumentation> | 39 | </ErrorDocumentation> |
| Offset 1, 32 lines modified | Offset 1, 12 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1671</ErrorName> | 3 | ··<ErrorName>CS1671</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1671:·A·namespace·declaration·cannot·have·modifiers·or·attributes | 5 | ····<string>//·CS1671:·A·namespace·declaration·cannot·have·modifiers·or·attributes |
| 6 | //·Line·:·14 | ||
| 7 | using·System; | ||
| 8 | [assembly:·CLSCompliant·(false)] | ||
| 9 | namespace·N | ||
| 10 | { | ||
| 11 | } | ||
| 12 | [assembly:·Obsolete] | ||
| 13 | namespace·M | ||
| 14 | { | ||
| 15 | } | ||
| 16 | public·class·C·{ | ||
| 17 | ····public·static·void·Main·()·{} | ||
| 18 | }</string> | ||
| 19 | ····<string>//·CS1671:·A·namespace·declaration·cannot·have·modifiers·or·attributes | ||
| 20 | //·Line:·5 | 6 | //·Line:·5 |
| 21 | using·System; | 7 | using·System; |
| 22 | [error_1518(11)] | 8 | [error_1518(11)] |
| 23 | namespace·Mono.Tests | 9 | namespace·Mono.Tests |
| 24 | { | 10 | { |
| 25 | » [AttributeUsage(AttributeTargets.All)] | 11 | » [AttributeUsage(AttributeTargets.All)] |
| Offset 52, 9 lines modified | Offset 32, 29 lines modified | ||
| 52 | » public·class·error_1518Class | 32 | » public·class·error_1518Class |
| 53 | » { | 33 | » { |
| 54 | » » public·error_1518Class() | 34 | » » public·error_1518Class() |
| 55 | » » { | 35 | » » { |
| 56 | » » } | 36 | » » } |
| 57 | » } | 37 | » } |
| 58 | }</string> | 38 | }</string> |
| 39 | ····<string>//·CS1671:·A·namespace·declaration·cannot·have·modifiers·or·attributes | ||
| 40 | //·Line·:·14 | ||
| 41 | using·System; | ||
| 42 | [assembly:·CLSCompliant·(false)] | ||
| 43 | namespace·N | ||
| 44 | { | ||
| 45 | } | ||
| 46 | [assembly:·Obsolete] | ||
| 47 | namespace·M | ||
| 48 | { | ||
| 49 | } | ||
| 50 | public·class·C·{ | ||
| 51 | ····public·static·void·Main·()·{} | ||
| 52 | }</string> | ||
| 59 | ··</Examples> | 53 | ··</Examples> |
| 60 | </ErrorDocumentation> | 54 | </ErrorDocumentation> |
| Offset 1, 33 lines modified | Offset 1, 12 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1673</ErrorName> | 3 | ··<ErrorName>CS1673</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1673:·Anonymous·methods·inside·structs·cannot·access·instance·members·of·`this'.·Consider·copying·`this'·to·a·local·variable·outside·the·anonymous·method·and·using·the·local·instead | 5 | ····<string>//·CS1673:·Anonymous·methods·inside·structs·cannot·access·instance·members·of·`this'.·Consider·copying·`this'·to·a·local·variable·outside·the·anonymous·method·and·using·the·local·instead |
| 6 | //·Line:· | ||
| 7 | using·System; | ||
| 8 | struct·S·{ | ||
| 9 | » delegate·void·T·(); | ||
| 10 | » int·f; | ||
| 11 | » public·int·Test·() | ||
| 12 | » { | ||
| 13 | » » T·t·=·delegate·{ | ||
| 14 | » » » f·=·1; | ||
| 15 | » » }; | ||
| 16 | » » return·0; | ||
| 17 | » } | ||
| 18 | » | ||
| 19 | » static·void·Main·() | ||
| 20 | » { | ||
| 21 | » } | ||
| 22 | }</string> | ||
| 23 | ····<string>//·CS1673:·Anonymous·methods·inside·structs·cannot·access·instance·members·of·`this'.·Consider·copying·`this'·to·a·local·variable·outside·the·anonymous·method·and·using·the·local·instead | ||
| 24 | //·Line:·19 | 6 | //·Line:·19 |
| 25 | using·System; | 7 | using·System; |
| 26 | public·delegate·void·Hello·(); | 8 | public·delegate·void·Hello·(); |
| 27 | struct·Foo | 9 | struct·Foo |
| 28 | { | 10 | { |
| Offset 62, 9 lines modified | Offset 41, 30 lines modified | ||
| 62 | { | 41 | { |
| 63 | » static·void·Main·() | 42 | » static·void·Main·() |
| 64 | » { | 43 | » { |
| 65 | » » Foo·foo·=·new·Foo·(3); | 44 | » » Foo·foo·=·new·Foo·(3); |
| 66 | » » foo.Test·(new·Foo·(8)); | 45 | » » foo.Test·(new·Foo·(8)); |
| 67 | » } | 46 | » } |
| 68 | }</string> | 47 | }</string> |
| 48 | ····<string>//·CS1673:·Anonymous·methods·inside·structs·cannot·access·instance·members·of·`this'.·Consider·copying·`this'·to·a·local·variable·outside·the·anonymous·method·and·using·the·local·instead | ||
| 49 | //·Line:· | ||
| 50 | using·System; | ||
| 51 | struct·S·{ | ||
| 52 | » delegate·void·T·(); | ||
| 53 | » int·f; | ||
| 54 | » public·int·Test·() | ||
| 55 | » { | ||
| 56 | » » T·t·=·delegate·{ | ||
| 57 | » » » f·=·1; | ||
| 58 | » » }; | ||
| 59 | » » return·0; | ||
| 60 | » } | ||
| 61 | » | ||
| 62 | » static·void·Main·() | ||
| 63 | » { | ||
| 64 | » } | ||
| 65 | }</string> | ||
| 69 | ··</Examples> | 66 | ··</Examples> |
| 70 | </ErrorDocumentation> | 67 | </ErrorDocumentation> |
| Offset 1, 11 lines modified | Offset 1, 37 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1674</ErrorName> | 3 | ··<ErrorName>CS1674</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1674:·`object':·type·used·in·a·using·statement·must·be·implicitly·convertible·to·`System.IDisposable' | ||
| 6 | //·Line:·10 | ||
| 7 | using·System; | ||
| 8 | class·C | ||
| 9 | { | ||
| 10 | » void·Method·(IDisposable·i) | ||
| 11 | » { | ||
| 12 | » » using·(object·o·=·i) | ||
| 13 | » » { | ||
| 14 | » » } | ||
| 15 | ····} | ||
| 16 | }</string> | ||
| 17 | ····<string>//·CS1674:·`int':·type·used·in·a·using·statement·must·be·implicitly·convertible·to·`System.IDisposable' | ||
| 18 | //·Line:·8 | ||
| 19 | class·C | ||
| 20 | { | ||
| 21 | ····void·Method·(int·arg) | ||
| 22 | ····{ | ||
| 23 | » using·(arg) | ||
| 24 | » { | ||
| 25 | » } | ||
| 26 | ····} | ||
| 27 | }</string> | ||
| 5 | ····<string>//·CS1674:·`NoIDispose':·type·used·in·a·using·statement·must·be·implicitly·convertible·to·`System.IDisposable' | 28 | ····<string>//·CS1674:·`NoIDispose':·type·used·in·a·using·statement·must·be·implicitly·convertible·to·`System.IDisposable' |
| 6 | //·Line:·27 | 29 | //·Line:·27 |
| 7 | using·System; | 30 | using·System; |
| 8 | class·MyDispose·:·IDisposable·{ | 31 | class·MyDispose·:·IDisposable·{ |
| 9 | » public·bool·disposed; | 32 | » public·bool·disposed; |
| Offset 39, 48 lines modified | Offset 65, 22 lines modified | ||
| 39 | » { | 65 | » { |
| 40 | » » using·(NoIDispose·a·=·new·NoIDispose·()){ | 66 | » » using·(NoIDispose·a·=·new·NoIDispose·()){ |
| 41 | » » } | 67 | » » } |
| 42 | » } | 68 | » } |
| 43 | » | 69 | » |
| 44 | }</string> | 70 | }</string> |
| 45 | ····<string>//·CS1674:·`int':·type·used·in·a·using·statement·must·be·implicitly·convertible·to·`System.IDisposable' | 71 | ····<string>//·CS1674:·`int':·type·used·in·a·using·statement·must·be·implicitly·convertible·to·`System.IDisposable' |
| 46 | //·Line:·8 | ||
| 47 | class·C | ||
| 48 | { | ||
| 49 | ····void·Method·(int·arg) | ||
| 50 | ····{ | ||
| 51 | » using·(arg) | ||
| 52 | » { | ||
| 53 | » } | ||
| 54 | ····} | ||
| 55 | }</string> | ||
| 56 | ····<string>//·CS1674:·`int':·type·used·in·a·using·statement·must·be·implicitly·convertible·to·`System.IDisposable' | ||
| 57 | //·Line:·10 | 72 | //·Line:·10 |
| 58 | using·System; | 73 | using·System; |
| 59 | class·C | 74 | class·C |
| 60 | { | 75 | { |
| 61 | » void·Method·(IDisposable·i) | 76 | » void·Method·(IDisposable·i) |
| 62 | » { | 77 | » { |
| 63 | » » using·(int·o·=·1,·b·=·2) | 78 | » » using·(int·o·=·1,·b·=·2) |
| 64 | » » { | 79 | » » { |
| 65 | » » } | 80 | » » } |
| 66 | » } | 81 | » } |
| 67 | }</string> | 82 | }</string> |
| 68 | ····<string>//·CS1674:·`object':·type·used·in·a·using·statement·must·be·implicitly·convertible·to·`System.IDisposable' | ||
| 69 | //·Line:·10 | ||
| 70 | using·System; | ||
| 71 | class·C | ||
| 72 | { | ||
| 73 | » void·Method·(IDisposable·i) | ||
| 74 | » { | ||
| 75 | » » using·(object·o·=·i) | ||
| 76 | » » { | ||
| 77 | » » } | ||
| 78 | ····} | ||
| 79 | }</string> | ||
| 80 | ··</Examples> | 83 | ··</Examples> |
| 81 | </ErrorDocumentation> | 84 | </ErrorDocumentation> |
| Offset 1, 11 lines modified | Offset 1, 22 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1678</ErrorName> | 3 | ··<ErrorName>CS1678</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1678:·Parameter·`1'·is·declared·as·type·`long'·but·should·be·`int' | ||
| 6 | //·Line:·9 | ||
| 7 | delegate·void·D·(int·x); | ||
| 8 | class·X·{ | ||
| 9 | » static·void·Main·() | ||
| 10 | » { | ||
| 11 | » » D·d2·=·delegate·(long·x)·{}; | ||
| 12 | » } | ||
| 13 | }</string> | ||
| 5 | ····<string>//·CS1678:·Parameter·`1'·is·declared·as·type·`T'·but·should·be·`IStream<T>' | 14 | ····<string>//·CS1678:·Parameter·`1'·is·declared·as·type·`T'·but·should·be·`IStream<T>' |
| 6 | //·Line:·14 | 15 | //·Line:·14 |
| 7 | using·System; | 16 | using·System; |
| 8 | interface·IStream<T> | 17 | interface·IStream<T> |
| 9 | { | 18 | { |
| Offset 14, 20 lines modified | Offset 25, 9 lines modified | ||
| 14 | static·class·X | 25 | static·class·X |
| 15 | { | 26 | { |
| 16 | » public·static·IStream<U>·Select<T,·U>·(IStream<T>·stream,·Func<IStream<T>,·U>·selector) | 27 | » public·static·IStream<U>·Select<T,·U>·(IStream<T>·stream,·Func<IStream<T>,·U>·selector) |
| 17 | » { | 28 | » { |
| 18 | » » return·Select<T,·U>·(stream,·(T·_)·=>·selector(stream)); | 29 | » » return·Select<T,·U>·(stream,·(T·_)·=>·selector(stream)); |
| 19 | » } | 30 | » } |
| 20 | }</string> | 31 | }</string> |
| 21 | ····<string>//·CS1678:·Parameter·`1'·is·declared·as·type·`long'·but·should·be·`int' | ||
| 22 | //·Line:·9 | ||
| 23 | delegate·void·D·(int·x); | ||
| 24 | class·X·{ | ||
| 25 | » static·void·Main·() | ||
| 26 | » { | ||
| 27 | » » D·d2·=·delegate·(long·x)·{}; | ||
| 28 | » } | ||
| 29 | }</string> | ||
| 30 | ··</Examples> | 32 | ··</Examples> |
| 31 | </ErrorDocumentation> | 33 | </ErrorDocumentation> |
| Offset 1, 20 lines modified | Offset 1, 20 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1681</ErrorName> | 3 | ··<ErrorName>CS1681</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1681:·The·global·extern·alias·cannot·be·redefined | 5 | ····<string>//·CS1681:·The·global·extern·alias·cannot·be·redefined |
| 6 | //·Line:·0 | ||
| 7 | //·Compiler·options:·-r:global=CS1681-2-lib.dll</string> | ||
| 8 | ····<string>//·CS1681:·The·global·extern·alias·cannot·be·redefined | ||
| 9 | //·Line:·3 | 6 | //·Line:·3 |
| 10 | extern·alias·global; | 7 | extern·alias·global; |
| 11 | using·System; | 8 | using·System; |
| 12 | public·class·Test· | 9 | public·class·Test· |
| 13 | { | 10 | { |
| 14 | » static·void·Main·() | 11 | » static·void·Main·() |
| 15 | » { | 12 | » { |
| 16 | » } | 13 | » } |
| 17 | }</string> | 14 | }</string> |
| 15 | ····<string>//·CS1681:·The·global·extern·alias·cannot·be·redefined | ||
| 16 | //·Line:·0 | ||
| 17 | //·Compiler·options:·-r:global=CS1681-2-lib.dll</string> | ||
| 18 | ··</Examples> | 18 | ··</Examples> |
| 19 | </ErrorDocumentation> | 19 | </ErrorDocumentation> |
| Offset 1, 17 lines modified | Offset 1, 17 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1685</ErrorName> | 3 | ··<ErrorName>CS1685</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1685:·The·predefined·type·`System.Runtime.CompilerServices.ExtensionAttribute'·is·defined·multiple·times.·Using·definition·from·`mscorlib.dll' | ||
| 6 | //·Line:·0 | ||
| 7 | //·Compiler·options:·-warn:1·-warnaserror·-r:System.Core.dll·-r:CS1685-2-lib.dll</string> | ||
| 5 | ····<string>//·CS1685:·The·predefined·type·`System.Int32'·is·defined·multiple·times.·Using·definition·from·`mscorlib.dll' | 8 | ····<string>//·CS1685:·The·predefined·type·`System.Int32'·is·defined·multiple·times.·Using·definition·from·`mscorlib.dll' |
| 6 | //·Line:·0 | 9 | //·Line:·0 |
| 7 | //·Compiler·options:·-warn:1·-warnaserror | 10 | //·Compiler·options:·-warn:1·-warnaserror |
| 8 | namespace·System·{ | 11 | namespace·System·{ |
| 9 | » public·struct·Int32·{ | 12 | » public·struct·Int32·{ |
| 10 | » } | 13 | » } |
| 11 | }</string> | 14 | }</string> |
| 12 | ····<string>//·CS1685:·The·predefined·type·`System.Runtime.CompilerServices.ExtensionAttribute'·is·defined·multiple·times.·Using·definition·from·`mscorlib.dll' | ||
| 13 | //·Line:·0 | ||
| 14 | //·Compiler·options:·-warn:1·-warnaserror·-r:System.Core.dll·-r:CS1685-2-lib.dll</string> | ||
| 15 | ··</Examples> | 15 | ··</Examples> |
| 16 | </ErrorDocumentation> | 16 | </ErrorDocumentation> |
| Offset 1, 26 lines modified | Offset 1, 30 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1686</ErrorName> | 3 | ··<ErrorName>CS1686</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1686:·Local·variable·or·parameter·` | 5 | ····<string>//·CS1686:·Local·variable·or·parameter·`i'·cannot·have·their·address·taken·and·be·used·inside·an·anonymous·method,·lambda·expression·or·query·expression |
| 6 | //·Line:·1 | 6 | //·Line:·16 |
| 7 | //·Compiler·options:·-unsafe | 7 | //·Compiler·options:·-unsafe |
| 8 | class·X·{ | ||
| 8 | delegate·void· | 9 | » delegate·void·S·(); |
| 10 | » unsafe·void·M·() | ||
| 9 | unsafe·class·X·{ | ||
| 10 | » public·D·T·(int·a) | ||
| 11 | » { | 11 | » { |
| 12 | » » | 12 | » » int·i; |
| 13 | » » | 13 | » » int·*·j·; |
| 14 | » » S·s·=·delegate·{ | ||
| 15 | » » » i·=·1; | ||
| 14 | » » }; | 16 | » » }; |
| 17 | » » j·=·&i; | ||
| 15 | » » | ||
| 16 | » » int·*y·=·&a; | ||
| 17 | » } | 18 | » } |
| 19 | » static·void·Main·()·{} | ||
| 18 | }</string> | 20 | }</string> |
| 19 | ····<string>//·CS1686:·Local·variable·or·parameter·`a'·cannot·have·their·address·taken·and·be·used·inside·an·anonymous·method,·lambda·expression·or·query·expression | 21 | ····<string>//·CS1686:·Local·variable·or·parameter·`a'·cannot·have·their·address·taken·and·be·used·inside·an·anonymous·method,·lambda·expression·or·query·expression |
| 20 | //·Line:·11 | 22 | //·Line:·11 |
| 21 | //·Compiler·options:·-unsafe | 23 | //·Compiler·options:·-unsafe |
| 22 | delegate·void·D·(); | 24 | delegate·void·D·(); |
| Offset 30, 35 lines modified | Offset 34, 14 lines modified | ||
| 30 | » » int·*y·=·&a; | 34 | » » int·*y·=·&a; |
| 31 | » » | 35 | » » |
| 32 | » » return·delegate·{ | 36 | » » return·delegate·{ |
| 33 | » » » int·x·=·a; | 37 | » » » int·x·=·a; |
| 34 | » » }; | 38 | » » }; |
| 35 | » } | 39 | » } |
| 36 | }</string> | 40 | }</string> |
| 37 | ····<string>//·CS1686:·Local·variable·or·parameter·`str'·cannot·have·their·address·taken·and·be·used·inside·an·anonymous·method,·lambda·expression·or·query·expression | ||
| 38 | //·Line:·11 | ||
| 39 | //·Compiler·options:·-unsafe | ||
| 40 | using·System; | ||
| 41 | unsafe·struct·S | ||
| 42 | { | ||
| 43 | » public·fixed·int·i·[10]; | ||
| 44 | } | ||
| 45 | class·C | ||
| 46 | { | ||
| 47 | » static·void·Main·() | ||
| 48 | » { | ||
| 49 | » » unsafe·{ | ||
| 50 | » » » S·str; | ||
| 51 | » » » Func<int>·e·=·()·=>·str.i·[3]; | ||
| 52 | » » } | ||
| 53 | » } | ||
| 54 | }</string> | ||
| 55 | ····<string>//·CS1686:·Local·variable·or·parameter·`i'·cannot·have·their·address·taken·and·be·used·inside·an·anonymous·method,·lambda·expression·or·query·expression | 41 | ····<string>//·CS1686:·Local·variable·or·parameter·`i'·cannot·have·their·address·taken·and·be·used·inside·an·anonymous·method,·lambda·expression·or·query·expression |
| 56 | //·Line:·18 | 42 | //·Line:·18 |
| 57 | //·Compiler·options:·-unsafe | 43 | //·Compiler·options:·-unsafe |
| 58 | unsafe·struct·S | 44 | unsafe·struct·S |
| 59 | { | 45 | { |
| 60 | » public·int·i; | 46 | » public·int·i; |
| Offset 72, 33 lines modified | Offset 55, 29 lines modified | ||
| 72 | » { | 55 | » { |
| 73 | » » unsafe·{ | 56 | » » unsafe·{ |
| 74 | » » » S·str·=·new·S·(); | 57 | » » » S·str·=·new·S·(); |
| 75 | » » » D·d·=·delegate·{·return·&str.i;·}; | 58 | » » » D·d·=·delegate·{·return·&str.i;·}; |
| 76 | » » } | 59 | » » } |
| 77 | » } | 60 | » } |
| 78 | }</string> | 61 | }</string> |
| 79 | ····<string>//·CS1686:·Local·variable·or·parameter·` | 62 | ····<string>//·CS1686:·Local·variable·or·parameter·`a'·cannot·have·their·address·taken·and·be·used·inside·an·anonymous·method,·lambda·expression·or·query·expression |
| 80 | //·Line:·1 | 63 | //·Line:·11 |
| 81 | //·Compiler·options:·-unsafe | 64 | //·Compiler·options:·-unsafe |
| 82 | class·X·{ | ||
| 83 | 65 | delegate·void·D·(); | |
| 84 | 66 | unsafe·class·X·{ | |
| 67 | » public·D·T·(int·a) | ||
| 85 | » { | 68 | » { |
| 86 | » » | 69 | » » return·delegate·{ |
| 87 | » » int· | 70 | » » » int·x·=·a; |
| 88 | » » S·s·=·delegate·{ | ||
| 89 | » » » i·=·1; | ||
| 90 | » » }; | 71 | » » }; |
| 91 | » » | 72 | » » |
| 73 | » » int·*y·=·&a; | ||
| 92 | » } | 74 | » } |
| 93 | » static·void·Main·()·{} | ||
| 94 | }</string> | 75 | }</string> |
| 95 | ····<string>//·CS1686:·Local·variable·or·parameter·`a'·cannot·have·their·address·taken·and·be·used·inside·an·anonymous·method,·lambda·expression·or·query·expression | 76 | ····<string>//·CS1686:·Local·variable·or·parameter·`a'·cannot·have·their·address·taken·and·be·used·inside·an·anonymous·method,·lambda·expression·or·query·expression |
| 96 | //·Line:·11 | 77 | //·Line:·11 |
| 97 | //·Compiler·options:·-unsafe | 78 | //·Compiler·options:·-unsafe |
| 98 | delegate·void·D·(); | 79 | delegate·void·D·(); |
| Offset 109, 9 lines modified | Offset 88, 30 lines modified | ||
| 109 | » » » int·*x·=·&a; | 88 | » » » int·*x·=·&a; |
| 110 | » » }; | 89 | » » }; |
| 111 | » } | 90 | » } |
| 112 | » static·void·Main·() | 91 | » static·void·Main·() |
| 113 | » {·} | 92 | » {·} |
| 114 | }</string> | 93 | }</string> |
| 94 | ····<string>//·CS1686:·Local·variable·or·parameter·`str'·cannot·have·their·address·taken·and·be·used·inside·an·anonymous·method,·lambda·expression·or·query·expression | ||
| 95 | //·Line:·11 | ||
| 96 | //·Compiler·options:·-unsafe | ||
| 97 | using·System; | ||
| 98 | unsafe·struct·S | ||
| 99 | { | ||
| 100 | » public·fixed·int·i·[10]; | ||
| 101 | } | ||
| 102 | class·C | ||
| 103 | { | ||
| Max diff block lines reached; 23/3488 bytes (0.66%) of diff not shown. | |||
| Offset 1, 73 lines modified | Offset 1, 73 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1690</ErrorName> | 3 | ··<ErrorName>CS1690</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1690:·Cannot·call·methods,·properties,·or·indexers·on·`A.point'·because·it·is·a·value·type·member·of·a·marshal-by-reference·class | 5 | ····<string>//·CS1690:·Cannot·call·methods,·properties,·or·indexers·on·`A.point'·because·it·is·a·value·type·member·of·a·marshal-by-reference·class |
| 6 | //·Line:·2 | 6 | //·Line:·27 |
| 7 | //·Compiler·options:·-warn:1·-warnaserror | 7 | //·Compiler·options:·-warn:1·-warnaserror |
| 8 | using·System; | 8 | using·System; |
| 9 | public·struct· | 9 | public·struct·Coord· |
| 10 | { | 10 | { |
| 11 | ········public· | 11 | ········public·int·val;· |
| 12 | } | ||
| 13 | public·struct·Point·{ | ||
| 14 | » public·Coord·x; | ||
| 15 | » public·Coord·y; | ||
| 12 | } | 16 | } |
| 13 | public·class·A·:·MarshalByRefObject | 17 | public·class·A·:·MarshalByRefObject |
| 14 | { | 18 | { |
| 15 | ···public·Point·point·=·new·Point·(); | 19 | ···public·Point·point·=·new·Point·(); |
| 16 | } | 20 | } |
| 17 | public·class·Test | 21 | public·class·Test |
| 18 | { | 22 | { |
| 19 | ···public·static·void·Main·() | 23 | ···public·static·void·Main·() |
| 20 | ···{ | 24 | ···{ |
| 21 | ········A·a·=·new·A·(); | 25 | ········A·a·=·new·A·(); |
| 22 | ········ | 26 | ········Console.WriteLine·(a.point.x); |
| 23 | ···} | 27 | ···} |
| 24 | }</string> | 28 | }</string> |
| 25 | ····<string>//·CS1690:·Cannot·call·methods,·properties,·or·indexers·on·`A.point'·because·it·is·a·value·type·member·of·a·marshal-by-reference·class | 29 | ····<string>//·CS1690:·Cannot·call·methods,·properties,·or·indexers·on·`A.point'·because·it·is·a·value·type·member·of·a·marshal-by-reference·class |
| 26 | //·Line:·2 | 30 | //·Line:·22 |
| 27 | //·Compiler·options:·-warn:1·-warnaserror | 31 | //·Compiler·options:·-warn:1·-warnaserror |
| 28 | using·System; | 32 | using·System; |
| 29 | public·struct· | 33 | public·struct·Point |
| 30 | { | 34 | { |
| 35 | ········public·bool·Error·{·get·{·return·true;·}·} | ||
| 31 | ········public·int·val;· | ||
| 32 | } | ||
| 33 | public·struct·Point·{ | ||
| 34 | » public·Coord·x; | ||
| 35 | » public·Coord·y; | ||
| 36 | } | 36 | } |
| 37 | public·class·A·:·MarshalByRefObject | 37 | public·class·A·:·MarshalByRefObject |
| 38 | { | 38 | { |
| 39 | ···public·Point·point·=·new·Point·(); | 39 | ···public·Point·point·=·new·Point·(); |
| 40 | } | 40 | } |
| 41 | public·class·Test | 41 | public·class·Test |
| 42 | { | 42 | { |
| 43 | ···public·static·void·Main·() | 43 | ···public·static·void·Main·() |
| 44 | ···{ | 44 | ···{ |
| 45 | ········A·a·=·new·A·(); | 45 | ········A·a·=·new·A·(); |
| 46 | ········ | 46 | ········bool·b·=·a.point.Error; |
| 47 | ···} | 47 | ···} |
| 48 | }</string> | 48 | }</string> |
| 49 | ····<string>//·CS1690:·Cannot·call·methods,·properties,·or·indexers·on·`A.point'·because·it·is·a·value·type·member·of·a·marshal-by-reference·class | 49 | ····<string>//·CS1690:·Cannot·call·methods,·properties,·or·indexers·on·`A.point'·because·it·is·a·value·type·member·of·a·marshal-by-reference·class |
| 50 | //·Line:·27 | 50 | //·Line:·27 |
| 51 | //·Compiler·options:·-warn:1·-warnaserror | 51 | //·Compiler·options:·-warn:1·-warnaserror |
| 52 | using·System; | 52 | using·System; |
| 53 | public·struct·Coord· | 53 | public·struct·Coord· |
| 54 | { | 54 | { |
| 55 | ········public·i | 55 | ········public·void·Error·()·{} |
| 56 | } | 56 | } |
| 57 | public·struct·Point·{ | 57 | public·struct·Point·{ |
| 58 | » public·Coord·x; | 58 | » public·Coord·x; |
| 59 | » public·Coord·y; | 59 | » public·Coord·y; |
| 60 | } | 60 | } |
| Offset 77, 68 lines modified | Offset 77, 68 lines modified | ||
| 77 | } | 77 | } |
| 78 | public·class·Test | 78 | public·class·Test |
| 79 | { | 79 | { |
| 80 | ···public·static·void·Main·() | 80 | ···public·static·void·Main·() |
| 81 | ···{ | 81 | ···{ |
| 82 | ········A·a·=·new·A·(); | 82 | ········A·a·=·new·A·(); |
| 83 | ········a.point.x. | 83 | ········a.point.x.Error·(); |
| 84 | ···} | 84 | ···} |
| 85 | }</string> | 85 | }</string> |
| 86 | ····<string>//·CS1690:·Cannot·call·methods,·properties,·or·indexers·on·`A.point'·because·it·is·a·value·type·member·of·a·marshal-by-reference·class | 86 | ····<string>//·CS1690:·Cannot·call·methods,·properties,·or·indexers·on·`A.point'·because·it·is·a·value·type·member·of·a·marshal-by-reference·class |
| 87 | //·Line:·2 | 87 | //·Line:·27 |
| 88 | //·Compiler·options:·-warn:1·-warnaserror | 88 | //·Compiler·options:·-warn:1·-warnaserror |
| 89 | using·System; | 89 | using·System; |
| 90 | public·struct· | 90 | public·struct·Coord· |
| 91 | { | 91 | { |
| 92 | ········public· | 92 | ········public·int·val;· |
| 93 | } | ||
| 94 | public·struct·Point·{ | ||
| 95 | » public·Coord·x; | ||
| 96 | » public·Coord·y; | ||
| 93 | } | 97 | } |
| 94 | public·class·A·:·MarshalByRefObject | 98 | public·class·A·:·MarshalByRefObject |
| 95 | { | 99 | { |
| 96 | ···public·Point·point·=·new·Point·(); | 100 | ···public·Point·point·=·new·Point·(); |
| 97 | } | 101 | } |
| 98 | public·class·Test | 102 | public·class·Test |
| 99 | { | 103 | { |
| 100 | ···public·static·void·Main·() | 104 | ···public·static·void·Main·() |
| 101 | ···{ | 105 | ···{ |
| 102 | ········A·a·=·new·A·(); | 106 | ········A·a·=·new·A·(); |
| 103 | ········ | 107 | ········Console.WriteLine·(a.point.x.val); |
| 104 | ···} | 108 | ···} |
| 105 | }</string> | 109 | }</string> |
| 106 | ····<string>//·CS1690:·Cannot·call·methods,·properties,·or·indexers·on·`A.point'·because·it·is·a·value·type·member·of·a·marshal-by-reference·class | 110 | ····<string>//·CS1690:·Cannot·call·methods,·properties,·or·indexers·on·`A.point'·because·it·is·a·value·type·member·of·a·marshal-by-reference·class |
| 107 | //·Line:·2 | 111 | //·Line:·22 |
| 108 | //·Compiler·options:·-warn:1·-warnaserror | 112 | //·Compiler·options:·-warn:1·-warnaserror |
| 109 | using·System; | 113 | using·System; |
| 110 | public·struct· | 114 | public·struct·Point |
| 111 | { | 115 | { |
| Max diff block lines reached; 1345/4505 bytes (29.86%) of diff not shown. | |||
| Offset 7, 15 lines modified | Offset 7, 15 lines modified | ||
| 7 | //·Compiler·options:·-warnaserror | 7 | //·Compiler·options:·-warnaserror |
| 8 | #pragma·checksum·"foo.txt"·"{00000000-0000-0000·-0000-000000000000}"·""</string> | 8 | #pragma·checksum·"foo.txt"·"{00000000-0000-0000·-0000-000000000000}"·""</string> |
| 9 | ····<string>//·CS1695:·Invalid·#pragma·checksum·syntax.·Expected·"filename"·"{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}"·"XXXX..." | 9 | ····<string>//·CS1695:·Invalid·#pragma·checksum·syntax.·Expected·"filename"·"{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}"·"XXXX..." |
| 10 | //·Line:·5 | 10 | //·Line:·5 |
| 11 | //·Compiler·options:·-warnaserror | 11 | //·Compiler·options:·-warnaserror |
| 12 | #pragma·checksum·" | 12 | #pragma·checksum·""·ID</string> |
| 13 | ····<string>//·CS1695:·Invalid·#pragma·checksum·syntax.·Expected·"filename"·"{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}"·"XXXX..." | 13 | ····<string>//·CS1695:·Invalid·#pragma·checksum·syntax.·Expected·"filename"·"{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}"·"XXXX..." |
| 14 | //·Line:·5 | 14 | //·Line:·5 |
| 15 | //·Compiler·options:·-warnaserror | 15 | //·Compiler·options:·-warnaserror |
| 16 | #pragma·checksum·""· | 16 | #pragma·checksum·"foo.txt"·"{00000000-0000-0000-0000-000000000000}"·"M"</string> |
| 17 | ··</Examples> | 17 | ··</Examples> |
| 18 | </ErrorDocumentation> | 18 | </ErrorDocumentation> |
| Offset 1, 27 lines modified | Offset 1, 27 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1699</ErrorName> | 3 | ··<ErrorName>CS1699</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1699:·Use·compiler·option·` | 5 | ····<string>//·CS1699:·Use·compiler·option·`delaysign'·or·appropriate·project·settings·instead·of·`AssemblyDelaySign'·attribute |
| 6 | //·Line:·7 | 6 | //·Line:·7 |
| 7 | //·Compiler·options:·-warnaserror·-warn:4 | 7 | //·Compiler·options:·-warnaserror·-warn:4 |
| 8 | using·System.Reflection; | 8 | using·System.Reflection; |
| 9 | [assembly:Assembly | 9 | [assembly:AssemblyDelaySign·(true)]</string> |
| 10 | ····<string>//·CS1699:·Use·compiler·option·` | 10 | ····<string>//·CS1699:·Use·compiler·option·`keyfile'·or·appropriate·project·settings·instead·of·`AssemblyKeyFile'·attribute |
| 11 | //·Line:·7 | 11 | //·Line:·7 |
| 12 | //·Compiler·options:·-warnaserror·-warn:4 | 12 | //·Compiler·options:·-warnaserror·-warn:4 |
| 13 | using·System.Reflection; | 13 | using·System.Reflection; |
| 14 | [assembly:Assembly | 14 | [assembly:AssemblyKeyFile·("key.snk")]</string> |
| 15 | ····<string>//·CS1699:·Use·compiler·option·`key | 15 | ····<string>//·CS1699:·Use·compiler·option·`keycontainer'·or·appropriate·project·settings·instead·of·`AssemblyKeyNameAttribute'·attribute |
| 16 | //·Line:·7 | 16 | //·Line:·7 |
| 17 | //·Compiler·options:·-warnaserror·-warn:4 | 17 | //·Compiler·options:·-warnaserror·-warn:4 |
| 18 | using·System.Reflection; | 18 | using·System.Reflection; |
| 19 | [assembly:AssemblyKey | 19 | [assembly:AssemblyKeyNameAttribute·("container")]</string> |
| 20 | ··</Examples> | 20 | ··</Examples> |
| 21 | </ErrorDocumentation> | 21 | </ErrorDocumentation> |
| Offset 1, 65 lines modified | Offset 1, 65 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1706</ErrorName> | 3 | ··<ErrorName>CS1706</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1706:·Anonymous·methods·and·lambda·expressions·cannot·be·used·in·the·current·context | 5 | ····<string>//·CS1706:·Anonymous·methods·and·lambda·expressions·cannot·be·used·in·the·current·context |
| 6 | //·Line:·1 | 6 | //·Line:·14 |
| 7 | using·System; | ||
| 8 | 7 | public·delegate·void·Proc(); | |
| 9 | class· | 8 | public·class·AAttribute·:·System.Attribute |
| 10 | { | 9 | { |
| 11 | » public· | 10 | » public·AAttribute(Proc·p) |
| 11 | » {·} | ||
| 12 | } | 12 | } |
| 13 | public·class·Class | ||
| 13 | [MyAttr·(()·=>·1)] | ||
| 14 | class·C | ||
| 15 | { | 14 | { |
| 15 | » [A((object)delegate·{·return;·})] | ||
| 16 | » public·void·Foo() | ||
| 17 | » { | ||
| 18 | » } | ||
| 16 | }</string> | 19 | }</string> |
| 17 | ····<string>//·CS1706:·Anonymous·methods·and·lambda·expressions·cannot·be·used·in·the·current·context | 20 | ····<string>//·CS1706:·Anonymous·methods·and·lambda·expressions·cannot·be·used·in·the·current·context |
| 18 | //·Line:·13 | 21 | //·Line:·13 |
| 19 | using·System; | 22 | using·System; |
| 20 | delegate· | 23 | delegate·int·TestDelegate(); |
| 21 | class·MyAttr·:·Attribute | 24 | class·MyAttr·:·Attribute |
| 22 | { | 25 | { |
| 23 | 26 | » public·MyAttr·(TestDelegate·d)·{·} | |
| 24 | } | 27 | } |
| 25 | [MyAttr·( | 28 | [MyAttr·(()·=>·1)] |
| 26 | class·C | 29 | class·C |
| 27 | { | 30 | { |
| 28 | }</string> | 31 | }</string> |
| 29 | ····<string>//·CS1706:·Anonymous·methods·and·lambda·expressions·cannot·be·used·in·the·current·context | 32 | ····<string>//·CS1706:·Anonymous·methods·and·lambda·expressions·cannot·be·used·in·the·current·context |
| 30 | //·Line:·8 | 33 | //·Line:·8 |
| 31 | delegate·void·D·(); | 34 | delegate·void·D·(); |
| 32 | class·C | 35 | class·C |
| 33 | { | 36 | { |
| 34 | » const·object·c·=·new·D·(delegate·{}); | 37 | » const·object·c·=·new·D·(delegate·{}); |
| 35 | }</string> | 38 | }</string> |
| 36 | ····<string>//·CS1706:·Anonymous·methods·and·lambda·expressions·cannot·be·used·in·the·current·context | 39 | ····<string>//·CS1706:·Anonymous·methods·and·lambda·expressions·cannot·be·used·in·the·current·context |
| 37 | //·Line:·1 | 40 | //·Line:·13 |
| 38 | 41 | using·System; | |
| 39 | 42 | delegate·void·TestDelegate(); | |
| 43 | class·MyAttr·:·Attribute | ||
| 40 | { | 44 | { |
| 45 | ····public·MyAttr·(TestDelegate·d)·{·} | ||
| 41 | » public·AAttribute(Proc·p) | ||
| 42 | » {·} | ||
| 43 | } | 46 | } |
| 44 | 47 | [MyAttr·(delegate·{}·)] | |
| 48 | class·C | ||
| 45 | { | 49 | { |
| 46 | » [A((object)delegate·{·return;·})] | ||
| 47 | » public·void·Foo() | ||
| 48 | » { | ||
| 49 | » } | ||
| 50 | }</string> | 50 | }</string> |
| 51 | ··</Examples> | 51 | ··</Examples> |
| 52 | </ErrorDocumentation> | 52 | </ErrorDocumentation> |
| Offset 12, 14 lines modified | Offset 12, 24 lines modified | ||
| 12 | } | 12 | } |
| 13 | delegate·void·TestD·(); | 13 | delegate·void·TestD·(); |
| 14 | class·DerivedClass:·BaseClass·{ | 14 | class·DerivedClass:·BaseClass·{ |
| 15 | ········protected·override·event·TestD·Prop; | 15 | ········protected·override·event·TestD·Prop; |
| 16 | }</string> | 16 | }</string> |
| 17 | ····<string>//·CS1715:·`DerivedClass.Prop':·type·must·be·`bool'·to·match·overridden·member·`BaseClass.Prop' | ||
| 18 | //·Line:·9 | ||
| 19 | class·BaseClass·{ | ||
| 20 | ········protected·virtual·bool·Prop·{·set·{}·} | ||
| 21 | } | ||
| 22 | class·DerivedClass:·BaseClass·{ | ||
| 23 | ········protected·override·int·Prop·{·set·{}·} | ||
| 24 | }</string> | ||
| 17 | ····<string>//·CS1715:·`B.Foo':·type·must·be·`int'·to·match·overridden·member·`A.Foo' | 25 | ····<string>//·CS1715:·`B.Foo':·type·must·be·`int'·to·match·overridden·member·`A.Foo' |
| 18 | //·Line:·11 | 26 | //·Line:·11 |
| 19 | public·abstract·class·A | 27 | public·abstract·class·A |
| 20 | { | 28 | { |
| 21 | » public·abstract·ref·int·Foo·{·get;·} | 29 | » public·abstract·ref·int·Foo·{·get;·} |
| 22 | } | 30 | } |
| Offset 28, 19 lines modified | Offset 38, 9 lines modified | ||
| 28 | { | 38 | { |
| 29 | » public·override·ref·long·Foo·{ | 39 | » public·override·ref·long·Foo·{ |
| 30 | » » get·{ | 40 | » » get·{ |
| 31 | » » » throw·null; | 41 | » » » throw·null; |
| 32 | » » } | 42 | » » } |
| 33 | » } | 43 | » } |
| 34 | }</string> | 44 | }</string> |
| 35 | ····<string>//·CS1715:·`DerivedClass.Prop':·type·must·be·`bool'·to·match·overridden·member·`BaseClass.Prop' | ||
| 36 | //·Line:·9 | ||
| 37 | class·BaseClass·{ | ||
| 38 | ········protected·virtual·bool·Prop·{·set·{}·} | ||
| 39 | } | ||
| 40 | class·DerivedClass:·BaseClass·{ | ||
| 41 | ········protected·override·int·Prop·{·set·{}·} | ||
| 42 | }</string> | ||
| 43 | ··</Examples> | 45 | ··</Examples> |
| 44 | </ErrorDocumentation> | 46 | </ErrorDocumentation> |
| Offset 4, 19 lines modified | Offset 4, 17 lines modified | ||
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1717:·Assignment·made·to·same·variable;·did·you·mean·to·assign·something·else? | 5 | ····<string>//·CS1717:·Assignment·made·to·same·variable;·did·you·mean·to·assign·something·else? |
| 6 | //·Line:·9 | 6 | //·Line:·9 |
| 7 | //·Compiler·options:·-warnaserror·-warn:3 | 7 | //·Compiler·options:·-warnaserror·-warn:3 |
| 8 | class·A | 8 | class·A |
| 9 | {···· | 9 | {···· |
| 10 | ····public·A·(int·a) | ||
| 10 | ····int·i; | ||
| 11 | ···· | ||
| 12 | ····void·C·() | ||
| 13 | ····{ | 11 | ····{ |
| 14 | » | 12 | » a·=·a; |
| 15 | ····} | 13 | ····} |
| 16 | }</string> | 14 | }</string> |
| 17 | ····<string>//·CS1717:·Assignment·made·to·same·variable;·did·you·mean·to·assign·something·else? | 15 | ····<string>//·CS1717:·Assignment·made·to·same·variable;·did·you·mean·to·assign·something·else? |
| 18 | //·Line:·9 | 16 | //·Line:·9 |
| 19 | //·Compiler·options:·-warnaserror·-warn:3 | 17 | //·Compiler·options:·-warnaserror·-warn:3 |
| 20 | class·A | 18 | class·A |
| Offset 28, 39 lines modified | Offset 26, 41 lines modified | ||
| 28 | ····} | 26 | ····} |
| 29 | }</string> | 27 | }</string> |
| 30 | ····<string>//·CS1717:·Assignment·made·to·same·variable;·did·you·mean·to·assign·something·else? | 28 | ····<string>//·CS1717:·Assignment·made·to·same·variable;·did·you·mean·to·assign·something·else? |
| 31 | //·Line:·9 | 29 | //·Line:·9 |
| 32 | //·Compiler·options:·-warnaserror·-warn:3 | 30 | //·Compiler·options:·-warnaserror·-warn:3 |
| 33 | class·A | 31 | class·A |
| 34 | { | ||
| 35 | » public·A·() | ||
| 36 | » { | ||
| 37 | » » int·a·=·a·=·5; | ||
| 38 | 32 | {···· | |
| 33 | ····static·int·Value; | ||
| 34 | ···· | ||
| 35 | ····void·D·() | ||
| 36 | ····{ | ||
| 37 | » A.Value·=·Value; | ||
| 38 | ····} | ||
| 39 | }</string> | 39 | }</string> |
| 40 | ····<string>//·CS1717:·Assignment·made·to·same·variable;·did·you·mean·to·assign·something·else? | 40 | ····<string>//·CS1717:·Assignment·made·to·same·variable;·did·you·mean·to·assign·something·else? |
| 41 | //·Line:·9 | 41 | //·Line:·9 |
| 42 | //·Compiler·options:·-warnaserror·-warn:3 | 42 | //·Compiler·options:·-warnaserror·-warn:3 |
| 43 | class·A | 43 | class·A |
| 44 | {···· | 44 | {···· |
| 45 | ···· | 45 | ····int·i; |
| 46 | ···· | ||
| 47 | ····void·C·() | ||
| 46 | ····{ | 48 | ····{ |
| 47 | » | 49 | » i·=·i; |
| 48 | ····} | 50 | ····} |
| 49 | }</string> | 51 | }</string> |
| 50 | ····<string>//·CS1717:·Assignment·made·to·same·variable;·did·you·mean·to·assign·something·else? | 52 | ····<string>//·CS1717:·Assignment·made·to·same·variable;·did·you·mean·to·assign·something·else? |
| 51 | //·Line:·9 | 53 | //·Line:·9 |
| 52 | //·Compiler·options:·-warnaserror·-warn:3 | 54 | //·Compiler·options:·-warnaserror·-warn:3 |
| 53 | class·A | 55 | class·A |
| 56 | { | ||
| 57 | » public·A·() | ||
| 58 | » { | ||
| 59 | » » int·a·=·a·=·5; | ||
| 60 | » } | ||
| 54 | {···· | ||
| 55 | ····static·int·Value; | ||
| 56 | ···· | ||
| 57 | ····void·D·() | ||
| 58 | ····{ | ||
| 59 | » A.Value·=·Value; | ||
| 60 | ····} | ||
| 61 | }</string> | 61 | }</string> |
| 62 | ··</Examples> | 62 | ··</Examples> |
| 63 | </ErrorDocumentation> | 63 | </ErrorDocumentation> |
| Offset 6, 38 lines modified | Offset 6, 38 lines modified | ||
| 6 | //·Line:·11 | 6 | //·Line:·11 |
| 7 | //·Compiler·options:·-warnaserror·-warn:1 | 7 | //·Compiler·options:·-warnaserror·-warn:1 |
| 8 | using·System; | 8 | using·System; |
| 9 | public·class·Tester· | 9 | public·class·Tester· |
| 10 | { | 10 | { |
| 11 | ····public·static·void· | 11 | ····public·static·void·Foo·() |
| 12 | ····{ | 12 | ····{ |
| 13 | ········Console.WriteLine( | 13 | ········Console.WriteLine(default(Tester).ToString()); |
| 14 | ····} | 14 | ····} |
| 15 | }</string> | 15 | }</string> |
| 16 | ····<string>//·CS1720:·Expression·will·always·cause·a·`System.NullReferenceException' | 16 | ····<string>//·CS1720:·Expression·will·always·cause·a·`System.NullReferenceException' |
| 17 | //·Line:· | 17 | //·Line:·11 |
| 18 | //·Compiler·options:·-warnaserror·-warn:1 | 18 | //·Compiler·options:·-warnaserror·-warn:1 |
| 19 | using·System; | ||
| 19 | public·class·Tester· | 20 | public·class·Tester· |
| 20 | { | 21 | { |
| 21 | ····public·static·void· | 22 | ····public·static·void·Main() |
| 22 | ····{ | 23 | ····{ |
| 23 | ········st | 24 | ········Console.WriteLine(((object)null).ToString()); |
| 24 | ····} | 25 | ····} |
| 25 | }</string> | 26 | }</string> |
| 26 | ····<string>//·CS1720:·Expression·will·always·cause·a·`System.NullReferenceException' | 27 | ····<string>//·CS1720:·Expression·will·always·cause·a·`System.NullReferenceException' |
| 27 | //·Line:· | 28 | //·Line:·9 |
| 28 | //·Compiler·options:·-warnaserror·-warn:1 | 29 | //·Compiler·options:·-warnaserror·-warn:1 |
| 29 | using·System; | ||
| 30 | public·class·Tester· | 30 | public·class·Tester· |
| 31 | { | 31 | { |
| 32 | ····public·static·void· | 32 | ····public·static·void·GenericClass<T>(T·t)·where·T·:·class· |
| 33 | ····{ | 33 | ····{ |
| 34 | ········ | 34 | ········string·s·=·default(T).ToString(); |
| 35 | ····} | 35 | ····} |
| 36 | }</string> | 36 | }</string> |
| 37 | ··</Examples> | 37 | ··</Examples> |
| 38 | </ErrorDocumentation> | 38 | </ErrorDocumentation> |
| Offset 1, 43 lines modified | Offset 1, 43 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1725</ErrorName> | 3 | ··<ErrorName>CS1725</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1725:·Friend·assembly·reference·`main,· | 5 | ····<string>//·CS1725:·Friend·assembly·reference·`main,·Culture=neutral'·is·invalid.·InternalsVisibleTo·declarations·cannot·have·a·version,·culture·or·processor·architecture·specified |
| 6 | //·Line:·6 | 6 | //·Line:·6 |
| 7 | using·System.Runtime.CompilerServices; | 7 | using·System.Runtime.CompilerServices; |
| 8 | [assembly:·InternalsVisibleTo·("main,· | 8 | [assembly:·InternalsVisibleTo·("main,·Culture=neutral")] |
| 9 | class·A | 9 | class·A |
| 10 | { | 10 | { |
| 11 | » public·static·void·Main·() | 11 | » public·static·void·Main·() |
| 12 | » { | 12 | » { |
| 13 | » } | 13 | » } |
| 14 | }</string> | 14 | }</string> |
| 15 | ····<string>//·CS1725:·Friend·assembly·reference·`main,· | 15 | ····<string>//·CS1725:·Friend·assembly·reference·`main,·processorArchitecture=MSIL'·is·invalid.·InternalsVisibleTo·declarations·cannot·have·a·version,·culture·or·processor·architecture·specified |
| 16 | //·Line:·6 | 16 | //·Line:·6 |
| 17 | using·System.Runtime.CompilerServices; | 17 | using·System.Runtime.CompilerServices; |
| 18 | [assembly:·InternalsVisibleTo·("main,· | 18 | [assembly:·InternalsVisibleTo·("main,·processorArchitecture=MSIL")] |
| 19 | class·A | 19 | class·A |
| 20 | { | 20 | { |
| 21 | » public·static·void·Main·() | 21 | » public·static·void·Main·() |
| 22 | » { | 22 | » { |
| 23 | » } | 23 | » } |
| 24 | }</string> | 24 | }</string> |
| 25 | ····<string>//·CS1725:·Friend·assembly·reference·`main,· | 25 | ····<string>//·CS1725:·Friend·assembly·reference·`main,·Version=1.1.1.1'·is·invalid.·InternalsVisibleTo·declarations·cannot·have·a·version,·culture·or·processor·architecture·specified |
| 26 | //·Line:·6 | 26 | //·Line:·6 |
| 27 | using·System.Runtime.CompilerServices; | 27 | using·System.Runtime.CompilerServices; |
| 28 | [assembly:·InternalsVisibleTo·("main,· | 28 | [assembly:·InternalsVisibleTo·("main,·Version=1.1.1.1")] |
| 29 | class·A | 29 | class·A |
| 30 | { | 30 | { |
| 31 | » public·static·void·Main·() | 31 | » public·static·void·Main·() |
| 32 | » { | 32 | » { |
| 33 | » } | 33 | » } |
| 34 | }</string> | 34 | }</string> |
| Offset 1, 34 lines modified | Offset 1, 34 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1728</ErrorName> | 3 | ··<ErrorName>CS1728</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1728:·Cannot·create·delegate·from·method·` | 5 | ····<string>//·CS1728:·Cannot·create·delegate·from·method·`long?.GetValueOrDefault()'·because·it·is·a·member·of·System.Nullable<T>·type |
| 6 | //·Line:·1 | 6 | //·Line:·10 |
| 7 | using·System; | 7 | using·System; |
| 8 | class·C | 8 | class·C |
| 9 | { | 9 | { |
| 10 | » public·static·void·Main·() | ||
| 10 | » delegate·int·Test·(); | ||
| 11 | » event·Test·MyEvent; | ||
| 12 | » void·Error·() | ||
| 13 | » { | 11 | » { |
| 12 | » » Func<long>·a·=·new·long?().GetValueOrDefault; | ||
| 14 | » » int?·i·=·0; | ||
| 15 | » » MyEvent·+=·new·Test·(i.GetValueOrDefault); | ||
| 16 | » } | 13 | » } |
| 17 | }</string> | 14 | }</string> |
| 18 | ····<string>//·CS1728:·Cannot·create·delegate·from·method·` | 15 | ····<string>//·CS1728:·Cannot·create·delegate·from·method·`int?.GetValueOrDefault()'·because·it·is·a·member·of·System.Nullable<T>·type |
| 19 | //·Line:·1 | 16 | //·Line:·14 |
| 20 | using·System; | 17 | using·System; |
| 21 | class·C | 18 | class·C |
| 22 | { | 19 | { |
| 23 | » | 20 | » delegate·int·Test·(); |
| 21 | » event·Test·MyEvent; | ||
| 22 | » void·Error·() | ||
| 24 | » { | 23 | » { |
| 25 | » » | 24 | » » int?·i·=·0; |
| 25 | » » MyEvent·+=·new·Test·(i.GetValueOrDefault); | ||
| 26 | » } | 26 | » } |
| 27 | }</string> | 27 | }</string> |
| 28 | ··</Examples> | 28 | ··</Examples> |
| 29 | </ErrorDocumentation> | 29 | </ErrorDocumentation> |
| Offset 1, 123 lines modified | Offset 1, 110 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1729</ErrorName> | 3 | ··<ErrorName>CS1729</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1729:·The·type·`System.Runtime.CompilerServices.IndexerNameAttribute'·does·not·contain·a·constructor·that·takes·`4'·arguments | ||
| 6 | //·Line:·5 | ||
| 7 | class·MainClass·{ | ||
| 8 | ········[System.Runtime.CompilerServices.IndexerName("A",·"",·"",·"")] | ||
| 9 | ········int·this·[int·index]·{ | ||
| 10 | ················get·{ | ||
| 11 | ························return·0; | ||
| 12 | ················} | ||
| 13 | ········} | ||
| 14 | ···· | ||
| 15 | }</string> | ||
| 16 | ····<string>//·CS1729:·The·type·` | 5 | ····<string>//·CS1729:·The·type·`C'·does·not·contain·a·constructor·that·takes·`2'·arguments |
| 17 | //·Line:·1 | 6 | //·Line:·16 |
| 18 | 7 | class·C | |
| 19 | { | 8 | { |
| 20 | » public· | 9 | » public·C·(int·i) |
| 21 | » { | 10 | » { |
| 22 | » } | 11 | » } |
| 23 | } | 12 | } |
| 24 | class· | 13 | public·class·Blah |
| 25 | { | 14 | { |
| 26 | » public· | 15 | » public·static·void·Main·() |
| 27 | » { | 16 | » { |
| 28 | » » | 17 | » » dynamic·d·=·1; |
| 18 | » » var·r·=·new·C·(1,·d); | ||
| 29 | » } | 19 | » } |
| 30 | }</string> | 20 | }</string> |
| 31 | ····<string>//·CS1729:·The·type·` | 21 | ····<string>//·CS1729:··The·type·`System.CLSCompliantAttribute'·does·not·contain·a·constructor·that·takes·`0'·arguments |
| 32 | //·Line:· | 22 | //·Line:·6 |
| 33 | class·X·{ | ||
| 34 | 23 | using·System; | |
| 24 | [assembly:CLSCompliant()]</string> | ||
| 25 | ····<string>//·CS1729:·The·type·`int'·does·not·contain·a·constructor·that·takes·`1'·arguments | ||
| 26 | //·Line:·8 | ||
| 27 | class·C | ||
| 28 | { | ||
| 29 | » static·void·Main·() | ||
| 35 | » { | 30 | » { |
| 31 | » » int·i·=·new·int(1); | ||
| 36 | » } | 32 | » } |
| 37 | » | ||
| 38 | 33 | }</string> | |
| 34 | ····<string>//·CS1729:·The·type·`IgnoreAttribute'·does·not·contain·a·constructor·that·takes·`0'·arguments | ||
| 35 | //·Line:·14 | ||
| 36 | using·System; | ||
| 37 | public·class·IgnoreAttribute·:·Attribute·{ | ||
| 38 | ········public·IgnoreAttribute·(String·name)·{·} | ||
| 39 | } | ||
| 40 | class·C·{ | ||
| 41 | ········ | ||
| 42 | » [Ignore] | ||
| 43 | » public·void·Method·() | ||
| 39 | » { | 44 | » { |
| 40 | » » new·X·(); | ||
| 41 | » } | 45 | » } |
| 42 | }</string> | 46 | }</string> |
| 43 | ····<string>//·CS1729:·The·type·` | 47 | ····<string>//·CS1729:·The·type·`A.Foo'·does·not·contain·a·constructor·that·takes·`1'·arguments |
| 44 | //·Line:·1 | 48 | //·Line:·15 |
| 45 | 49 | public·class·A | |
| 46 | { | 50 | { |
| 47 | » public·class· | 51 | » public·class·Foo |
| 48 | » { | 52 | » { |
| 49 | » » public·static·void·Test·() | ||
| 50 | » » { | ||
| 51 | » » » new·ClassWithNonPublicConstructor·(); | ||
| 52 | » » } | ||
| 53 | » } | 53 | » } |
| 54 | } | ||
| 54 | 55 | class·Example | |
| 56 | { | ||
| 57 | » public·void·Main(string[]·args) | ||
| 55 | » { | 58 | » { |
| 59 | » » A·a·=·new·A.Foo·("test");·· | ||
| 56 | » » protected·ClassWithNonPublicConstructor·(int·p) | ||
| 57 | » » { | ||
| 58 | » » } | ||
| 59 | » } | 60 | » } |
| 60 | }</string> | 61 | }</string> |
| 61 | ····<string>//·CS1729:·The·type·`A'·does·not·contain·a·constructor·that·takes·`1'·arguments | 62 | ····<string>//·CS1729:·The·type·`A'·does·not·contain·a·constructor·that·takes·`1'·arguments |
| 62 | //·Line:·6 | 63 | //·Line:·6 |
| 63 | public·class·A·{ | 64 | public·class·A·{ |
| 64 | ····A[]·test·=·{ | 65 | ····A[]·test·=·{ |
| 65 | ········new·A("test") | 66 | ········new·A("test") |
| 66 | ····}; | 67 | ····}; |
| 67 | }</string> | 68 | }</string> |
| 68 | ····<string>//·CS1729:·The·type·`int'·does·not·contain·a·constructor·that·takes·` | 69 | ····<string>//·CS1729:·The·type·`System.Runtime.CompilerServices.IndexerNameAttribute'·does·not·contain·a·constructor·that·takes·`4'·arguments |
| 69 | //·Line:· | 70 | //·Line:·5 |
| 70 | class·C | ||
| 71 | { | ||
| 72 | » static·void·Main·() | ||
| 73 | » { | ||
| 74 | » » int·i·=·new·int(1); | ||
| 75 | 71 | class·MainClass·{ | |
| 72 | ········[System.Runtime.CompilerServices.IndexerName("A",·"",·"",·"")] | ||
| 73 | ········int·this·[int·index]·{ | ||
| 74 | ················get·{ | ||
| 75 | ························return·0; | ||
| 76 | ················} | ||
| 77 | ········} | ||
| 78 | ···· | ||
| 76 | }</string> | 79 | }</string> |
| 77 | ····<string>//·CS1729:·The·type·` | 80 | ····<string>//·CS1729:·The·type·`X'·does·not·contain·a·constructor·that·takes·`0'·arguments |
| 78 | //·Line:·1 | 81 | //·Line:·11 |
| 82 | class·X·{ | ||
| 83 | » X·(int·a) | ||
| 79 | class·C | ||
| 80 | { | ||
| 81 | » struct·S | ||
| Max diff block lines reached; 3077/6697 bytes (45.95%) of diff not shown. | |||
| Offset 1, 12 lines modified | Offset 1, 26 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1738</ErrorName> | 3 | ··<ErrorName>CS1738</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1738:·Named·arguments·must·appear·after·the·positional·arguments·when·using·language·version·older·than·7.2 | 5 | ····<string>//·CS1738:·Named·arguments·must·appear·after·the·positional·arguments·when·using·language·version·older·than·7.2 |
| 6 | //·Line:·12 | ||
| 7 | class·C | ||
| 8 | { | ||
| 9 | » static·void·Foo·(int·a,·string·s) | ||
| 10 | » { | ||
| 11 | » } | ||
| 12 | » | ||
| 13 | » public·static·void·Main·() | ||
| 14 | » { | ||
| 15 | » » Foo·(a·:·1,··"out"); | ||
| 16 | » } | ||
| 17 | }</string> | ||
| 18 | ····<string>//·CS1738:·Named·arguments·must·appear·after·the·positional·arguments·when·using·language·version·older·than·7.2 | ||
| 6 | //·Line:·13 | 19 | //·Line:·13 |
| 7 | using·System; | 20 | using·System; |
| 8 | class·MyAttribute·:·Attribute | 21 | class·MyAttribute·:·Attribute |
| 9 | { | 22 | { |
| 10 | » public·MyAttribute·(string·s,·int·value) | 23 | » public·MyAttribute·(string·s,·int·value) |
| Offset 30, 23 lines modified | Offset 44, 9 lines modified | ||
| 30 | » } | 44 | » } |
| 31 | » | 45 | » |
| 32 | » void·Test·() | 46 | » void·Test·() |
| 33 | » { | 47 | » { |
| 34 | » » var·r·=·this·[a·:·1,··"out"]; | 48 | » » var·r·=·this·[a·:·1,··"out"]; |
| 35 | » } | 49 | » } |
| 36 | }</string> | 50 | }</string> |
| 37 | ····<string>//·CS1738:·Named·arguments·must·appear·after·the·positional·arguments·when·using·language·version·older·than·7.2 | ||
| 38 | //·Line:·12 | ||
| 39 | class·C | ||
| 40 | { | ||
| 41 | » static·void·Foo·(int·a,·string·s) | ||
| 42 | » { | ||
| 43 | » } | ||
| 44 | » | ||
| 45 | » public·static·void·Main·() | ||
| 46 | » { | ||
| 47 | » » Foo·(a·:·1,··"out"); | ||
| 48 | » } | ||
| 49 | }</string> | ||
| 50 | ··</Examples> | 51 | ··</Examples> |
| 51 | </ErrorDocumentation> | 52 | </ErrorDocumentation> |
| Offset 1, 25 lines modified | Offset 1, 11 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1739</ErrorName> | 3 | ··<ErrorName>CS1739</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1739:·The·best·overloaded·method·match·for·`Program.M(int,·int,·int)'·does·not·contain·a·parameter·named·`whatever' | ||
| 6 | //·Line:·8 | ||
| 7 | public·class·Program | ||
| 8 | { | ||
| 9 | » public·static·void·Main·() | ||
| 10 | » { | ||
| 11 | » » M·(z:·1,·whatever:·0); | ||
| 12 | » } | ||
| 13 | » void·M·(int·x·=·0,·int·y·=·0,·int·z·=·0) | ||
| 14 | » { | ||
| 15 | » } | ||
| 16 | }</string> | ||
| 17 | ····<string>//·CS1739:·The·best·overloaded·method·match·for·`A.this[int]'·does·not·contain·a·parameter·named·`value' | 5 | ····<string>//·CS1739:·The·best·overloaded·method·match·for·`A.this[int]'·does·not·contain·a·parameter·named·`value' |
| 18 | //·Line:·17 | 6 | //·Line:·17 |
| 19 | class·A | 7 | class·A |
| 20 | { | 8 | { |
| 21 | » public·int·this·[int·id]·{ | 9 | » public·int·this·[int·id]·{ |
| 22 | » » set·{ | 10 | » » set·{ |
| Offset 31, 43 lines modified | Offset 17, 57 lines modified | ||
| 31 | { | 17 | { |
| 32 | » public·static·void·Main·() | 18 | » public·static·void·Main·() |
| 33 | » { | 19 | » { |
| 34 | » » A·a·=·new·A·(); | 20 | » » A·a·=·new·A·(); |
| 35 | » » a·[value:1]·=·9; | 21 | » » a·[value:1]·=·9; |
| 36 | » } | 22 | » } |
| 37 | }</string> | 23 | }</string> |
| 38 | ····<string>//·CS1739:·The·best·overloaded·method·match·for·` | 24 | ····<string>//·CS1739:·The·best·overloaded·method·match·for·`C.Foo(int,·int)'·does·not·contain·a·parameter·named·`b' |
| 39 | //·Line:·1 | 25 | //·Line:·12 |
| 40 | using·System; | ||
| 41 | class·C | 26 | class·C |
| 42 | { | 27 | { |
| 28 | » static·void·Foo·(int·x,·int·y) | ||
| 43 | » delegate·int·IntDelegate·(int·a); | ||
| 44 | » | ||
| 45 | » static·int·TestInt·(int·u) | ||
| 46 | » { | 29 | » { |
| 47 | » » return·29; | ||
| 48 | » } | 30 | » } |
| 49 | » | 31 | » |
| 50 | » public·static·void·Main·() | 32 | » public·static·void·Main·() |
| 51 | » { | 33 | » { |
| 34 | » » Foo·(1,·b·:·2); | ||
| 52 | » » var·del·=·new·IntDelegate·(TestInt); | ||
| 53 | » » del.DynamicInvoke·(b·:·7); | ||
| 54 | » } | 35 | » } |
| 55 | }</string> | 36 | }</string> |
| 56 | ····<string>//·CS1739:·The·best·overloaded·method·match·for·` | 37 | ····<string>//·CS1739:·The·best·overloaded·method·match·for·`Program.M(int,·int,·int)'·does·not·contain·a·parameter·named·`whatever' |
| 38 | //·Line:·8 | ||
| 39 | public·class·Program | ||
| 40 | { | ||
| 41 | » public·static·void·Main·() | ||
| 42 | » { | ||
| 43 | » » M·(z:·1,·whatever:·0); | ||
| 44 | » } | ||
| 45 | » void·M·(int·x·=·0,·int·y·=·0,·int·z·=·0) | ||
| 46 | » { | ||
| 47 | » } | ||
| 48 | }</string> | ||
| 49 | ····<string>//·CS1739:·The·best·overloaded·method·match·for·`System.Delegate.DynamicInvoke(params·object[])'·does·not·contain·a·parameter·named·`b' | ||
| 57 | //·Line:·1 | 50 | //·Line:·18 |
| 51 | using·System; | ||
| 58 | class·C | 52 | class·C |
| 59 | { | 53 | { |
| 60 | » | 54 | » delegate·int·IntDelegate·(int·a); |
| 55 | » | ||
| 56 | » static·int·TestInt·(int·u) | ||
| 61 | » { | 57 | » { |
| 58 | » » return·29; | ||
| 62 | » } | 59 | » } |
| 63 | » | 60 | » |
| 64 | » public·static·void·Main·() | 61 | » public·static·void·Main·() |
| 65 | » { | 62 | » { |
| 66 | » » | 63 | » » var·del·=·new·IntDelegate·(TestInt); |
| 64 | » » del.DynamicInvoke·(b·:·7); | ||
| 67 | » } | 65 | » } |
| 68 | }</string> | 66 | }</string> |
| 69 | ··</Examples> | 67 | ··</Examples> |
| 70 | </ErrorDocumentation> | 68 | </ErrorDocumentation> |
| Offset 1, 12 lines modified | Offset 1, 23 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1742</ErrorName> | 3 | ··<ErrorName>CS1742</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1742:·An·element·access·expression·cannot·use·named·argument | 5 | ····<string>//·CS1742:·An·element·access·expression·cannot·use·named·argument |
| 6 | //·Line:·9 | ||
| 7 | class·C | ||
| 8 | { | ||
| 9 | » public·static·void·Main·() | ||
| 10 | » { | ||
| 11 | » » int[]·o·=·new·int[5]; | ||
| 12 | » » o·[u:3]·=·9; | ||
| 13 | » } | ||
| 14 | }</string> | ||
| 15 | ····<string>//·CS1742:·An·element·access·expression·cannot·use·named·argument | ||
| 6 | //·Line:·13 | 16 | //·Line:·13 |
| 7 | //·Compiler·options:·-unsafe | 17 | //·Compiler·options:·-unsafe |
| 8 | using·System; | 18 | using·System; |
| 9 | unsafe·class·C | 19 | unsafe·class·C |
| 10 | { | 20 | { |
| Offset 14, 20 lines modified | Offset 25, 9 lines modified | ||
| 14 | » { | 25 | » { |
| 15 | » » int·*p·=·null; | 26 | » » int·*p·=·null; |
| 16 | » » if·(p·[value:10]·==·4) | 27 | » » if·(p·[value:10]·==·4) |
| 17 | » » » return; | 28 | » » » return; |
| 18 | » } | 29 | » } |
| 19 | }</string> | 30 | }</string> |
| 20 | ····<string>//·CS1742:·An·element·access·expression·cannot·use·named·argument | ||
| 21 | //·Line:·9 | ||
| 22 | class·C | ||
| 23 | { | ||
| 24 | » public·static·void·Main·() | ||
| 25 | » { | ||
| 26 | » » int[]·o·=·new·int[5]; | ||
| 27 | » » o·[u:3]·=·9; | ||
| 28 | » } | ||
| 29 | }</string> | ||
| 30 | ··</Examples> | 31 | ··</Examples> |
| 31 | </ErrorDocumentation> | 32 | </ErrorDocumentation> |
| Offset 1, 38 lines modified | Offset 1, 38 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1744</ErrorName> | 3 | ··<ErrorName>CS1744</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1744:·Named·argument·`a'·cannot·be·used·for·a·parameter·which·has·positional·argument·specified | 5 | ····<string>//·CS1744:·Named·argument·`a'·cannot·be·used·for·a·parameter·which·has·positional·argument·specified |
| 6 | //·Line:·1 | 6 | //·Line:·12 |
| 7 | static·class·C | 7 | static·class·C |
| 8 | { | 8 | { |
| 9 | » public·static· | 9 | » public·static·void·Test·(int·a,·int·b) |
| 10 | » { | 10 | » { |
| 11 | » » return·a·*·3·+·b; | ||
| 12 | » } | 11 | » } |
| 13 | » | 12 | » |
| 14 | » public·static·void·Main·() | 13 | » public·static·void·Main·() |
| 15 | » { | 14 | » { |
| 16 | » » | 15 | » » Test·(1,·a·:·2); |
| 17 | » } | 16 | » } |
| 18 | }</string> | 17 | }</string> |
| 19 | ····<string>//·CS1744:·Named·argument·`a'·cannot·be·used·for·a·parameter·which·has·positional·argument·specified | 18 | ····<string>//·CS1744:·Named·argument·`a'·cannot·be·used·for·a·parameter·which·has·positional·argument·specified |
| 20 | //·Line:·1 | 19 | //·Line:·13 |
| 21 | static·class·C | 20 | static·class·C |
| 22 | { | 21 | { |
| 23 | » public·static· | 22 | » public·static·int·Test·(this·int·a,·int·b) |
| 24 | » { | 23 | » { |
| 24 | » » return·a·*·3·+·b; | ||
| 25 | » } | 25 | » } |
| 26 | » | 26 | » |
| 27 | » public·static·void·Main·() | 27 | » public·static·void·Main·() |
| 28 | » { | 28 | » { |
| 29 | » » Test·( | 29 | » » 1.Test·(a·:·2); |
| 30 | » } | 30 | » } |
| 31 | }</string> | 31 | }</string> |
| 32 | ····<string>//·CS1744:·Named·argument·`p1'·cannot·be·used·for·a·parameter·which·has·positional·argument·specified | 32 | ····<string>//·CS1744:·Named·argument·`p1'·cannot·be·used·for·a·parameter·which·has·positional·argument·specified |
| 33 | //·Line:·8 | 33 | //·Line:·8 |
| 34 | internal·class·Program | 34 | internal·class·Program |
| 35 | { | 35 | { |
| Offset 1, 28 lines modified | Offset 1, 28 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1745</ErrorName> | 3 | ··<ErrorName>CS1745</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1745:·Cannot·specify·`System.Runtime.InteropServices. | 5 | ····<string>//·CS1745:·Cannot·specify·`System.Runtime.InteropServices.DefaultParameterValue'·attribute·on·optional·parameter·`u' |
| 6 | //·Line:·8 | 6 | //·Line:·8 |
| 7 | using·System.Runtime.InteropServices; | 7 | using·System.Runtime.InteropServices; |
| 8 | public·class·C | 8 | public·class·C |
| 9 | { | 9 | { |
| 10 | » public·static·void·Test·([ | 10 | » public·static·void·Test·([DefaultParameterValue·(1)]·int·u·=·2) |
| 11 | » { | 11 | » { |
| 12 | » } | 12 | » } |
| 13 | }</string> | 13 | }</string> |
| 14 | ····<string>//·CS1745:·Cannot·specify·`System.Runtime.InteropServices. | 14 | ····<string>//·CS1745:·Cannot·specify·`System.Runtime.InteropServices.Optional'·attribute·on·optional·parameter·`u' |
| 15 | //·Line:·8 | 15 | //·Line:·8 |
| 16 | using·System.Runtime.InteropServices; | 16 | using·System.Runtime.InteropServices; |
| 17 | public·class·C | 17 | public·class·C |
| 18 | { | 18 | { |
| 19 | » public·static·void·Test·([ | 19 | » public·static·void·Test·([Optional]·int·u·=·2) |
| 20 | » { | 20 | » { |
| 21 | » } | 21 | » } |
| 22 | }</string> | 22 | }</string> |
| 23 | ··</Examples> | 23 | ··</Examples> |
| 24 | </ErrorDocumentation> | 24 | </ErrorDocumentation> |
| Offset 1, 11 lines modified | Offset 1, 24 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1750</ErrorName> | 3 | ··<ErrorName>CS1750</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1750:·Optional·parameter·expression·of·type·`S'·cannot·be·converted·to·parameter·type·`C' | ||
| 6 | //·Line:·10 | ||
| 7 | struct·S | ||
| 8 | { | ||
| 9 | } | ||
| 10 | class·C | ||
| 11 | { | ||
| 12 | » public·static·void·Test·(C·c·=·new·S·()) | ||
| 13 | » { | ||
| 14 | » } | ||
| 15 | }</string> | ||
| 5 | ····<string>//·CS1750:·Optional·parameter·expression·of·type·`null'·cannot·be·converted·to·parameter·type·`A' | 16 | ····<string>//·CS1750:·Optional·parameter·expression·of·type·`null'·cannot·be·converted·to·parameter·type·`A' |
| 6 | //·Line:·8 | 17 | //·Line:·8 |
| 7 | using·System; | 18 | using·System; |
| 8 | class·GenericClass<T> | 19 | class·GenericClass<T> |
| 9 | { | 20 | { |
| Offset 21, 27 lines modified | Offset 34, 14 lines modified | ||
| 21 | » } | 34 | » } |
| 22 | } | 35 | } |
| 23 | public·struct·A | 36 | public·struct·A |
| 24 | { | 37 | { |
| 25 | » public·int·Field; | 38 | » public·int·Field; |
| 26 | }</string> | 39 | }</string> |
| 27 | ····<string>//·CS1750:·Optional·parameter·expression·of·type·`S'·cannot·be·converted·to·parameter·type·`C' | ||
| 28 | //·Line:·10 | ||
| 29 | struct·S | ||
| 30 | { | ||
| 31 | } | ||
| 32 | class·C | ||
| 33 | { | ||
| 34 | » public·static·void·Test·(C·c·=·new·S·()) | ||
| 35 | » { | ||
| 36 | » } | ||
| 37 | }</string> | ||
| 38 | ····<string>//·CS1750:·Optional·parameter·expression·of·type·`decimal'·cannot·be·converted·to·parameter·type·`int?' | 40 | ····<string>//·CS1750:·Optional·parameter·expression·of·type·`decimal'·cannot·be·converted·to·parameter·type·`int?' |
| 39 | //·Line:·6 | 41 | //·Line:·6 |
| 40 | public·class·TS | 42 | public·class·TS |
| 41 | { | 43 | { |
| 42 | » public·static·void·Test·(int?·i·=·1m) | 44 | » public·static·void·Test·(int?·i·=·1m) |
| 43 | » { | 45 | » { |
| Offset 3, 22 lines modified | Offset 3, 22 lines modified | ||
| 3 | ··<ErrorName>CS1763</ErrorName> | 3 | ··<ErrorName>CS1763</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1763:·Optional·parameter·`o'·of·type·`object'·can·only·be·initialized·with·default·value | 5 | ····<string>//·CS1763:·Optional·parameter·`o'·of·type·`object'·can·only·be·initialized·with·default·value |
| 6 | //·Line:·6 | 6 | //·Line:·6 |
| 7 | class·C | 7 | class·C |
| 8 | { | 8 | { |
| 9 | » public·static·void·Test·(object·o·=·9 | 9 | » public·static·void·Test·(object·o·=·9) |
| 10 | » { | 10 | » { |
| 11 | » } | 11 | » } |
| 12 | }</string> | 12 | }</string> |
| 13 | ····<string>//·CS1763:·Optional·parameter·`o'·of·type·`object'·can·only·be·initialized·with·default·value | 13 | ····<string>//·CS1763:·Optional·parameter·`o'·of·type·`object'·can·only·be·initialized·with·default·value |
| 14 | //·Line:·6 | 14 | //·Line:·6 |
| 15 | class·C | 15 | class·C |
| 16 | { | 16 | { |
| 17 | » public·static·void·Test·(object·o·=·9) | 17 | » public·static·void·Test·(object·o·=·9,·params·object[]·args) |
| 18 | » { | 18 | » { |
| 19 | » } | 19 | » } |
| 20 | }</string> | 20 | }</string> |
| 21 | ··</Examples> | 21 | ··</Examples> |
| 22 | </ErrorDocumentation> | 22 | </ErrorDocumentation> |
| Offset 1, 38 lines modified | Offset 1, 38 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1908</ErrorName> | 3 | ··<ErrorName>CS1908</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1908:·The·type·of·the·default·value·should·match·the·type·of·the·parameter | 5 | ····<string>//·CS1908:·The·type·of·the·default·value·should·match·the·type·of·the·parameter |
| 6 | //·Line:· | 6 | //·Line:· |
| 7 | class·Test·{ | 7 | class·Test<T>·where·T·:·class·{ |
| 8 | » internal·void·f·([System.Runtime.InteropServices.DefaultParameterValue·( | 8 | » internal·void·f·([System.Runtime.InteropServices.DefaultParameterValue·(null)]·T·x) |
| 9 | » { | 9 | » { |
| 10 | » } | 10 | » } |
| 11 | }</string> | 11 | }</string> |
| 12 | ····<string>//·CS1908:·The·type·of·the·default·value·should·match·the·type·of·the·parameter | 12 | ····<string>//·CS1908:·The·type·of·the·default·value·should·match·the·type·of·the·parameter |
| 13 | //·Line:· | 13 | //·Line:· |
| 14 | class·Test·{ | 14 | class·Test·{ |
| 15 | » internal·void·f·([System.Runtime.InteropServices.DefaultParameterValue·((short)·1)]·int·x) | 15 | » internal·void·f·([System.Runtime.InteropServices.DefaultParameterValue·((short)·1)]·int·x) |
| 16 | » { | 16 | » { |
| 17 | » } | 17 | » } |
| 18 | }</string> | 18 | }</string> |
| 19 | ····<string>//·CS1908:·The·type·of·the·default·value·should·match·the·type·of·the·parameter | 19 | ····<string>//·CS1908:·The·type·of·the·default·value·should·match·the·type·of·the·parameter |
| 20 | //·Line:· | 20 | //·Line:· |
| 21 | class·Test | 21 | class·Test·{ |
| 22 | » internal·void·f·([System.Runtime.InteropServices.DefaultParameterValue·(null)]· | 22 | » internal·void·f·([System.Runtime.InteropServices.DefaultParameterValue·(null)]·short·x) |
| 23 | » { | 23 | » { |
| 24 | » } | 24 | » } |
| 25 | }</string> | 25 | }</string> |
| 26 | ····<string>//·CS1908:·The·type·of·the·default·value·should·match·the·type·of·the·parameter | 26 | ····<string>//·CS1908:·The·type·of·the·default·value·should·match·the·type·of·the·parameter |
| 27 | //·Line:· | 27 | //·Line:·5 |
| 28 | class·Test·{ | 28 | class·Test·{ |
| 29 | » internal·void·f·([System.Runtime.InteropServices.DefaultParameterValue·( | 29 | » internal·void·f·([System.Runtime.InteropServices.DefaultParameterValue·(1)]·short·x) |
| 30 | » { | 30 | » { |
| 31 | » } | 31 | » } |
| 32 | }</string> | 32 | }</string> |
| 33 | ··</Examples> | 33 | ··</Examples> |
| 34 | </ErrorDocumentation> | 34 | </ErrorDocumentation> |
| Offset 1, 24 lines modified | Offset 1, 24 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1909</ErrorName> | 3 | ··<ErrorName>CS1909</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1909:·The·DefaultParameterValue·attribute·is·not·applicable·on·parameters·of·type·` | 5 | ····<string>//·CS1909:·The·DefaultParameterValue·attribute·is·not·applicable·on·parameters·of·type·`System.Type' |
| 6 | //·Line:·7 | 6 | //·Line:·7 |
| 7 | using·System.Runtime.InteropServices; | 7 | using·System.Runtime.InteropServices; |
| 8 | interface·ITest·{ | ||
| 9 | » void·f·([DefaultParameterValue·(typeof·(ITest))]·System.Type·x); | ||
| 8 | class·Test·{ | ||
| 9 | » void·f·([DefaultParameterValue·(new·int[0])]·int[]·x) | ||
| 10 | » { | ||
| 11 | » } | ||
| 12 | }</string> | 10 | }</string> |
| 13 | ····<string>//·CS1909:·The·DefaultParameterValue·attribute·is·not·applicable·on·parameters·of·type·` | 11 | ····<string>//·CS1909:·The·DefaultParameterValue·attribute·is·not·applicable·on·parameters·of·type·`int[]' |
| 14 | //·Line:·7 | 12 | //·Line:·7 |
| 15 | using·System.Runtime.InteropServices; | 13 | using·System.Runtime.InteropServices; |
| 16 | interface·ITest·{ | ||
| 17 | 14 | class·Test·{ | |
| 15 | » void·f·([DefaultParameterValue·(new·int[0])]·int[]·x) | ||
| 16 | » { | ||
| 17 | » } | ||
| 18 | }</string> | 18 | }</string> |
| 19 | ··</Examples> | 19 | ··</Examples> |
| 20 | </ErrorDocumentation> | 20 | </ErrorDocumentation> |
| Offset 1, 11 lines modified | Offset 1, 23 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1922</ErrorName> | 3 | ··<ErrorName>CS1922</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1922:·A·field·or·property·`GCEventTypeMatcher'·cannot·be·initialized·with·a·collection·object·initializer·because·type·`GCEventTypeMatcher'·does·not·implement·`System.Collections.IEnumerable'·interface | ||
| 6 | //·Line:·11 | ||
| 7 | using·System; | ||
| 8 | public·enum·GCEventType·{ | ||
| 9 | » NURSERY_START | ||
| 10 | } | ||
| 11 | public·class·GCEventTypeMatcher·{ | ||
| 12 | » private·static·GCEventTypeMatcher[]·matcher·=·{·new·GCEventTypeMatcher·()·{·NURSERY_START,·s·=>·TRUE·}·}; | ||
| 13 | }</string> | ||
| 5 | ····<string>//·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 | 14 | ····<string>//·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 |
| 6 | //·Line:·16 | 15 | //·Line:·16 |
| 7 | using·System; | 16 | using·System; |
| 8 | class·Data | 17 | class·Data |
| Offset 16, 26 lines modified | Offset 28, 14 lines modified | ||
| 16 | public·class·Test | 28 | public·class·Test |
| 17 | { | 29 | { |
| 18 | » static·void·Main·() | 30 | » static·void·Main·() |
| 19 | » { | 31 | » { |
| 20 | » » var·c·=·new·Data·{·Value·=·{·0,·1,·2·}·}; | 32 | » » var·c·=·new·Data·{·Value·=·{·0,·1,·2·}·}; |
| 21 | » } | 33 | » } |
| 22 | }</string> | 34 | }</string> |
| 23 | ····<string>//·CS1922:·A·field·or·property·`GCEventTypeMatcher'·cannot·be·initialized·with·a·collection·object·initializer·because·type·`GCEventTypeMatcher'·does·not·implement·`System.Collections.IEnumerable'·interface | ||
| 24 | //·Line:·11 | ||
| 25 | using·System; | ||
| 26 | public·enum·GCEventType·{ | ||
| 27 | » NURSERY_START | ||
| 28 | } | ||
| 29 | public·class·GCEventTypeMatcher·{ | ||
| 30 | » private·static·GCEventTypeMatcher[]·matcher·=·{·new·GCEventTypeMatcher·()·{·NURSERY_START,·s·=>·TRUE·}·}; | ||
| 31 | }</string> | ||
| 32 | ····<string>//·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 | 35 | ····<string>//·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 |
| 33 | //·Line:·13 | 36 | //·Line:·13 |
| 34 | using·System; | 37 | using·System; |
| 35 | using·System.Xml.Serialization; | 38 | using·System.Xml.Serialization; |
| 36 | namespace·test | 39 | namespace·test |
| Offset 1, 22 lines modified | Offset 1, 40 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1931</ErrorName> | 3 | ··<ErrorName>CS1931</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1931:·A·range·variable·`ii'·conflicts·with·a·previous·declaration·of·`ii' | ||
| 6 | //·Line:·14 | ||
| 7 | using·System; | ||
| 8 | using·System.Collections.Generic; | ||
| 9 | using·System.Linq; | ||
| 10 | class·Test | ||
| 11 | { | ||
| 12 | » public·static·void·Main·() | ||
| 13 | » { | ||
| 14 | » » int[]·int_array·=·null; | ||
| 15 | » » int·ii·=·0; | ||
| 16 | » » IEnumerable<int>·e·=·from·int·ii·in·int_array·select·"1"; | ||
| 17 | » } | ||
| 18 | }</string> | ||
| 5 | ····<string>//·CS1931:·A·range·variable·`i'·conflicts·with·a·previous·declaration·of·`i' | 19 | ····<string>//·CS1931:·A·range·variable·`i'·conflicts·with·a·previous·declaration·of·`i' |
| 6 | //·Line:·1 | 20 | //·Line:·14 |
| 7 | using·System; | 21 | using·System; |
| 8 | using·System.Linq; | 22 | using·System.Linq; |
| 9 | class·C | 23 | class·C |
| 10 | { | 24 | { |
| 11 | » public· | 25 | » public·static·void·Main·() |
| 12 | » { | 26 | » { |
| 27 | » » int·i·=·9; | ||
| 13 | » » var·e·=·from·v·in·"a" | 28 | » » var·e·=·from·v·in·"a" |
| 14 | » » » let·i·=·2 | 29 | » » » let·i·=·2 |
| 15 | » » » select·v; | 30 | » » » select·v; |
| 16 | » } | 31 | » } |
| 17 | }</string> | 32 | }</string> |
| 18 | ····<string>//·CS1931:·A·range·variable·`i'·conflicts·with·a·previous·declaration·of·`i' | 33 | ····<string>//·CS1931:·A·range·variable·`i'·conflicts·with·a·previous·declaration·of·`i' |
| 19 | //·Line:·12 | 34 | //·Line:·12 |
| Offset 30, 42 lines modified | Offset 48, 24 lines modified | ||
| 30 | » { | 48 | » { |
| 31 | » » int·i·=·9; | 49 | » » int·i·=·9; |
| 32 | » » var·e·=·from·i·in·"a" | 50 | » » var·e·=·from·i·in·"a" |
| 33 | » » » select·1; | 51 | » » » select·1; |
| 34 | » } | 52 | » } |
| 35 | }</string> | 53 | }</string> |
| 36 | ····<string>//·CS1931:·A·range·variable·`i'·conflicts·with·a·previous·declaration·of·`i' | 54 | ····<string>//·CS1931:·A·range·variable·`i'·conflicts·with·a·previous·declaration·of·`i' |
| 37 | //·Line:·1 | 55 | //·Line:·13 |
| 38 | using·System; | 56 | using·System; |
| 39 | using·System.Linq; | 57 | using·System.Linq; |
| 40 | class·C | 58 | class·C |
| 41 | { | 59 | { |
| 42 | » public· | 60 | » public·void·Foo·(int·i) |
| 43 | » { | 61 | » { |
| 44 | » » int·i·=·9; | ||
| 45 | » » var·e·=·from·v·in·"a" | 62 | » » var·e·=·from·v·in·"a" |
| 46 | » » » let·i·=·2 | 63 | » » » let·i·=·2 |
| 47 | » » » select·v; | 64 | » » » select·v; |
| 48 | » } | 65 | » } |
| 49 | }</string> | 66 | }</string> |
| 50 | ····<string>//·CS1931:·A·range·variable·`ii'·conflicts·with·a·previous·declaration·of·`ii' | ||
| 51 | //·Line:·14 | ||
| 52 | using·System; | ||
| 53 | using·System.Collections.Generic; | ||
| 54 | using·System.Linq; | ||
| 55 | class·Test | ||
| 56 | { | ||
| 57 | » public·static·void·Main·() | ||
| 58 | » { | ||
| 59 | » » int[]·int_array·=·null; | ||
| 60 | » » int·ii·=·0; | ||
| 61 | » » IEnumerable<int>·e·=·from·int·ii·in·int_array·select·"1"; | ||
| 62 | » } | ||
| 63 | }</string> | ||
| 64 | ··</Examples> | 67 | ··</Examples> |
| 65 | </ErrorDocumentation> | 68 | </ErrorDocumentation> |
| Offset 1, 37 lines modified | Offset 1, 37 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1932</ErrorName> | 3 | ··<ErrorName>CS1932</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1932:·A·range·variable·`ii'·cannot·be·initialized·with·` | 5 | ····<string>//·CS1932:·A·range·variable·`ii'·cannot·be·initialized·with·`method·group' |
| 6 | //·Line:·1 | 6 | //·Line:·12 |
| 7 | using·System; | 7 | using·System; |
| 8 | using·System.Linq; | 8 | using·System.Linq; |
| 9 | class·C | 9 | class·C |
| 10 | { | 10 | { |
| 11 | » public·void·Foo·(int·i) | 11 | » public·void·Foo·(int·i) |
| 12 | » { | 12 | » { |
| 13 | » » var·e·=·from·v·in·"a" | 13 | » » var·e·=·from·v·in·"a" |
| 14 | » » » let·ii·=·Foo | 14 | » » » let·ii·=·Foo |
| 15 | » » » select·v; | 15 | » » » select·v; |
| 16 | » } | 16 | » } |
| 17 | }</string> | 17 | }</string> |
| 18 | ····<string>//·CS1932:·A·range·variable·`ii'·cannot·be·initialized·with·` | 18 | ····<string>//·CS1932:·A·range·variable·`ii'·cannot·be·initialized·with·`void' |
| 19 | //·Line:·1 | 19 | //·Line:·13 |
| 20 | using·System; | 20 | using·System; |
| 21 | using·System.Linq; | 21 | using·System.Linq; |
| 22 | class·C | 22 | class·C |
| 23 | { | 23 | { |
| 24 | » public·void·Foo·(int·i) | 24 | » public·void·Foo·(int·i) |
| 25 | » { | 25 | » { |
| 26 | » » var·e·=·from·v·in·"a" | 26 | » » var·e·=·from·v·in·"a" |
| 27 | » » » let·ii·=·Foo | 27 | » » » let·ii·=·Foo·(2) |
| 28 | » » » select·v; | 28 | » » » select·v; |
| 29 | » } | 29 | » } |
| 30 | }</string> | 30 | }</string> |
| 31 | ··</Examples> | 31 | ··</Examples> |
| 32 | </ErrorDocumentation> | 32 | </ErrorDocumentation> |
| Offset 1, 32 lines modified | Offset 1, 32 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1935</ErrorName> | 3 | ··<ErrorName>CS1935</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1935:·An·implementation·of·` | 5 | ····<string>//·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? |
| 6 | //·Line:·1 | 6 | //·Line:·12 |
| 7 | public·class·Test | 7 | public·class·Test |
| 8 | { | 8 | { |
| 9 | » class·Enumerable·{} | ||
| 10 | » » | ||
| 9 | » static·void·Main·() | 11 | » static·void·Main·() |
| 10 | » { | 12 | » { |
| 11 | » » var·v·=·new·int[0]; | 13 | » » var·v·=·new·int[0]; |
| 12 | » » var·foo·=·from·a·in·v·select·a; | 14 | » » var·foo·=·from·int·a·in·v·where·a·>·0·select·a; |
| 13 | » } | 15 | » } |
| 14 | }</string> | 16 | }</string> |
| 15 | ····<string>//·CS1935:·An·implementation·of·` | 17 | ····<string>//·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? |
| 16 | //·Line:·1 | 18 | //·Line:·10 |
| 17 | public·class·Test | 19 | public·class·Test |
| 18 | { | 20 | { |
| 19 | » class·Enumerable·{} | ||
| 20 | » » | ||
| 21 | » static·void·Main·() | 21 | » static·void·Main·() |
| 22 | » { | 22 | » { |
| 23 | » » var·v·=·new·int[0]; | 23 | » » var·v·=·new·int[0]; |
| 24 | » » var·foo·=·from· | 24 | » » var·foo·=·from·a·in·v·select·a; |
| 25 | » } | 25 | » } |
| 26 | }</string> | 26 | }</string> |
| 27 | ··</Examples> | 27 | ··</Examples> |
| 28 | </ErrorDocumentation> | 28 | </ErrorDocumentation> |
| Offset 1, 112 lines modified | Offset 1, 112 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1944</ErrorName> | 3 | ··<ErrorName>CS1944</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1944:·An·expression·tree·cannot·contain·an·unsafe·pointer·operation | 5 | ····<string>//·CS1944:·An·expression·tree·cannot·contain·an·unsafe·pointer·operation |
| 6 | //·Line:·1 | 6 | //·Line:·14 |
| 7 | //·Compiler·options:·-unsafe | 7 | //·Compiler·options:·-unsafe |
| 8 | using·System; | 8 | using·System; |
| 9 | using·System.Linq.Expressions; | 9 | using·System.Linq.Expressions; |
| 10 | class·C | 10 | class·C |
| 11 | { | 11 | { |
| 12 | » unsafe·delegate· | 12 | » unsafe·delegate·byte*·D·(int*[]·d); |
| 13 | » | ||
| 14 | » public·static·void·Main·() | 13 | » public·static·void·Main·() |
| 15 | » { | 14 | » { |
| 16 | » » unsafe·{ | 15 | » » unsafe·{ |
| 17 | » » » Expression<D>·e·=·()·=>· | 16 | » » » Expression<D>·e6·=·(p)·=>·(byte*)p·[10]; |
| 18 | » » } | 17 | » » } |
| 19 | » } | 18 | » } |
| 20 | }</string> | 19 | }</string> |
| 21 | ····<string>//·CS1944:·An·expression·tree·cannot·contain·an·unsafe·pointer·operation | 20 | ····<string>//·CS1944:·An·expression·tree·cannot·contain·an·unsafe·pointer·operation |
| 22 | //·Line:·1 | 21 | //·Line:·14 |
| 23 | //·Compiler·options:·-unsafe | 22 | //·Compiler·options:·-unsafe |
| 24 | using·System; | 23 | using·System; |
| 25 | using·System.Linq.Expressions; | 24 | using·System.Linq.Expressions; |
| 26 | class·C | 25 | class·C |
| 27 | { | 26 | { |
| 28 | » unsafe·delegate·int·D·(int*·i); | ||
| 29 | » | ||
| 30 | » public·static·void·Main·() | 27 | » public·static·void·Main·() |
| 31 | » { | 28 | » { |
| 32 | » » unsafe·{ | 29 | » » unsafe·{ |
| 33 | » » » | 30 | » » » int*[]·p·=·null; |
| 31 | » » » Expression<Func<int>>·e6·=·()·=>·(int)p·[10]; | ||
| 34 | » » } | 32 | » » } |
| 35 | » } | 33 | » } |
| 36 | }</string> | 34 | }</string> |
| 37 | ····<string>//·CS1944:·An·expression·tree·cannot·contain·an·unsafe·pointer·operation | 35 | ····<string>//·CS1944:·An·expression·tree·cannot·contain·an·unsafe·pointer·operation |
| 38 | //·Line:·1 | 36 | //·Line:·13 |
| 39 | //·Compiler·options:·-unsafe | 37 | //·Compiler·options:·-unsafe |
| 40 | using·System; | 38 | using·System; |
| 41 | using·System.Linq.Expressions; | 39 | using·System.Linq.Expressions; |
| 42 | class·C | 40 | class·C |
| 43 | { | 41 | { |
| 44 | » public·static·void·Main·() | 42 | » public·static·void·Main·() |
| 45 | » { | 43 | » { |
| 46 | » » unsafe·{ | 44 | » » unsafe·{ |
| 47 | » » » int*[]·p·=·null; | ||
| 48 | » » » Expression<Func<int>>·e | 45 | » » » Expression<Func<int>>·e·=·()·=>·sizeof·(long*); |
| 49 | » » } | 46 | » » } |
| 50 | » } | 47 | » } |
| 51 | }</string> | 48 | }</string> |
| 52 | ····<string>//·CS1944:·An·expression·tree·cannot·contain·an·unsafe·pointer·operation | 49 | ····<string>//·CS1944:·An·expression·tree·cannot·contain·an·unsafe·pointer·operation |
| 53 | //·Line:·1 | 50 | //·Line:·15 |
| 54 | //·Compiler·options:·-unsafe | 51 | //·Compiler·options:·-unsafe |
| 55 | using·System; | 52 | using·System; |
| 56 | using·System.Linq.Expressions; | 53 | using·System.Linq.Expressions; |
| 57 | class·C | 54 | class·C |
| 58 | { | 55 | { |
| 59 | » unsafe·delegate· | 56 | » unsafe·delegate·int*·D·(int·i); |
| 57 | » | ||
| 60 | » public·static·void·Main·() | 58 | » public·static·void·Main·() |
| 61 | » { | 59 | » { |
| 62 | » » unsafe·{ | 60 | » » unsafe·{ |
| 63 | » » » Expression<D>·e | 61 | » » » Expression<D>·e·=·(int·p)·=>·&p; |
| 64 | » » } | 62 | » » } |
| 65 | » } | 63 | » } |
| 66 | }</string> | 64 | }</string> |
| 67 | ····<string>//·CS1944:·An·expression·tree·cannot·contain·an·unsafe·pointer·operation | 65 | ····<string>//·CS1944:·An·expression·tree·cannot·contain·an·unsafe·pointer·operation |
| 68 | //·Line:·1 | 66 | //·Line:·15 |
| 69 | //·Compiler·options:·-unsafe | 67 | //·Compiler·options:·-unsafe |
| 70 | using·System; | 68 | using·System; |
| 71 | using·System.Linq.Expressions; | 69 | using·System.Linq.Expressions; |
| 72 | class·C | 70 | class·C |
| 73 | { | 71 | { |
| 72 | » unsafe·delegate·int*·D·(); | ||
| 73 | » | ||
| 74 | » public·static·void·Main·() | 74 | » public·static·void·Main·() |
| 75 | » { | 75 | » { |
| 76 | » » unsafe·{ | 76 | » » unsafe·{ |
| 77 | » » » Expression< | 77 | » » » Expression<D>·e·=·()·=>·default·(int*); |
| 78 | » » } | 78 | » » } |
| 79 | » } | 79 | » } |
| 80 | }</string> | 80 | }</string> |
| 81 | ····<string>//·CS1944:·An·expression·tree·cannot·contain·an·unsafe·pointer·operation | 81 | ····<string>//·CS1944:·An·expression·tree·cannot·contain·an·unsafe·pointer·operation |
| 82 | //·Line:·15 | 82 | //·Line:·15 |
| 83 | //·Compiler·options:·-unsafe | 83 | //·Compiler·options:·-unsafe |
| 84 | using·System; | 84 | using·System; |
| 85 | using·System.Linq.Expressions; | 85 | using·System.Linq.Expressions; |
| 86 | class·C | 86 | class·C |
| 87 | { | 87 | { |
| 88 | » unsafe·delegate·int | 88 | » unsafe·delegate·int·D·(int*·i); |
| 89 | » | 89 | » |
| 90 | » public·static·void·Main·() | 90 | » public·static·void·Main·() |
| 91 | » { | 91 | » { |
| 92 | » » unsafe·{ | 92 | » » unsafe·{ |
| 93 | » » » Expression<D>·e·=· | 93 | » » » Expression<D>·e·=·p·=>·*p; |
| 94 | » » } | 94 | » » } |
| 95 | » } | 95 | » } |
| 96 | }</string> | 96 | }</string> |
| 97 | ····<string>//·CS1944:·An·expression·tree·cannot·contain·an·unsafe·pointer·operation | 97 | ····<string>//·CS1944:·An·expression·tree·cannot·contain·an·unsafe·pointer·operation |
| 98 | //·Line:·15 | 98 | //·Line:·15 |
| 99 | //·Compiler·options:·-unsafe | 99 | //·Compiler·options:·-unsafe |
| Offset 1, 36 lines modified | Offset 1, 36 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1948</ErrorName> | 3 | ··<ErrorName>CS1948</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1948:·A·range·variable·`T'·conflicts·with·a·method·type·parameter | 5 | ····<string>//·CS1948:·A·range·variable·`T'·conflicts·with·a·method·type·parameter |
| 6 | //·Line:·1 | 6 | //·Line:·12 |
| 7 | using·System; | 7 | using·System; |
| 8 | using·System.Linq; | 8 | using·System.Linq; |
| 9 | class·C | 9 | class·C |
| 10 | { | 10 | { |
| 11 | » public·static·void·Foo·<T>·() | 11 | » public·static·void·Foo·<T>·() |
| 12 | » { | 12 | » { |
| 13 | » » var·s·=·"0"; | ||
| 14 | » » var·e·=·from·T·in·"a" | 13 | » » var·e·=·from·T·in·"a" |
| 15 | » » » select·T | 14 | » » » select·T; |
| 16 | » } | 15 | » } |
| 17 | }</string> | 16 | }</string> |
| 18 | ····<string>//·CS1948:·A·range·variable·`T'·conflicts·with·a·method·type·parameter | 17 | ····<string>//·CS1948:·A·range·variable·`T'·conflicts·with·a·method·type·parameter |
| 19 | //·Line:·1 | 18 | //·Line:·13 |
| 20 | using·System; | 19 | using·System; |
| 21 | using·System.Linq; | 20 | using·System.Linq; |
| 22 | class·C | 21 | class·C |
| 23 | { | 22 | { |
| 24 | » public·static·void·Foo·<T>·() | 23 | » public·static·void·Foo·<T>·() |
| 25 | » { | 24 | » { |
| 25 | » » var·s·=·"0"; | ||
| 26 | » » var·e·=·from·T·in·"a" | 26 | » » var·e·=·from·T·in·"a" |
| 27 | » » » select·T; | 27 | » » » select·T·+·s; |
| 28 | » } | 28 | » } |
| 29 | }</string> | 29 | }</string> |
| 30 | ··</Examples> | 30 | ··</Examples> |
| 31 | </ErrorDocumentation> | 31 | </ErrorDocumentation> |
| Offset 1, 27 lines modified | Offset 1, 27 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1959</ErrorName> | 3 | ··<ErrorName>CS1959</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1959:·Type·parameter·`T'·cannot·be·declared·const | 5 | ····<string>//·CS1959:·Type·parameter·`T'·cannot·be·declared·const |
| 6 | //·Line:·8 | ||
| 7 | struct·S | ||
| 8 | { | ||
| 9 | » public·void·Foo<T>·()·where·T·:·struct | ||
| 10 | » { | ||
| 11 | » » const·T·t·=·null; | ||
| 12 | » } | ||
| 13 | }</string> | ||
| 14 | ····<string>//·CS1959:·Type·parameter·`T'·cannot·be·declared·const | ||
| 6 | //·Line:·10 | 15 | //·Line:·10 |
| 7 | class·C | 16 | class·C |
| 8 | { | 17 | { |
| 9 | } | 18 | } |
| 10 | class·C<T>·where·T·:·C | 19 | class·C<T>·where·T·:·C |
| 11 | { | 20 | { |
| 12 | » const·T·t·=·null; | 21 | » const·T·t·=·null; |
| 13 | }</string> | 22 | }</string> |
| 14 | ····<string>//·CS1959:·Type·parameter·`T'·cannot·be·declared·const | ||
| 15 | //·Line:·8 | ||
| 16 | struct·S | ||
| 17 | { | ||
| 18 | » public·void·Foo<T>·()·where·T·:·struct | ||
| 19 | » { | ||
| 20 | » » const·T·t·=·null; | ||
| 21 | » } | ||
| 22 | }</string> | ||
| 23 | ··</Examples> | 23 | ··</Examples> |
| 24 | </ErrorDocumentation> | 24 | </ErrorDocumentation> |
| Offset 1, 368 lines modified | Offset 1, 368 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1961</ErrorName> | 3 | ··<ErrorName>CS1961</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1961:·The·covariant·type·parameter·`T'·must·be· | 5 | ····<string>//·CS1961:·The·contravariant·type·parameter·`T'·must·be·invariantly·valid·on·`B<T>.C(A<A<T>>)' |
| 6 | //·Line:·8 | 6 | //·Line:·8 |
| 7 | interface·A< | 7 | interface·A<T> |
| 8 | { | 8 | { |
| 9 | } | 9 | } |
| 10 | interface·B< | 10 | interface·B<in·T> |
| 11 | { | 11 | { |
| 12 | » void·C(A<A<T>>·a); | ||
| 12 | }</string> | 13 | }</string> |
| 13 | ····<string>//·CS1961:·The·contravariant·type·parameter·`T'·must·be·invariantly·valid·on·`B<T> | 14 | ····<string>//·CS1961:·The·contravariant·type·parameter·`T'·must·be·invariantly·valid·on·`B<T>' |
| 14 | //·Line:·8 | 15 | //·Line:·8 |
| 15 | interface·A<T> | 16 | interface·A<T> |
| 16 | { | 17 | { |
| 17 | } | 18 | } |
| 18 | interface·B<in·T> | 19 | interface·B<in·T>·:·A<T> |
| 19 | { | 20 | { |
| 20 | » void·C(A<T>·a); | ||
| 21 | }</string> | 21 | }</string> |
| 22 | ····<string>//·CS1961:·The·co | 22 | ····<string>//·CS1961:·The·covariant·type·parameter·`T'·must·be·invariantly·valid·on·`B<T>.A' |
| 23 | //·Line:·8 | 23 | //·Line:·8 |
| 24 | interface·A<T> | 24 | interface·A<T> |
| 25 | { | 25 | { |
| 26 | } | 26 | } |
| 27 | interface·B< | 27 | interface·B<out·T> |
| 28 | { | 28 | { |
| 29 | » | 29 | » A<A<T>>·A·{·get;·} |
| 30 | }</string> | 30 | }</string> |
| 31 | ····<string>//·CS1961:·The·covariant·type·parameter·` | 31 | ····<string>//·CS1961:·The·contravariant·type·parameter·`T'·must·be·invariantly·valid·on·`B<T>.C(A<T>)' |
| 32 | //·Line:·8 | 32 | //·Line:·8 |
| 33 | interface· | 33 | interface·A<T> |
| 34 | { | 34 | { |
| 35 | } | 35 | } |
| 36 | 36 | interface·B<in·T> | |
| 37 | { | ||
| 38 | » void·C(A<T>·a); | ||
| 39 | }</string> | ||
| 37 | ····<string>//·CS1961:·The·contravariant·type·parameter·`T'·must·be·covariantly·valid·on·` | 40 | ····<string>//·CS1961:·The·contravariant·type·parameter·`T'·must·be·covariantly·valid·on·`A<T>.B()' |
| 38 | //·Line:·4 | ||
| 39 | delegate·T·D<in·T>·();</string> | ||
| 40 | ····<string>//·CS1961:·The·covariant·type·parameter·`T'·must·be·invariantly·valid·on·`A<T>.B(out·T)' | ||
| 41 | //·Line:·6 | 41 | //·Line:·6 |
| 42 | interface·A< | 42 | interface·A<in·T> |
| 43 | { | 43 | { |
| 44 | » | 44 | » T·B(); |
| 45 | }</string> | 45 | }</string> |
| 46 | ····<string>//·CS19 | 46 | ····<string>//·CS1961:·The·covariant·type·parameter·`T'·must·be·invariantly·valid·on·`B<T>.C(A<T>)' |
| 47 | //·Line:·8 | 47 | //·Line:·8 |
| 48 | interface·A<T> | 48 | interface·A<T> |
| 49 | { | 49 | { |
| 50 | } | 50 | } |
| 51 | interface·B<out·T> | 51 | interface·B<out·T> |
| 52 | { | 52 | { |
| 53 | » void·C(A< | 53 | » void·C(A<T>·a); |
| 54 | }</string> | 54 | }</string> |
| 55 | ····<string>//·CS1961:·The·contravariant·type·parameter·`T'·must·be· | 55 | ····<string>//·CS1961:·The·contravariant·type·parameter·`T'·must·be·covariantly·valid·on·`B<T>.A' |
| 56 | //·Line:·8 | 56 | //·Line:·8 |
| 57 | interface·A<T> | 57 | interface·A<out·T> |
| 58 | { | 58 | { |
| 59 | } | 59 | } |
| 60 | 60 | interface·B<in·T> | |
| 61 | { | ||
| 62 | » A<T>·A·{·get;·} | ||
| 63 | }</string> | ||
| 61 | ····<string>//·CS1961:·The·contravariant·type·parameter·`T'·must·be· | 64 | ····<string>//·CS1961:·The·contravariant·type·parameter·`T'·must·be·covariantly·valid·on·`B<T>' |
| 62 | //·Line:·8 | 65 | //·Line:·8 |
| 63 | interface·A<T> | 66 | interface·A<out·T> |
| 64 | { | 67 | { |
| 65 | } | 68 | } |
| 66 | interface·B<in·T> | 69 | interface·B<in·T>·:·A<T> |
| 67 | { | 70 | { |
| 68 | » A<A<T>>·C(); | ||
| 69 | }</string> | 71 | }</string> |
| 70 | ····<string>//·CS1961:·The·covariant·type·parameter·`T'·must·be·invariantly·valid·on·`B<T>( | 72 | ····<string>//·CS1961:·The·contravariant·type·parameter·`T'·must·be·invariantly·valid·on·`B<T>()' |
| 71 | //·Line:·8 | 73 | //·Line:·8 |
| 72 | interface·A<T> | 74 | interface·A<T> |
| 73 | { | 75 | { |
| 74 | } | 76 | } |
| 77 | delegate·A<T>·B<in·T>·();</string> | ||
| 75 | delegate·void·B<out·T>·(A<T>·a);</string> | ||
| 76 | ····<string>//·CS1961:·The·contravariant·type·parameter·`T'·must·be·invariantly·valid·on·`A<T>.B(out·T)' | ||
| 77 | //·Line:·5 | ||
| 78 | interface·A<in·T> | ||
| 79 | { | ||
| 80 | » void·B(out·T·t); | ||
| 81 | }</string> | ||
| 82 | ····<string>//·CS1961:·The·co | 78 | ····<string>//·CS1961:·The·covariant·type·parameter·`T'·must·be·invariantly·valid·on·`B<T>(A<T>)' |
| 83 | //·Line:·8 | 79 | //·Line:·8 |
| 84 | interface·A<T> | 80 | interface·A<T> |
| 85 | { | 81 | { |
| 86 | } | 82 | } |
| 87 | delegate· | 83 | delegate·void·B<out·T>·(A<T>·a);</string> |
| 88 | ····<string>//·CS1961:·The·covariant·type·parameter·`T'·must·be· | 84 | ····<string>//·CS1961:·The·contravariant·type·parameter·`T'·must·be·invariantly·valid·on·`B<T>(A<A<T>>)' |
| 89 | //·Line:· | 85 | //·Line:·8 |
| 90 | interface·A< | 86 | interface·A<T> |
| 91 | { | 87 | { |
| 92 | » void·B(T·t); | ||
| 93 | } | 88 | } |
| 89 | delegate·void·B<in·T>·(A<A<T>>·a);</string> | ||
| 94 | ····<string>//·CS19 | 90 | ····<string>//·CS1923:·The·covariant·type·parameter·`T'·must·be·invariantly·valid·on·`B<T>.C(A<A<T>>)' |
| 95 | //·Line:·8 | 91 | //·Line:·8 |
| Max diff block lines reached; 10222/15222 bytes (67.15%) of diff not shown. | |||
| Offset 1, 36 lines modified | Offset 1, 36 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1966</ErrorName> | 3 | ··<ErrorName>CS1966</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1966:·`C':·cannot·implement·a·dynamic·interface·`I<dynamic>' | 5 | ····<string>//·CS1966:·`C':·cannot·implement·a·dynamic·interface·`I<I<dynamic>>' |
| 6 | //·Line:·8 | 6 | //·Line:·8 |
| 7 | interface·I<T> | 7 | interface·I<T> |
| 8 | { | 8 | { |
| 9 | } | 9 | } |
| 10 | class·C·:·I<dynamic> | 10 | class·C·:·I<I<dynamic>> |
| 11 | { | 11 | { |
| 12 | }</string> | 12 | }</string> |
| 13 | ····<string>//·CS1966:·`C':·cannot·implement·a·dynamic·interface·`I< | 13 | ····<string>//·CS1966:·`C':·cannot·implement·a·dynamic·interface·`I<dynamic[]>' |
| 14 | //·Line:·8 | 14 | //·Line:·8 |
| 15 | interface·I<T> | 15 | interface·I<T> |
| 16 | { | 16 | { |
| 17 | } | 17 | } |
| 18 | class·C·:·I< | 18 | class·C·:·I<dynamic[]> |
| 19 | { | 19 | { |
| 20 | }</string> | 20 | }</string> |
| 21 | ····<string>//·CS1966:·`C':·cannot·implement·a·dynamic·interface·`I<dynamic | 21 | ····<string>//·CS1966:·`C':·cannot·implement·a·dynamic·interface·`I<dynamic>' |
| 22 | //·Line:·8 | 22 | //·Line:·8 |
| 23 | interface·I<T> | 23 | interface·I<T> |
| 24 | { | 24 | { |
| 25 | } | 25 | } |
| 26 | class·C·:·I<dynamic | 26 | class·C·:·I<dynamic> |
| 27 | { | 27 | { |
| 28 | }</string> | 28 | }</string> |
| 29 | ··</Examples> | 29 | ··</Examples> |
| 30 | </ErrorDocumentation> | 30 | </ErrorDocumentation> |
| Offset 11, 65 lines modified | Offset 11, 65 lines modified | ||
| 11 | public·class·A·:·Attribute | 11 | public·class·A·:·Attribute |
| 12 | { | 12 | { |
| 13 | » public·A·(object·arg) | 13 | » public·A·(object·arg) |
| 14 | » { | 14 | » { |
| 15 | » } | 15 | » } |
| 16 | }</string> | 16 | }</string> |
| 17 | ····<string>//·CS1982:·An·attribute·argument·cannot·be·dynamic·expression | 17 | ····<string>//·CS1982:·An·attribute·argument·cannot·be·dynamic·expression |
| 18 | //·Line:· | 18 | //·Line:·13 |
| 19 | using·System; | 19 | using·System; |
| 20 | class·AAttribute·:·Attribute | ||
| 20 | [A((dynamic)·null)] | ||
| 21 | public·class·A·:·Attribute | ||
| 22 | { | 21 | { |
| 23 | » public·A·( | 22 | » public·AAttribute·(dynamic·X) |
| 23 | » { | ||
| 24 | » } | ||
| 25 | } | ||
| 26 | [A·(Test.B)] | ||
| 27 | class·Test | ||
| 28 | { | ||
| 29 | » public·static·dynamic·B; | ||
| 30 | » static·void·Main·() | ||
| 24 | » { | 31 | » { |
| 25 | » } | 32 | » } |
| 26 | }</string> | 33 | }</string> |
| 27 | ····<string>//·CS1982:·An·attribute·argument·cannot·be·dynamic·expression | 34 | ····<string>//·CS1982:·An·attribute·argument·cannot·be·dynamic·expression |
| 28 | //·Line:·6 | 35 | //·Line:·6 |
| 29 | using·System; | 36 | using·System; |
| 30 | [A( | 37 | [A(typeof·(Func<dynamic>))] |
| 31 | public·class·A·:·Attribute | 38 | public·class·A·:·Attribute |
| 32 | { | 39 | { |
| 33 | » public·A·( | 40 | » public·A·(Type·arg) |
| 34 | » { | 41 | » { |
| 35 | » } | 42 | » } |
| 36 | }</string> | 43 | }</string> |
| 37 | ····<string>//·CS1982:·An·attribute·argument·cannot·be·dynamic·expression | 44 | ····<string>//·CS1982:·An·attribute·argument·cannot·be·dynamic·expression |
| 38 | //·Line:· | 45 | //·Line:·6 |
| 39 | using·System; | 46 | using·System; |
| 47 | [A((dynamic)·null)] | ||
| 48 | public·class·A·:·Attribute | ||
| 40 | class·AAttribute·:·Attribute | ||
| 41 | { | ||
| 42 | » public·AAttribute·(dynamic·X) | ||
| 43 | » { | ||
| 44 | » } | ||
| 45 | } | ||
| 46 | [A·(Test.B)] | ||
| 47 | class·Test | ||
| 48 | { | 49 | { |
| 50 | » public·A·(Type·arg) | ||
| 49 | » public·static·dynamic·B; | ||
| 50 | » static·void·Main·() | ||
| 51 | » { | 51 | » { |
| 52 | » } | 52 | » } |
| 53 | }</string> | 53 | }</string> |
| 54 | ····<string>//·CS1982:·An·attribute·argument·cannot·be·dynamic·expression | 54 | ····<string>//·CS1982:·An·attribute·argument·cannot·be·dynamic·expression |
| 55 | //·Line:·6 | 55 | //·Line:·6 |
| 56 | using·System; | 56 | using·System; |
| 57 | [A( | 57 | [A(new·dynamic·[]·{·8·})] |
| 58 | public·class·A·:·Attribute | 58 | public·class·A·:·Attribute |
| 59 | { | 59 | { |
| 60 | » public·A·( | 60 | » public·A·(object·arg) |
| 61 | » { | 61 | » { |
| 62 | » } | 62 | » } |
| 63 | }</string> | 63 | }</string> |
| 64 | ··</Examples> | 64 | ··</Examples> |
| 65 | </ErrorDocumentation> | 65 | </ErrorDocumentation> |
| Offset 1, 60 lines modified | Offset 1, 60 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1986</ErrorName> | 3 | ··<ErrorName>CS1986</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1986:·The·`await'·operand·type·`int'·must·have·suitable·GetAwaiter·method | 5 | ····<string>//·CS1986:·The·`await'·operand·type·`int'·must·have·suitable·GetAwaiter·method |
| 6 | //·Line:·1 | 6 | //·Line:·15 |
| 7 | static·class·S | 7 | static·class·S |
| 8 | { | 8 | { |
| 9 | » public·static· | 9 | » public·static·void·GetAwaiter·(this·int·i) |
| 10 | » { | 10 | » { |
| 11 | » » return·1; | ||
| 12 | » } | 11 | » } |
| 13 | } | 12 | } |
| 14 | class·A | 13 | class·A |
| 15 | { | 14 | { |
| 16 | » static·async·void·Test·() | 15 | » static·async·void·Test·() |
| 17 | » { | 16 | » { |
| 18 | » » await· | 17 | » » await·1; |
| 19 | » } | 18 | » } |
| 20 | }</string> | 19 | }</string> |
| 21 | ····<string>//·CS1986:·The·`await'·operand·type·` | 20 | ····<string>//·CS1986:·The·`await'·operand·type·`A'·must·have·suitable·GetAwaiter·method |
| 22 | //·Line:·1 | 21 | //·Line:·17 |
| 23 | static·class·S | 22 | static·class·S |
| 24 | { | 23 | { |
| 25 | » public·static·void·GetAwaiter·(this·int·i) | 24 | » public·static·void·GetAwaiter·(this·int·i) |
| 26 | » { | 25 | » { |
| 27 | » } | 26 | » } |
| 28 | } | 27 | } |
| 29 | class·A | 28 | class·A |
| 30 | { | 29 | { |
| 30 | » bool·GetAwaiter; | ||
| 31 | » | ||
| 31 | » static·async·void·Test·() | 32 | » static·async·void·Test·() |
| 32 | » { | 33 | » { |
| 33 | » » await· | 34 | » » await·new·A·(); |
| 34 | » } | 35 | » } |
| 35 | }</string> | 36 | }</string> |
| 36 | ····<string>//·CS1986:·The·`await'·operand·type·` | 37 | ····<string>//·CS1986:·The·`await'·operand·type·`int'·must·have·suitable·GetAwaiter·method |
| 37 | //·Line:·1 | 38 | //·Line:·16 |
| 38 | static·class·S | 39 | static·class·S |
| 39 | { | 40 | { |
| 40 | » public·static· | 41 | » public·static·int·GetAwaiter<T>·(this·int·i) |
| 41 | » { | 42 | » { |
| 43 | » » return·1; | ||
| 42 | » } | 44 | » } |
| 43 | } | 45 | } |
| 44 | class·A | 46 | class·A |
| 45 | { | 47 | { |
| 46 | » bool·GetAwaiter; | ||
| 47 | » | ||
| 48 | » static·async·void·Test·() | 48 | » static·async·void·Test·() |
| 49 | » { | 49 | » { |
| 50 | » » await· | 50 | » » await·9; |
| 51 | » } | 51 | » } |
| 52 | }</string> | 52 | }</string> |
| 53 | ··</Examples> | 53 | ··</Examples> |
| 54 | </ErrorDocumentation> | 54 | </ErrorDocumentation> |
| Offset 1, 29 lines modified | Offset 1, 29 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS1988</ErrorName> | 3 | ··<ErrorName>CS1988</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS1988:·Async·methods·cannot·have·ref·or·out·parameters | 5 | ····<string>//·CS1988:·Async·methods·cannot·have·ref·or·out·parameters |
| 6 | //·Line:· | 6 | //·Line:·6 |
| 7 | using·System; | ||
| 8 | class·C | 7 | class·C |
| 9 | { | 8 | { |
| 9 | » public·async·void·Test·(ref·int·arg) | ||
| 10 | » delegate·void·D·(ref·int·i); | ||
| 11 | » | ||
| 12 | » public·static·void·Main·() | ||
| 13 | » { | 10 | » { |
| 14 | » » D·d·=·async·delegate·{·}; | ||
| 15 | » } | 11 | » } |
| 16 | }</string> | 12 | }</string> |
| 17 | ····<string>//·CS1988:·Async·methods·cannot·have·ref·or·out·parameters | 13 | ····<string>//·CS1988:·Async·methods·cannot·have·ref·or·out·parameters |
| 18 | //·Line:· | 14 | //·Line:·12 |
| 15 | using·System; | ||
| 19 | class·C | 16 | class·C |
| 20 | { | 17 | { |
| 21 | » | 18 | » delegate·void·D·(ref·int·i); |
| 19 | » | ||
| 20 | » public·static·void·Main·() | ||
| 22 | » { | 21 | » { |
| 22 | » » D·d·=·async·delegate·{·}; | ||
| 23 | » } | 23 | » } |
| 24 | }</string> | 24 | }</string> |
| 25 | ··</Examples> | 25 | ··</Examples> |
| 26 | </ErrorDocumentation> | 26 | </ErrorDocumentation> |
| Offset 14, 51 lines modified | Offset 14, 66 lines modified | ||
| 14 | ···············return·new·CLSClass(); | 14 | ···············return·new·CLSClass(); |
| 15 | ········} | 15 | ········} |
| 16 | ···· | 16 | ···· |
| 17 | ········static·public·implicit·operator·CLSClass(sbyte·value)·{ | 17 | ········static·public·implicit·operator·CLSClass(sbyte·value)·{ |
| 18 | ···············return·new·CLSClass(); | 18 | ···············return·new·CLSClass(); |
| 19 | ········} | 19 | ········} |
| 20 | }</string> | 20 | }</string> |
| 21 | ····<string>//·CS3001:·Argument·type·` | 21 | ····<string>//·CS3001:·Argument·type·`ulong'·is·not·CLS-compliant |
| 22 | //·Line:·9 | 22 | //·Line:·9 |
| 23 | //·Compiler·options:·-warnaserror·-warn:1 | 23 | //·Compiler·options:·-warnaserror·-warn:1 |
| 24 | using·System; | 24 | using·System; |
| 25 | [assembly:CLSCompliant·(true)] | 25 | [assembly:CLSCompliant·(true)] |
| 26 | public·class·CLSClass·{ | 26 | public·class·CLSClass·{ |
| 27 | ········p | 27 | ········public·long·this·[ulong·index]·{ |
| 28 | ················get·{ | ||
| 29 | ························return·2; | ||
| 30 | ················} | ||
| 31 | ········} | ||
| 28 | }</string> | 32 | }</string> |
| 29 | ····<string>//·CS3001:·Argument·type·` | 33 | ····<string>//·CS3001:·Argument·type·`ulong'·is·not·CLS-compliant |
| 30 | //·Line:· | 34 | //·Line:·8 |
| 31 | //·Compiler·options:·-warnaserror·-warn:1 | 35 | //·Compiler·options:·-warnaserror·-warn:1 |
| 32 | using·System; | 36 | using·System; |
| 37 | [assembly:CLSCompliant·(true)] | ||
| 38 | public·delegate·long·MyDelegate·(ulong·arg);</string> | ||
| 39 | ····<string>//·CS3001:·Argument·type·`int*'·is·not·CLS-compliant | ||
| 40 | //·Line:·9 | ||
| 41 | //·Compiler·options:·-unsafe·-warnaserror·-warn:1 | ||
| 42 | using·System; | ||
| 33 | [assembly:CLSCompliant(true)] | 43 | [assembly:CLSCompliant(true)] |
| 34 | [CLSCompliant(false)] | ||
| 35 | public·interface·IError{ | ||
| 36 | 44 | unsafe·public·abstract·class·CLSClass·{ | |
| 45 | ········public·void·Method·(int*·param)·{} | ||
| 46 | }</string> | ||
| 47 | ····<string>//·CS3001:·Argument·type·`ulong'·is·not·CLS-compliant | ||
| 48 | //·Line:·9 | ||
| 49 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| 50 | using·System; | ||
| 51 | [assembly:CLSCompliant(true)] | ||
| 37 | public·interface·I·{ | ||
| 38 | ········void·Error(out·IError·arg); | ||
| 39 | } | ||
| 40 | public·class·c·{ | ||
| 41 | 52 | public·interface·I·{ | |
| 53 | ········long·this[ulong·indexA]·{·set;·} | ||
| 42 | }</string> | 54 | }</string> |
| 43 | ····<string>//·CS3001:·Argument·type·`sbyte'·is·not·CLS-compliant | 55 | ····<string>//·CS3001:·Argument·type·`sbyte'·is·not·CLS-compliant |
| 44 | //·Line:·9 | 56 | //·Line:·9 |
| 45 | //·Compiler·options:·-warnaserror·-warn:1 | 57 | //·Compiler·options:·-warnaserror·-warn:1 |
| 46 | using·System; | 58 | using·System; |
| 47 | [assembly:CLSCompliant(true)] | 59 | [assembly:CLSCompliant·(true)] |
| 48 | public·class·CLSClass | 60 | public·static·class·CLSClass |
| 49 | 61 | { | |
| 62 | » public·static·void·Foo·(this·sbyte·value)·{·} | ||
| 50 | }</string> | 63 | }</string> |
| 51 | ····<string>//·CS3001:·Argument·type·`ulong'·is·not·CLS-compliant | 64 | ····<string>//·CS3001:·Argument·type·`ulong'·is·not·CLS-compliant |
| 52 | //·Line:·14 | 65 | //·Line:·14 |
| 53 | //·Compiler·options:·-warnaserror·-warn:1 | 66 | //·Compiler·options:·-warnaserror·-warn:1 |
| 54 | using·System; | 67 | using·System; |
| 55 | [assembly:CLSCompliant·(A.f)] | 68 | [assembly:CLSCompliant·(A.f)] |
| Offset 67, 73 lines modified | Offset 82, 58 lines modified | ||
| 67 | { | 82 | { |
| 68 | ····public·const·bool·f·=·true; | 83 | ····public·const·bool·f·=·true; |
| 69 | } | 84 | } |
| 70 | public·interface·I·{ | 85 | public·interface·I·{ |
| 71 | ········void·Test·(ulong·arg); | 86 | ········void·Test·(ulong·arg); |
| 72 | }</string> | 87 | }</string> |
| 73 | ····<string>//·CS3001:·Argument·type·` | 88 | ····<string>//·CS3001:·Argument·type·`ulong'·is·not·CLS-compliant |
| 74 | //·Line:· | 89 | //·Line:·10 |
| 75 | //·Compiler·options:·- | 90 | //·Compiler·options:·-warnaserror·-warn:1 |
| 76 | using·System; | 91 | using·System; |
| 77 | [assembly:CLSCompliant(true)] | 92 | [assembly:CLSCompliant·(true)] |
| 78 | unsafe·public·abstract·class·CLSClass·{ | ||
| 79 | 93 | public·class·CLSClass·{ | |
| 94 | ········public·CLSClass·(long·a)·{} | ||
| 95 | ········public·CLSClass·(ref·ulong·a)·{} | ||
| 80 | }</string> | 96 | }</string> |
| 81 | ····<string>//·CS3001:·Argument·type·` | 97 | ····<string>//·CS3001:·Argument·type·`sbyte'·is·not·CLS-compliant |
| 82 | //·Line:·9 | 98 | //·Line:·9 |
| 83 | //·Compiler·options:·-warnaserror·-warn:1 | 99 | //·Compiler·options:·-warnaserror·-warn:1 |
| 84 | using·System; | 100 | using·System; |
| 85 | [assembly:CLSCompliant·(true)] | 101 | [assembly:CLSCompliant·(true)] |
| 86 | public·class·CLSClass·{ | 102 | public·class·CLSClass·{ |
| 103 | ········protected·internal·void·Foo·(string·text,·sbyte·value)·{·} | ||
| 87 | ········public·long·this·[ulong·index]·{ | ||
| 88 | ················get·{ | ||
| 89 | ························return·2; | ||
| 90 | ················} | ||
| 91 | ········} | ||
| 92 | }</string> | 104 | }</string> |
| 93 | ····<string>//·CS3001:·Argument·type·` | 105 | ····<string>//·CS3001:·Argument·type·`IError'·is·not·CLS-compliant |
| 94 | //·Line:· | 106 | //·Line:·13 |
| 95 | //·Compiler·options:·-warnaserror·-warn:1 | 107 | //·Compiler·options:·-warnaserror·-warn:1 |
| 96 | using·System; | 108 | using·System; |
| 97 | [assembly:CLSCompliant(true)] | 109 | [assembly:CLSCompliant(true)] |
| 110 | [CLSCompliant(false)] | ||
| 111 | public·interface·IError{ | ||
| 112 | } | ||
| 98 | public·interface·I·{ | 113 | public·interface·I·{ |
| 99 | ········ | 114 | ········void·Error(out·IError·arg); |
| 115 | } | ||
| 116 | public·class·c·{ | ||
| 117 | ········public·void·Error·(out·IError·arg)·{·arg·=·null;·} | ||
| 100 | }</string> | 118 | }</string> |
| 101 | ····<string>//·CS3001:·Argument·type·`sbyte'·is·not·CLS-compliant | 119 | ····<string>//·CS3001:·Argument·type·`sbyte'·is·not·CLS-compliant |
| 102 | //·Line:·9 | 120 | //·Line:·9 |
| Max diff block lines reached; 781/4789 bytes (16.31%) of diff not shown. | |||
| Offset 1, 108 lines modified | Offset 1, 116 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS3002</ErrorName> | 3 | ··<ErrorName>CS3002</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS3002:·Return·type·of·`CLSClass.Test1()'·is·not·CLS-compliant | ||
| 6 | //·Line:·14 | ||
| 7 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| 8 | using·System; | ||
| 9 | [assembly:CLSCompliant(true)] | ||
| 10 | [CLSCompliant(false)] | ||
| 11 | public·interface·I·{} | ||
| 12 | public·class·C·{} | ||
| 13 | public·class·CLSClass·{ | ||
| 14 | » public·I·Test1()·{·return·null;·}· | ||
| 15 | » public·C·Test2()·{·return·null;·} | ||
| 16 | }</string> | ||
| 17 | ····<string>//·CS3002:·Return·type·of·`CLSClass.Foo()'·is·not·CLS-compliant | 5 | ····<string>//·CS3002:·Return·type·of·`CLSClass.Foo()'·is·not·CLS-compliant |
| 18 | //·Line:·1 | 6 | //·Line:·14 |
| 19 | //·Compiler·options:·-warnaserror·-warn:1 | 7 | //·Compiler·options:·-warnaserror·-warn:1 |
| 20 | using·System; | 8 | using·System; |
| 21 | [assembly:CLSCompliant(true)] | 9 | [assembly:CLSCompliant(true)] |
| 22 | public·class·CLSClass·{ | 10 | public·class·CLSClass·{ |
| 11 | ········[CLSCompliant(false)] | ||
| 23 | ········p | 12 | ········public·ulong·Valid()·{ |
| 24 | ················return·1; | 13 | ················return·1; |
| 25 | ········} | 14 | ········} |
| 26 | ···· | 15 | ···· |
| 27 | ········protected·ulong·Foo()·{ | 16 | ········protected·internal·ulong·Foo()·{ |
| 28 | ················return·1; | 17 | ················return·1; |
| 29 | ········} | 18 | ········} |
| 19 | ······· | ||
| 20 | ········static·void·Main()·{} | ||
| 30 | }</string> | 21 | }</string> |
| 31 | ····<string>//·CS3002:·Return·type·of·`CLSClass. | 22 | ····<string>//·CS3002:·Return·type·of·`CLSClass.Foo()'·is·not·CLS-compliant |
| 32 | //·Line:· | 23 | //·Line:·10 |
| 33 | //·Compiler·options:·-warnaserror·-warn:1 | 24 | //·Compiler·options:·-warnaserror·-warn:1 |
| 34 | using·System; | 25 | using·System; |
| 35 | [assembly:CLSCompliant(true)] | 26 | [assembly:CLSCompliant(true)] |
| 36 | public·class·CLSClass | 27 | public·class·CLSClass |
| 37 | 28 | { | |
| 29 | » protected·ulong?·Foo() | ||
| 30 | » { | ||
| 31 | » » return·5; | ||
| 32 | » } | ||
| 38 | }</string> | 33 | }</string> |
| 39 | ····<string>//·CS3002:·Return·type·of·`Delegate'·is·not·CLS-compliant | 34 | ····<string>//·CS3002:·Return·type·of·`Delegate'·is·not·CLS-compliant |
| 40 | //·Line:·8 | 35 | //·Line:·8 |
| 41 | //·Compiler·options:·-warnaserror·-warn:1 | 36 | //·Compiler·options:·-warnaserror·-warn:1 |
| 42 | using·System; | 37 | using·System; |
| 43 | [assembly:CLSCompliant(true)] | 38 | [assembly:CLSCompliant(true)] |
| 44 | public·delegate·CLSDelegate·Delegate·(); | 39 | public·delegate·CLSDelegate·Delegate·(); |
| 45 | ···· | 40 | ···· |
| 46 | [Serializable] | 41 | [Serializable] |
| 47 | [CLSCompliant·(false)] | 42 | [CLSCompliant·(false)] |
| 48 | public·class·CLSDelegate·{ | 43 | public·class·CLSDelegate·{ |
| 49 | }</string> | 44 | }</string> |
| 50 | ····<string>//·CS3002:·Return·type·of·`CLSClass. | 45 | ····<string>//·CS3002:·Return·type·of·`CLSClass.MyDelegate'·is·not·CLS-compliant |
| 51 | //·Line:· | 46 | //·Line:·9 |
| 52 | //·Compiler·options:·-warnaserror·-warn:1 | 47 | //·Compiler·options:·-warnaserror·-warn:1 |
| 53 | using·System; | 48 | using·System; |
| 54 | [assembly:CLSCompliant(true)] | 49 | [assembly:CLSCompliant(true)] |
| 55 | public·class·CLSClass | 50 | public·class·CLSClass·{ |
| 51 | ········public·delegate·uint·MyDelegate(); | ||
| 56 | { | ||
| 57 | » protected·ulong?·Foo() | ||
| 58 | » { | ||
| 59 | » » return·5; | ||
| 60 | » } | ||
| 61 | }</string> | 52 | }</string> |
| 62 | ····<string>//·CS3002:·Return·type·of·`CLSClass. | 53 | ····<string>//·CS3002:·Return·type·of·`CLSClass.Test1()'·is·not·CLS-compliant |
| 63 | //·Line:·14 | 54 | //·Line:·14 |
| 64 | //·Compiler·options:·-warnaserror·-warn:1 | 55 | //·Compiler·options:·-warnaserror·-warn:1 |
| 65 | using·System; | 56 | using·System; |
| 66 | [assembly:CLSCompliant(true)] | 57 | [assembly:CLSCompliant(true)] |
| 58 | [CLSCompliant(false)] | ||
| 59 | public·interface·I·{} | ||
| 60 | public·class·C·{} | ||
| 67 | public·class·CLSClass·{ | 61 | public·class·CLSClass·{ |
| 62 | » public·I·Test1()·{·return·null;·}· | ||
| 63 | » public·C·Test2()·{·return·null;·} | ||
| 64 | }</string> | ||
| 65 | ····<string>//·CS3002:·Return·type·of·`CLSClass.Foo()'·is·not·CLS-compliant | ||
| 66 | //·Line:·13 | ||
| 67 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| 68 | using·System; | ||
| 69 | [assembly:CLSCompliant(true)] | ||
| 68 | 70 | [CLSCompliant(false)] | |
| 69 | ········public·ulong·Valid()·{ | ||
| 70 | ················return·1; | ||
| 71 | ········} | ||
| 72 | ··· | 71 | public·interface·I1·{ |
| 72 | } | ||
| 73 | public·class·CLSClass·{ | ||
| 73 | ········protected·internal· | 74 | ········protected·internal·I1·Foo()·{ |
| 74 | ················return· | 75 | ················return·null; |
| 75 | ········} | 76 | ········} |
| 76 | ······· | 77 | ······· |
| 77 | ········static·void·Main()·{} | 78 | ········static·void·Main()·{} |
| 78 | }</string> | 79 | }</string> |
| 79 | ····<string>//·CS3002:·Return·type·of·` | 80 | ····<string>//·CS3002:·Return·type·of·`CLSClass.Foo()'·is·not·CLS-compliant |
| 80 | //·Line:· | 81 | //·Line:·13 |
| 81 | //·Compiler·options:·-warnaserror·-warn:1 | 82 | //·Compiler·options:·-warnaserror·-warn:1 |
| 83 | using·System; | ||
| 82 | [assembly: | 84 | [assembly:CLSCompliant(true)] |
| 83 | public·interface·I· | ||
| 84 | { | ||
| Max diff block lines reached; 889/4716 bytes (18.85%) of diff not shown. | |||
| Offset 8, 37 lines modified | Offset 8, 47 lines modified | ||
| 8 | using·System; | 8 | using·System; |
| 9 | [assembly:CLSCompliant(true)] | 9 | [assembly:CLSCompliant(true)] |
| 10 | public·interface·I·{ | 10 | public·interface·I·{ |
| 11 | ········ulong·this[bool·index]·{·get;·} | 11 | ········ulong·this[bool·index]·{·get;·} |
| 12 | }</string> | 12 | }</string> |
| 13 | ····<string>//·CS3003:·Type·of·` | 13 | ····<string>//·CS3003:·Type·of·`S.test2'·is·not·CLS-compliant |
| 14 | //·Line:· | 14 | //·Line:·11 |
| 15 | //·Compiler·options:·-warnaserror·-warn:1 | 15 | //·Compiler·options:·-unsafe·-warnaserror·-warn:1 |
| 16 | 16 | using·System; | |
| 17 | [assembly:·CLSCompliant·(true)] | ||
| 17 | [System.CLSCompliant·(false)] | ||
| 18 | public·delegate·void·MyDelegate·(); | ||
| 19 | public·class·CLSClass·{ | ||
| 20 | 18 | public·unsafe·struct·S | |
| 19 | { | ||
| 20 | ····public·fixed·bool·test2·[4]; | ||
| 21 | }</string> | 21 | }</string> |
| 22 | ····<string>//·CS3003:·Type·of·`I.Foo'·is·not·CLS-compliant | 22 | ····<string>//·CS3003:·Type·of·`I.Foo'·is·not·CLS-compliant |
| 23 | //·Line:·10 | 23 | //·Line:·10 |
| 24 | //·Compiler·options:·-warnaserror·-warn:1 | 24 | //·Compiler·options:·-warnaserror·-warn:1 |
| 25 | using·System; | 25 | using·System; |
| 26 | [assembly:CLSCompliant·(true)] | 26 | [assembly:CLSCompliant·(true)] |
| 27 | [CLSCompliant·(true)] | 27 | [CLSCompliant·(true)] |
| 28 | public·interface·I·{ | 28 | public·interface·I·{ |
| 29 | ····uint·Foo·{·set;·} | 29 | ····uint·Foo·{·set;·} |
| 30 | }</string> | 30 | }</string> |
| 31 | ····<string>//·CS3003:·Type·of·`CLSClass.value'·is·not·CLS-compliant | ||
| 32 | //·Line:·9 | ||
| 33 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| 34 | using·System; | ||
| 35 | [assembly:CLSCompliant(true)] | ||
| 36 | public·class·CLSClass·{ | ||
| 37 | ········protected·uint·value; | ||
| 38 | }</string> | ||
| 31 | ····<string>//·CS3003:·Type·of·`CLSClass.Index'·is·not·CLS-compliant | 39 | ····<string>//·CS3003:·Type·of·`CLSClass.Index'·is·not·CLS-compliant |
| 32 | //·Line:·9 | 40 | //·Line:·9 |
| 33 | //·Compiler·options:·-warnaserror·-warn:1 | 41 | //·Compiler·options:·-warnaserror·-warn:1 |
| 34 | using·System; | 42 | using·System; |
| 35 | [assembly:CLSCompliant(true)] | 43 | [assembly:CLSCompliant(true)] |
| Offset 58, 41 lines modified | Offset 68, 31 lines modified | ||
| 58 | [assembly:·CLSCompliant·(true)] | 68 | [assembly:·CLSCompliant·(true)] |
| 59 | public·class·C | 69 | public·class·C |
| 60 | { | 70 | { |
| 61 | » public·unsafe·byte*·_data; | 71 | » public·unsafe·byte*·_data; |
| 62 | » public·unsafe·byte*·GetData·()·{·return·_data;·} | 72 | » public·unsafe·byte*·GetData·()·{·return·_data;·} |
| 63 | }</string> | 73 | }</string> |
| 64 | ····<string>//·CS3003:·Type·of·` | 74 | ····<string>//·CS3003:·Type·of·`I.Error'·is·not·CLS-compliant |
| 65 | //·Line:·11 | ||
| 66 | //·Compiler·options:·-unsafe·-warnaserror·-warn:1 | ||
| 67 | using·System; | ||
| 68 | [assembly:·CLSCompliant·(true)] | ||
| 69 | public·unsafe·struct·S | ||
| 70 | { | ||
| 71 | ····public·fixed·bool·test2·[4]; | ||
| 72 | }</string> | ||
| 73 | ····<string>//·CS3003:·Type·of·`CLSClass.value'·is·not·CLS-compliant | ||
| 74 | //·Line:·9 | 75 | //·Line:·9 |
| 75 | //·Compiler·options:·-warnaserror·-warn:1 | 76 | //·Compiler·options:·-warnaserror·-warn:1 |
| 76 | using·System; | 77 | using·System; |
| 77 | [assembly:CLSCompliant(true)] | 78 | [assembly:CLSCompliant(true)] |
| 78 | public·class·CLSClass·{ | ||
| 79 | 79 | public·interface·I·{ | |
| 80 | ········UIntPtr·Error·{·get;·} | ||
| 80 | }</string> | 81 | }</string> |
| 81 | ····<string>//·CS3003:·Type·of·` | 82 | ····<string>//·CS3003:·Type·of·`CLSClass.MyEvent'·is·not·CLS-compliant |
| 82 | //·Line:· | 83 | //·Line:·8 |
| 83 | //·Compiler·options:·-warnaserror·-warn:1 | 84 | //·Compiler·options:·-warnaserror·-warn:1 |
| 84 | using·System; | ||
| 85 | [assembly:CLSCompliant(true)] | 85 | [assembly:System.CLSCompliant·(true)] |
| 86 | public·interface·I·{ | ||
| 87 | 86 | [System.CLSCompliant·(false)] | |
| 87 | public·delegate·void·MyDelegate·(); | ||
| 88 | public·class·CLSClass·{ | ||
| 89 | ········public·event·MyDelegate·MyEvent; | ||
| 88 | }</string> | 90 | }</string> |
| 89 | ··</Examples> | 91 | ··</Examples> |
| 90 | </ErrorDocumentation> | 92 | </ErrorDocumentation> |
| Offset 1, 146 lines modified | Offset 1, 168 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS3005</ErrorName> | 3 | ··<ErrorName>CS3005</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS3005:·Identifier·` | 5 | ····<string>//·CS3005:·Identifier·`c1'·differing·only·in·case·is·not·CLS-compliant |
| 6 | //·Line:· | 6 | //·Line:·9 |
| 7 | //·Compiler·options:·-warnaserror | 7 | //·Compiler·options:·-warnaserror |
| 8 | using·System; | ||
| 9 | [assembly:CLSCompliant | 8 | [assembly:System.CLSCompliant(true)] |
| 10 | public· | 9 | public·class·C1·{ |
| 11 | } | 10 | } |
| 12 | public· | 11 | public·class·c1·{ |
| 13 | }</string> | 12 | }</string> |
| 14 | ····<string>//·CS3005:·Identifier·`CLSClass. | 13 | ····<string>//·CS3005:·Identifier·`CLSClass.NameAbC'·differing·only·in·case·is·not·CLS-compliant |
| 15 | //·Line:·1 | 14 | //·Line:·12 |
| 15 | //·Compiler·options:·-warnaserror | ||
| 16 | using·System; | ||
| 17 | [assembly:CLSCompliant·(true)] | ||
| 18 | public·class·CLSClass·{ | ||
| 19 | ········[CLSCompliant·(false)] | ||
| 20 | ········public·int·NameABC; | ||
| 21 | ············ | ||
| 22 | ········public·int·NameAbc; | ||
| 23 | ········public·int·NameAbC; | ||
| 24 | }</string> | ||
| 25 | ····<string>//·CS3005:·Identifier·`CLSClass.Index.get'·differing·only·in·case·is·not·CLS-compliant | ||
| 26 | //·Line:·14 | ||
| 16 | //·Compiler·options:·-warnaserror | 27 | //·Compiler·options:·-warnaserror |
| 17 | [assembly:System.CLSCompliant(true)] | 28 | [assembly:System.CLSCompliant(true)] |
| 18 | public·class·X·{ | 29 | public·class·X·{ |
| 19 | ········public· | 30 | ········public·int·index·{·get·{·return·0;·}·} |
| 20 | } | 31 | } |
| 21 | public·class·Y:·X·{ | 32 | public·class·Y:·X·{ |
| 22 | ········private·readonly·bool·vAalue; | ||
| 23 | } | 33 | } |
| 24 | ···· | 34 | ···· |
| 25 | public·class·CLSClass:·Y·{ | 35 | public·class·CLSClass:·Y·{ |
| 26 | ········p | 36 | ········public·long·Index·{·get·{·return·3;·}·} |
| 27 | }</string> | 37 | }</string> |
| 28 | ····<string>//·CS3005:·Identifier·` | 38 | ····<string>//·CS3005:·Identifier·`CLSClass.Event_A'·differing·only·in·case·is·not·CLS-compliant |
| 29 | //·Line:·1 | 39 | //·Line:·13 |
| 30 | //·Compiler·options:·-warnaserror | 40 | //·Compiler·options:·-warnaserror |
| 31 | using·System; | ||
| 32 | [assembly:CLSCompliant | 41 | [assembly:System.CLSCompliant(true)] |
| 33 | public· | 42 | public·delegate·void·MyDelegate(int·i); |
| 43 | public·class·Base·{ | ||
| 44 | ········protected·event·System.ResolveEventHandler·Event_a; | ||
| 34 | } | 45 | } |
| 35 | public·class· | 46 | public·class·CLSClass:·Base·{ |
| 47 | ········public·event·MyDelegate·Event_A; | ||
| 36 | }</string> | 48 | }</string> |
| 37 | ····<string>//·CS3005:·Identifier·`CLSClass. | 49 | ····<string>//·CS3005:·Identifier·`CLSClass.a.get'·differing·only·in·case·is·not·CLS-compliant |
| 38 | //·Line:· | 50 | //·Line:·8 |
| 51 | //·Compiler·options:·-warnaserror | ||
| 52 | [assembly:System.CLSCompliant(true)] | ||
| 53 | public·class·CLSClass·{ | ||
| 54 | ········public·int·get_A·()·{·return·3;·} | ||
| 55 | ········public·int·a·{·get·{·return·2;·}·} | ||
| 56 | }</string> | ||
| 57 | ····<string>//·CS3005:·Identifier·`CLSClass.op_implicit()'·differing·only·in·case·is·not·CLS-compliant | ||
| 58 | //·Line:·12 | ||
| 39 | //·Compiler·options:·-warnaserror | 59 | //·Compiler·options:·-warnaserror |
| 40 | using·System; | 60 | using·System; |
| 41 | [assembly:CLSCompliant | 61 | [assembly:CLSCompliant(true)] |
| 42 | public·class·CLSClass·{ | 62 | public·class·CLSClass·{ |
| 43 | ········public·int·NameABC; | ||
| 44 | ········public· | 63 | ········static·public·implicit·operator·CLSClass(byte·value)·{ |
| 64 | ···············return·new·CLSClass(); | ||
| 65 | ········} | ||
| 66 | ···· | ||
| 67 | ········public·void·op_implicit·()·{} | ||
| 68 | }</string> | ||
| 69 | ····<string>//·CS3005:·Identifier·`Foo.main()'·differing·only·in·case·is·not·CLS-compliant | ||
| 70 | //·Line:·9 | ||
| 71 | //·Compiler·options:·-warnaserror | ||
| 72 | using·System; | ||
| 73 | [assembly:·CLSCompliant(false)] | ||
| 74 | [CLSCompliant(true)] | ||
| 75 | public·class·Foo·{ | ||
| 76 | » public·static·void·Main·()·{} | ||
| 77 | » public·static·void·main·()·{} | ||
| 45 | }</string> | 78 | }</string> |
| 46 | ····<string>//·CS3005:·Identifier·`X.Index'·differing·only·in·case·is·not·CLS-compliant | 79 | ····<string>//·CS3005:·Identifier·`X.Index'·differing·only·in·case·is·not·CLS-compliant |
| 47 | //·Line:·8 | 80 | //·Line:·8 |
| 48 | //·Compiler·options:·-warnaserror | 81 | //·Compiler·options:·-warnaserror |
| 49 | [assembly:System.CLSCompliant(true)] | 82 | [assembly:System.CLSCompliant(true)] |
| 50 | public·class·X·{ | 83 | public·class·X·{ |
| 51 | ········public·int·index·{·get·{·return·0;·}·} | 84 | ········public·int·index·{·get·{·return·0;·}·} |
| 52 | ········public·int·Index·{·set·{}·} | 85 | ········public·int·Index·{·set·{}·} |
| 53 | ········ | 86 | ········ |
| 54 | }</string> | 87 | }</string> |
| 55 | ····<string>//·CS3005:·Identifier·`CLSClass. | 88 | ····<string>//·CS3005:·Identifier·`CLSClass.this[int].set'·differing·only·in·case·is·not·CLS-compliant |
| 56 | //·Line:·8 | 89 | //·Line:·8 |
| 57 | //·Compiler·options:·-warnaserror | 90 | //·Compiler·options:·-warnaserror |
| 58 | [assembly:System.CLSCompliant(true)] | 91 | [assembly:System.CLSCompliant(true)] |
| 59 | public·class·CLSClass·{ | 92 | public·class·CLSClass·{ |
| 60 | ········public·int·get_A·()·{·return·3;·} | ||
| 61 | ········p | 93 | ········protected·int·SET_item; |
| 94 | ········public·int·this[int·index]·{·set·{}·}········ | ||
| 62 | }</string> | 95 | }</string> |
| 63 | ····<string>//·CS3005:·Identifier·` | 96 | ····<string>//·CS3005:·Identifier·`System.Icomparable'·differing·only·in·case·is·not·CLS-compliant |
| 64 | //·Line:·8 | 97 | //·Line:·8 |
| 98 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| 99 | [assembly:System.CLSCompliant(true)] | ||
| Max diff block lines reached; 9867/14678 bytes (67.22%) of diff not shown. | |||
| Offset 1, 135 lines modified | Offset 1, 135 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS3006</ErrorName> | 3 | ··<ErrorName>CS3006</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS3006:·Overloaded·method·`CLSClass.Test(out·bool)'·differing·only·in·ref·or·out,·or·in·array·rank,·is·not·CLS-compliant | ||
| 6 | //·Line:·12 | ||
| 7 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| 8 | using·System; | ||
| 9 | [assembly:·CLSCompliant(true)] | ||
| 10 | public·abstract·class·CLSClass·{ | ||
| 11 | ···public·void·Test(bool·a)·{ | ||
| 12 | ···} | ||
| 13 | ···public·abstract·void·Test(out·bool·b); | ||
| 14 | }</string> | ||
| 15 | ····<string>//·CS3006:·Overloaded·method·`CLSInterface.Test( | 5 | ····<string>//·CS3006:·Overloaded·method·`CLSInterface.Test(int[,])'·differing·only·in·ref·or·out,·or·in·array·rank,·is·not·CLS-compliant |
| 16 | //·Line:·10 | 6 | //·Line:·10 |
| 17 | //·Compiler·options:·-warnaserror·-warn:1 | 7 | //·Compiler·options:·-warnaserror·-warn:1 |
| 18 | using·System; | 8 | using·System; |
| 19 | [assembly:·CLSCompliant(true)] | 9 | [assembly:·CLSCompliant(true)] |
| 20 | public·interface·CLSInterface·{ | 10 | public·interface·CLSInterface·{ |
| 11 | ········void·Test(int[,,]·b); | ||
| 21 | ········void·Test(int· | 12 | ········void·Test(int[,]·b); |
| 22 | ········void·Test(ref·int·b); | ||
| 23 | }</string> | 13 | }</string> |
| 24 | ····<string>//·CS3006:·Overloaded·method·`CLSClass. | 14 | ····<string>//·CS3006:·Overloaded·method·`CLSClass.CLSClass(int[,])'·differing·only·in·ref·or·out,·or·in·array·rank,·is·not·CLS-compliant |
| 25 | //·Line:·12 | 15 | //·Line:·12 |
| 26 | //·Compiler·options:·-warnaserror·-warn:1 | 16 | //·Compiler·options:·-warnaserror·-warn:1 |
| 27 | using·System; | 17 | using·System; |
| 28 | [assembly:·CLSCompliant(true)] | 18 | [assembly:·CLSCompliant(true)] |
| 29 | public·class·CLSClass·{ | 19 | public·class·CLSClass·{ |
| 30 | ···public· | 20 | ····public·CLSClass(int[,,]·b)·{ |
| 31 | ···} | 21 | ····} |
| 22 | ····public·CLSClass(int[,]·b)·{ | ||
| 23 | ····} | ||
| 32 | ···public·void·Test(int[,]·b)·{ | ||
| 33 | ···} | ||
| 34 | }</string> | 24 | }</string> |
| 35 | ····<string>//·CS3006:·Overloaded·method·`CLSClass.Test(ref·int)'·differing·only·in·ref·or·out,·or·in·array·rank,·is·not·CLS-compliant | 25 | ····<string>//·CS3006:·Overloaded·method·`CLSClass.Test(ref·int)'·differing·only·in·ref·or·out,·or·in·array·rank,·is·not·CLS-compliant |
| 36 | //·Line:·1 | 26 | //·Line:·12 |
| 37 | //·Compiler·options:·-warnaserror·-warn:1 | 27 | //·Compiler·options:·-warnaserror·-warn:1 |
| 38 | using·System; | 28 | using·System; |
| 39 | [assembly:·CLSCompliant(true)] | 29 | [assembly:·CLSCompliant(true)] |
| 40 | public·class· | 30 | public·class·CLSClass·{ |
| 41 | { | ||
| 42 | ···public·void·Test(int·a)·{ | 31 | ···public·void·Test(int·a)·{ |
| 43 | ···} | 32 | ···} |
| 44 | } | ||
| 45 | public·class·CLSClass:·Base·{ | ||
| 46 | ···public·void·Test(ref·int·b)·{ | 33 | ···public·void·Test(ref·int·b)·{ |
| 47 | ···} | 34 | ···} |
| 48 | }</string> | 35 | }</string> |
| 49 | ····<string>//·CS3006:·Overloaded·method·`CLSInterface.Test( | 36 | ····<string>//·CS3006:·Overloaded·method·`CLSInterface.Test(ref·int)'·differing·only·in·ref·or·out,·or·in·array·rank,·is·not·CLS-compliant |
| 50 | //·Line:·10 | 37 | //·Line:·10 |
| 51 | //·Compiler·options:·-warnaserror·-warn:1 | 38 | //·Compiler·options:·-warnaserror·-warn:1 |
| 52 | using·System; | 39 | using·System; |
| 53 | [assembly:·CLSCompliant(true)] | 40 | [assembly:·CLSCompliant(true)] |
| 54 | public·interface·CLSInterface·{ | 41 | public·interface·CLSInterface·{ |
| 55 | ········void·Test( | 42 | ········void·Test(int·a); |
| 56 | ········void·Test( | 43 | ········void·Test(ref·int·b); |
| 57 | }</string> | 44 | }</string> |
| 58 | ····<string>//·CS3006:·Overloaded·method·`CLSClass. | 45 | ····<string>//·CS3006:·Overloaded·method·`CLSClass.Test(out·bool)'·differing·only·in·ref·or·out,·or·in·array·rank,·is·not·CLS-compliant |
| 59 | //·Line:·12 | 46 | //·Line:·12 |
| 60 | //·Compiler·options:·-warnaserror·-warn:1 | 47 | //·Compiler·options:·-warnaserror·-warn:1 |
| 61 | using·System; | 48 | using·System; |
| 62 | [assembly:·CLSCompliant(true)] | 49 | [assembly:·CLSCompliant(true)] |
| 63 | public·class·CLSClass·{ | 50 | public·abstract·class·CLSClass·{ |
| 64 | ··· | 51 | ···public·void·Test(bool·a)·{ |
| 65 | ··· | 52 | ···} |
| 66 | ····public·CLSClass(int[,]·b)·{ | ||
| 67 | ···· | 53 | ···public·abstract·void·Test(out·bool·b); |
| 54 | }</string> | ||
| 55 | ····<string>//·CS3006:·Overloaded·method·`Base<T>.Test(ref·int)'·differing·only·in·ref·or·out,·or·in·array·rank,·is·not·CLS-compliant | ||
| 56 | //·Line:·13 | ||
| 57 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| 58 | using·System; | ||
| 59 | [assembly:·CLSCompliant·(true)] | ||
| 60 | public·class·Base<T> | ||
| 61 | { | ||
| 62 | » public·void·Test·(int·a) | ||
| 63 | » { | ||
| 64 | » } | ||
| 65 | » public·void·Test·(ref·int·b) | ||
| 66 | » { | ||
| 67 | » } | ||
| 68 | } | ||
| 69 | public·class·CLSClass·:·Base<int> | ||
| 70 | { | ||
| 71 | » public·void·Test·() | ||
| 72 | » { | ||
| 73 | » } | ||
| 68 | }</string> | 74 | }</string> |
| 69 | ····<string>//·CS3006:·Overloaded·method·`CLSInterface.Test( | 75 | ····<string>//·CS3006:·Overloaded·method·`CLSInterface.Test(out·bool)'·differing·only·in·ref·or·out,·or·in·array·rank,·is·not·CLS-compliant |
| 70 | //·Line:·10 | 76 | //·Line:·10 |
| 71 | //·Compiler·options:·-warnaserror·-warn:1 | 77 | //·Compiler·options:·-warnaserror·-warn:1 |
| 72 | using·System; | 78 | using·System; |
| 73 | [assembly:·CLSCompliant(true)] | 79 | [assembly:·CLSCompliant(true)] |
| 74 | public·interface·CLSInterface·{ | 80 | public·interface·CLSInterface·{ |
| 75 | ········void·Test( | 81 | ········void·Test(bool·a); |
| 76 | ········void·Test( | 82 | ········void·Test(out·bool·b); |
| 77 | }</string> | 83 | }</string> |
| 78 | ····<string>//·CS3006:·Overloaded·method·`CLSClass.Test(ref·int)'·differing·only·in·ref·or·out,·or·in·array·rank,·is·not·CLS-compliant | 84 | ····<string>//·CS3006:·Overloaded·method·`CLSClass.Test(ref·int)'·differing·only·in·ref·or·out,·or·in·array·rank,·is·not·CLS-compliant |
| 79 | //·Line:·1 | 85 | //·Line:·15 |
| 80 | //·Compiler·options:·-warnaserror·-warn:1 | 86 | //·Compiler·options:·-warnaserror·-warn:1 |
| 81 | using·System; | 87 | using·System; |
| Max diff block lines reached; 940/5519 bytes (17.03%) of diff not shown. | |||
| Offset 1, 32 lines modified | Offset 1, 34 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS3008</ErrorName> | 3 | ··<ErrorName>CS3008</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS3008:·Identifier·`CLSClass._myEvent'·is·not·CLS-compliant | ||
| 6 | //·Line:·11 | ||
| 7 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| 8 | using·System; | ||
| 9 | [assembly:·CLSCompliant(true)] | ||
| 10 | public·delegate·void·MyDelegate(); | ||
| 11 | public·class·CLSClass·{ | ||
| 12 | ········public·event·MyDelegate·_myEvent; | ||
| 13 | }</string> | ||
| 14 | ····<string>//·CS3008:·Identifier·`__N'·is·not·CLS-compliant | 5 | ····<string>//·CS3008:·Identifier·`__N'·is·not·CLS-compliant |
| 15 | //·Line:·7 | 6 | //·Line:·7 |
| 16 | //·Compiler·options:·-warnaserror·-warn:1 | 7 | //·Compiler·options:·-warnaserror·-warn:1 |
| 17 | [assembly:System.CLSCompliant(true)] | 8 | [assembly:System.CLSCompliant(true)] |
| 18 | namespace·__N | 9 | namespace·__N |
| 19 | { | 10 | { |
| 20 | }</string> | 11 | }</string> |
| 12 | ····<string>//·CS3008:·Identifier·`System.Error.__ComObject'·is·not·CLS-compliant | ||
| 13 | //·Line:·9 | ||
| 14 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| 15 | using·System; | ||
| 16 | [assembly:CLSCompliant(true)] | ||
| 17 | namespace·System.Error·{ | ||
| 18 | » public·class·__ComObject·:·MarshalByRefObject·{ | ||
| 19 | » » private·__ComObject·() | ||
| 20 | » » { | ||
| 21 | » » } | ||
| 22 | » } | ||
| 23 | }</string> | ||
| 21 | ····<string>//·CS3008:·Identifier·`E2.__VALUE'·is·not·CLS-compliant | 24 | ····<string>//·CS3008:·Identifier·`E2.__VALUE'·is·not·CLS-compliant |
| 22 | //·Line:·9 | 25 | //·Line:·9 |
| 23 | //·Compiler·options:·-warnaserror·-warn:1 | 26 | //·Compiler·options:·-warnaserror·-warn:1 |
| 24 | using·System; | 27 | using·System; |
| 25 | [assembly:CLSCompliant·(true)] | 28 | [assembly:CLSCompliant·(true)] |
| Offset 39, 71 lines modified | Offset 41, 69 lines modified | ||
| 39 | using·System; | 41 | using·System; |
| 40 | [assembly:·CLSCompliant(true)] | 42 | [assembly:·CLSCompliant(true)] |
| 41 | public·class·CLSClass·{ | 43 | public·class·CLSClass·{ |
| 42 | ········public·const·string·_value·=·""; | 44 | ········public·const·string·_value·=·""; |
| 43 | }</string> | 45 | }</string> |
| 44 | ····<string>//·CS3008:·Identifier·`_ | 46 | ····<string>//·CS3008:·Identifier·`C._()'·is·not·CLS-compliant |
| 45 | //·Line:· | 47 | //·Line:·9 |
| 46 | //·Compiler·options:·-warnaserror·-warn:1 | 48 | //·Compiler·options:·-warnaserror·-warn:1 |
| 47 | using·System; | 49 | using·System; |
| 48 | [assembly:CLSCompliant(true)] | 50 | [assembly:CLSCompliant(true)] |
| 49 | public· | 51 | public·class·C·{ |
| 52 | ········public·void·_()·{} | ||
| 50 | }</string> | 53 | }</string> |
| 51 | ····<string>//·CS3008:·Identifier·` | 54 | ····<string>//·CS3008:·Identifier·`_A'·is·not·CLS-compliant |
| 52 | //·Line:· | 55 | //·Line:·8 |
| 53 | //·Compiler·options:·-warnaserror·-warn:1 | 56 | //·Compiler·options:·-warnaserror·-warn:1 |
| 54 | using·System; | 57 | using·System; |
| 55 | [assembly: | 58 | [assembly:CLSCompliant(true)] |
| 56 | public·class· | 59 | public·class·_A·{ |
| 57 | ········public·static·int·_value·=·3; | ||
| 58 | }</string> | 60 | }</string> |
| 59 | ····<string>//·CS3008:·Identifier·` | 61 | ····<string>//·CS3008:·Identifier·`I._()'·is·not·CLS-compliant |
| 60 | //·Line:·9 | 62 | //·Line:·9 |
| 61 | //·Compiler·options:·-warnaserror·-warn:1 | 63 | //·Compiler·options:·-warnaserror·-warn:1 |
| 62 | using·System; | 64 | using·System; |
| 63 | [assembly:CLSCompliant(true)] | 65 | [assembly:CLSCompliant(true)] |
| 64 | public·class·C·{ | ||
| 65 | 66 | public·interface·I·{ | |
| 67 | ········void·_(); | ||
| 66 | }</string> | 68 | }</string> |
| 67 | ····<string>//·CS3008:·Identifier·` | 69 | ····<string>//·CS3008:·Identifier·`_I'·is·not·CLS-compliant |
| 68 | //·Line:· | 70 | //·Line:·8 |
| 69 | //·Compiler·options:·-warnaserror·-warn:1 | 71 | //·Compiler·options:·-warnaserror·-warn:1 |
| 70 | using·System; | 72 | using·System; |
| 71 | [assembly:CLSCompliant(true)] | 73 | [assembly:CLSCompliant(true)] |
| 74 | public·interface·_I·{ | ||
| 72 | namespace·System.Error·{ | ||
| 73 | » public·class·__ComObject·:·MarshalByRefObject·{ | ||
| 74 | » » private·__ComObject·() | ||
| 75 | » » { | ||
| 76 | » » } | ||
| 77 | » } | ||
| 78 | }</string> | 75 | }</string> |
| 79 | ····<string>//·CS3008:·Identifier·` | 76 | ····<string>//·CS3008:·Identifier·`CLSClass._value'·is·not·CLS-compliant |
| 80 | //·Line:·9 | 77 | //·Line:·9 |
| 81 | //·Compiler·options:·-warnaserror·-warn:1 | 78 | //·Compiler·options:·-warnaserror·-warn:1 |
| 82 | using·System; | 79 | using·System; |
| 83 | [assembly:CLSCompliant(true)] | 80 | [assembly:·CLSCompliant(true)] |
| 84 | public·interface·I·{ | ||
| 85 | · | 81 | public·class·CLSClass·{ |
| 82 | ········public·static·int·_value·=·3; | ||
| 86 | }</string> | 83 | }</string> |
| 87 | ····<string>//·CS3008:·Identifier·`_ | 84 | ····<string>//·CS3008:·Identifier·`CLSClass._myEvent'·is·not·CLS-compliant |
| 88 | //·Line:· | 85 | //·Line:·11 |
| 89 | //·Compiler·options:·-warnaserror·-warn:1 | 86 | //·Compiler·options:·-warnaserror·-warn:1 |
| 90 | using·System; | 87 | using·System; |
| 91 | [assembly:CLSCompliant(true)] | 88 | [assembly:·CLSCompliant(true)] |
| 89 | public·delegate·void·MyDelegate(); | ||
| 92 | public·class· | 90 | public·class·CLSClass·{ |
| 91 | ········public·event·MyDelegate·_myEvent; | ||
| 93 | }</string> | 92 | }</string> |
| 94 | ··</Examples> | 93 | ··</Examples> |
| 95 | </ErrorDocumentation> | 94 | </ErrorDocumentation> |
| Offset 1, 33 lines modified | Offset 1, 11 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS3009</ErrorName> | 3 | ··<ErrorName>CS3009</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS3009:·`Days':·base·type·`uint'·is·not·CLS-compliant | ||
| 6 | //·Line:·8 | ||
| 7 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| 8 | using·System; | ||
| 9 | [assembly:CLSCompliant(true)] | ||
| 10 | public·enum·Days:·uint·{Sat=1,·Sun,·Mon,·Tue,·Wed,·Thu,·Fri};</string> | ||
| 11 | ····<string>//·CS3009:·`C':·base·type·`C<ulong>'·is·not·CLS-compliant | ||
| 12 | //·Line:·14 | ||
| 13 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| 14 | using·System; | ||
| 15 | [assembly:CLSCompliant(true)] | ||
| 16 | public·class·C<T> | ||
| 17 | { | ||
| 18 | } | ||
| 19 | public·class·C·:·C<ulong> | ||
| 20 | { | ||
| 21 | }</string> | ||
| 22 | ····<string>//·CS3009:·`AttributesForm':·base·type·`BaseClass'·is·not·CLS-compliant | 5 | ····<string>//·CS3009:·`AttributesForm':·base·type·`BaseClass'·is·not·CLS-compliant |
| 23 | //·Line:·17 | 6 | //·Line:·17 |
| 24 | //·Compiler·options:·-warnaserror·-warn:1 | 7 | //·Compiler·options:·-warnaserror·-warn:1 |
| 25 | //·The·error·is·reported·intentionally·twice. | 8 | //·The·error·is·reported·intentionally·twice. |
| Offset 56, 20 lines modified | Offset 34, 42 lines modified | ||
| 56 | [CLSCompliant·(false)] | 34 | [CLSCompliant·(false)] |
| 57 | public·class·BaseClass·{ | 35 | public·class·BaseClass·{ |
| 58 | } | 36 | } |
| 59 | public·class·CLSClass:·BaseClass·{ | 37 | public·class·CLSClass:·BaseClass·{ |
| 60 | }</string> | 38 | }</string> |
| 39 | ····<string>//·CS3009:·`Days':·base·type·`uint'·is·not·CLS-compliant | ||
| 40 | //·Line:·8 | ||
| 41 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| 42 | using·System; | ||
| 43 | [assembly:CLSCompliant(true)] | ||
| 44 | public·enum·Days:·uint·{Sat=1,·Sun,·Mon,·Tue,·Wed,·Thu,·Fri};</string> | ||
| 61 | ····<string>//·CS3009:·`CLSClass':·base·type·`System.Runtime.Serialization.Formatter'·is·not·CLS-compliant | 45 | ····<string>//·CS3009:·`CLSClass':·base·type·`System.Runtime.Serialization.Formatter'·is·not·CLS-compliant |
| 62 | //·Line:·10 | 46 | //·Line:·10 |
| 63 | //·Compiler·options:·-warnaserror·-warn:1 | 47 | //·Compiler·options:·-warnaserror·-warn:1 |
| 64 | using·System; | 48 | using·System; |
| 65 | using·System.Runtime.Serialization; | 49 | using·System.Runtime.Serialization; |
| 66 | [assembly:CLSCompliant·(true)] | 50 | [assembly:CLSCompliant·(true)] |
| 67 | public·abstract·class·CLSClass:·Formatter·{ | 51 | public·abstract·class·CLSClass:·Formatter·{ |
| 68 | }</string> | 52 | }</string> |
| 53 | ····<string>//·CS3009:·`C':·base·type·`C<ulong>'·is·not·CLS-compliant | ||
| 54 | //·Line:·14 | ||
| 55 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| 56 | using·System; | ||
| 57 | [assembly:CLSCompliant(true)] | ||
| 58 | public·class·C<T> | ||
| 59 | { | ||
| 60 | } | ||
| 61 | public·class·C·:·C<ulong> | ||
| 62 | { | ||
| 63 | }</string> | ||
| 69 | ··</Examples> | 64 | ··</Examples> |
| 70 | </ErrorDocumentation> | 65 | </ErrorDocumentation> |
| Offset 1, 73 lines modified | Offset 1, 73 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS3014</ErrorName> | 3 | ··<ErrorName>CS3014</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS3014:·` | 5 | ····<string>//·CS3014:·`D'·cannot·be·marked·as·CLS-compliant·because·the·assembly·is·not·marked·as·CLS-compliant |
| 6 | //·Line:· | 6 | //·Line:·8 |
| 7 | //·Compiler·options:·-warnaserror·-warn:1 | 7 | //·Compiler·options:·-warnaserror·-warn:1 |
| 8 | using·System; | 8 | using·System; |
| 9 | [CLSCompliant·(true)] | ||
| 10 | public·delegate·void·D·();</string> | ||
| 11 | ····<string>//·CS3014:·`I'·cannot·be·marked·as·CLS-compliant·because·the·assembly·is·not·marked·as·CLS-compliant | ||
| 12 | //·Line:·8 | ||
| 13 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| 14 | using·System; | ||
| 15 | [CLSCompliant·(true)] | ||
| 9 | public·interface·I·{ | 16 | public·interface·I·{ |
| 10 | ········[CLSCompliant·(true)] | ||
| 11 | ········void·Valid·(bool·arg); | ||
| 12 | }</string> | 17 | }</string> |
| 13 | ····<string>//·CS3014:·` | 18 | ····<string>//·CS3014:·`CLSClass.implicit·operator·CLSClass(byte)'·cannot·be·marked·as·CLS-compliant·because·the·assembly·is·not·marked·as·CLS-compliant |
| 14 | //·Line:· | 19 | //·Line:·9 |
| 15 | //·Compiler·options:·-warnaserror·-warn:1 | 20 | //·Compiler·options:·-warnaserror·-warn:1 |
| 16 | using·System; | 21 | using·System; |
| 17 | public· | 22 | public·abstract·class·CLSClass·{ |
| 18 | ········[CLSCompliant·(true)] | 23 | ········[CLSCompliant·(true)] |
| 24 | ········public·static·implicit·operator·CLSClass(byte·value)·{ | ||
| 25 | ················return·null; | ||
| 19 | ········ | 26 | ········} |
| 20 | }</string> | 27 | }</string> |
| 21 | ····<string>//·CS3014:·`E'·cannot·be·marked·as·CLS-compliant·because·the·assembly·is·not·marked·as·CLS-compliant | 28 | ····<string>//·CS3014:·`E'·cannot·be·marked·as·CLS-compliant·because·the·assembly·is·not·marked·as·CLS-compliant |
| 22 | //·Line:·8 | 29 | //·Line:·8 |
| 23 | //·Compiler·options:·-warnaserror·-warn:1 | 30 | //·Compiler·options:·-warnaserror·-warn:1 |
| 24 | using·System; | 31 | using·System; |
| 25 | [CLSCompliant·(true)] | 32 | [CLSCompliant·(true)] |
| 26 | public·enum·E·{ | 33 | public·enum·E·{ |
| 27 | }</string> | 34 | }</string> |
| 28 | ····<string>//·CS3014:·` | 35 | ····<string>//·CS3014:·`I.Valid(bool)'·cannot·be·marked·as·CLS-compliant·because·the·assembly·is·not·marked·as·CLS-compliant |
| 29 | //·Line:· | 36 | //·Line:·9 |
| 30 | //·Compiler·options:·-warnaserror·-warn:1 | 37 | //·Compiler·options:·-warnaserror·-warn:1 |
| 31 | using·System; | 38 | using·System; |
| 39 | public·interface·I·{ | ||
| 32 | [CLSCompliant·(true)] | 40 | ········[CLSCompliant·(true)] |
| 33 | 41 | ········void·Valid·(bool·arg); | |
| 34 | }</string> | 42 | }</string> |
| 35 | ····<string>//·CS3014:·` | 43 | ····<string>//·CS3014:·`E2.Foo'·cannot·be·marked·as·CLS-compliant·because·the·assembly·is·not·marked·as·CLS-compliant |
| 36 | //·Line:·8 | 44 | //·Line:·8 |
| 37 | //·Compiler·options:·-warnaserror·-warn:1 | 45 | //·Compiler·options:·-warnaserror·-warn:1 |
| 38 | using·System; | 46 | using·System; |
| 47 | public·enum·E2·{ | ||
| 39 | [CLSCompliant·(true)] | 48 | ········[CLSCompliant·(true)] |
| 40 | 49 | ········Foo | |
| 50 | }</string> | ||
| 41 | ····<string>//·CS3014:·` | 51 | ····<string>//·CS3014:·`C'·cannot·be·marked·as·CLS-compliant·because·the·assembly·is·not·marked·as·CLS-compliant |
| 42 | //·Line:·8 | 52 | //·Line:·8 |
| 43 | //·Compiler·options:·-warnaserror·-warn:1 | 53 | //·Compiler·options:·-warnaserror·-warn:1 |
| 44 | using·System; | 54 | using·System; |
| 45 | [CLSCompliant·(true)] | 55 | [CLSCompliant·(true)] |
| 56 | public·class·C·{ | ||
| 46 | public·interface·I·{ | ||
| 47 | }</string> | ||
| 48 | ····<string>//·CS3014:·`CLSClass.implicit·operator·CLSClass(byte)'·cannot·be·marked·as·CLS-compliant·because·the·assembly·is·not·marked·as·CLS-compliant | ||
| 49 | //·Line:·9 | ||
| 50 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| 51 | using·System; | ||
| 52 | public·abstract·class·CLSClass·{ | ||
| 53 | ········[CLSCompliant·(true)] | ||
| 54 | ········public·static·implicit·operator·CLSClass(byte·value)·{ | ||
| 55 | ················return·null; | ||
| 56 | ········} | ||
| 57 | }</string> | 57 | }</string> |
| 58 | ··</Examples> | 58 | ··</Examples> |
| 59 | </ErrorDocumentation> | 59 | </ErrorDocumentation> |
| Offset 6, 27 lines modified | Offset 6, 27 lines modified | ||
| 6 | //·Line:·8 | 6 | //·Line:·8 |
| 7 | //·Compiler·options:·-warnaserror·-warn:1 | 7 | //·Compiler·options:·-warnaserror·-warn:1 |
| 8 | using·System; | 8 | using·System; |
| 9 | [assembly:CLSCompliant·(true)] | 9 | [assembly:CLSCompliant·(true)] |
| 10 | public·class·CLSAttribute:·Attribute·{ | 10 | public·class·CLSAttribute:·Attribute·{ |
| 11 | ···public·CLSAttribute(string[]·array)·{ | ||
| 12 | ··· | 11 | ·······private·CLSAttribute(int·arg)·{ |
| 12 | ·······} | ||
| 13 | }</string> | 13 | }</string> |
| 14 | ····<string>//·CS3015:·`CLSAttribute'·has·no·accessible·constructors·which·use·only·CLS-compliant·types | 14 | ····<string>//·CS3015:·`CLSAttribute'·has·no·accessible·constructors·which·use·only·CLS-compliant·types |
| 15 | //·Line:·8 | 15 | //·Line:·8 |
| 16 | //·Compiler·options:·-warnaserror·-warn:1 | 16 | //·Compiler·options:·-warnaserror·-warn:1 |
| 17 | using·System; | 17 | using·System; |
| 18 | [assembly:CLSCompliant·(true)] | 18 | [assembly:CLSCompliant·(true)] |
| 19 | public·class·CLSAttribute:·Attribute·{ | 19 | public·class·CLSAttribute:·Attribute·{ |
| 20 | ·······private·CLSAttribute(int·arg)·{ | ||
| 21 | ····· | 20 | ···public·CLSAttribute(string[]·array)·{ |
| 21 | ···} | ||
| 22 | }</string> | 22 | }</string> |
| 23 | ····<string>//·CS3015:·`CLSAttribute'·has·no·accessible·constructors·which·use·only·CLS-compliant·types | 23 | ····<string>//·CS3015:·`CLSAttribute'·has·no·accessible·constructors·which·use·only·CLS-compliant·types |
| 24 | //·Line:·8 | 24 | //·Line:·8 |
| 25 | //·Compiler·options:·-warnaserror·-warn:1 | 25 | //·Compiler·options:·-warnaserror·-warn:1 |
| 26 | using·System; | 26 | using·System; |
| 27 | [assembly:CLSCompliant·(true)] | 27 | [assembly:CLSCompliant·(true)] |
| Offset 1, 27 lines modified | Offset 1, 12 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS3016</ErrorName> | 3 | ··<ErrorName>CS3016</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS3016:·Arrays·as·attribute·arguments·are·not·CLS-compliant | 5 | ····<string>//·CS3016:·Arrays·as·attribute·arguments·are·not·CLS-compliant |
| 6 | //·Line:·13 | ||
| 7 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| 8 | using·System; | ||
| 9 | [assembly:CLSCompliant(true)] | ||
| 10 | public·class·CLSAttribute:·Attribute·{ | ||
| 11 | ········public·CLSAttribute()·{} | ||
| 12 | ········public·CLSAttribute(string[]·array)·{} | ||
| 13 | } | ||
| 14 | [CLSAttribute(new·string[]·{·"",·""·})] | ||
| 15 | public·interface·ITest·{ | ||
| 16 | }</string> | ||
| 17 | ····<string>//·CS3016:·Arrays·as·attribute·arguments·are·not·CLS-compliant | ||
| 18 | //·Line:·8 | 6 | //·Line:·8 |
| 19 | //·Compiler·options:·-warnaserror·-warn:1 | 7 | //·Compiler·options:·-warnaserror·-warn:1 |
| 20 | using·System; | 8 | using·System; |
| 21 | [assembly:·System.CLSCompliant·(true)] | 9 | [assembly:·System.CLSCompliant·(true)] |
| 22 | [CLSAttribute·(new·bool·[]·{true,·false})] | 10 | [CLSAttribute·(new·bool·[]·{true,·false})] |
| Offset 79, 9 lines modified | Offset 64, 24 lines modified | ||
| 79 | public·class·CLSAttribute:·Attribute·{ | 64 | public·class·CLSAttribute:·Attribute·{ |
| 80 | ········public·CLSAttribute·()·{ | 65 | ········public·CLSAttribute·()·{ |
| 81 | ········} | 66 | ········} |
| 82 | ········ | 67 | ········ |
| 83 | ········public·CLSAttribute(bool[]·array)·{ | 68 | ········public·CLSAttribute(bool[]·array)·{ |
| 84 | ········} | 69 | ········} |
| 85 | }</string> | 70 | }</string> |
| 71 | ····<string>//·CS3016:·Arrays·as·attribute·arguments·are·not·CLS-compliant | ||
| 72 | //·Line:·13 | ||
| 73 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| 74 | using·System; | ||
| 75 | [assembly:CLSCompliant(true)] | ||
| 76 | public·class·CLSAttribute:·Attribute·{ | ||
| 77 | ········public·CLSAttribute()·{} | ||
| 78 | ········public·CLSAttribute(string[]·array)·{} | ||
| 79 | } | ||
| 80 | [CLSAttribute(new·string[]·{·"",·""·})] | ||
| 81 | public·interface·ITest·{ | ||
| 82 | }</string> | ||
| 86 | ··</Examples> | 83 | ··</Examples> |
| 87 | </ErrorDocumentation> | 84 | </ErrorDocumentation> |
| Offset 1, 22 lines modified | Offset 1, 11 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS3018</ErrorName> | 3 | ··<ErrorName>CS3018</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS3018:·`C.Error(bool)'·cannot·be·marked·as·CLS-compliant·because·it·is·a·member·of·non·CLS-compliant·type·`C' | ||
| 6 | //·Line:·10 | ||
| 7 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| 8 | using·System; | ||
| 9 | [assembly:CLSCompliant·(false)] | ||
| 10 | public·class·C·{ | ||
| 11 | ········[CLSCompliant·(true)] | ||
| 12 | ········protected·void·Error·(bool·arg)·{} | ||
| 13 | }</string> | ||
| 14 | ····<string>//·CS3018:·`NotCompliant.Compliant'·cannot·be·marked·as·CLS-compliant·because·it·is·a·member·of·non·CLS-compliant·type·`NotCompliant' | 5 | ····<string>//·CS3018:·`NotCompliant.Compliant'·cannot·be·marked·as·CLS-compliant·because·it·is·a·member·of·non·CLS-compliant·type·`NotCompliant' |
| 15 | //·Line:·12 | 6 | //·Line:·12 |
| 16 | //·Compiler·options:·-warnaserror·-warn:1 | 7 | //·Compiler·options:·-warnaserror·-warn:1 |
| 17 | using·System; | 8 | using·System; |
| 18 | [assembly:·CLSCompliant·(true)] | 9 | [assembly:·CLSCompliant·(true)] |
| Offset 35, 14 lines modified | Offset 24, 37 lines modified | ||
| 35 | using·System; | 24 | using·System; |
| 36 | [assembly:CLSCompliant·(false)] | 25 | [assembly:CLSCompliant·(false)] |
| 37 | public·class·C·{ | 26 | public·class·C·{ |
| 38 | ········[CLSCompliant·(true)] | 27 | ········[CLSCompliant·(true)] |
| 39 | ········public·long·field; | 28 | ········public·long·field; |
| 40 | }</string> | 29 | }</string> |
| 30 | ····<string>//·CS3018:·`C.Error(bool)'·cannot·be·marked·as·CLS-compliant·because·it·is·a·member·of·non·CLS-compliant·type·`C' | ||
| 31 | //·Line:·10 | ||
| 32 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| 33 | using·System; | ||
| 34 | [assembly:CLSCompliant·(false)] | ||
| 35 | public·class·C·{ | ||
| 36 | ········[CLSCompliant·(true)] | ||
| 37 | ········protected·void·Error·(bool·arg)·{} | ||
| 38 | }</string> | ||
| 39 | ····<string>//·CS3018:·`I.Error()'·cannot·be·marked·as·CLS-compliant·because·it·is·a·member·of·non·CLS-compliant·type·`I' | ||
| 40 | //·Line:·11 | ||
| 41 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| 42 | using·System; | ||
| 43 | [assembly:CLSCompliant(true)] | ||
| 44 | [CLSCompliant(false)] | ||
| 45 | public·interface·I·{ | ||
| 46 | ········[CLSCompliant(true)] | ||
| 47 | ········ulong[]·Error(); | ||
| 48 | }</string> | ||
| 41 | ····<string>//·CS3018:·`C1.I2'·cannot·be·marked·as·CLS-compliant·because·it·is·a·member·of·non·CLS-compliant·type·`C1' | 49 | ····<string>//·CS3018:·`C1.I2'·cannot·be·marked·as·CLS-compliant·because·it·is·a·member·of·non·CLS-compliant·type·`C1' |
| 42 | //·Line:·12 | 50 | //·Line:·12 |
| 43 | //·Compiler·options:·-warnaserror·-warn:1 | 51 | //·Compiler·options:·-warnaserror·-warn:1 |
| 44 | using·System; | 52 | using·System; |
| 45 | [assembly:·CLSCompliant·(true)] | 53 | [assembly:·CLSCompliant·(true)] |
| Offset 65, 21 lines modified | Offset 77, 9 lines modified | ||
| 65 | ····public·interface·I2·{} | 77 | ····public·interface·I2·{} |
| 66 | } | 78 | } |
| 67 | [CLSCompliant·(false)] | 79 | [CLSCompliant·(false)] |
| 68 | public·partial·class·C1 | 80 | public·partial·class·C1 |
| 69 | { | 81 | { |
| 70 | }</string> | 82 | }</string> |
| 71 | ····<string>//·CS3018:·`I.Error()'·cannot·be·marked·as·CLS-compliant·because·it·is·a·member·of·non·CLS-compliant·type·`I' | ||
| 72 | //·Line:·11 | ||
| 73 | //·Compiler·options:·-warnaserror·-warn:1 | ||
| 74 | using·System; | ||
| 75 | [assembly:CLSCompliant(true)] | ||
| 76 | [CLSCompliant(false)] | ||
| 77 | public·interface·I·{ | ||
| 78 | ········[CLSCompliant(true)] | ||
| 79 | ········ulong[]·Error(); | ||
| 80 | }</string> | ||
| 81 | ··</Examples> | 83 | ··</Examples> |
| 82 | </ErrorDocumentation> | 84 | </ErrorDocumentation> |
| Offset 5, 24 lines modified | Offset 5, 14 lines modified | ||
| 5 | ····<string>//·CS3019:·CLS·compliance·checking·will·not·be·performed·on·`CLSClass'·because·it·is·not·visible·from·outside·this·assembly | 5 | ····<string>//·CS3019:·CLS·compliance·checking·will·not·be·performed·on·`CLSClass'·because·it·is·not·visible·from·outside·this·assembly |
| 6 | //·Line:·8 | 6 | //·Line:·8 |
| 7 | //·Compiler·options:·-warnaserror·-warn:2 | 7 | //·Compiler·options:·-warnaserror·-warn:2 |
| 8 | using·System; | 8 | using·System; |
| 9 | [assembly:CLSCompliant·(true)] | 9 | [assembly:CLSCompliant·(true)] |
| 10 | [CLSCompliant·(true)] | ||
| 11 | class·CLSClass·{ | ||
| 12 | }</string> | ||
| 13 | ····<string>//·CS3019:·CLS·compliance·checking·will·not·be·performed·on·`CLSClass'·because·it·is·not·visible·from·outside·this·assembly | ||
| 14 | //·Line:·8 | ||
| 15 | //·Compiler·options:·-warnaserror·-warn:2 | ||
| 16 | using·System; | ||
| 17 | [assembly:CLSCompliant·(true)] | ||
| 18 | [CLSCompliant·(false)] | 10 | [CLSCompliant·(false)] |
| 19 | class·CLSClass·{ | 11 | class·CLSClass·{ |
| 20 | }</string> | 12 | }</string> |
| 21 | ····<string>//·CS3019:·CLS·compliance·checking·will·not·be·performed·on·`CLSClass.Foo()'·because·it·is·not·visible·from·outside·this·assembly | 13 | ····<string>//·CS3019:·CLS·compliance·checking·will·not·be·performed·on·`CLSClass.Foo()'·because·it·is·not·visible·from·outside·this·assembly |
| 22 | //·Line:·8 | 14 | //·Line:·8 |
| 23 | //·Compiler·options:·-warnaserror·-warn:2 | 15 | //·Compiler·options:·-warnaserror·-warn:2 |
| Offset 44, 9 lines modified | Offset 34, 19 lines modified | ||
| 44 | using·System; | 34 | using·System; |
| 45 | [assembly:CLSCompliant(true)] | 35 | [assembly:CLSCompliant(true)] |
| 46 | public·class·CLSClass<[CLSCompliant·(false)]·T> | 36 | public·class·CLSClass<[CLSCompliant·(false)]·T> |
| 47 | { | 37 | { |
| 48 | }</string> | 38 | }</string> |
| 39 | ····<string>//·CS3019:·CLS·compliance·checking·will·not·be·performed·on·`CLSClass'·because·it·is·not·visible·from·outside·this·assembly | ||
| 40 | //·Line:·8 | ||
| 41 | //·Compiler·options:·-warnaserror·-warn:2 | ||
| 42 | using·System; | ||
| 43 | [assembly:CLSCompliant·(true)] | ||
| 44 | [CLSCompliant·(true)] | ||
| 45 | class·CLSClass·{ | ||
| 46 | }</string> | ||
| 49 | ··</Examples> | 47 | ··</Examples> |
| 50 | </ErrorDocumentation> | 48 | </ErrorDocumentation> |
| Offset 5, 22 lines modified | Offset 5, 22 lines modified | ||
| 5 | ····<string>//·CS3021:·`I'·does·not·need·a·CLSCompliant·attribute·because·the·assembly·is·not·marked·as·CLS-compliant | 5 | ····<string>//·CS3021:·`I'·does·not·need·a·CLSCompliant·attribute·because·the·assembly·is·not·marked·as·CLS-compliant |
| 6 | //·Line:·9 | 6 | //·Line:·9 |
| 7 | //·Compiler·options:·-warn:2·-warnaserror | 7 | //·Compiler·options:·-warn:2·-warnaserror |
| 8 | using·System; | 8 | using·System; |
| 9 | [CLSCompliant·(false)] | 9 | [CLSCompliant·(false)] |
| 10 | public·interface·I | 10 | public·partial·interface·I |
| 11 | { | 11 | { |
| 12 | }</string> | 12 | }</string> |
| 13 | ····<string>//·CS3021:·`I'·does·not·need·a·CLSCompliant·attribute·because·the·assembly·is·not·marked·as·CLS-compliant | 13 | ····<string>//·CS3021:·`I'·does·not·need·a·CLSCompliant·attribute·because·the·assembly·is·not·marked·as·CLS-compliant |
| 14 | //·Line:·9 | 14 | //·Line:·9 |
| 15 | //·Compiler·options:·-warn:2·-warnaserror | 15 | //·Compiler·options:·-warn:2·-warnaserror |
| 16 | using·System; | 16 | using·System; |
| 17 | [CLSCompliant·(false)] | 17 | [CLSCompliant·(false)] |
| 18 | public· | 18 | public·interface·I |
| 19 | { | 19 | { |
| 20 | }</string> | 20 | }</string> |
| 21 | ··</Examples> | 21 | ··</Examples> |
| 22 | </ErrorDocumentation> | 22 | </ErrorDocumentation> |
| Offset 1, 39 lines modified | Offset 1, 39 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS3024</ErrorName> | 3 | ··<ErrorName>CS3024</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS3024:·Constraint·type·` | 5 | ····<string>//·CS3024:·Constraint·type·`I'·is·not·CLS-compliant |
| 6 | //·Line:·1 | 6 | //·Line:·13 |
| 7 | //·Compiler·options:·-warn:1·-warnaserror | 7 | //·Compiler·options:·-warn:1·-warnaserror |
| 8 | using·System; | 8 | using·System; |
| 9 | [assembly:CLSCompliant·(true)] | 9 | [assembly:CLSCompliant·(true)] |
| 10 | [CLSCompliant·(false)] | 10 | [CLSCompliant·(false)] |
| 11 | public· | 11 | public·interface·I |
| 12 | { | 12 | { |
| 13 | } | 13 | } |
| 14 | public·class·C | 14 | public·class·C<T>·where·T·:·I |
| 15 | { | 15 | { |
| 16 | » public·static·void·Foo<T>()·where·T·:·A | ||
| 17 | » { | ||
| 18 | » } | ||
| 19 | }</string> | 16 | }</string> |
| 20 | ····<string>//·CS3024:·Constraint·type·` | 17 | ····<string>//·CS3024:·Constraint·type·`A'·is·not·CLS-compliant |
| 21 | //·Line:·1 | 18 | //·Line:·15 |
| 22 | //·Compiler·options:·-warn:1·-warnaserror | 19 | //·Compiler·options:·-warn:1·-warnaserror |
| 23 | using·System; | 20 | using·System; |
| 24 | [assembly:CLSCompliant·(true)] | 21 | [assembly:CLSCompliant·(true)] |
| 25 | [CLSCompliant·(false)] | 22 | [CLSCompliant·(false)] |
| 26 | public· | 23 | public·abstract·class·A |
| 27 | { | 24 | { |
| 28 | } | 25 | } |
| 29 | public·class·C | 26 | public·class·C |
| 30 | { | 27 | { |
| 28 | » public·static·void·Foo<T>()·where·T·:·A | ||
| 29 | » { | ||
| 30 | » } | ||
| 31 | }</string> | 31 | }</string> |
| 32 | ··</Examples> | 32 | ··</Examples> |
| 33 | </ErrorDocumentation> | 33 | </ErrorDocumentation> |
| Offset 1, 28 lines modified | Offset 1, 28 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS4001</ErrorName> | 3 | ··<ErrorName>CS4001</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS4001:·Cannot·await·` | 5 | ····<string>//·CS4001:·Cannot·await·`int'·expression |
| 6 | //·Line:· | 6 | //·Line:·8 |
| 7 | using·System; | ||
| 8 | class·A | 7 | class·A |
| 9 | { | 8 | { |
| 10 | » static·async·void·Test·() | 9 | » static·async·void·Test·() |
| 11 | » { | 10 | » { |
| 12 | » » await· | 11 | » » await·1; |
| 13 | » } | 12 | » } |
| 14 | }</string> | 13 | }</string> |
| 15 | ····<string>//·CS4001:·Cannot·await·` | 14 | ····<string>//·CS4001:·Cannot·await·`void'·expression |
| 16 | //·Line:· | 15 | //·Line:·10 |
| 16 | using·System; | ||
| 17 | class·A | 17 | class·A |
| 18 | { | 18 | { |
| 19 | » static·async·void·Test·() | 19 | » static·async·void·Test·() |
| 20 | » { | 20 | » { |
| 21 | » » await· | 21 | » » await·Console.WriteLine·("await"); |
| 22 | » } | 22 | » } |
| 23 | }</string> | 23 | }</string> |
| 24 | ··</Examples> | 24 | ··</Examples> |
| 25 | </ErrorDocumentation> | 25 | </ErrorDocumentation> |
| Offset 3, 28 lines modified | Offset 3, 28 lines modified | ||
| 3 | ··<ErrorName>CS4003</ErrorName> | 3 | ··<ErrorName>CS4003</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS4003:·`await'·cannot·be·used·as·an·identifier·within·an·async·method·or·lambda·expression | 5 | ····<string>//·CS4003:·`await'·cannot·be·used·as·an·identifier·within·an·async·method·or·lambda·expression |
| 6 | //·Line:·8 | 6 | //·Line:·8 |
| 7 | class·Tester | 7 | class·Tester |
| 8 | { | 8 | { |
| 9 | » int·await; | ||
| 10 | » | ||
| 9 | » async·void·Test·() | 11 | » async·void·Test·() |
| 10 | » { | 12 | » { |
| 11 | » » | 13 | » » var·a·=·new·Initializer·()·{ |
| 14 | » » » await·=·2 | ||
| 15 | » » }; | ||
| 12 | » } | 16 | » } |
| 13 | }</string> | 17 | }</string> |
| 14 | ····<string>//·CS4003:·`await'·cannot·be·used·as·an·identifier·within·an·async·method·or·lambda·expression | 18 | ····<string>//·CS4003:·`await'·cannot·be·used·as·an·identifier·within·an·async·method·or·lambda·expression |
| 15 | //·Line:·8 | 19 | //·Line:·8 |
| 16 | class·Tester | 20 | class·Tester |
| 17 | { | 21 | { |
| 18 | » int·await; | ||
| 19 | » | ||
| 20 | » async·void·Test·() | 22 | » async·void·Test·() |
| 21 | » { | 23 | » { |
| 24 | » » int·await·=·1; | ||
| 22 | » » var·a·=·new·Initializer·()·{ | ||
| 23 | » » » await·=·2 | ||
| 24 | » » }; | ||
| 25 | » } | 25 | » } |
| 26 | }</string> | 26 | }</string> |
| 27 | ··</Examples> | 27 | ··</Examples> |
| 28 | </ErrorDocumentation> | 28 | </ErrorDocumentation> |
| Offset 1, 29 lines modified | Offset 1, 29 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS4005</ErrorName> | 3 | ··<ErrorName>CS4005</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS4005:·Async·methods·cannot·have·unsafe·parameters | 5 | ····<string>//·CS4005:·Async·methods·cannot·have·unsafe·parameters |
| 6 | //·Line:· | 6 | //·Line:·11 |
| 7 | //·Compiler·options:·-unsafe | 7 | //·Compiler·options:·-unsafe |
| 8 | class·C | 8 | class·C |
| 9 | { | 9 | { |
| 10 | » | 10 | » unsafe·delegate·void·D·(int*·i); |
| 11 | » | ||
| 12 | » public·static·void·Main·() | ||
| 11 | » { | 13 | » { |
| 14 | » » D·d·=·async·delegate·{·}; | ||
| 12 | » } | 15 | » } |
| 13 | }</string> | 16 | }</string> |
| 14 | ····<string>//·CS4005:·Async·methods·cannot·have·unsafe·parameters | 17 | ····<string>//·CS4005:·Async·methods·cannot·have·unsafe·parameters |
| 15 | //·Line:· | 18 | //·Line:·7 |
| 16 | //·Compiler·options:·-unsafe | 19 | //·Compiler·options:·-unsafe |
| 17 | class·C | 20 | class·C |
| 18 | { | 21 | { |
| 22 | » public·unsafe·async·void·Test·(int*·arg) | ||
| 19 | » unsafe·delegate·void·D·(int*·i); | ||
| 20 | » | ||
| 21 | » public·static·void·Main·() | ||
| 22 | » { | 23 | » { |
| 23 | » » D·d·=·async·delegate·{·}; | ||
| 24 | » } | 24 | » } |
| 25 | }</string> | 25 | }</string> |
| 26 | ··</Examples> | 26 | ··</Examples> |
| 27 | </ErrorDocumentation> | 27 | </ErrorDocumentation> |
| Offset 1, 23 lines modified | Offset 1, 11 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS4010</ErrorName> | 3 | ··<ErrorName>CS4010</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS4010:·Cannot·convert·async·anonymous·method·to·delegate·type·`System.Func<string>' | ||
| 6 | //·Line:·10 | ||
| 7 | using·System; | ||
| 8 | class·C | ||
| 9 | { | ||
| 10 | » public·static·void·Main·() | ||
| 11 | » { | ||
| 12 | » » Func<string>·a·=·async·delegate·{·}; | ||
| 13 | » } | ||
| 14 | }</string> | ||
| 15 | ····<string>//·CS4010:·Cannot·convert·async·lambda·expression·to·delegate·type·`System.Func<bool>' | 5 | ····<string>//·CS4010:·Cannot·convert·async·lambda·expression·to·delegate·type·`System.Func<bool>' |
| 16 | //·Line:·16 | 6 | //·Line:·16 |
| 17 | using·System; | 7 | using·System; |
| 18 | using·System.Threading.Tasks; | 8 | using·System.Threading.Tasks; |
| 19 | class·C | 9 | class·C |
| Offset 28, 9 lines modified | Offset 16, 21 lines modified | ||
| 28 | » } | 16 | » } |
| 29 | » | 17 | » |
| 30 | » public·static·void·Main·() | 18 | » public·static·void·Main·() |
| 31 | » { | 19 | » { |
| 32 | » » Func<bool>·a·=·async·()·=>·{·await·GetInt·();·}; | 20 | » » Func<bool>·a·=·async·()·=>·{·await·GetInt·();·}; |
| 33 | » } | 21 | » } |
| 34 | }</string> | 22 | }</string> |
| 23 | ····<string>//·CS4010:·Cannot·convert·async·anonymous·method·to·delegate·type·`System.Func<string>' | ||
| 24 | //·Line:·10 | ||
| 25 | using·System; | ||
| 26 | class·C | ||
| 27 | { | ||
| 28 | » public·static·void·Main·() | ||
| 29 | » { | ||
| 30 | » » Func<string>·a·=·async·delegate·{·}; | ||
| 31 | » } | ||
| 32 | }</string> | ||
| 35 | ··</Examples> | 33 | ··</Examples> |
| 36 | </ErrorDocumentation> | 34 | </ErrorDocumentation> |
| Offset 11, 66 lines modified | Offset 11, 66 lines modified | ||
| 11 | » { | 11 | » { |
| 12 | » » return·new·A·(); | 12 | » » return·new·A·(); |
| 13 | » } | 13 | » } |
| 14 | } | 14 | } |
| 15 | class·A | 15 | class·A |
| 16 | { | 16 | { |
| 17 | » | 17 | » bool·IsCompleted·{ |
| 18 | » » get·{ | 18 | » » get·{ |
| 19 | » » » return· | 19 | » » » return·true; |
| 20 | » » } | 20 | » » } |
| 21 | » } | 21 | » } |
| 22 | » | 22 | » |
| 23 | » void·OnCompleted·(System.Action·a) | ||
| 24 | » { | ||
| 25 | » } | ||
| 26 | » | ||
| 23 | » static·async·void·Test·() | 27 | » static·async·void·Test·() |
| 24 | » { | 28 | » { |
| 25 | » » await·9; | 29 | » » await·9; |
| 26 | » } | 30 | » } |
| 27 | }</string> | 31 | }</string> |
| 28 | ····<string>//·CS4011:·The·awaiter·type·` | 32 | ····<string>//·CS4011:·The·awaiter·type·`A'·must·have·suitable·IsCompleted·and·GetResult·members |
| 29 | //·Line:·16 | 33 | //·Line:·16 |
| 30 | static·class·S | 34 | static·class·S |
| 31 | { | 35 | { |
| 32 | » public·static· | 36 | » public·static·A·GetAwaiter·(this·int·i) |
| 33 | » { | 37 | » { |
| 34 | » » return· | 38 | » » return·new·A·(); |
| 35 | » } | 39 | » } |
| 36 | } | 40 | } |
| 37 | class·A | 41 | class·A |
| 38 | { | 42 | { |
| 43 | » int·IsCompleted·{ | ||
| 44 | » » get·{ | ||
| 45 | » » » return·1; | ||
| 46 | » » } | ||
| 47 | » } | ||
| 48 | » | ||
| 39 | » static·async·void·Test·() | 49 | » static·async·void·Test·() |
| 40 | » { | 50 | » { |
| 41 | » » await·9; | 51 | » » await·9; |
| 42 | » } | 52 | » } |
| 43 | }</string> | 53 | }</string> |
| 44 | ····<string>//·CS4011:·The·awaiter·type·` | 54 | ····<string>//·CS4011:·The·awaiter·type·`int'·must·have·suitable·IsCompleted·and·GetResult·members |
| 45 | //·Line:·16 | 55 | //·Line:·16 |
| 46 | static·class·S | 56 | static·class·S |
| 47 | { | 57 | { |
| 48 | » public·static· | 58 | » public·static·int·GetAwaiter·(this·int·i) |
| 49 | » { | 59 | » { |
| 50 | » » return· | 60 | » » return·1; |
| 51 | » } | 61 | » } |
| 52 | } | 62 | } |
| 53 | class·A | 63 | class·A |
| 54 | { | 64 | { |
| 55 | » bool·IsCompleted·{ | ||
| 56 | » » get·{ | ||
| 57 | » » » return·true; | ||
| 58 | » » } | ||
| 59 | » } | ||
| 60 | » | ||
| 61 | » void·OnCompleted·(System.Action·a) | ||
| 62 | » { | ||
| 63 | » } | ||
| 64 | » | ||
| 65 | » static·async·void·Test·() | 65 | » static·async·void·Test·() |
| 66 | » { | 66 | » { |
| 67 | » » await·9; | 67 | » » await·9; |
| 68 | » } | 68 | » } |
| 69 | }</string> | 69 | }</string> |
| 70 | ····<string>//·CS4011:·The·awaiter·type·`int'·must·have·suitable·IsCompleted·and·GetResult·members | 70 | ····<string>//·CS4011:·The·awaiter·type·`int'·must·have·suitable·IsCompleted·and·GetResult·members |
| 71 | //·Line:·16 | 71 | //·Line:·16 |
| Offset 1, 30 lines modified | Offset 1, 11 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS4012</ErrorName> | 3 | ··<ErrorName>CS4012</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS4012:·Parameters·or·local·variables·of·type·`S'·cannot·be·declared·in·async·methods·or·iterators | ||
| 6 | //·Line:·16 | ||
| 7 | //·Compiler·options:·-langversion:latest | ||
| 8 | using·System; | ||
| 9 | using·System.Threading.Tasks; | ||
| 10 | public·ref·struct·S | ||
| 11 | { | ||
| 12 | } | ||
| 13 | class·C | ||
| 14 | { | ||
| 15 | » public·async·void·Test·() | ||
| 16 | » { | ||
| 17 | » » var·tr·=·new·S·(); | ||
| 18 | » » await·Task.Factory.StartNew·(()·=>·6); | ||
| 19 | » } | ||
| 20 | }</string> | ||
| 21 | ····<string>//·CS4012:·Parameters·or·local·variables·of·type·`System.TypedReference'·cannot·be·declared·in·async·methods·or·iterators | 5 | ····<string>//·CS4012:·Parameters·or·local·variables·of·type·`System.TypedReference'·cannot·be·declared·in·async·methods·or·iterators |
| 22 | //·Line:·9 | 6 | //·Line:·9 |
| 23 | using·System; | 7 | using·System; |
| 24 | using·System.Collections; | 8 | using·System.Collections; |
| 25 | class·C | 9 | class·C |
| Offset 48, 9 lines modified | Offset 29, 28 lines modified | ||
| 48 | » public·async·void·Test·() | 29 | » public·async·void·Test·() |
| 49 | » { | 30 | » { |
| 50 | » » int·i·=·2; | 31 | » » int·i·=·2; |
| 51 | » » TypedReference·tr·=·__makeref·(i); | 32 | » » TypedReference·tr·=·__makeref·(i); |
| 52 | » » await·Task.Factory.StartNew·(()·=>·6); | 33 | » » await·Task.Factory.StartNew·(()·=>·6); |
| 53 | » } | 34 | » } |
| 54 | }</string> | 35 | }</string> |
| 36 | ····<string>//·CS4012:·Parameters·or·local·variables·of·type·`S'·cannot·be·declared·in·async·methods·or·iterators | ||
| 37 | //·Line:·16 | ||
| 38 | //·Compiler·options:·-langversion:latest | ||
| 39 | using·System; | ||
| 40 | using·System.Threading.Tasks; | ||
| 41 | public·ref·struct·S | ||
| 42 | { | ||
| 43 | } | ||
| 44 | class·C | ||
| 45 | { | ||
| 46 | » public·async·void·Test·() | ||
| 47 | » { | ||
| 48 | » » var·tr·=·new·S·(); | ||
| 49 | » » await·Task.Factory.StartNew·(()·=>·6); | ||
| 50 | » } | ||
| 51 | }</string> | ||
| 55 | ··</Examples> | 52 | ··</Examples> |
| 56 | </ErrorDocumentation> | 53 | </ErrorDocumentation> |
| Offset 1, 69 lines modified | Offset 1, 11 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS4014</ErrorName> | 3 | ··<ErrorName>CS4014</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS4014:·The·statement·is·not·awaited·and·execution·of·current·method·continues·before·the·call·is·completed.·Consider·using·`await'·operator | ||
| 6 | //·Line:·18 | ||
| 7 | //·Compiler·options:·-warnaserror | ||
| 8 | using·System; | ||
| 9 | using·System.Threading.Tasks; | ||
| 10 | class·C | ||
| 11 | { | ||
| 12 | » static·Task·Method·() | ||
| 13 | » { | ||
| 14 | » » return·Task.FromResult·(1); | ||
| 15 | » } | ||
| 16 | » | ||
| 17 | » static·async·Task<int>·TestAsync·() | ||
| 18 | » { | ||
| 19 | » » Method·(); | ||
| 20 | » » return·await·Task.FromResult·(2); | ||
| 21 | » } | ||
| 22 | }</string> | ||
| 23 | ····<string>//·CS4014:·The·statement·is·not·awaited·and·execution·of·current·method·continues·before·the·call·is·completed.·Consider·using·`await'·operator | ||
| 24 | //·Line:·18 | ||
| 25 | //·Compiler·options:·-warnaserror | ||
| 26 | using·System; | ||
| 27 | using·System.Threading.Tasks; | ||
| 28 | class·C | ||
| 29 | { | ||
| 30 | » static·async·Task<int>·TestAsync·() | ||
| 31 | » { | ||
| 32 | » » Func<Task>·f·=·null; | ||
| 33 | » » f·(); | ||
| 34 | » » return·await·Task.FromResult·(2); | ||
| 35 | » } | ||
| 36 | }</string> | ||
| 37 | ····<string>//·CS4014:·The·statement·is·not·awaited·and·execution·of·current·method·continues·before·the·call·is·completed.·Consider·using·`await'·operator | ||
| 38 | //·Line:·17 | ||
| 39 | //·Compiler·options:·-warnaserror | ||
| 40 | using·System; | ||
| 41 | using·System.Threading.Tasks; | ||
| 42 | class·C | ||
| 43 | { | ||
| 44 | » static·Task·Method·() | ||
| 45 | » { | ||
| 46 | » » return·Task.FromResult·(1); | ||
| 47 | » } | ||
| 48 | » | ||
| 49 | » static·void·TestAsync·() | ||
| 50 | » { | ||
| 51 | » » Func<Task>·a·=·async·()·=>·{ | ||
| 52 | » » » await·Method·(); | ||
| 53 | » » » Method·(); | ||
| 54 | » » }; | ||
| 55 | » } | ||
| 56 | }</string> | ||
| 57 | ····<string>//·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 | 5 | ····<string>//·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 |
| 58 | //·Line:·17 | 6 | //·Line:·17 |
| 59 | //·Compiler·options:·-warnaserror | 7 | //·Compiler·options:·-warnaserror |
| 60 | using·System; | 8 | using·System; |
| 61 | using·System.Threading.Tasks; | 9 | using·System.Threading.Tasks; |
| Offset 76, 25 lines modified | Offset 18, 30 lines modified | ||
| 76 | ····static·void·Main·() | 18 | ····static·void·Main·() |
| 77 | ····{ | 19 | ····{ |
| 78 | ········Test<object>·(); | 20 | ········Test<object>·(); |
| 79 | ····} | 21 | ····} |
| 80 | }</string> | 22 | }</string> |
| 81 | ····<string>//·CS4014:·The·statement·is·not·awaited·and·execution·of·current·method·continues·before·the·call·is·completed.·Consider·using·`await'·operator | 23 | ····<string>//·CS4014:·The·statement·is·not·awaited·and·execution·of·current·method·continues·before·the·call·is·completed.·Consider·using·`await'·operator |
| 82 | //·Line:·1 | 24 | //·Line:·18 |
| 83 | //·Compiler·options:·-warnaserror | 25 | //·Compiler·options:·-warnaserror |
| 84 | using·System; | 26 | using·System; |
| 85 | using·System.Threading.Tasks; | 27 | using·System.Threading.Tasks; |
| 86 | class·C | 28 | class·C |
| 87 | { | 29 | { |
| 30 | » static·Task·Method·() | ||
| 31 | » { | ||
| 32 | » » return·Task.FromResult·(1); | ||
| 33 | » } | ||
| 34 | » | ||
| 88 | » static·async·Task<int>·TestAsync·() | 35 | » static·async·Task<int>·TestAsync·() |
| 89 | » { | 36 | » { |
| 90 | » » | 37 | » » Method·(); |
| 91 | » » return·await·Task.FromResult·(2); | 38 | » » return·await·Task.FromResult·(2); |
| 92 | » } | 39 | » } |
| 93 | }</string> | 40 | }</string> |
| 94 | ····<string>//·CS4014:·The·statement·is·not·awaited·and·execution·of·current·method·continues·before·the·call·is·completed.·Consider·using·`await'·operator | 41 | ····<string>//·CS4014:·The·statement·is·not·awaited·and·execution·of·current·method·continues·before·the·call·is·completed.·Consider·using·`await'·operator |
| 95 | //·Line:·47 | 42 | //·Line:·47 |
| 96 | //·Compiler·options:·-warnaserror | 43 | //·Compiler·options:·-warnaserror |
| Offset 140, 9 lines modified | Offset 87, 62 lines modified | ||
| 140 | » static·async·Task·Test3·() | 87 | » static·async·Task·Test3·() |
| 141 | » { | 88 | » { |
| 142 | » » X·x·=·new·X·(); | 89 | » » X·x·=·new·X·(); |
| 143 | » » x.Foo·(); | 90 | » » x.Foo·(); |
| 144 | » » await·x.Foo·(); | 91 | » » await·x.Foo·(); |
| 145 | » } | 92 | » } |
| 146 | }</string> | 93 | }</string> |
| 94 | ····<string>//·CS4014:·The·statement·is·not·awaited·and·execution·of·current·method·continues·before·the·call·is·completed.·Consider·using·`await'·operator | ||
| 95 | //·Line:·12 | ||
| 96 | //·Compiler·options:·-warnaserror | ||
| 97 | using·System; | ||
| 98 | using·System.Threading.Tasks; | ||
| 99 | class·C | ||
| 100 | { | ||
| 101 | » static·async·Task<int>·TestAsync·() | ||
| 102 | » { | ||
| 103 | » » new·Task·(()·=>·{}); | ||
| 104 | » » return·await·Task.FromResult·(2); | ||
| 105 | » } | ||
| 106 | }</string> | ||
| 107 | ····<string>//·CS4014:·The·statement·is·not·awaited·and·execution·of·current·method·continues·before·the·call·is·completed.·Consider·using·`await'·operator | ||
| 108 | //·Line:·18 | ||
| 109 | //·Compiler·options:·-warnaserror | ||
| Max diff block lines reached; 23/4047 bytes (0.57%) of diff not shown. | |||
| Offset 1, 37 lines modified | Offset 1, 48 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS7003</ErrorName> | 3 | ··<ErrorName>CS7003</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS7003:·Unbound·generic·name·is·not·valid·in·this·context | 5 | ····<string>//·CS7003:·Unbound·generic·name·is·not·valid·in·this·context |
| 6 | //·Line:·10 | ||
| 7 | class·G<T> | ||
| 8 | { | ||
| 9 | } | ||
| 10 | class·C | ||
| 11 | { | ||
| 12 | » G<>·field; | ||
| 13 | }</string> | ||
| 14 | ····<string>//·CS7003:·Unbound·generic·name·is·not·valid·in·this·context | ||
| 6 | //·Line:·12 | 15 | //·Line:·12 |
| 7 | static·class·C | 16 | static·class·C |
| 8 | { | 17 | { |
| 9 | » static·void·Foo<T>·() | 18 | » static·void·Foo<T>·() |
| 10 | » { | 19 | » { |
| 11 | » } | 20 | » } |
| 12 | » static·void·Main·() | 21 | ·» static·void·Main·() |
| 13 | » { | 22 | » { |
| 14 | » » string·s·=·nameof·(Foo<>); | 23 | » » string·s·=·nameof·(C.Foo<>); |
| 15 | » } | 24 | » } |
| 16 | }</string> | 25 | }</string> |
| 17 | ····<string>//·CS7003:·Unbound·generic·name·is·not·valid·in·this·context | 26 | ····<string>//·CS7003:·Unbound·generic·name·is·not·valid·in·this·context |
| 18 | //·Line:·12 | 27 | //·Line:·12 |
| 19 | static·class·C | 28 | static·class·C |
| 20 | { | 29 | { |
| 21 | » static·void·Foo<T>·() | 30 | » static·void·Foo<T>·() |
| 22 | » { | 31 | » { |
| 23 | » } | 32 | » } |
| 24 | 33 | » static·void·Main·() | |
| 25 | » { | 34 | » { |
| 26 | » » string·s·=·nameof·( | 35 | » » string·s·=·nameof·(Foo<>); |
| 27 | » } | 36 | » } |
| 28 | }</string> | 37 | }</string> |
| 29 | ····<string>//·CS7003:·Unbound·generic·name·is·not·valid·in·this·context | 38 | ····<string>//·CS7003:·Unbound·generic·name·is·not·valid·in·this·context |
| 30 | //·Line:·14 | 39 | //·Line:·14 |
| 31 | class·A<T> | 40 | class·A<T> |
| 32 | { | 41 | { |
| Offset 42, 14 lines modified | Offset 53, 28 lines modified | ||
| 42 | } | 53 | } |
| 43 | class·X | 54 | class·X |
| 44 | { | 55 | { |
| 45 | » string·s·=·nameof·(A<>.B); | 56 | » string·s·=·nameof·(A<>.B); |
| 46 | }</string> | 57 | }</string> |
| 47 | ····<string>//·CS7003:·Unbound·generic·name·is·not·valid·in·this·context | 58 | ····<string>//·CS7003:·Unbound·generic·name·is·not·valid·in·this·context |
| 59 | //·Line:·8 | ||
| 60 | class·C | ||
| 61 | { | ||
| 62 | ····static·void·Main·() | ||
| 63 | ····{ | ||
| 64 | » » System.Action<>.Combine·(); | ||
| 65 | » } | ||
| 66 | }</string> | ||
| 67 | ····<string>//·CS7003:·Unbound·generic·name·is·not·valid·in·this·context | ||
| 68 | //·Line:·4 | ||
| 69 | using·SCGL·=·System.Collections.Generic.List<>;</string> | ||
| 70 | ····<string>//·CS7003:·Unbound·generic·name·is·not·valid·in·this·context | ||
| 48 | //·Line:·17 | 71 | //·Line:·17 |
| 49 | using·System; | 72 | using·System; |
| 50 | class·C<T> | 73 | class·C<T> |
| 51 | { | 74 | { |
| 52 | » public·class·G<U> | 75 | » public·class·G<U> |
| Offset 61, 39 lines modified | Offset 86, 14 lines modified | ||
| 61 | { | 86 | { |
| 62 | » public·static·void·Main·() | 87 | » public·static·void·Main·() |
| 63 | » { | 88 | » { |
| 64 | » » Type·t·=·typeof·(C<int>.G<>); | 89 | » » Type·t·=·typeof·(C<int>.G<>); |
| 65 | » } | 90 | » } |
| 66 | }</string> | 91 | }</string> |
| 67 | ····<string>//·CS7003:·Unbound·generic·name·is·not·valid·in·this·context | 92 | ····<string>//·CS7003:·Unbound·generic·name·is·not·valid·in·this·context |
| 68 | //·Line:·4 | ||
| 69 | using·SCGL·=·System.Collections.Generic.List<>;</string> | ||
| 70 | ····<string>//·CS7003:·Unbound·generic·name·is·not·valid·in·this·context | ||
| 71 | //·Line:·8 | ||
| 72 | class·C | ||
| 73 | { | ||
| 74 | ····static·void·Main·() | ||
| 75 | ····{ | ||
| 76 | » » System.Action<>.Combine·(); | ||
| 77 | » } | ||
| 78 | }</string> | ||
| 79 | ····<string>//·CS7003:·Unbound·generic·name·is·not·valid·in·this·context | ||
| 80 | //·Line:·10 | ||
| 81 | class·G<T> | ||
| 82 | { | ||
| 83 | } | ||
| 84 | class·C | ||
| 85 | { | ||
| 86 | » G<>·field; | ||
| 87 | }</string> | ||
| 88 | ····<string>//·CS7003:·Unbound·generic·name·is·not·valid·in·this·context | ||
| 89 | //·Line:·10 | 93 | //·Line:·10 |
| 90 | class·G<T> | 94 | class·G<T> |
| 91 | { | 95 | { |
| 92 | } | 96 | } |
| 93 | class·C | 97 | class·C |
| Offset 5, 22 lines modified | Offset 5, 22 lines modified | ||
| 5 | ····<string>//·CS7023:·The·second·operand·of·`is'·or·`as'·operator·cannot·be·static·type·`X' | 5 | ····<string>//·CS7023:·The·second·operand·of·`is'·or·`as'·operator·cannot·be·static·type·`X' |
| 6 | //·Line:·8 | 6 | //·Line:·8 |
| 7 | static·class·X | 7 | static·class·X |
| 8 | { | 8 | { |
| 9 | » public·static·void·Main·() | 9 | » public·static·void·Main·() |
| 10 | » { | 10 | » { |
| 11 | » » var·v·=·null· | 11 | » » var·v·=·null·as·X; |
| 12 | » } | 12 | » } |
| 13 | }</string> | 13 | }</string> |
| 14 | ····<string>//·CS7023:·The·second·operand·of·`is'·or·`as'·operator·cannot·be·static·type·`X' | 14 | ····<string>//·CS7023:·The·second·operand·of·`is'·or·`as'·operator·cannot·be·static·type·`X' |
| 15 | //·Line:·8 | 15 | //·Line:·8 |
| 16 | static·class·X | 16 | static·class·X |
| 17 | { | 17 | { |
| 18 | » public·static·void·Main·() | 18 | » public·static·void·Main·() |
| 19 | » { | 19 | » { |
| 20 | » » var·v·=·null· | 20 | » » var·v·=·null·is·X; |
| 21 | » } | 21 | » } |
| 22 | }</string> | 22 | }</string> |
| 23 | ··</Examples> | 23 | ··</Examples> |
| 24 | </ErrorDocumentation> | 24 | </ErrorDocumentation> |
| Offset 3, 24 lines modified | Offset 3, 24 lines modified | ||
| 3 | ··<ErrorName>CS7042</ErrorName> | 3 | ··<ErrorName>CS7042</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS7042:·The·DllImport·attribute·cannot·be·applied·to·a·method·that·is·generic·or·contained·in·a·generic·type | 5 | ····<string>//·CS7042:·The·DllImport·attribute·cannot·be·applied·to·a·method·that·is·generic·or·contained·in·a·generic·type |
| 6 | //·Line:·9 | 6 | //·Line:·9 |
| 7 | using·System.Runtime.InteropServices; | 7 | using·System.Runtime.InteropServices; |
| 8 | public·class·C | 8 | public·class·C<T> |
| 9 | { | 9 | { |
| 10 | » [DllImport·("my.dll")] | 10 | » [DllImport·("my.dll")] |
| 11 | » static·extern·void·Foo | 11 | » static·extern·void·Foo·(); |
| 12 | }</string> | 12 | }</string> |
| 13 | ····<string>//·CS7042:·The·DllImport·attribute·cannot·be·applied·to·a·method·that·is·generic·or·contained·in·a·generic·type | 13 | ····<string>//·CS7042:·The·DllImport·attribute·cannot·be·applied·to·a·method·that·is·generic·or·contained·in·a·generic·type |
| 14 | //·Line:·9 | 14 | //·Line:·9 |
| 15 | using·System.Runtime.InteropServices; | 15 | using·System.Runtime.InteropServices; |
| 16 | public·class·C | 16 | public·class·C |
| 17 | { | 17 | { |
| 18 | » [DllImport·("my.dll")] | 18 | » [DllImport·("my.dll")] |
| 19 | » static·extern·void·Foo·(); | 19 | » static·extern·void·Foo<T>·(); |
| 20 | }</string> | 20 | }</string> |
| 21 | ··</Examples> | 21 | ··</Examples> |
| 22 | </ErrorDocumentation> | 22 | </ErrorDocumentation> |
| Offset 6, 18 lines modified | Offset 6, 20 lines modified | ||
| 6 | //·Line:·11 | 6 | //·Line:·11 |
| 7 | using·System; | 7 | using·System; |
| 8 | using·System.Security; | 8 | using·System.Security; |
| 9 | using·System.Security.Permissions; | 9 | using·System.Security.Permissions; |
| 10 | public·class·Program·{ | 10 | public·class·Program·{ |
| 11 | ········public·delegate·int·DisplayHandler·(string·msg); | ||
| 12 | ····· | ||
| 13 | » [DebugPermission·(SecurityAction.RequestMinimum)] | ||
| 14 | ········public·event·DisplayHandler·OnShow; | ||
| 11 | ········[return:·DebugPermission·(SecurityAction.LinkDemand)] | ||
| 12 | ········public·int·Show·(string·message) | ||
| 13 | ········{ | ||
| 14 | ················return·2; | ||
| 15 | ········}···· | ||
| 15 | } | 16 | } |
| 16 | [AttributeUsage·(AttributeTargets.All,·AllowMultiple·=·true,·Inherited·=·false)] | 17 | [AttributeUsage·(AttributeTargets.All,·AllowMultiple·=·true,·Inherited·=·false)] |
| 17 | [Serializable] | 18 | [Serializable] |
| 18 | public·class·DebugPermissionAttribute·:·CodeAccessSecurityAttribute·{ | 19 | public·class·DebugPermissionAttribute·:·CodeAccessSecurityAttribute·{ |
| 19 | » public·DebugPermissionAttribute·(SecurityAction·action) | 20 | » public·DebugPermissionAttribute·(SecurityAction·action) |
| Offset 61, 20 lines modified | Offset 63, 18 lines modified | ||
| 61 | //·Line:·11 | 63 | //·Line:·11 |
| 62 | using·System; | 64 | using·System; |
| 63 | using·System.Security; | 65 | using·System.Security; |
| 64 | using·System.Security.Permissions; | 66 | using·System.Security.Permissions; |
| 65 | public·class·Program·{ | 67 | public·class·Program·{ |
| 68 | ········public·delegate·int·DisplayHandler·(string·msg); | ||
| 69 | ····· | ||
| 70 | » [DebugPermission·(SecurityAction.RequestMinimum)] | ||
| 71 | ········public·event·DisplayHandler·OnShow; | ||
| 66 | ········[return:·DebugPermission·(SecurityAction.LinkDemand)] | ||
| 67 | ········public·int·Show·(string·message) | ||
| 68 | ········{ | ||
| 69 | ················return·2; | ||
| 70 | ········}···· | ||
| 71 | } | 72 | } |
| 72 | [AttributeUsage·(AttributeTargets.All,·AllowMultiple·=·true,·Inherited·=·false)] | 73 | [AttributeUsage·(AttributeTargets.All,·AllowMultiple·=·true,·Inherited·=·false)] |
| 73 | [Serializable] | 74 | [Serializable] |
| 74 | public·class·DebugPermissionAttribute·:·CodeAccessSecurityAttribute·{ | 75 | public·class·DebugPermissionAttribute·:·CodeAccessSecurityAttribute·{ |
| 75 | » public·DebugPermissionAttribute·(SecurityAction·action) | 76 | » public·DebugPermissionAttribute·(SecurityAction·action) |
| Offset 15, 32 lines modified | Offset 15, 32 lines modified | ||
| 15 | » } | 15 | » } |
| 16 | » | 16 | » |
| 17 | » void·Skip·() | 17 | » void·Skip·() |
| 18 | » { | 18 | » { |
| 19 | » } | 19 | » } |
| 20 | }</string> | 20 | }</string> |
| 21 | ····<string>//·CS8030:·Anonymous·function·or·lambda·expression·converted·to·a·void·returning·delegate·cannot·return·a·value | 21 | ····<string>//·CS8030:·Anonymous·function·or·lambda·expression·converted·to·a·void·returning·delegate·cannot·return·a·value |
| 22 | //·Line:·9 | ||
| 23 | delegate·void·D·(int·x); | ||
| 24 | class·X·{ | ||
| 25 | » static·void·Main·() | ||
| 26 | » { | ||
| 27 | » » D·d6·=·delegate·(int·x)·{·return·x;·};·//·Return·type·mismatch. | ||
| 28 | » } | ||
| 29 | }</string> | ||
| 30 | ····<string>//·CS8030:·Anonymous·function·or·lambda·expression·converted·to·a·void·returning·delegate·cannot·return·a·value | ||
| 22 | //·Line:·11 | 31 | //·Line:·11 |
| 23 | using·System; | 32 | using·System; |
| 24 | using·System.Threading.Tasks; | 33 | using·System.Threading.Tasks; |
| 25 | class·C | 34 | class·C |
| 26 | { | 35 | { |
| 27 | » public·async·void·GetValue() | 36 | » public·async·void·GetValue() |
| 28 | » { | 37 | » { |
| 29 | » » return·await·Task.FromResult(100); | 38 | » » return·await·Task.FromResult(100); |
| 30 | » } | 39 | » } |
| 31 | }</string> | 40 | }</string> |
| 32 | ····<string>//·CS8030:·Anonymous·function·or·lambda·expression·converted·to·a·void·returning·delegate·cannot·return·a·value | ||
| 33 | //·Line:·9 | ||
| 34 | delegate·void·D·(int·x); | ||
| 35 | class·X·{ | ||
| 36 | » static·void·Main·() | ||
| 37 | » { | ||
| 38 | » » D·d6·=·delegate·(int·x)·{·return·x;·};·//·Return·type·mismatch. | ||
| 39 | » } | ||
| 40 | }</string> | ||
| 41 | ··</Examples> | 41 | ··</Examples> |
| 42 | </ErrorDocumentation> | 42 | </ErrorDocumentation> |
| Offset 5, 15 lines modified | Offset 5, 15 lines modified | ||
| 5 | ····<string>//·CS8082:·An·argument·to·nameof·operator·cannot·include·sub-expression | 5 | ····<string>//·CS8082:·An·argument·to·nameof·operator·cannot·include·sub-expression |
| 6 | //·Line:·9 | 6 | //·Line:·9 |
| 7 | class·C | 7 | class·C |
| 8 | { | 8 | { |
| 9 | » void·Foo·() | 9 | » void·Foo·() |
| 10 | » { | 10 | » { |
| 11 | » » | 11 | » » object·o·=·null; |
| 12 | » » var·s·=·nameof·(o.ToString·().Equals); | 12 | » » var·s·=·nameof·(o.ToString·().Equals); |
| 13 | » } | 13 | » } |
| 14 | }</string> | 14 | }</string> |
| 15 | ····<string>//·CS8082:·An·argument·to·nameof·operator·cannot·include·sub-expression | 15 | ····<string>//·CS8082:·An·argument·to·nameof·operator·cannot·include·sub-expression |
| 16 | //·Line:·8 | 16 | //·Line:·8 |
| 17 | class·C | 17 | class·C |
| Offset 26, 15 lines modified | Offset 26, 15 lines modified | ||
| 26 | ····<string>//·CS8082:·An·argument·to·nameof·operator·cannot·include·sub-expression | 26 | ····<string>//·CS8082:·An·argument·to·nameof·operator·cannot·include·sub-expression |
| 27 | //·Line:·9 | 27 | //·Line:·9 |
| 28 | class·C | 28 | class·C |
| 29 | { | 29 | { |
| 30 | » void·Foo·() | 30 | » void·Foo·() |
| 31 | » { | 31 | » { |
| 32 | » » | 32 | » » dynamic·o·=·null; |
| 33 | » » var·s·=·nameof·(o.ToString·().Equals); | 33 | » » var·s·=·nameof·(o.ToString·().Equals); |
| 34 | » } | 34 | » } |
| 35 | }</string> | 35 | }</string> |
| 36 | ····<string>//·CS8082:·An·argument·to·nameof·operator·cannot·include·sub-expression | 36 | ····<string>//·CS8082:·An·argument·to·nameof·operator·cannot·include·sub-expression |
| 37 | //·Line:·8 | 37 | //·Line:·8 |
| 38 | class·C | 38 | class·C |
| Offset 1, 26 lines modified | Offset 1, 26 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS8087</ErrorName> | 3 | ··<ErrorName>CS8087</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS8087:·A·` | 5 | ····<string>//·CS8087:·A·`{'·character·may·only·be·escaped·by·doubling·`{{'·in·an·interpolated·string |
| 6 | //·Line:·8 | 6 | //·Line:·8 |
| 7 | public·class·Test | 7 | public·class·Test |
| 8 | { | 8 | { |
| 9 | » public·static·int·Main·() | 9 | » public·static·int·Main·() |
| 10 | » { | 10 | » { |
| 11 | » » var·x·=·$"·\u007 | 11 | » » var·x·=·$"·\u007B·"; |
| 12 | » } | 12 | » } |
| 13 | }</string> | 13 | }</string> |
| 14 | ····<string>//·CS8087:·A·` | 14 | ····<string>//·CS8087:·A·`}'·character·may·only·be·escaped·by·doubling·`}}'·in·an·interpolated·string |
| 15 | //·Line:·8 | 15 | //·Line:·8 |
| 16 | public·class·Test | 16 | public·class·Test |
| 17 | { | 17 | { |
| 18 | » public·static·int·Main·() | 18 | » public·static·int·Main·() |
| 19 | » { | 19 | » { |
| 20 | » » var·x·=·$"·\u007 | 20 | » » var·x·=·$"·\u007D·"; |
| 21 | » } | 21 | » } |
| 22 | }</string> | 22 | }</string> |
| 23 | ··</Examples> | 23 | ··</Examples> |
| 24 | </ErrorDocumentation> | 24 | </ErrorDocumentation> |
| Offset 1, 12 lines modified | Offset 1, 35 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS8093</ErrorName> | 3 | ··<ErrorName>CS8093</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS8093:·An·argument·to·nameof·operator·cannot·be·extension·method·group | 5 | ····<string>//·CS8093:·An·argument·to·nameof·operator·cannot·be·extension·method·group |
| 6 | //·Line:·21 | ||
| 7 | public·class·A | ||
| 8 | { | ||
| 9 | } | ||
| 10 | static·class·X | ||
| 11 | { | ||
| 12 | » public·static·string·Extension·(this·int·a) | ||
| 13 | » { | ||
| 14 | » » return·null; | ||
| 15 | » } | ||
| 16 | } | ||
| 17 | public·static·class·Test | ||
| 18 | { | ||
| 19 | » public·static·void·Main·() | ||
| 20 | » { | ||
| 21 | » » A·a·=·null; | ||
| 22 | » » var·x·=·nameof·(a.Extension); | ||
| 23 | » } | ||
| 24 | }</string> | ||
| 25 | ····<string>//·CS8093:·An·argument·to·nameof·operator·cannot·be·extension·method·group | ||
| 6 | //·Line:·35 | 26 | //·Line:·35 |
| 7 | using·System; | 27 | using·System; |
| 8 | public·class·A | 28 | public·class·A |
| 9 | { | 29 | { |
| 10 | } | 30 | } |
| Offset 40, 32 lines modified | Offset 63, 9 lines modified | ||
| 40 | » » » if·(n·!=·"Extension") | 63 | » » » if·(n·!=·"Extension") |
| 41 | » » » » return·1; | 64 | » » » » return·1; |
| 42 | » » » return·0; | 65 | » » » return·0; |
| 43 | » » } | 66 | » » } |
| 44 | » } | 67 | » } |
| 45 | }</string> | 68 | }</string> |
| 46 | ····<string>//·CS8093:·An·argument·to·nameof·operator·cannot·be·extension·method·group | ||
| 47 | //·Line:·21 | ||
| 48 | public·class·A | ||
| 49 | { | ||
| 50 | } | ||
| 51 | static·class·X | ||
| 52 | { | ||
| 53 | » public·static·string·Extension·(this·int·a) | ||
| 54 | » { | ||
| 55 | » » return·null; | ||
| 56 | » } | ||
| 57 | } | ||
| 58 | public·static·class·Test | ||
| 59 | { | ||
| 60 | » public·static·void·Main·() | ||
| 61 | » { | ||
| 62 | » » A·a·=·null; | ||
| 63 | » » var·x·=·nameof·(a.Extension); | ||
| 64 | » } | ||
| 65 | }</string> | ||
| 66 | ··</Examples> | 69 | ··</Examples> |
| 67 | </ErrorDocumentation> | 70 | </ErrorDocumentation> |
| Offset 11, 15 lines modified | Offset 11, 15 lines modified | ||
| 11 | » { | 11 | » { |
| 12 | » » throw·null; | 12 | » » throw·null; |
| 13 | » } | 13 | » } |
| 14 | } | 14 | } |
| 15 | class·D·:·C | 15 | class·D·:·C |
| 16 | { | 16 | { |
| 17 | » public·override·(int,·int)·M·() | 17 | » public·override·(int·c,·int·d)·M·() |
| 18 | » { | 18 | » { |
| 19 | » » throw·null; | 19 | » » throw·null; |
| 20 | » } | 20 | » } |
| 21 | }</string> | 21 | }</string> |
| 22 | ····<string>//·CS8139:·`D.Prop':·cannot·change·return·type·tuple·element·names·when·overriding·inherited·member·`C.Prop' | 22 | ····<string>//·CS8139:·`D.Prop':·cannot·change·return·type·tuple·element·names·when·overriding·inherited·member·`C.Prop' |
| 23 | //·Line:·14 | 23 | //·Line:·14 |
| Offset 36, 43 lines modified | Offset 36, 43 lines modified | ||
| 36 | { | 36 | { |
| 37 | » public·override·(int·c,·int·d)·Prop·{ | 37 | » public·override·(int·c,·int·d)·Prop·{ |
| 38 | » » get·{ | 38 | » » get·{ |
| 39 | » » » throw·null; | 39 | » » » throw·null; |
| 40 | » » } | 40 | » » } |
| 41 | » }» | 41 | » }» |
| 42 | }</string> | 42 | }</string> |
| 43 | ····<string>//·CS8139:·`D.M()':·cannot·chang | 43 | ····<string>//·CS8139:·`D.M((int,·int))':·cannot·change·tuple·element·names·when·overriding·inherited·member·`C.M((int,·int))' |
| 44 | //·Line:·1 | 44 | //·Line:·13 |
| 45 | class·C | 45 | class·C |
| 46 | { | 46 | { |
| 47 | » public·virtual· | 47 | » public·virtual·void·M·((int,·int)·arg) |
| 48 | » { | 48 | » { |
| 49 | » » throw·null; | ||
| 50 | » } | 49 | » } |
| 51 | } | 50 | } |
| 52 | class·D·:·C | 51 | class·D·:·C |
| 53 | { | 52 | { |
| 54 | » public·override·(int·c,·int·d)· | 53 | » public·override·void·M·((int·c,·int·d)·arg) |
| 55 | » { | 54 | » { |
| 56 | » » throw·null; | ||
| 57 | » } | 55 | » } |
| 58 | }</string> | 56 | }</string> |
| 59 | ····<string>//·CS8139:·`D.M( | 57 | ····<string>//·CS8139:·`D.M()':·cannot·change·return·type·tuple·element·names·when·overriding·inherited·member·`C.M()' |
| 60 | //·Line:·1 | 58 | //·Line:·14 |
| 61 | class·C | 59 | class·C |
| 62 | { | 60 | { |
| 63 | » public·virtual· | 61 | » public·virtual·(int·a,·int·b)·M·() |
| 64 | » { | 62 | » { |
| 63 | » » throw·null; | ||
| 65 | » } | 64 | » } |
| 66 | } | 65 | } |
| 67 | class·D·:·C | 66 | class·D·:·C |
| 68 | { | 67 | { |
| 69 | » public·override· | 68 | » public·override·(int,·int)·M·() |
| 70 | » { | 69 | » { |
| 70 | » » throw·null; | ||
| 71 | » } | 71 | » } |
| 72 | }</string> | 72 | }</string> |
| 73 | ··</Examples> | 73 | ··</Examples> |
| 74 | </ErrorDocumentation> | 74 | </ErrorDocumentation> |
| Offset 1, 40 lines modified | Offset 1, 40 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS8141</ErrorName> | 3 | ··<ErrorName>CS8141</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS8141: | 5 | ····<string>//·CS8141: |
| 6 | //·Line:· | 6 | //·Line:·9 |
| 7 | public·interface·I<T> | 7 | public·interface·I<T> |
| 8 | { | 8 | { |
| 9 | » | 9 | » T·Test·(); |
| 10 | } | 10 | } |
| 11 | public·class·C·:·I<(int·a,·int·b)> | 11 | public·class·C·:·I<(int·a,·int·b)> |
| 12 | { | 12 | { |
| 13 | » public·int·this[(int·c,·int·d)·arg]·{ | ||
| 14 | » | 13 | » public·(int·c,·int·d)·Test·() |
| 14 | » { | ||
| 15 | » » | 15 | » » return·(1,·2); |
| 16 | » » } | ||
| 17 | » » set·{ | ||
| 18 | » » } | ||
| 19 | » } | 16 | » } |
| 20 | }</string> | 17 | }</string> |
| 21 | ····<string>//·CS8141: | 18 | ····<string>//·CS8141: |
| 22 | //·Line:· | 19 | //·Line:·11 |
| 23 | public·interface·I<T> | 20 | public·interface·I<T> |
| 24 | { | 21 | { |
| 25 | » T· | 22 | » int·this[T·arg]·{·get;·set;·} |
| 26 | } | 23 | } |
| 27 | public·class·C·:·I<(int·a,·int·b)> | 24 | public·class·C·:·I<(int·a,·int·b)> |
| 28 | { | 25 | { |
| 29 | » public·(int·c,·int·d)·Test·() | ||
| 30 | » { | 26 | » public·int·this[(int·c,·int·d)·arg]·{ |
| 27 | » » get·{ | ||
| 31 | » » return· | 28 | » » » return·1; |
| 29 | » » } | ||
| 30 | » » set·{ | ||
| 31 | » » } | ||
| 32 | » } | 32 | » } |
| 33 | }</string> | 33 | }</string> |
| 34 | ··</Examples> | 34 | ··</Examples> |
| 35 | </ErrorDocumentation> | 35 | </ErrorDocumentation> |
| Offset 1, 32 lines modified | Offset 1, 32 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS8149</ErrorName> | 3 | ··<ErrorName>CS8149</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS8149:·By-reference·returns·can·only·be·used·in· | 5 | ····<string>//·CS8149:·By-reference·returns·can·only·be·used·in·methods·that·return·by·reference |
| 6 | //·Line:·1 | 6 | //·Line:·10 |
| 7 | using·System; | ||
| 8 | class·A | 7 | class·A |
| 9 | { | 8 | { |
| 10 | » int·p; | 9 | » int·p; |
| 11 | » | ||
| 12 | » | 10 | » int·Test·() |
| 13 | » { | 11 | » { |
| 14 | » » | 12 | » » return·ref·p; |
| 15 | » } | 13 | » } |
| 16 | }</string> | 14 | }</string> |
| 17 | ····<string>//·CS8149:·By-reference·returns·can·only·be·used·in·me | 15 | ····<string>//·CS8149:·By-reference·returns·can·only·be·used·in·lambda·expressions·that·return·by·reference |
| 18 | //·Line:·1 | 16 | //·Line:·12 |
| 17 | using·System; | ||
| 19 | class·A | 18 | class·A |
| 20 | { | 19 | { |
| 21 | » int·p; | 20 | » int·p; |
| 21 | » | ||
| 22 | » | 22 | » void·Test·() |
| 23 | » { | 23 | » { |
| 24 | » » | 24 | » » Action·a·=·()·=>·ref·p; |
| 25 | » } | 25 | » } |
| 26 | }</string> | 26 | }</string> |
| 27 | ··</Examples> | 27 | ··</Examples> |
| 28 | </ErrorDocumentation> | 28 | </ErrorDocumentation> |
| Offset 1, 11 lines modified | Offset 1, 28 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS8175</ErrorName> | 3 | ··<ErrorName>CS8175</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS8175:·Cannot·use·by-reference·variable·`v'·inside·an·anonymous·method,·lambda·expression,·or·query·expression | ||
| 6 | //·Line:·14 | ||
| 7 | using·System; | ||
| 8 | public·class·Test | ||
| 9 | { | ||
| 10 | » public·static·void·Main() | ||
| 11 | » { | ||
| 12 | » » var·arr·=·new·int·[1]; | ||
| 13 | » » ref·var·v·=·ref·arr·[0]; | ||
| 14 | » » Action·a·=·delegate·{ | ||
| 15 | » » » ref·var·v2·=·ref·v; | ||
| 16 | » » }; | ||
| 17 | » } | ||
| 18 | }</string> | ||
| 5 | ····<string>//·CS8175:·Cannot·use·by-reference·variable·`s'·inside·an·anonymous·method,·lambda·expression,·or·query·expression | 19 | ····<string>//·CS8175:·Cannot·use·by-reference·variable·`s'·inside·an·anonymous·method,·lambda·expression,·or·query·expression |
| 6 | //·Line:·17 | 20 | //·Line:·17 |
| 7 | //·Compiler·options:·-langversion:latest | 21 | //·Compiler·options:·-langversion:latest |
| 8 | using·System; | 22 | using·System; |
| 9 | public·ref·struct·S | 23 | public·ref·struct·S |
| Offset 17, 26 lines modified | Offset 34, 9 lines modified | ||
| 17 | » public·static·void·Main·() | 34 | » public·static·void·Main·() |
| 18 | » { | 35 | » { |
| 19 | » » var·s·=·new·S·(); | 36 | » » var·s·=·new·S·(); |
| 20 | » » Action·a·=·()·=>·Console.WriteLine·(s); | 37 | » » Action·a·=·()·=>·Console.WriteLine·(s); |
| 21 | » } | 38 | » } |
| 22 | }</string> | 39 | }</string> |
| 23 | ····<string>//·CS8175:·Cannot·use·by-reference·variable·`v'·inside·an·anonymous·method,·lambda·expression,·or·query·expression | ||
| 24 | //·Line:·14 | ||
| 25 | using·System; | ||
| 26 | public·class·Test | ||
| 27 | { | ||
| 28 | » public·static·void·Main() | ||
| 29 | » { | ||
| 30 | » » var·arr·=·new·int·[1]; | ||
| 31 | » » ref·var·v·=·ref·arr·[0]; | ||
| 32 | » » Action·a·=·delegate·{ | ||
| 33 | » » » ref·var·v2·=·ref·v; | ||
| 34 | » » }; | ||
| 35 | » } | ||
| 36 | }</string> | ||
| 37 | ··</Examples> | 40 | ··</Examples> |
| 38 | </ErrorDocumentation> | 41 | </ErrorDocumentation> |
| Offset 1, 80 lines modified | Offset 1, 80 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS8200</ErrorName> | 3 | ··<ErrorName>CS8200</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS8200:·Out·variable·and·pattern·variable·declarations·are·not·allowed·within·constructor·initializers,·field·initializers,·or·property·initializers | 5 | ····<string>//·CS8200:·Out·variable·and·pattern·variable·declarations·are·not·allowed·within·constructor·initializers,·field·initializers,·or·property·initializers |
| 6 | //·Line:· | 6 | //·Line:·11 |
| 7 | public·class·C | 7 | public·class·C |
| 8 | { | 8 | { |
| 9 | » | 9 | » public·C·(bool·value) |
| 10 | » {» » | ||
| 11 | » } | ||
| 12 | » public·C·() | ||
| 13 | » » :·this·(Foo·(out·int·arg)) | ||
| 14 | » {» | ||
| 15 | » } | ||
| 10 | » static·bool·Foo·(out·int·arg) | 16 | » static·bool·Foo·(out·int·arg) |
| 11 | » { | 17 | » { |
| 12 | » » arg·=·2; | 18 | » » arg·=·2; |
| 13 | » » return·false; | 19 | » » return·false; |
| 14 | » } | 20 | » } |
| 15 | }</string> | 21 | }</string> |
| 16 | ····<string>//·CS8200:·Out·variable·and·pattern·variable·declarations·are·not·allowed·within·constructor·initializers,·field·initializers,·or·property·initializers | 22 | ····<string>//·CS8200:·Out·variable·and·pattern·variable·declarations·are·not·allowed·within·constructor·initializers,·field·initializers,·or·property·initializers |
| 17 | //·Line:·11 | 23 | //·Line:·11 |
| 18 | public·class·C | 24 | public·class·C |
| 19 | { | 25 | { |
| 26 | » bool·Prop·{·get;·}·=·Foo·(out·int·arg); | ||
| 20 | » public·C·(bool·value) | ||
| 21 | » {» » | ||
| 22 | » } | ||
| 23 | » public·C·() | ||
| 24 | » » :·this·(Foo·(out·int·arg)) | ||
| 25 | » {» | ||
| 26 | » } | ||
| 27 | » static·bool·Foo·(out·int·arg) | 27 | » static·bool·Foo·(out·int·arg) |
| 28 | » { | 28 | » { |
| 29 | » » arg·=·2; | 29 | » » arg·=·2; |
| 30 | » » return·false; | 30 | » » return·false; |
| 31 | » } | 31 | » } |
| 32 | }</string> | 32 | }</string> |
| 33 | ····<string>//·CS8200:·Out·variable·and·pattern·variable·declarations·are·not·allowed·within·constructor·initializers,·field·initializers,·or·property·initializers | 33 | ····<string>//·CS8200:·Out·variable·and·pattern·variable·declarations·are·not·allowed·within·constructor·initializers,·field·initializers,·or·property·initializers |
| 34 | //·Line:·6 | 34 | //·Line:·6 |
| 35 | class· | 35 | public·class·C |
| 36 | { | 36 | { |
| 37 | 37 | » bool·res·=·Foo·(out·int·arg); | |
| 38 | ····static·object·Foo·() | ||
| 39 | ····{ | ||
| 40 | ········return·false; | ||
| 41 | ···· | 38 | » static·bool·Foo·(out·int·arg) |
| 39 | » { | ||
| 40 | » » arg·=·2; | ||
| 41 | » » return·false; | ||
| 42 | » } | ||
| 42 | }</string> | 43 | }</string> |
| 43 | ····<string>//·CS8200:·Out·variable·and·pattern·variable·declarations·are·not·allowed·within·constructor·initializers,·field·initializers,·or·property·initializers | 44 | ····<string>//·CS8200:·Out·variable·and·pattern·variable·declarations·are·not·allowed·within·constructor·initializers,·field·initializers,·or·property·initializers |
| 44 | //·Line:·6 | 45 | //·Line:·6 |
| 45 | public·class·C | 46 | public·class·C |
| 46 | { | 47 | { |
| 47 | » bool·res·=·Foo·()·is·string·s; | 48 | » bool·res·=·Foo·()·is·string·s; |
| 48 | » static·object·Foo·() | 49 | » static·object·Foo·() |
| 49 | » { | 50 | » { |
| 50 | » » return·null; | 51 | » » return·null; |
| 51 | » } | 52 | » } |
| 52 | }</string> | 53 | }</string> |
| 53 | ····<string>//·CS8200:·Out·variable·and·pattern·variable·declarations·are·not·allowed·within·constructor·initializers,·field·initializers,·or·property·initializers | 54 | ····<string>//·CS8200:·Out·variable·and·pattern·variable·declarations·are·not·allowed·within·constructor·initializers,·field·initializers,·or·property·initializers |
| 54 | //·Line:· | 55 | //·Line:·6 |
| 55 | 56 | class·X | |
| 56 | { | 57 | { |
| 57 | 58 | ····public·static·bool·Test·{·get;·}·=·Foo·()·is·bool·x; | |
| 59 | ····static·object·Foo·() | ||
| 60 | ····{ | ||
| 61 | ········return·false; | ||
| 62 | ····} | ||
| 58 | » static·bool·Foo·(out·int·arg) | ||
| 59 | » { | ||
| 60 | » » arg·=·2; | ||
| 61 | » » return·false; | ||
| 62 | » } | ||
| 63 | }</string> | 63 | }</string> |
| 64 | ····<string>//·CS8200:·Out·variable·and·pattern·variable·declarations·are·not·allowed·within·constructor·initializers,·field·initializers,·or·property·initializers | 64 | ····<string>//·CS8200:·Out·variable·and·pattern·variable·declarations·are·not·allowed·within·constructor·initializers,·field·initializers,·or·property·initializers |
| 65 | //·Line:·8 | 65 | //·Line:·8 |
| 66 | using·System; | 66 | using·System; |
| 67 | public·class·C | 67 | public·class·C |
| Offset 1, 12 lines modified | Offset 1, 25 lines modified | ||
| 1 | <?xml·version="1.0"·encoding="utf-8"?> | 1 | <?xml·version="1.0"·encoding="utf-8"?> |
| 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | 2 | <ErrorDocumentation·xmlns:xsd="http://www.w3.org/2001/XMLSchema"·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 3 | ··<ErrorName>CS9030</ErrorName> | 3 | ··<ErrorName>CS9030</ErrorName> |
| 4 | ··<Examples> | 4 | ··<Examples> |
| 5 | ····<string>//·CS9030:·The·left-hand·side·of·an·assignment·cannot·contain·a·null·propagating·operator | 5 | ····<string>//·CS9030:·The·left-hand·side·of·an·assignment·cannot·contain·a·null·propagating·operator |
| 6 | //·Line:·11 | ||
| 7 | using·System; | ||
| 8 | class·MainClass | ||
| 9 | { | ||
| 10 | » public·static·void·Main·() | ||
| 11 | » { | ||
| 12 | » » System.AppDomain·a·=·null; | ||
| 13 | » » a?.AssemblyLoad·+=·(sender,·args)·=>·Console.Write·(args); | ||
| 14 | » } | ||
| 15 | }</string> | ||
| 16 | ····<string>//·CS9030:·The·left-hand·side·of·an·assignment·cannot·contain·a·null·propagating·operator | ||
| 6 | //·Line:·15 | 17 | //·Line:·15 |
| 7 | public·class·Test1 | 18 | public·class·Test1 |
| 8 | { | 19 | { |
| 9 | » public·class·Test2 | 20 | » public·class·Test2 |
| 10 | » { | 21 | » { |
| 11 | » » public·System.EventHandler<System.EventArgs>·E; | 22 | » » public·System.EventHandler<System.EventArgs>·E; |
| Offset 15, 22 lines modified | Offset 28, 9 lines modified | ||
| 15 | » public·Test2·test2·=·new·Test2·(); | 28 | » public·Test2·test2·=·new·Test2·(); |
| 16 | » static·void·Main·() | 29 | » static·void·Main·() |
| 17 | » { | 30 | » { |
| 18 | » » new·Test1·()?.test2.E·+=·null; | 31 | » » new·Test1·()?.test2.E·+=·null; |
| 19 | » } | 32 | » } |
| 20 | }</string> | 33 | }</string> |
| 21 | ····<string>//·CS9030:·The·left-hand·side·of·an·assignment·cannot·contain·a·null·propagating·operator | ||
| 22 | //·Line:·11 | ||
| 23 | using·System; | ||
| 24 | class·MainClass | ||
| 25 | { | ||
| 26 | » public·static·void·Main·() | ||
| 27 | » { | ||
| 28 | » » System.AppDomain·a·=·null; | ||
| 29 | » » a?.AssemblyLoad·+=·(sender,·args)·=>·Console.Write·(args); | ||
| 30 | » } | ||
| 31 | }</string> | ||
| 32 | ··</Examples> | 34 | ··</Examples> |
| 33 | </ErrorDocumentation> | 35 | </ErrorDocumentation> |
| Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
| 1 | -rw-r--r--···0········0········0········4·2025-09-01·13:00:08.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2025-09-01·13:00:08.000000·debian-binary |
| 2 | -rw-r--r--···0········0········0·····5176·2025-09-01·13:00:08.000000·control.tar.xz | 2 | -rw-r--r--···0········0········0·····5176·2025-09-01·13:00:08.000000·control.tar.xz |
| 3 | -rw-r--r--···0········0········0··5614 | 3 | -rw-r--r--···0········0········0··5614232·2025-09-01·13:00:08.000000·data.tar.xz |
| Offset 1, 13 lines modified | Offset 1, 13 lines modified | ||
| 1 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-09-01·13:00:08.000000·./ | 1 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-09-01·13:00:08.000000·./ |
| 2 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-09-01·13:00:08.000000·./usr/ | 2 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-09-01·13:00:08.000000·./usr/ |
| 3 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-09-01·13:00:08.000000·./usr/lib/ | 3 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-09-01·13:00:08.000000·./usr/lib/ |
| 4 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-09-01·13:00:08.000000·./usr/lib/mono/ | 4 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-09-01·13:00:08.000000·./usr/lib/mono/ |
| 5 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/ | 5 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/ |
| 6 | -rw-r--r--···0·root·········(0)·root·········(0)···204 | 6 | -rw-r--r--···0·root·········(0)·root·········(0)···204315·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/gacutil.exe.mdb |
| 7 | -rw-r--r--···0·root·········(0)·root·········(0)··1639504·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mscorlib.dll.mdb | 7 | -rw-r--r--···0·root·········(0)·root·········(0)··1639504·2025-09-01·13:00:08.000000·./usr/lib/mono/4.5/mscorlib.dll.mdb |
| 8 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-09-01·13:00:08.000000·./usr/lib/mono/gac/ | 8 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-09-01·13:00:08.000000·./usr/lib/mono/gac/ |
| 9 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-09-01·13:00:08.000000·./usr/lib/mono/gac/Accessibility/ | 9 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-09-01·13:00:08.000000·./usr/lib/mono/gac/Accessibility/ |
| 10 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-09-01·13:00:08.000000·./usr/lib/mono/gac/Accessibility/4.0.0.0__b03f5f7f11d50a3a/ | 10 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-09-01·13:00:08.000000·./usr/lib/mono/gac/Accessibility/4.0.0.0__b03f5f7f11d50a3a/ |
| 11 | -rw-r--r--···0·root·········(0)·root·········(0)······673·2025-09-01·13:00:08.000000·./usr/lib/mono/gac/Accessibility/4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll.mdb | 11 | -rw-r--r--···0·root·········(0)·root·········(0)······673·2025-09-01·13:00:08.000000·./usr/lib/mono/gac/Accessibility/4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll.mdb |
| 12 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-09-01·13:00:08.000000·./usr/lib/mono/gac/Commons.Xml.Relaxng/ | 12 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-09-01·13:00:08.000000·./usr/lib/mono/gac/Commons.Xml.Relaxng/ |
| 13 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-09-01·13:00:08.000000·./usr/lib/mono/gac/Commons.Xml.Relaxng/4.0.0.0__0738eb9f132ed756/ | 13 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-09-01·13:00:08.000000·./usr/lib/mono/gac/Commons.Xml.Relaxng/4.0.0.0__0738eb9f132ed756/ |
| Offset 1, 649 lines modified | Offset 1, 649 lines modified | ||
| 00000000:·14a6·7ffd·2326·e845·3200·0000·0000·0000··....#&.E2....... | 00000000:·14a6·7ffd·2326·e845·3200·0000·0000·0000··....#&.E2....... | ||
| 00000010:· | 00000010:·9976·02a9·eebf·c245·8711·91c6·d2c8·ee9e··.v.....E........ | ||
| 00000020:· | 00000020:·1b1e·0300·7000·0000·eb77·0200·5a00·0000··....p....w..Z... | ||
| 00000030:· | 00000030:·4b1b·0300·d002·0000·5a00·0000·7b18·0300··K.......Z...{... | ||
| 00000040:·d002·0000·580d·0000· | 00000040:·d002·0000·580d·0000·5b78·0200·20a0·0000··....X...[x..·... | ||
| 00000050:·0000·0000·0000·0000· | 00000050:·0000·0000·0000·0000·1b1e·0300·0000·0000··................ | ||
| 00000060:·ffff·ffff·0800·0000·0900·0000·0000·0000··................ | 00000060:·ffff·ffff·0800·0000·0900·0000·0000·0000··................ | ||
| 00000070:·442f·6275·696c·642f·7265·7072·6f64·7563··D/build/reproduc | 00000070:·442f·6275·696c·642f·7265·7072·6f64·7563··D/build/reproduc | ||
| 00000080:·6962·6c65·2d70·6174·682f·6d6f·6e6f·2d36··ible-path/mono-6 | 00000080:·6962·6c65·2d70·6174·682f·6d6f·6e6f·2d36··ible-path/mono-6 | ||
| 00000090:·2e31·342e·312b·6473·322f·6d63·732f·746f··.14.1+ds2/mcs/to | 00000090:·2e31·342e·312b·6473·322f·6d63·732f·746f··.14.1+ds2/mcs/to | ||
| 000000a0:·6f6c·732f·6761·6375·7469·6c2f·6472·6976··ols/gacutil/driv | 000000a0:·6f6c·732f·6761·6375·7469·6c2f·6472·6976··ols/gacutil/driv | ||
| 000000b0:·6572·2e63·7360·a66e·40cf·6482·4cb6·f042··er.cs`.n@.d.L..B | 000000b0:·6572·2e63·7360·a66e·40cf·6482·4cb6·f042··er.cs`.n@.d.L..B | ||
| 000000c0:·d481·72a7·99fd·15bd·d96f·c807·5289·d086··..r......o..R... | 000000c0:·d481·72a7·99fd·15bd·d96f·c807·5289·d086··..r......o..R... | ||
| 000000d0:·2dc5·8cb7·2400·502f·6275·696c·642f·7265··-...$.P/build/re | 000000d0:·2dc5·8cb7·2400·502f·6275·696c·642f·7265··-...$.P/build/re | ||
| 000000e0:·7072·6f64·7563·6962·6c65·2d70·6174·682f··producible-path/ | 000000e0:·7072·6f64·7563·6962·6c65·2d70·6174·682f··producible-path/ | ||
| 000000f0:·6d6f·6e6f·2d36·2e31·342e·312b·6473·322f··mono-6.14.1+ds2/ | 000000f0:·6d6f·6e6f·2d36·2e31·342e·312b·6473·322f··mono-6.14.1+ds2/ | ||
| 00000100:·6d63·732f·746f·6f6c·732f·7365·6375·7269··mcs/tools/securi | 00000100:·6d63·732f·746f·6f6c·732f·7365·6375·7269··mcs/tools/securi | ||
| 00000110:·7479·2f53·7472·6f6e·674e·616d·654d·616e··ty/StrongNameMan | 00000110:·7479·2f53·7472·6f6e·674e·616d·654d·616e··ty/StrongNameMan | ||
| 00000120:·6167·6572·2e63·7360·a66e·40cf·6482·4cb6··ager.cs`.n@.d.L. | 00000120:·6167·6572·2e63·7360·a66e·40cf·6482·4cb6··ager.cs`.n@.d.L. | ||
| 00000130:·f042·d481·72a7·9990·bdf1·1f4b·ad0c·f72a··.B..r......K...* | 00000130:·f042·d481·72a7·9990·bdf1·1f4b·ad0c·f72a··.B..r......K...* | ||
| 00000140:·4d75·90a8·eb86·e200· | 00000140:·4d75·90a8·eb86·e200·592f·6275·696c·642f··Mu......Y/build/ | ||
| 00000150:·7265·7072·6f64·7563·6962·6c65·2d70·6174··reproducible-pat | 00000150:·7265·7072·6f64·7563·6962·6c65·2d70·6174··reproducible-pat | ||
| 00000160:·682f·6d6f·6e6f·2d36·2e31·342e·312b·6473··h/mono-6.14.1+ds | 00000160:·682f·6d6f·6e6f·2d36·2e31·342e·312b·6473··h/mono-6.14.1+ds | ||
| 00000170:·322f·6578·7465·726e·616c·2f69·6b76·6d2f··2/external/ikvm/ | 00000170:·322f·6578·7465·726e·616c·2f69·6b76·6d2f··2/external/ikvm/ | ||
| 00000180:·7265·666c·6563·742f·41 | 00000180:·7265·666c·6563·742f·416d·6269·6775·6f75··reflect/Ambiguou | ||
| 00000190:·734d·6174·6368·4578·6365·7074·696f·6e2e··sMatchException. | |||
| 00000190:·4e61·6d65·2e63·7360·a66e·40cf·6482·4cb6··Name.cs`.n@.d.L. | |||
| 000001a0:·f042·d481·72a7·9988·d82a·120f·7abf·cfec··.B..r....*..z... | |||
| 000001b0:·1cca·7143·1560·6200·4c2f·6275·696c·642f··..qC.`b.L/build/ | |||
| 000001c0:·7265·7072·6f64·7563·6962·6c65·2d70·6174··reproducible-pat | |||
| 000001d0:·682f·6d6f·6e6f·2d36·2e31·342e·312b·6473··h/mono-6.14.1+ds | |||
| 000001e0:·322f·6578·7465·726e·616c·2f69·6b76·6d2f··2/external/ikvm/ | |||
| 000001f0:·7265·666c·6563·742f·5072·6f6a·6563·7469··reflect/Projecti | |||
| 00000200:·6f6e·2e63·7360·a66e·40cf·6482·4cb6·f042··on.cs`.n@.d.L..B | |||
| 00000210:·d481·72a7·992c·d344·6a2e·8d4c·7306·ac59··..r..,.Dj..Ls..Y | |||
| 00000220:·2308·8da6·ec00·4e2f·6275·696c·642f·7265··#.....N/build/re | |||
| 00000230:·7072·6f64·7563·6962·6c65·2d70·6174·682f··producible-path/ | |||
| 00000240:·6d6f·6e6f·2d36·2e31·342e·312b·6473·322f··mono-6.14.1+ds2/ | |||
| 00000250:·6578·7465·726e·616c·2f69·6b76·6d2f·7265··external/ikvm/re | |||
| 00000260:·666c·6563·742f·5072·6f70·6572·7479·496e··flect/PropertyIn | |||
| 00000270:·666f·2e63·7360·a66e·40cf·6482·4cb6·f042··fo.cs`.n@.d.L..B | |||
| 00000280:·d481·72a7·9973·5dce·cf77·8f21·000a·0175··..r..s]..w.!...u | |||
| 00000290:·ce96·b67a·8b00·532f·6275·696c·642f·7265··...z..S/build/re | |||
| 000002a0:·7072·6f64·7563·6962·6c65·2d70·6174·682f··producible-path/ | |||
| 000002b0:·6d6f·6e6f·2d36·2e31·342e·312b·6473·322f··mono-6.14.1+ds2/ | |||
| 000002c0:·6578·7465·726e·616c·2f69·6b76·6d2f·7265··external/ikvm/re | |||
| 000002d0:·666c·6563·742f·5061·7261·6d65·7465·724d··flect/ParameterM | |||
| 000002e0:·6f64·6966·6965·722e·6373·60a6·6e40·cf64··odifier.cs`.n@.d | |||
| 000002f0:·824c·b6f0·42d4·8172·a799·a9de·b83c·b084··.L..B..r.....<.. | |||
| 00000300:·2378·b0f5·28ea·2fd7·d213·0047·2f62·7569··#x..(./....G/bui | |||
| 00000310:·6c64·2f72·6570·726f·6475·6369·626c·652d··ld/reproducible- | |||
| 00000320:·7061·7468·2f6d·6f6e·6f2d·362e·3134·2e31··path/mono-6.14.1 | |||
| 00000330:·2b64·7332·2f65·7874·6572·6e61·6c2f·696b··+ds2/external/ik | |||
| 00000340:·766d·2f72·6566·6c65·6374·2f45·6e75·6d73··vm/reflect/Enums | |||
| 00000350:·2e63·7360·a66e·40cf·6482·4cb6·f042·d481··.cs`.n@.d.L..B.. | |||
| 00000360:·72a7·99bd·4446·cfb4·4438·e1f6·032b·a2f9··r...DF..D8...+.. | |||
| 00000370:·c9bc·9f00·562f·6275·696c·642f·7265·7072··....V/build/repr | |||
| 00000380:·6f64·7563·6962·6c65·2d70·6174·682f·6d6f··oducible-path/mo | |||
| 00000390:·6e6f·2d36·2e31·342e·312b·6473·322f·6578··no-6.14.1+ds2/ex | |||
| 000003a0:·7465·726e·616c·2f69·6b76·6d2f·7265·666c··ternal/ikvm/refl | |||
| 000003b0:·6563·742f·4d61·6e69·6665·7374·5265·736f··ect/ManifestReso | |||
| 000003c0:·7572·6365·496e·666f·2e63·7360·a66e·40cf··urceInfo.cs`.n@. | |||
| 000003d0:·6482·4cb6·f042·d481·72a7·9948·2cc4·69b0··d.L..B..r..H,.i. | |||
| 000003e0:·4fa6·0fc6·474d·dfff·bdd6·ae00·462f·6275··O...GM......F/bu | |||
| 000003f0:·696c·642f·7265·7072·6f64·7563·6962·6c65··ild/reproducible | |||
| 00000400:·2d70·6174·682f·6d6f·6e6f·2d36·2e31·342e··-path/mono-6.14. | |||
| 00000410:·312b·6473·322f·6578·7465·726e·616c·2f69··1+ds2/external/i | |||
| 00000420:·6b76·6d2f·7265·666c·6563·742f·5479·7065··kvm/reflect/Type | |||
| 00000430:·2e63·7360·a66e·40cf·6482·4cb6·f042·d481··.cs`.n@.d.L..B.. | |||
| 00000440:·72a7·99c8·1fe4·f733·e77d·8374·2100·c351··r......3.}.t!..Q | |||
| 00000450:·f7ed·7d00·4c2f·6275·696c·642f·7265·7072··..}.L/build/repr | |||
| 00000460:·6f64·7563·6962·6c65·2d70·6174·682f·6d6f··oducible-path/mo | |||
| 00000470:·6e6f·2d36·2e31·342e·312b·6473·322f·6578··no-6.14.1+ds2/ex | |||
| 00000480:·7465·726e·616c·2f69·6b76·6d2f·7265·666c··ternal/ikvm/refl | |||
| 00000490:·6563·742f·4d65·7468·6f64·426f·6479·2e63··ect/MethodBody.c | |||
| 000004a0:·7360·a66e·40cf·6482·4cb6·f042·d481·72a7··s`.n@.d.L..B..r. | |||
| 000004b0:·9970·0ab5·24d4·647c·9642·fa1f·2f24·bf52··.p..$.d|.B../$.R | |||
| 000004c0:·a700·592f·6275·696c·642f·7265·7072·6f64··..Y/build/reprod | |||
| 000004d0:·7563·6962·6c65·2d70·6174·682f·6d6f·6e6f··ucible-path/mono | |||
| 000004e0:·2d36·2e31·342e·312b·6473·322f·6578·7465··-6.14.1+ds2/exte | |||
| 000004f0:·726e·616c·2f69·6b76·6d2f·7265·666c·6563··rnal/ikvm/reflec | |||
| 00000500:·742f·416d·6269·6775·6f75·734d·6174·6368··t/AmbiguousMatch | |||
| 00000510:·4578·6365·7074·696f·6e2e·6373·60a6·6e40··Exception.cs`.n@ | |||
| 00000520:·cf64·824c·b6f0·42d4·8172·a799·b4c8·2dba··.d.L..B..r....-. | |||
| 00000530:·6855·a9d1·6a1f·1588·3a87·4ec1·0049·2f62··hU..j...:.N..I/b | |||
| 00000540:·7569·6c64·2f72·6570·726f·6475·6369·626c··uild/reproducibl | |||
| 00000550:·652d·7061·7468·2f6d·6f6e·6f2d·362e·3134··e-path/mono-6.14 | |||
| 00000560:·2e31·2b64·7332·2f65·7874·6572·6e61·6c2f··.1+ds2/external/ | |||
| 00000570:·696b·766d·2f72·6566·6c65·6374·2f4d·6973··ikvm/reflect/Mis | |||
| 00000580:·7369·6e67·2e63·7360·a66e·40cf·6482·4cb6··sing.cs`.n@.d.L. | |||
| 00000590:·f042·d481·72a7·995c·aad3·92ba·92e7·b46a··.B..r..\.......j | |||
| 000005a0:·215f·6c2f·b60a·b700·512f·6275·696c·642f··!_l/....Q/build/ | |||
| 000005b0:·7265·7072·6f64·7563·6962·6c65·2d70·6174··reproducible-pat | |||
| 000005c0:·682f·6d6f·6e6f·2d36·2e31·342e·312b·6473··h/mono-6.14.1+ds | |||
| 000005d0:·322f·6578·7465·726e·616c·2f69·6b76·6d2f··2/external/ikvm/ | |||
| 000005e0:·7265·666c·6563·742f·4d65·7468·6f64·5369··reflect/MethodSi | |||
| 000005f0:·676e·6174·7572·652e·6373·60a6·6e40·cf64··gnature.cs`.n@.d | |||
| 00000600:·824c·b6f0·42d4·8172·a799·71ab·19f7·c2a9··.L..B..r..q..... | |||
| 00000610:·8a8e·5cb5·292e·522f·3bce·0046·2f62·7569··..\.).R/;..F/bui | |||
| 00000620:·6c64·2f72·6570·726f·6475·6369·626c·652d··ld/reproducible- | |||
| 00000630:·7061·7468·2f6d·6f6e·6f2d·362e·3134·2e31··path/mono-6.14.1 | |||
| 00000640:·2b64·7332·2f65·7874·6572·6e61·6c2f·696b··+ds2/external/ik | |||
| 00000650:·766d·2f72·6566·6c65·6374·2f55·7469·6c2e··vm/reflect/Util. | |||
| 00000 | 000001a0:·6373·60a6·6e40·cf64·824c·b6f0·42d4·8172··cs`.n@.d.L..B..r | ||
| 00000 | 000001b0:·a799·b4c8·2dba·6855·a9d1·6a1f·1588·3a87··....-.hU..j...:. | ||
| 00000 | 000001c0:·4ec1·0048·2f62·7569·6c64·2f72·6570·726f··N..H/build/repro | ||
| 00000 | 000001d0:·6475·6369·626c·652d·7061·7468·2f6d·6f6e··ducible-path/mon | ||
| 000006a0:·6f2d·362e·3134·2e31·2b64·7332·2f65·7874··o-6.14.1+ds2/ext | |||
| 000006b0:·6572·6e61·6c2f·696b·766d·2f72·6566·6c65··ernal/ikvm/refle | |||
| 000006c0:·6374·2f53·7472·6f6e·674e·616d·654b·6579··ct/StrongNameKey | |||
| 000006d0:·5061·6972·2e63·7360·a66e·40cf·6482·4cb6··Pair.cs`.n@.d.L. | |||
| 000006e0:·f042·d481·72a7·990d·2851·a6a5·5504·791e··.B..r...(Q..U.y. | |||
| 000006f0:·464a·8108·37d5·0b00·532f·6275·696c·642f··FJ..7...S/build/ | |||
| 00000700:·7265·7072·6f64·7563·6962·6c65·2d70·6174··reproducible-pat | |||
| 00000710:·682f·6d6f·6e6f·2d36·2e31·342e·312b·6473··h/mono-6.14.1+ds | |||
| 00000720:·322f·6578·7465·726e·616c·2f69·6b76·6d2f··2/external/ikvm/ | |||
| 00000730:·7265·666c·6563·742f·5072·6f70·6572·7479··reflect/Property | |||
| 00000740:·5369·676e·6174·7572·652e·6373·60a6·6e40··Signature.cs`.n@ | |||
| 00000750:·cf64·824c·b6f0·42d4·8172·a799·26c4·b675··.d.L..B..r..&..u | |||
| 00000760:·bbf8·0bb2·e9fc·cad4·bcbb·757c·0051·2f62··..........u|.Q/b | |||
| 00000770:·7569·6c64·2f72·6570·726f·6475·6369·626c··uild/reproducibl | |||
| 00000780:·652d·7061·7468·2f6d·6f6e·6f2d·362e·3134··e-path/mono-6.14 | |||
| 00000790:·2e31·2b64·7332·2f65·7874·6572·6e61·6c2f··.1+ds2/external/ | |||
| 000007a0:·696b·766d·2f72·6566·6c65·6374·2f43·6f6e··ikvm/reflect/Con | |||
| 000007b0:·7374·7275·6374·6f72·496e·666f·2e63·7360··structorInfo.cs` | |||
| 000007c0:·a66e·40cf·6482·4cb6·f042·d481·72a7·996c··.n@.d.L..B..r..l | |||
| 000007d0:·58f7·cc07·23c2·91b7·cb4a·adbd·3508·af00··X...#....J..5... | |||
| Max diff block lines reached; 1672304/1713103 bytes (97.62%) of diff not shown. | |||
| Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
| 1 | -rw-r--r--···0········0········0········4·2025-09-01·13:00:08.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2025-09-01·13:00:08.000000·debian-binary |
| 2 | -rw-r--r--···0········0········0·····7480·2025-09-01·13:00:08.000000·control.tar.xz | 2 | -rw-r--r--···0········0········0·····7480·2025-09-01·13:00:08.000000·control.tar.xz |
| 3 | -rw-r--r--···0········0········0·1159 | 3 | -rw-r--r--···0········0········0·11592540·2025-09-01·13:00:08.000000·data.tar.xz |
| Offset 11, 15 lines modified | Offset 11, 15 lines modified | ||
| 11 | PE·Header: | 11 | PE·Header: |
| 12 | » ·········Magic·(0x010b):·0x010b | 12 | » ·········Magic·(0x010b):·0x010b |
| 13 | » ·············LMajor·(6):·0x08 | 13 | » ·············LMajor·(6):·0x08 |
| 14 | » ·············LMinor·(0):·0x00 | 14 | » ·············LMinor·(0):·0x00 |
| 15 | » ··············Code·Size:·0x00074200 | 15 | » ··············Code·Size:·0x00074200 |
| 16 | » ··Initialized·Data·Size:·0x00000800 | 16 | » ··Initialized·Data·Size:·0x00000800 |
| 17 | » Uninitialized·Data·Size:·0x00000000 | 17 | » Uninitialized·Data·Size:·0x00000000 |
| 18 | » ········Entry·Point·RVA:·0x000761 | 18 | » ········Entry·Point·RVA:·0x0007619e |
| 19 | » ·» ··Code·Base·RVA:·0x00002000 | 19 | » ·» ··Code·Base·RVA:·0x00002000 |
| 20 | » » ··Data·Base·RVA:·0x00078000 | 20 | » » ··Data·Base·RVA:·0x00078000 |
| 21 | NT·Header: | 21 | NT·Header: |
| 22 | » ···Image·Base·(0x400000):·0x00400000 | 22 | » ···Image·Base·(0x400000):·0x00400000 |
| 23 | » Section·Alignment·(8192):·0x00002000 | 23 | » Section·Alignment·(8192):·0x00002000 |
| Offset 41, 15 lines modified | Offset 41, 15 lines modified | ||
| 41 | » ··Heap·Reserve·Size·(1M):·0x00100000 | 41 | » ··Heap·Reserve·Size·(1M):·0x00100000 |
| 42 | » ·Heap·Commit·Size·(4096):·0x00001000 | 42 | » ·Heap·Commit·Size·(4096):·0x00001000 |
| 43 | » ······Loader·flags·(0x1):·0x00000000 | 43 | » ······Loader·flags·(0x1):·0x00000000 |
| 44 | » ···Data·Directories·(16):·0x00000010 | 44 | » ···Data·Directories·(16):·0x00000010 |
| 45 | Data·directories: | 45 | Data·directories: |
| 46 | » ·····Export·Table:·0x00000000·[0x00000000] | 46 | » ·····Export·Table:·0x00000000·[0x00000000] |
| 47 | » ·····Import·Table:·0x000761 | 47 | » ·····Import·Table:·0x00076150·[0x0000004b] |
| 48 | » ···Resource·Table:·0x0007a000·[0x000002e0] | 48 | » ···Resource·Table:·0x0007a000·[0x000002e0] |
| 49 | » ··Exception·Table:·0x00000000·[0x00000000] | 49 | » ··Exception·Table:·0x00000000·[0x00000000] |
| 50 | » Certificate·Table:·0x00000000·[0x00000000] | 50 | » Certificate·Table:·0x00000000·[0x00000000] |
| 51 | » ······Reloc·Table:·0x0007c000·[0x0000000c] | 51 | » ······Reloc·Table:·0x0007c000·[0x0000000c] |
| 52 | » ············Debug:·0x00000000·[0x00000000] | 52 | » ············Debug:·0x00000000·[0x00000000] |
| 53 | » ········Copyright:·0x00000000·[0x00000000] | 53 | » ········Copyright:·0x00000000·[0x00000000] |
| 54 | » ·······Global·Ptr:·0x00000000·[0x00000000] | 54 | » ·······Global·Ptr:·0x00000000·[0x00000000] |
| Offset 57, 26 lines modified | Offset 57, 26 lines modified | ||
| 57 | » Load·Config·Table:·0x00000000·[0x00000000] | 57 | » Load·Config·Table:·0x00000000·[0x00000000] |
| 58 | » ·····Bound·Import:·0x00000000·[0x00000000] | 58 | » ·····Bound·Import:·0x00000000·[0x00000000] |
| 59 | » ··············IAT:·0x00002000·[0x00000008] | 59 | » ··············IAT:·0x00002000·[0x00000008] |
| 60 | » Delay·Import·Desc:·0x00000000·[0x00000000] | 60 | » Delay·Import·Desc:·0x00000000·[0x00000000] |
| 61 | » ·······CLI·Header:·0x00002008·[0x00000048] | 61 | » ·······CLI·Header:·0x00002008·[0x00000048] |
| 62 | » Name:·.text | 62 | » Name:·.text |
| 63 | » ···Virtual·Size:·0x000741 | 63 | » ···Virtual·Size:·0x000741a4 |
| 64 | » Virtual·Address:·0x00002000 | 64 | » Virtual·Address:·0x00002000 |
| 65 | » ··Raw·Data·Size:·0x00074200 | 65 | » ··Raw·Data·Size:·0x00074200 |
| 66 | » ···Raw·Data·Ptr:·0x00000400 | 66 | » ···Raw·Data·Ptr:·0x00000400 |
| 67 | » ······Reloc·Ptr:·0x00000000 | 67 | » ······Reloc·Ptr:·0x00000000 |
| 68 | » ·····LineNo·Ptr:·0x00000000 | 68 | » ·····LineNo·Ptr:·0x00000000 |
| 69 | » ····Reloc·Count:·0x0000 | 69 | » ····Reloc·Count:·0x0000 |
| 70 | » ·····Line·Count:·0x0000 | 70 | » ·····Line·Count:·0x0000 |
| 71 | » Flags:·code,·exec,·read,· | 71 | » Flags:·code,·exec,·read,· |
| 72 | » Name:·.sdata | 72 | » Name:·.sdata |
| 73 | » ···Virtual·Size:·0x000001d | 73 | » ···Virtual·Size:·0x000001d4 |
| 74 | » Virtual·Address:·0x00078000 | 74 | » Virtual·Address:·0x00078000 |
| 75 | » ··Raw·Data·Size:·0x00000200 | 75 | » ··Raw·Data·Size:·0x00000200 |
| 76 | » ···Raw·Data·Ptr:·0x00074600 | 76 | » ···Raw·Data·Ptr:·0x00074600 |
| 77 | » ······Reloc·Ptr:·0x00000000 | 77 | » ······Reloc·Ptr:·0x00000000 |
| 78 | » ·····LineNo·Ptr:·0x00000000 | 78 | » ·····LineNo·Ptr:·0x00000000 |
| 79 | » ····Reloc·Count:·0x0000 | 79 | » ····Reloc·Count:·0x0000 |
| 80 | » ·····Line·Count:·0x0000 | 80 | » ·····Line·Count:·0x0000 |
| Offset 103, 15 lines modified | Offset 103, 15 lines modified | ||
| 103 | » ····Reloc·Count:·0x0000 | 103 | » ····Reloc·Count:·0x0000 |
| 104 | » ·····Line·Count:·0x0000 | 104 | » ·····Line·Count:·0x0000 |
| 105 | » Flags:·data,·discard,·read,· | 105 | » Flags:·data,·discard,·read,· |
| 106 | ··········CLI·header·size:·72 | 106 | ··········CLI·header·size:·72 |
| 107 | ·········Runtime·required:·2.5 | 107 | ·········Runtime·required:·2.5 |
| 108 | ····················Flags:·ilonly,·32/64,·no-trackdebug,·notsigned | 108 | ····················Flags:·ilonly,·32/64,·no-trackdebug,·notsigned |
| 109 | » ·········Metadata:·0x000360 | 109 | » ·········Metadata:·0x000360e8·[0x00040068] |
| 110 | » Entry·Point·Token:·0x06000002 | 110 | » Entry·Point·Token:·0x06000002 |
| 111 | » ·····Resources·at:·0x00000000·[0x00000000] | 111 | » ·····Resources·at:·0x00000000·[0x00000000] |
| 112 | » ···Strong·Name·at:·0x00000000·[0x00000000] | 112 | » ···Strong·Name·at:·0x00000000·[0x00000000] |
| 113 | » ··Code·Manager·at:·0x00000000·[0x00000000] | 113 | » ··Code·Manager·at:·0x00000000·[0x00000000] |
| 114 | » ··VTableFixups·at:·0x00000000·[0x00000000] | 114 | » ··VTableFixups·at:·0x00000000·[0x00000000] |
| 115 | » ·····EAT·jumps·at:·0x00000000·[0x00000000] | 115 | » ·····EAT·jumps·at:·0x00000000·[0x00000000] |
| Offset 122, 42 lines modified | Offset 122, 42 lines modified | ||
| 122 | Metadata·header: | 122 | Metadata·header: |
| 123 | ···········Version:·1.1 | 123 | ···········Version:·1.1 |
| 124 | ····Version·string:·v4.0.30319 | 124 | ····Version·string:·v4.0.30319 |
| 125 | Metadata·pointers: | 125 | Metadata·pointers: |
| 126 | » Tables·(#~):·0x0000006c·-·0x00021e5c·[138736·==·0x00021df0] | 126 | » Tables·(#~):·0x0000006c·-·0x00021e5c·[138736·==·0x00021df0] |
| 127 | » ····Strings:·0x00021e5c·-·0x000322b6·[66650·==·0x0001045a] | 127 | » ····Strings:·0x00021e5c·-·0x000322b6·[66650·==·0x0001045a] |
| 128 | » ·······Blob:·0x00039d50·-·0x000400 | 128 | » ·······Blob:·0x00039d50·-·0x00040068·[25368·==·0x00006318] |
| 129 | » User·string:·0x000322b8·-·0x00039d40·[31368·==·0x00007a88] | 129 | » User·string:·0x000322b8·-·0x00039d40·[31368·==·0x00007a88] |
| 130 | » ·······GUID:·0x00039d40·-·0x00039d50·[16·==·0x00000010] | 130 | » ·······GUID:·0x00039d40·-·0x00039d50·[16·==·0x00000010] |
| 131 | Rows: | 131 | Rows: |
| 132 | Table·Module:·1·records·(12·bytes,·at·345 | 132 | Table·Module:·1·records·(12·bytes,·at·345e4) |
| 133 | Table·TypeRef:·185·records·(10·bytes,·at·345 | 133 | Table·TypeRef:·185·records·(10·bytes,·at·345f0) |
| 134 | Table·TypeDef:·364·records·(18·bytes,·at·34d | 134 | Table·TypeDef:·364·records·(18·bytes,·at·34d2a) |
| 135 | Table·Field:·1871·records·(8·bytes,·at·366 | 135 | Table·Field:·1871·records·(8·bytes,·at·366c2) |
| 136 | Table·Method:·3576·records·(16·bytes,·at·3a1 | 136 | Table·Method:·3576·records·(16·bytes,·at·3a13a) |
| 137 | Table·Param:·3321·records·(8·bytes,·at·480 | 137 | Table·Param:·3321·records·(8·bytes,·at·480ba) |
| 138 | Table·InterfaceImpl:·51·records·(4·bytes,·at·4e8 | 138 | Table·InterfaceImpl:·51·records·(4·bytes,·at·4e882) |
| 139 | Table·MemberRef:·1103·records·(8·bytes,·at·4e9 | 139 | Table·MemberRef:·1103·records·(8·bytes,·at·4e94e) |
| 140 | Table·Constant:·513·records·(6·bytes,·at·50b | 140 | Table·Constant:·513·records·(6·bytes,·at·50bc6) |
| 141 | Table·CustomAttribute:·96·records·(8·bytes,·at·517 | 141 | Table·CustomAttribute:·96·records·(8·bytes,·at·517cc) |
| 142 | Table·DeclSecurity:·1·records·(6·bytes,·at·51a | 142 | Table·DeclSecurity:·1·records·(6·bytes,·at·51acc) |
| 143 | Table·ClassLayout:·10·records·(8·bytes,·at·51a | 143 | Table·ClassLayout:·10·records·(8·bytes,·at·51ad2) |
| 144 | Table·FieldLayoutt:·2·records·(6·bytes,·at·51b | 144 | Table·FieldLayoutt:·2·records·(6·bytes,·at·51b22) |
| 145 | Table·StandaloneSig:·521·records·(2·bytes,·at·51b | 145 | Table·StandaloneSig:·521·records·(2·bytes,·at·51b2e) |
| 146 | Table·EventMap:·2·records·(4·bytes,·at·51f | 146 | Table·EventMap:·2·records·(4·bytes,·at·51f40) |
| 147 | Table·Event:·4·records·(8·bytes,·at·51f | 147 | Table·Event:·4·records·(8·bytes,·at·51f48) |
| 148 | Table·PropertyMap:·149·records·(4·bytes,·at·51f | 148 | Table·PropertyMap:·149·records·(4·bytes,·at·51f68) |
| 149 | Table·Property:·1036·records·(8·bytes,·at·521 | 149 | Table·Property:·1036·records·(8·bytes,·at·521bc) |
| 150 | Table·MethodSemantics:·1072·records·(6·bytes,·at·542 | 150 | Table·MethodSemantics:·1072·records·(6·bytes,·at·5421c) |
| 151 | Table·MethodImpl:·53·records·(6·bytes,·at·55b | 151 | Table·MethodImpl:·53·records·(6·bytes,·at·55b3c) |
| 152 | Table·Moduleref:·2·records·(4·bytes,·at·55c | 152 | Table·Moduleref:·2·records·(4·bytes,·at·55c7a) |
| 153 | Table·TypeSpec:·325·records·(2·bytes,·at·55c | 153 | Table·TypeSpec:·325·records·(2·bytes,·at·55c82) |
| 154 | Table·ImplMap:·2·records·(10·bytes,·at·55 | 154 | Table·ImplMap:·2·records·(10·bytes,·at·55f0c) |
| 155 | Table·FieldRVA:·9·records·(6·bytes,·at·55f | 155 | Table·FieldRVA:·9·records·(6·bytes,·at·55f20) |
| 156 | Table·Assembly:·1·records·(26·bytes,·at·55f | 156 | Table·Assembly:·1·records·(26·bytes,·at·55f56) |
| 157 | Table·AssemblyRef:·4·records·(24·bytes,·at·55f | 157 | Table·AssemblyRef:·4·records·(24·bytes,·at·55f70) |
| 158 | Table·NestedClass:·102·records·(4·bytes,·at·55f | 158 | Table·NestedClass:·102·records·(4·bytes,·at·55fd0) |
| 159 | Table·GenericParam:·21·records·(10·bytes,·at·561 | 159 | Table·GenericParam:·21·records·(10·bytes,·at·56168) |
| 160 | Table·MethodSpec:·53·records·(4·bytes,·at·562 | 160 | Table·MethodSpec:·53·records·(4·bytes,·at·5623a) |
| 161 | Table·GenericParamConstraint:·13·records·(4·bytes,·at·56 | 161 | Table·GenericParamConstraint:·13·records·(4·bytes,·at·5630e) |
| 162 | RVA·for·Entry·Point:·0x00002058 | 162 | RVA·for·Entry·Point:·0x00002058 |