projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[mcs] Fixes codegen for type pattern matching in probing expressions over hoisted...
[mono.git]
/
mcs
/
tests
/
test-anon-163.cs
diff --git
a/mcs/tests/test-anon-163.cs
b/mcs/tests/test-anon-163.cs
index 9d3121d86968491cd6d4bd7bc4a6cbb69104f494..b44a5d29974d7522345e45253edf2c092948cd0c 100644
(file)
--- a/
mcs/tests/test-anon-163.cs
+++ b/
mcs/tests/test-anon-163.cs
@@
-9,6
+9,11
@@
class A
protected virtual void Foo2<T> ()
{
}
+
+ public virtual T Foo4<T> ()
+ {
+ return default (T);
+ }
}
class B : A
@@
-41,6
+46,12
@@
class B : A
a ();
}
+
+ public T Test4<T> ()
+ {
+ Func<T> a4 = () => base.Foo4<T> ();
+ return a4 ();
+ }
}
class Test