Bugzilla – Bug 316355
Writeonly property types detected incorrectly
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by taktaktaktaktaktaktaktaktaktak@gmail.com 2004-11-01 12:39:44 MST ---- 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 '''''''''''''''''''''''' ---- Additional Comments From banirban@novell.com 2004-11-03 08:31:14 MST ---- Fixed and committed in cvs