Skip to content

Commit

Permalink
Merge pull request #484 from scalacenter/ticket/292
Browse files Browse the repository at this point in the history
Remove "Modified names" assertion
  • Loading branch information
dwijnand authored Jan 22, 2018
2 parents 52b2e9a + 841284e commit 17a4ba5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ final case class APIChangeDueToMacroDefinition(modified0: String) extends APICha
* This class is used only when name hashing algorithm is enabled.
*/
final case class NamesChange(modified0: String, modifiedNames: ModifiedNames)
extends APIChange(modified0) {
assert(modifiedNames.names.nonEmpty, s"Modified names for $modified0 is empty")
}
extends APIChange(modified0)

/**
* ModifiedNames are determined by comparing name hashes in two versions of an API representation.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
trait T2
trait T1 extends T2 { def foo: String }
class C1 extends T1 { def foo = "test" }
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
trait T2 { def foo: String }
trait T1 extends T2
class C1 extends T1 { def foo = "test" }
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
> compile
$ copy-file changes/T.scala T.scala
> compile

0 comments on commit 17a4ba5

Please sign in to comment.