Bug 52570 - [generator] warn when [Static] is used in a [Category]
Summary: [generator] warn when [Static] is used in a [Category]
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Tools (show other bugs)
Version: XI 10.5.99 (Xcode 8.3 previews)
Hardware: PC Mac OS
: --- normal
Target Milestone: Future Cycle (TBD)
Assignee: Alex Soto [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2017-02-16 15:55 UTC by Sebastien Pouliot
Modified: 2017-03-14 21:26 UTC (History)
1 user (show)

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


Attachments

Description Sebastien Pouliot 2017-02-16 15:55:30 UTC
[Category] creates a type exposing extension methods. That makes binding static selectors incorrect, by default.
Comment 1 Sebastien Pouliot 2017-02-16 16:03:31 UTC
Let's make it a warning (not to break existing customer bindings, even if incorrect) and use `warnaserror` [1] inside our own Makefile.

[1] https://bugzilla.xamarin.com/show_bug.cgi?id=52573
Comment 2 Alex Soto [MSFT] 2017-02-16 16:21:27 UTC
Reminder for me, add docs about (null as foo) in the binding documentation.
Comment 3 Alex Soto [MSFT] 2017-03-11 23:45:14 UTC
https://github.com/xamarin/xamarin-macios/pull/1862
Comment 4 Alex Soto [MSFT] 2017-03-14 21:26:53 UTC
Fixed in xamarin-macios/master @ 78052430ab443c64efe2fc6f1c9e237f1ceebdd2

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