diff options
author | Marek Safar <marek.safar@gmail.com> | 2014-11-28 22:23:40 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2014-11-28 22:23:40 +0300 |
commit | e24b4f1d3413da04de7ca587d0382cac7f90f54b (patch) | |
tree | 1393c3cca74ee3407152932d60321cea2734ef1f /mcs/tests/gtest-627.cs | |
parent | c1118b521eccbd1fbaca50762468eb9a216b4883 (diff) |
[mcs] new test
Diffstat (limited to 'mcs/tests/gtest-627.cs')
-rw-r--r-- | mcs/tests/gtest-627.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/mcs/tests/gtest-627.cs b/mcs/tests/gtest-627.cs new file mode 100644 index 00000000000..7ac0117862a --- /dev/null +++ b/mcs/tests/gtest-627.cs @@ -0,0 +1,19 @@ +using System; + +class X +{ + public static U Foo<U> (double? value, Func<double?, U> f, int dv = 0) + { + throw new ApplicationException (); + } + + public static U Foo<T, U> (T? source, Func<T, U> f) where T : struct + { + return default (U); + } + + static void Main (string[] args) + { + Foo (default (double?), v => v / 100); + } +} |