[Mono-bugs] [Bug 60997][Wis] Changed - CS0626 is reported when the DllImport attribute is not found

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 31 Aug 2004 17:24:46 -0400 (EDT)


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 jluke@cfl.rr.com.

http://bugzilla.ximian.com/show_bug.cgi?id=60997

--- shadow/60997	2004-08-04 18:45:26.000000000 -0400
+++ shadow/60997.tmp.7642	2004-08-31 17:24:46.000000000 -0400
@@ -114,6 +114,26 @@
 
 I have reverted this.
 
 Notice that this is really a wishlist bug, and there are others
 that we should probably focus on (Major, Critical, Normal)
 
+
+------- Additional Comments From jluke@cfl.rr.com  2004-08-31 17:24 -------
+after the commit today to fix, bug #64689 it returns:
+
+$ mcs t.cs
+t.cs(6) error CS0246: Could not find attribute 'DllImport' (are you
+missing a using directive or an assembly reference ?)
+t.cs(6) error CS0246: Could not find attribute 'DllImport' (are you
+missing a using directive or an assembly reference ?)
+t.cs(8) error CS0626: Method, operator, or accessor
+'Tests.glutInit(ref int,System.Text.StringBuilder[])' is marked
+external and has no attributes on it. Consider adding a DllImport
+attribute to specify the external implementation
+Compilation failed: 3 error(s), 0 warnings
+
+which is an improvement in my opinion, but it would be nice to just
+have one error.
+
+I will attach an updated version of raja's patch which fixes this, and
+compiles, because this bug annoys me.