mail-archives/mono-bugs/2005-June/030428.html

140 строки
5.1 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 75261][Wis] New - [GMCS] a little bit more type
inference should be performed by gmcs
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%2075261%5D%5BWis%5D%20New%20-%20%5BGMCS%5D%20a%20little%20bit%20more%20type%0A%09inference%20should%20be%20performed%20by%20gmcs&In-Reply-To=bug-75261%40chernobyl.ximian.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="030427.html">
<LINK REL="Next" HREF="030429.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 75261][Wis] New - [GMCS] a little bit more type
inference should be performed by gmcs</H1>
<B>bugzilla-daemon at bugzilla.ximian.com</B>
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%2075261%5D%5BWis%5D%20New%20-%20%5BGMCS%5D%20a%20little%20bit%20more%20type%0A%09inference%20should%20be%20performed%20by%20gmcs&In-Reply-To=bug-75261%40chernobyl.ximian.com"
TITLE="[Mono-bugs] [Bug 75261][Wis] New - [GMCS] a little bit more type
inference should be performed by gmcs">bugzilla-daemon at bugzilla.ximian.com
</A><BR>
<I>Tue Jun 14 12:09:11 EDT 2005</I>
<P><UL>
<LI>Previous message: <A HREF="030427.html">[Mono-bugs] [Bug 75240][Nor] Changed - Remove mod_mono from the
installer
</A></li>
<LI>Next message: <A HREF="030429.html">[Mono-bugs] [Bug 75263][Nor] New - OdbcDataReader.cs bug in
GetPrimaryKeys() method
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#30428">[ date ]</a>
<a href="thread.html#30428">[ thread ]</a>
<a href="subject.html#30428">[ subject ]</a>
<a href="author.html#30428">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">nazgul at omega.pl.</A>
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=75261">http://bugzilla.ximian.com/show_bug.cgi?id=75261</A>
--- shadow/75261 2005-06-14 12:09:11.000000000 -0400
+++ shadow/75261.tmp.3997 2005-06-14 12:09:11.000000000 -0400
@@ -0,0 +1,66 @@
+Bug#: 75261
+Product: Mono: Compilers
+Version: 1.0
+OS:
+OS Details: PLD linux, mono from svn (13.07.2005)
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: C#
+AssignedTo: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at ximian.com</A>
+ReportedBy: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">nazgul at omega.pl</A>
+QAContact: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at ximian.com</A>
+TargetMilestone: ---
+URL:
+Cc:
+Summary: [GMCS] a little bit more type inference should be performed by gmcs
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+csc 2.0 beta 2 understand code demanding a slightly more type inference,
+than gmcs do currently
+
+Steps to reproduce the problem:
+1. Try to compile following code
+
+
+class list &lt;A&gt; {
+ public class Cons &lt;T&gt; : list &lt;T&gt; { }
+ public class Nil &lt;T&gt; : list &lt;T&gt; { }
+}
+
+class C {
+ public static void Rev&lt;T&gt; (list &lt;T&gt; y) {
+ if (y is list&lt;object&gt;.Cons&lt;T&gt;)
+ System.Console.WriteLine (&quot;Cons&quot;);
+ if (y is list&lt;object&gt;.Nil&lt;T&gt;)
+ System.Console.WriteLine (&quot;Nil&quot;);
+ }
+}
+class M {
+ static void Main () {
+ C.Rev (new list&lt;object&gt;.Cons &lt;string&gt; ());
+ C.Rev (new list&lt;object&gt;.Nil &lt;string&gt; ());
+ }
+}
+
+
+2.
+3.
+
+Actual Results:
+t.cs(24) error CS0411: The type arguments for method `Rev' cannot be
+infered from the usage. Try specifying the type arguments explicitly.
+abla
+t.cs(25) error CS0411: The type arguments for method `Rev' cannot be
+infered from the usage. Try specifying the type arguments explicitly.
+
+Expected Results:
+clear compiler
+
+How often does this happen?
+Always
+
+Additional Information:
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="030427.html">[Mono-bugs] [Bug 75240][Nor] Changed - Remove mod_mono from the
installer
</A></li>
<LI>Next message: <A HREF="030429.html">[Mono-bugs] [Bug 75263][Nor] New - OdbcDataReader.cs bug in
GetPrimaryKeys() method
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#30428">[ date ]</a>
<a href="thread.html#30428">[ thread ]</a>
<a href="subject.html#30428">[ subject ]</a>
<a href="author.html#30428">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">More information about the mono-bugs
mailing list</a><br>
</body></html>