[Mono-bugs] [Bug 68985][Nor] New - Writeonly property types detected incorrectly
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 1 Nov 2004 12:39:44 -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 taktaktaktaktaktaktaktaktaktak@gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=68985
--- shadow/68985 2004-11-01 12:39:44.000000000 -0500
+++ shadow/68985.tmp.31586 2004-11-01 12:39:44.000000000 -0500
@@ -0,0 +1,57 @@
+Bug#: 68985
+Product: Mono: Compilers
+Version: unspecified
+OS: GNU/Linux [Other]
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Basic
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: taktaktaktaktaktaktaktaktaktak@gmail.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Writeonly property types detected incorrectly
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+When using a writeonly property that has a type not in the default
+namespace (e.g. XmlDocument), the compiler detects the set type as not
+matching the main property type.
+
+Steps to reproduce the problem:
+1. Import a namespace
+2. Define a writeonly property using a class declared in the imported namespace
+3. Compile
+
+Actual Results:
+Error: Set value parameter type can not be
+different from property type(BC31064)
+
+Expected Results:
+Successful compilation
+
+How often does this happen?
+Every time
+
+Sample code:
+'''''''''''''''''''''''''
+Imports System.Xml
+
+class myTestApp
+ private something as XmlDocument
+
+ public writeonly property setSomething() as XmlDocument
+ set(byval Value as XmlDocument)
+ something=Value
+ end set
+ end property
+
+ public shared sub Main()
+ end sub
+end class
+''''''''''''''''''''''''