-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #145 from szeiger/issue/136
Treat default value getters as accessible.
- Loading branch information
Showing
4 changed files
with
12 additions
and
1 deletion.
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
2 changes: 2 additions & 0 deletions
2
.../functional-tests/src/test/class-method-overload-with-default-parameters-nok/problems.txt
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,2 @@ | ||
synthetic method copy$default$2()java.lang.String in class A has a different result type in new version, where it is Int rather than java.lang.String | ||
synthetic method copy$default$1()Int in class A has a different result type in new version, where it is Boolean rather than Int |
3 changes: 3 additions & 0 deletions
3
...er/functional-tests/src/test/class-method-overload-with-default-parameters-nok/v1/A.scala
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,3 @@ | ||
final class A { | ||
def copy(x: Int = 0, y: String = "") = () | ||
} |
4 changes: 4 additions & 0 deletions
4
...er/functional-tests/src/test/class-method-overload-with-default-parameters-nok/v2/A.scala
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,4 @@ | ||
final class A { | ||
def copy(x: Int, y: String) = () | ||
def copy(z: Boolean = true, x: Int = 0, y: String = "") = () | ||
} |