[Mono-bugs] [Bug 69163][Nor] New - ilasm cant compile code from monodis
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 5 Nov 2004 18:50:29 -0500 (EST)
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=69163
--- shadow/69163 2004-11-05 18:50:28.000000000 -0500
+++ shadow/69163.tmp.24741 2004-11-05 18:50:28.000000000 -0500
@@ -0,0 +1,75 @@
+Bug#: 69163
+Product: Mono: Compilers
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: IL assembler
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: jluke@cfl.rr.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: ilasm cant compile code from monodis
+
+// t.cs
+using System;
+using System.Reflection;
+
+public class T : A, I2
+{
+ static void Main ()
+ {
+ MemberInfo[] members = typeof (T).GetMember ("I.get_Foo",
+BindingFlags.NonPublic | BindingFlags.Instance);
+ foreach (MemberInfo mi in members)
+ {
+ if (mi is MethodInfo)
+ Console.WriteLine
+(((MethodInfo)mi).IsSpecialName);
+ }
+ }
+
+ public void Bar ()
+ {
+ }
+}
+
+public abstract class A : I
+{
+ public virtual int Foo {
+ get {
+ return 0;
+ }
+ }
+}
+
+public interface I2 : I
+{
+ void Bar ();
+}
+
+public interface I
+{
+ int Foo { get; }
+}
+
+$ mcs t.cs
+Compilation succeeded
+(jluke@localhost)--(~)
+ $ monodis t.exe > t.il
+(jluke@localhost)--(~)
+ $ ilasm t.il
+Assembling 't.il' , no listing file, to exe --> 't.exe'
+
+syntax error, got token `K_CLASS', expecting OPEN_BRACKET STAR AMPERSAND
+K_PINNED K_MODREQ K_MODOPT
+Error at: line (160) column (39)
+
+***** FAILURE *****
+
+see bug# 69153 for mcs related info on this