diff options
author | Marek Safar <marek.safar@gmail.com> | 2018-04-10 20:52:07 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2018-04-11 12:03:49 +0300 |
commit | 0d2609c11cdabf22c51a2734e47cad2717d3e93e (patch) | |
tree | 92452ccefdb3fbc49a51758850fb74d0e1c9cfcf /mcs/tests | |
parent | e3d8bdbf47f9675680f1472b30dc68804a6617ad (diff) |
[mcs] Fixes parameter check for interface types used with default parameters
Diffstat (limited to 'mcs/tests')
-rw-r--r-- | mcs/tests/test-default-01.cs | 14 | ||||
-rw-r--r-- | mcs/tests/ver-il-net_4_x.xml | 3 |
2 files changed, 15 insertions, 2 deletions
diff --git a/mcs/tests/test-default-01.cs b/mcs/tests/test-default-01.cs index 823e33c451b..28aff830cd9 100644 --- a/mcs/tests/test-default-01.cs +++ b/mcs/tests/test-default-01.cs @@ -41,7 +41,11 @@ static class X static System.Func<int> M4 () { return () => default; - } + } + + static void Foo (II a = default (II), II b = default, II c = (II) null) + { + } } /* enum E @@ -49,4 +53,10 @@ enum E A = default, B = default + 1 } -*/
\ No newline at end of file +*/ + + +interface II +{ + +}
\ No newline at end of file diff --git a/mcs/tests/ver-il-net_4_x.xml b/mcs/tests/ver-il-net_4_x.xml index 09ba756d68c..4fc8adbf4ab 100644 --- a/mcs/tests/ver-il-net_4_x.xml +++ b/mcs/tests/ver-il-net_4_x.xml @@ -68786,6 +68786,9 @@ <method name="Int32 <M4>m__0()" attrs="145"> <size>9</size> </method> + <method name="Void Foo(II, II, II)" attrs="145"> + <size>2</size> + </method> </type> </test> <test name="test-default-02.cs"> |