-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed autocompletion on instance members (fixes #108)
- Loading branch information
1 parent
a389c3c
commit c8619d6
Showing
3 changed files
with
49 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
test/javarepl/completion/helpers/SimpleCompletionInstance.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package javarepl.completion.helpers; | ||
|
||
|
||
import java.util.Date; | ||
|
||
|
||
public class SimpleCompletionInstance { | ||
public void voidMethod() { | ||
} | ||
|
||
|
||
public int primitiveTypeReturningMethod() { | ||
return 0; | ||
} | ||
|
||
public Date complexTypeReturningMethod() { | ||
return new Date(); | ||
} | ||
|
||
public int overloadedMethod() { | ||
return 0; | ||
} | ||
|
||
public int overloadedMethod(int param) { | ||
return param; | ||
} | ||
|
||
public int overloadedMethod(int param1, int param2) { | ||
return param1 + param2; | ||
} | ||
|
||
} |