Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
uydwl
mjtest-tests
Commits
3a18bd04
Commit
3a18bd04
authored
Nov 18, 2018
by
uwdkn
Browse files
Merge branch 'even-more-semantic-tests' into 'master'
Even more semantic tests See merge request
IPDSnelting/mjtest-tests!40
parents
d552f364
420e2493
Changes
22
Hide whitespace changes
Inline
Side-by-side
semantic/wrong_ident_type_parameter_function_call.invalid.mj
0 → 100644
View file @
3a18bd04
class Main {
public static void main(String[] arguments) {
A a = new A();
a.foo();
}
}
class A {
public void foo() {
bar (new B());
}
public void bar(A a) {
}
}
class B {
}
semantic/wrong_ident_type_return.invalid.mj
0 → 100644
View file @
3a18bd04
class Main {
public static void main(String[] arguments) {
A a = new A();
A a2 = a.foo();
}
}
class A {
public A foo() {
return new B();
}
}
class B {
}
Prev
1
2
Next
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