Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mjtest-tests
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uydwl
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
Show 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