Verified Commit 09453ccc authored by Maximilian Stemmer-Grabow's avatar Maximilian Stemmer-Grabow
Browse files

Add test cases for semantic analysis

parent ad265467
class StaticMethodThrows {
public static void main(String[] args) throws RuntimeException {}
}
class StringUsage {
public String test;
public static void main(String[] args) {}
}
class UsageBeforeDeclarationField {
public static void main(String[] args) {
UsageBeforeDeclarationField x = new UsageBeforeDeclarationField();
x.test();
}
public void test() {
a = 42;
}
public int a;
}
class UsageBeforeDeclarationMethod {
public static void main(String[] args) {}
public void methodA() {
methodB();
}
public void methodB() {
methodA();
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment