Skip to content

Commit

Permalink
Reproducer for #459
Browse files Browse the repository at this point in the history
  • Loading branch information
raboof committed Feb 4, 2020
1 parent e61c659 commit 3c2356d
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ To add a new functional test to the suite, create a new folder within the 'funct
|-----> problems.txt (the expected list of reported errors - 1 line per error)
|-----> v1 (folder containing sources @ version 1)
|-----> v2 (folder containing sources @ version 2)
|-----> app (folder containing app using the tested code)

After doing that, `reload` if you are in an `sbt` shell session (if that makes no sense to you, it means you are fine and you can run the test as usual).

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
object Main extends App {
println(new Foo().bar)
}
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
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
}
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
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
object Main extends App {
println(new Foo().bar)
}
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class Foo {
def bar = 42
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class Foo {
def bar = 42L
}

0 comments on commit 3c2356d

Please sign in to comment.