diff options
author | Marek Safar <marek.safar@gmail.com> | 2005-03-22 14:01:33 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2005-03-22 14:01:33 +0300 |
commit | fd45e86ed902456e1b49aff1841e1817f14df185 (patch) | |
tree | 28d9f352928a09284ef367798a1035f51f0d958a /mcs/errors/cs1717-2.cs | |
parent | bdd89beefc3e33f24b3915f8e7f5b3291ab64cce (diff) |
new error tests
svn path=/trunk/mcs/; revision=42096
Diffstat (limited to 'mcs/errors/cs1717-2.cs')
-rw-r--r-- | mcs/errors/cs1717-2.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mcs/errors/cs1717-2.cs b/mcs/errors/cs1717-2.cs new file mode 100644 index 00000000000..3d4fa3e4aa3 --- /dev/null +++ b/mcs/errors/cs1717-2.cs @@ -0,0 +1,12 @@ +// cs1717.cs: Assignment made to same variable; did you mean to assign something else? +// Line: 9 +// Compiler options: -warnaserror -warn:3 + +class A +{ + void B () + { + int l = 3; + l = l; + } +}
\ No newline at end of file |