Bug 57804 - Slightly incorrect error message when trying to use ref/out parameters with BindAs attributes
Summary: Slightly incorrect error message when trying to use ref/out parameters with B...
Status: CONFIRMED
Alias: None
Product: iOS
Classification: Xamarin
Component: Tools (show other bugs)
Version: master
Hardware: PC Mac OS
: --- normal
Target Milestone: Future Cycle (TBD)
Assignee: Alex Soto [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2017-06-27 19:00 UTC by Rolf Bjarne Kvinge [MSFT]
Modified: 2017-06-27 19:00 UTC (History)
1 user (show)

See Also:
Tags:
Is this bug a regression?: No
Last known good build:


Attachments

Description Rolf Bjarne Kvinge [MSFT] 2017-06-27 19:00:17 UTC
Test case:

	[Export ("setCGAffineTransformValueRefNonNullable:")]
	void SetCGAffineTransformValueRefNonNullable ([BindAs (typeof (CGAffineTransform))] ref NSValue value);

results in:

	BTOUCH: error BI1048: bgen: Unsupported type CATransform3D decorated with [BindAs]

which is slightly misleading, because "CATransform3D" is a supported type (it's "CATransform3D&", the ref variant, which isn't).

Note You need to log in before you can comment on or make changes to this bug.