Verified Commit 781d354c authored by ubduq's avatar ubduq

Convert object creation statement into assignment

As the creation of new objects is free of side-effects in MiniJava, it
is not valid to create new objects without using them as part of an
assignment or a method invocation.
parent ad265467
class new_object {
public static void main(String[] args){
new new_object();
new_object obj = new new_object();
}
}
\ No newline at end of file
}
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