make method return fix: make available for constructor calls; java 8 specific tests; simplify inference

This commit is contained in:
Anna Kozlova
2015-08-20 21:47:30 +02:00
parent c014fe6eb4
commit 7cf142b351
13 changed files with 57 additions and 31 deletions
@@ -0,0 +1,8 @@
// "Make 'bar' return 'Foo'" "true"
public class Foo {
public Foo(int i) {}
Foo bar() {
return new Foo("");
}
}
@@ -0,0 +1,8 @@
// "Make 'bar' return 'Foo'" "true"
public class Foo {
public Foo(int i) {}
String bar() {
return new Foo<caret>("");
}
}