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

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 18 Jul 2004 17:13:47 -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-07-18 17:12:17.000000000 -0400
+++ shadow/60997.tmp.21738	2004-07-18 17:13:47.000000000 -0400
@@ -1,14 +1,14 @@
 Bug#: 60997
 Product: Mono: Compilers
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Minor
 Component: C#
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: vargaz@freemail.hu               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -41,6 +41,22 @@
 be found
 
 ------- Additional Comments From jluke@cfl.rr.com  2004-07-18 17:12 -------
 Created an attachment (id=8624)
 attempt at a patch
 
+
+------- Additional Comments From jluke@cfl.rr.com  2004-07-18 17:13 -------
+The above patch causes the test to print out:
+$ mcs t.cs
+t.cs(11) error CS0246: Could not find attribute 'DllImport' (are you
+missing a using directive or an assembly reference ?)
+t.cs(11) error CS0246: Could not find attribute 'DllImport' (are you
+missing a using directive or an assembly reference ?)
+t.cs(13) 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
+
+So it is probably not right in that it prints the first error twice,
+maybe with some help I can figure out the correct fix.