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
10ed577e
Unverified
Commit
10ed577e
authored
Nov 01, 2018
by
flip1995
Browse files
Add invalid tests
parent
666c7a78
Changes
5
Hide whitespace changes
Inline
Side-by-side
syntax/basic_type_as_constructor.invalid.mj
0 → 100644
View file @
10ed577e
class BasicTypeAsConstructor {
new int();
}
syntax/forgotten_assignment.invalid.mj
0 → 100644
View file @
10ed577e
class ClassicStudentProblems {
public int and(Then did) throws not {
return to=klass=the=next=;
}
}
syntax/pre_incr_vs_pre_decr.invalid.mj
0 → 100644
View file @
10ed577e
class PreDecrementIsNotWhatItSeems {
--thisIsTotallyFine - !!!++butThisIsNot;
}
syntax/primary_expr_as_field_access.invalid.mj
0 → 100644
View file @
10ed577e
class PrimaryExprAsFieldAccess {
1234.null;
}
syntax/throwing_with_keywords.invalid.mj
0 → 100644
View file @
10ed577e
class ThrowingWithKeywordsInAnIdentHouse {
public static void main(String[] _what_) throws int {
}
/* Writing in languages where NullPointerExceptions are a thing, pfff */
public void again(Questionmark questionmark) throws null {
}
}
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