[XamlC] avoid cast exception on overriden members (#5269)
authorStephane Delcroix <stephane@delcroix.org>
Tue, 19 Feb 2019 14:25:51 +0000 (15:25 +0100)
committerGitHub <noreply@github.com>
Tue, 19 Feb 2019 14:25:51 +0000 (15:25 +0100)
commit711bf307d77f6d54a443eb8567dc10708b3f3a54
treec252f7aed268884054976b7210b8fdc9dcb2d111
parent763461246d457071ff99160e718c0462236a313f
[XamlC] avoid cast exception on overriden members (#5269)

avoid InvalidCastException if an event is overriden with the new keyword
to a bindableproperty. Kids, DO NOT EVER DO THIS AT HOME.

- fixes #5256 for XamlC
Xamarin.Forms.Build.Tasks/SetPropertiesVisitor.cs
Xamarin.Forms.Xaml.UnitTests/Issues/Gh5242.xaml.cs
Xamarin.Forms.Xaml.UnitTests/Issues/Gh5256.xaml [new file with mode: 0644]
Xamarin.Forms.Xaml.UnitTests/Issues/Gh5256.xaml.cs [new file with mode: 0644]