Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
IPDSnelting
mjtest-tests
Commits
10ed577e
Unverified
Commit
10ed577e
authored
Nov 01, 2018
by
flip1995
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add invalid tests
parent
666c7a78
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
0 deletions
+23
-0
syntax/basic_type_as_constructor.invalid.mj
syntax/basic_type_as_constructor.invalid.mj
+3
-0
syntax/forgotten_assignment.invalid.mj
syntax/forgotten_assignment.invalid.mj
+5
-0
syntax/pre_incr_vs_pre_decr.invalid.mj
syntax/pre_incr_vs_pre_decr.invalid.mj
+3
-0
syntax/primary_expr_as_field_access.invalid.mj
syntax/primary_expr_as_field_access.invalid.mj
+3
-0
syntax/throwing_with_keywords.invalid.mj
syntax/throwing_with_keywords.invalid.mj
+9
-0
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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