Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Namespace and Control has the same name. #15

Open
takla21 opened this issue Apr 19, 2021 · 0 comments
Open

Namespace and Control has the same name. #15

takla21 opened this issue Apr 19, 2021 · 0 comments

Comments

@takla21
Copy link

takla21 commented Apr 19, 2021

Expected Behavior

The namespace should not be AsyncWebView if the async webview control name's is also AsyncWebView, because it's causing confusion with the compiler (it thinks that we're using the namespace instead of the class).

Actual Behavior

Sample screenshot with compiler
image

Full code

using AsyncWebView;

namespace AsyncWebViewSample.Views.Controls
{
	public class CustomAsyncWebView : AsyncWebView
	{
		public void Test()
		{
			var test1 = new AsyncWebView();
			var test2 = new AsyncWebView.AsyncWebView();
		}
	}
}

Steps to Reproduce the Problem

  1. Create a new uno application template
  2. Install the latest package of Nventive.AsyncWebView (at the moment 0.2.0-dev.14)
  3. Try to use it (inheritance for example)

Example: AsyncWebViewSample.zip

Specifications

  • Version: 0.2.0-dev.14
  • Platform: Tested on UWP, Android, iOS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant