You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.
VBNC produces the following errors when compiling the above:
error VBNC30519: Overload resolution failed because no accessible '.ctor' can be called without a narrowing conversion:
'Public Sub New((value As Char))': Argument matching parameter 'value' narrows from 'String' to 'Char'.
'Public Sub New((value As SByte))': Argument matching parameter 'value' narrows from 'String' to 'SByte'.
'Public Sub New((value() As Char))': Argument matching parameter 'value' narrows from 'String' to 'System.Char[]'.
Compiling the code with VBC and looking at the diassembled code, VBC turns the above into the following:
Submitted by a community member on 2012-09-27 07:38 UTC
The following code snippet fails to compile with VBNC, but is successfully compiled by VBC:
VBNC produces the following errors when compiling the above:
Compiling the code with VBC and looking at the diassembled code, VBC turns the above into the following:
Xamarin Bugzilla comment 1 by Rolf Bjarne Kvinge [MSFT] on 2012-09-27 07:56 UTC
This has already been reported here: https://bugzilla.novell.com/show\_bug.cgi?id=392464
The workaround is easy, just not create the string explicitly:
Reference: https://bugzilla.xamarin.com/show_bug.cgi?id=7496
The text was updated successfully, but these errors were encountered: