diff options
author | Marek Safar <marek.safar@gmail.com> | 2008-07-30 19:53:41 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2008-07-30 19:53:41 +0400 |
commit | bf538ac1306ee3f6526f58f0985c6983c7e9de85 (patch) | |
tree | 5d3572646e082ac5d9d8133ec1079b13365e2a65 /mcs/tests/test-663.cs | |
parent | b68203fdbf0007b9fa182656633e9f98c0668990 (diff) |
New test + optimizations update
svn path=/trunk/mcs/; revision=109274
Diffstat (limited to 'mcs/tests/test-663.cs')
-rwxr-xr-x | mcs/tests/test-663.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/mcs/tests/test-663.cs b/mcs/tests/test-663.cs new file mode 100755 index 00000000000..141ae889798 --- /dev/null +++ b/mcs/tests/test-663.cs @@ -0,0 +1,23 @@ +class A +{ + public static implicit operator int (A a) + { + return 1; + } + + public static implicit operator bool (A a) + { + return false; + } +} + +class C +{ + public static void Main () + { + switch (new A ()) + { + default: break; + } + } +}
\ No newline at end of file |