Skip to content

Namespace and Control has the same name. #15

@takla21

Description

@takla21

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions