xamarin-macios/tests/generator/bug29493.cs

111 строки
2.3 KiB
C#
Исходник Обычный вид История

2016-05-26 16:06:52 +03:00
using System;
[tests][generator] Port XI/Classic tests to XI/Unified. (#1745) * [tests][generator] Port XI/Classic tests to XI/Unified. * [tests][generator] Comment out code triggering previously unknown bugs. These tests makes the generator fail: error BI0000: Unexpected error - Please file a bug report at http://bugzilla.xamarin.com System.NullReferenceException: Object reference not set to an instance of an object at Generator.GetSetterExportAttribute (System.Reflection.PropertyInfo pinfo) [0x0002e] in /work/maccore/master/xamarin-macios/src/generator.cs:1981 at Generator.Go () [0x007e3] in /work/maccore/master/xamarin-macios/src/generator.cs:2162 at BindingTouch.Main2 (System.String[] args) [0x010b2] in /work/maccore/master/xamarin-macios/src/btouch.cs:435 at BindingTouch.Main (System.String[] args) [0x0001d] in /work/maccore/master/xamarin-macios/src/btouch.cs:77 at System.Environment.get_StackTrace () [0x00000] in /work/maccore/master/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System/Environment.cs:321 at ErrorHelper.ShowInternal (System.Exception e) [0x000dc] in /work/maccore/master/xamarin-macios/src/error.cs:200 at ErrorHelper.Show (System.Exception e) [0x00027] in /work/maccore/master/xamarin-macios/src/error.cs:151 at BindingTouch.Main (System.String[] args) [0x0002b] in /work/maccore/master/xamarin-macios/src/btouch.cs:79 This has been filed as https://bugzilla.xamarin.com/show_bug.cgi?id=52664. * [tests][generator] Comment out code triggering previously unknown bugs. This has been filed as https://bugzilla.xamarin.com/show_bug.cgi?id=52665.
2017-02-22 18:47:11 +03:00
using UIKit;
using Foundation;
using ObjCRuntime;
using CoreGraphics;
2016-05-26 16:06:52 +03:00
namespace Bug29493
{
[Category]
[BaseType (typeof(UIColor))]
interface UIColorExtensions
{
// +(UIColor *)jbill_messageBubbleGreenColor;
[Static]
[Export ("jbill_messageBubbleGreenColor")]
UIColor MessageBubbleGreenColor ();
[Export ("jbill_messageBubbleGreenColor")]
UIColor MessageBubbleGreenColor2 ();
}
[Category]
[BaseType (typeof(NSUrlSession))]
interface NSUrlExtensions
{
// +(UIColor *)jbill_messageBubbleGreenColor;
[Static]
[Export ("jbill_messageBubbleGreenColor")]
UIColor MessageBubbleGreenColor ();
[Export ("jbill_messageBubbleGreenColor")]
UIColor MessageBubbleGreenColor2 ();
}
[BaseType (typeof(NSObject))]
interface HelloKitty
{
}
[Category]
[BaseType (typeof(HelloKitty))]
interface HelloKittyExtensions
{
// +(UIColor *)jbill_messageBubbleGreenColor;
[Static]
[Export ("jbill_messageBubbleGreenColor")]
UIColor MessageBubbleGreenColor ();
[Export ("jbill_messageBubbleGreenColor")]
UIColor MessageBubbleGreenColor2 ();
}
[BaseType (typeof(NSObject), Name = "NSBatman")]
interface BecauseImBatman
{
}
[Category]
[BaseType (typeof(BecauseImBatman))]
interface BecauseImBatmanExtensions
{
// +(UIColor *)jbill_messageBubbleGreenColor;
[Static]
[Export ("jbill_messageBubbleGreenColor")]
UIColor MessageBubbleGreenColor ();
[Export ("jbill_messageBubbleGreenColor")]
UIColor MessageBubbleGreenColor2 ();
}
[BaseType (typeof(BecauseImBatman), Name = "NSBatman2")]
interface BecauseImBatman2
{
}
[Category]
[BaseType (typeof(BecauseImBatman2))]
interface BecauseImBatman2Extensions
{
// +(UIColor *)jbill_messageBubbleGreenColor;
[Static]
[Export ("jbill_messageBubbleGreenColor")]
UIColor MessageBubbleGreenColor ();
[Export ("jbill_messageBubbleGreenColor")]
UIColor MessageBubbleGreenColor2 ();
}
[BaseType (typeof(BecauseImBatman))]
interface Superman
{
}
[Category]
[BaseType (typeof(Superman))]
interface SupermanExtensions
{
// +(UIColor *)jbill_messageBubbleGreenColor;
[Static]
[Export ("jbill_messageBubbleGreenColor")]
UIColor MessageBubbleGreenColor ();
[Export ("jbill_messageBubbleGreenColor")]
UIColor MessageBubbleGreenColor2 ();
}
}