Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
uydwl
mjtest-tests
Commits
9317e4cf
Commit
9317e4cf
authored
Nov 15, 2018
by
Christian Schwarz
Browse files
add test to check shadowing behavior of String class
parent
53b973c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
semantic/main_with_local_string_class_compiles.java
0 → 100644
View file @
9317e4cf
/* 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
)
{}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment