Commit 9317e4cf authored by Christian Schwarz's avatar Christian Schwarz

add test to check shadowing behavior of String class

parent 53b973c3
/* String shadows the default String class.
* However, Java only detects the lack of a main() at runtime,
* failing with 'error: Main method not found'
*/
class String { }
class MainWithLocalStringShadowingJavaString {
public static void main(String[] args) {}
}
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