Bug 316355 (MONO68985) - Writeonly property types detected incorrectly
Summary: Writeonly property types detected incorrectly
Status: RESOLVED FIXED
Alias: MONO68985
Product: Mono: Compilers
Classification: Mono
Component: Basic (show other bugs)
Version: unspecified
Hardware: Other Linux
: P3 - Medium : Normal
Target Milestone: ---
Assignee: B Anirban
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-01 19:39 UTC by Levi Bard
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 18:57:41 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