-
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.
Merge pull request #198 from nick-nachos/wip-196-newInheritedMethodMa…
…tchingFix Match inherited abstract methods against inheriting class #196
- Loading branch information
Showing
6 changed files
with
32 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
6 changes: 6 additions & 0 deletions
6
sbtplugin/src/sbt-test/sbt-mima-plugin/backward-new-inherited-method/build.sbt
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 @@ | ||
import com.typesafe.tools.mima.core._ | ||
|
||
mimaPreviousArtifacts := Set(organization.value %% name.value % "0.0.1-SNAPSHOT") | ||
mimaBinaryIssueFilters := Seq( | ||
ProblemFilters.exclude[InheritedNewAbstractMethodProblem]("A.bar") | ||
) |
1 change: 1 addition & 0 deletions
1
sbtplugin/src/sbt-test/sbt-mima-plugin/backward-new-inherited-method/project/plugins.sbt
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 @@ | ||
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % System.getProperty("plugin.version")) |
3 changes: 3 additions & 0 deletions
3
...ugin/src/sbt-test/sbt-mima-plugin/backward-new-inherited-method/src/main/scala/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 @@ | ||
abstract class A { | ||
def foo = 1 | ||
} |
7 changes: 7 additions & 0 deletions
7
...ugin/src/sbt-test/sbt-mima-plugin/backward-new-inherited-method/src/main/scala/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,7 @@ | ||
trait T { | ||
def bar | ||
} | ||
|
||
abstract class A extends T { | ||
def foo = 1 | ||
} |
13 changes: 13 additions & 0 deletions
13
sbtplugin/src/sbt-test/sbt-mima-plugin/backward-new-inherited-method/test
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,13 @@ | ||
> set scalaSource in Compile := baseDirectory.value /"src" /"main" /"scala" /"v1" | ||
> set version := s"0.0.1-SNAPSHOT" | ||
> publishLocal | ||
|
||
> set scalaSource in Compile := baseDirectory.value /"src" /"main" /"scala" /"v2" | ||
> set version := s"0.0.2-SNAPSHOT" | ||
|
||
# filters are set in the build file, so mima check should pass | ||
> mimaReportBinaryIssues | ||
|
||
# remove all filters so mima check fails | ||
> set mimaBinaryIssueFilters := Seq.empty | ||
-> mimaReportBinaryIssues |