[Mono-bugs] [Bug 74657][Wis] New - [monodis] Does not show default values for non-literal fields

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 19 Apr 2005 10:10:42 -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 radical@gmail.com.

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

--- shadow/74657	2005-04-19 10:10:42.000000000 -0400
+++ shadow/74657.tmp.26627	2005-04-19 10:10:42.000000000 -0400
@@ -0,0 +1,28 @@
+Bug#: 74657
+Product: Mono: Tools
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: tools
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: radical@gmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [monodis] Does not show default values for non-literal fields
+
+A field declared as .. 
+
+ .field public int32 i_field = int32(49)
+
+does not have the 'literal' flag set, but has the 'has_default' flag and
+has an entry in the constant table. 
+monodis checks for literal flag to print the default value.
+
+Attached patch fixes that. 
+Also, attached is a test case.