This is Xamarin's bug tracking system. For product support, please use the support links listed in your Xamarin Account.
Bug 42855 - generator should report an error for [Protocol] without a [Model] that specify a [BaseType]
Summary: generator should report an error for [Protocol] without a [Model] that specif...
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Tools (show other bugs)
Version: XI 9.8 (tvOS / C7)
Hardware: PC Mac OS
: Normal normal
Target Milestone: Future Cycle (TBD)
Assignee: Alex Soto
URL:
Depends on:
Blocks:
 
Reported: 2016-07-27 21:09 UTC by Sebastien Pouliot
Modified: 2017-03-10 16:02 UTC (History)
3 users (show)

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


Attachments

Description Sebastien Pouliot 2016-07-27 21:09:09 UTC
The generator should report an error for [Protocol] without a [Model] that specify a [BaseType]

This leads to incorrectly generated code (which compile) and runtime issues. In many case it's found by our introspection tests but that won't help customers bindings.
Comment 1 Rolf Bjarne Kvinge 2016-07-28 08:35:04 UTC
We'll have to whitelist the cases where we (incorrectly) do this in our current bindings.
Comment 2 Rolf Bjarne Kvinge 2016-07-28 08:35:42 UTC
And we should probably do this in the xcode8 branch, to catch any errors there before we ship.
Comment 3 Sebastien Pouliot 2017-02-17 14:54:05 UTC
@Alex, let's add this before `xcode9`
Comment 4 Alex Soto 2017-03-10 00:59:26 UTC
(In reply to Rolf Bjarne Kvinge from comment #1)
> We'll have to whitelist the cases where we (incorrectly) do this in our
> current bindings.

It seems we are clean, no errors on our side of the house :D
Comment 6 Alex Soto 2017-03-10 16:02:13 UTC
Fixed in xamarin-macios/master @ 0ada7dedce79a795dd9c9bbf3ffa102f01e3d614

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