Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2009-09-09 19:37:22 +0400
committerMarek Safar <marek.safar@gmail.com>2009-09-09 19:37:22 +0400
commit19ca80083b72a11d9c1d36acfcae07a203177432 (patch)
treec26668f28c26d94adcdf3cfcb8f4770d04aa9018 /mcs/errors
parent288e614ea42448ce4e4d347355dc3f31771cf739 (diff)
New test.
svn path=/trunk/mcs/; revision=141616
Diffstat (limited to 'mcs/errors')
-rw-r--r--mcs/errors/gcs0308-7.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/mcs/errors/gcs0308-7.cs b/mcs/errors/gcs0308-7.cs
new file mode 100644
index 00000000000..bdcb6c221e6
--- /dev/null
+++ b/mcs/errors/gcs0308-7.cs
@@ -0,0 +1,18 @@
+// CS0308: The non-generic type `Foo' cannot be used with the type arguments
+// Line: 16
+
+public class Foo
+{
+ public string Test<T> ()
+ {
+ return null;
+ }
+}
+
+public static class Driver
+{
+ static object UseBrokenType ()
+ {
+ return Foo<int> ().Test ();
+ }
+}