In the following code:
using java.lang;
using stab.lang;
package examples {
[StaticClass]
public final class Main {
public void notStaticMethod(){}
public static void main(String[] args){
System.out.println("StaticClass with an instance method");
}
}
}
The class "Main" is marked as a static class, but the method "notStaticMethod"
is not static. The compiler should report an error.
Original issue reported on code.google.com by ice.ta...@gmail.com on 19 Jun 2010 at 1:10
Original issue reported on code.google.com by
ice.ta...@gmail.com
on 19 Jun 2010 at 1:10