You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2019/01/24 15:31:45 UTC

[GitHub] joshtynjala opened a new issue #73: Abstract classes in ActionScript

joshtynjala opened a new issue #73: Abstract classes in ActionScript
URL: https://github.com/apache/royale-compiler/issues/73
 
 
   Proposed syntax:
   
   ``` actionscript
   package com.example
   {
   	public abstract class MyAbstractClass
   	{
   		public MyAbstractClass()
   		{
   			
   		}
   	}
   }
   ```
   
   At compile time, use of an abstract class in a `new` statement should result in an error
   
   ``` actionscript
   new MyAbstractClass(); //error
   ```
   
   Similar to the `InterfaceCannotBeInstantiatedProblem` that is created when trying to instantiate an interface, there should be an problem for abstract classes with this message:
   
   > Abstract classes cannot be instantiated with the new operator.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services