Commit cafb0d6b authored by uwdkn's avatar uwdkn

Merge branch 'semantic/edge_cases' into 'master'

Group 5: Additional semantic test cases

See merge request !39
parents cd1682c7 e338d07a
class Foo {
public static void main(String[] args) {
boolean bar = true + false;
}
}
class Foo {
public static void main(String[] args) {
if(1 && 0) {
System.out.println(42);
}
}
}
class Foo {
public static void main(String[] args) {
args[0] = null;
}
}
class Foo {
public static void main(int[] args) {}
}
class Foo {
public void bar() {}
public static void main(String[] args) {
(new Foo()).bar();
(new Bar()).bar();
}
}
class Bar {
public void bar() {}
}
class SystemShadowing {
public SystemShadowing System;
public SystemShadowing out;
public void println(boolean x) { }
public void nonstatic() {
System.out.println(42);
}
public static void main(String[] args) {
SystemShadowing x = new SystemShadowing();
x.nonstatic();
}
}
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