-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
27 additions
and
0 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
3 changes: 3 additions & 0 deletions
3
functional-tests/src/test/class-method-implementation-result-type-changed-nok/app/App.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 @@ | ||
object Main extends App { | ||
println(new Foo().bar) | ||
} |
1 change: 1 addition & 0 deletions
1
functional-tests/src/test/class-method-implementation-result-type-changed-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 @@ | ||
method bar()Int in class Foo has a different result type in new version, where it is Long rather than Int |
6 changes: 6 additions & 0 deletions
6
functional-tests/src/test/class-method-implementation-result-type-changed-nok/v1/Foo.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,6 @@ | ||
abstract class Super { | ||
def bar: Number | ||
} | ||
class Foo extends Super { | ||
override def bar = 42 | ||
} |
6 changes: 6 additions & 0 deletions
6
functional-tests/src/test/class-method-implementation-result-type-changed-nok/v2/Foo.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,6 @@ | ||
abstract class Super { | ||
def bar: Number | ||
} | ||
class Foo extends Super { | ||
override def bar = 42L | ||
} |
3 changes: 3 additions & 0 deletions
3
functional-tests/src/test/class-method-result-type-changed-nok/app/App.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 @@ | ||
object Main extends App { | ||
println(new Foo().bar) | ||
} |
1 change: 1 addition & 0 deletions
1
functional-tests/src/test/class-method-result-type-changed-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 @@ | ||
method bar()Int in class Foo has a different result type in new version, where it is Long rather than Int |
3 changes: 3 additions & 0 deletions
3
functional-tests/src/test/class-method-result-type-changed-nok/v1/Foo.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 @@ | ||
class Foo { | ||
def bar = 42 | ||
} |
3 changes: 3 additions & 0 deletions
3
functional-tests/src/test/class-method-result-type-changed-nok/v2/Foo.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 @@ | ||
class Foo { | ||
def bar = 42L | ||
} |