Beef icon indicating copy to clipboard operation
Beef copied to clipboard

[BUG] Some problems when using a typealias

Open Igoorx opened this issue 5 years ago • 0 comments

  1. For some reason it shows an error of ambiguous reference
  2. The previous error disappears from the IDE if you edit something in the code, and appears again if you delete one letter of the extension and add it back
  3. You can't use an alias to define an extension because of an error (Maybe this isn't a bug but I'm reporting just to be sure)

Code:

	typealias EAlias = SAlias.ETest;

	
	typealias SAlias = STest;

	public class STest
	{
		public enum ETest
		{
			A,
			B,
			C
		}
	}

	public extension SAlias
	{

	}

(I removed the generic from the code because it's not necessary for this problem to happen)

Igoorx avatar Dec 17 '20 06:12 Igoorx