-
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 #713 from dwijnand/honour-owners
- Loading branch information
Showing
11 changed files
with
113 additions
and
8 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
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
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
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/changes-in-experimental-objects-are-ok/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 App { | ||
def main(args: Array[String]): Unit = () | ||
} |
Empty file.
2 changes: 2 additions & 0 deletions
2
functional-tests/src/test/changes-in-experimental-objects-are-ok/testAppRun.pending
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 @@ | ||
# The change is breaking, but the problem is suppressed by the annotation | ||
# This is here to not make the app run test fail |
40 changes: 40 additions & 0 deletions
40
functional-tests/src/test/changes-in-experimental-objects-are-ok/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,40 @@ | ||
package mima | ||
package pkg2 | ||
|
||
import mima.annotation.exclude | ||
|
||
@exclude object O { | ||
def foo = 1 | ||
class OC { def foo = 1; class OCC { def foo = 1 }; object OCO { def foo = 1 } } | ||
object OO { def foo = 1; class OOC { def foo = 1 }; object OOO { def foo = 1 } } | ||
} | ||
@exclude class C { | ||
def foo = 1 | ||
class CC { def foo = 1; class CCC { def foo = 1 }; object CCO { def foo = 1 } } | ||
object CO { def foo = 1; class COC { def foo = 1 }; object COO { def foo = 1 } } | ||
} | ||
|
||
object PrefixO { | ||
@exclude object O { | ||
def foo = 1 | ||
class OC { def foo = 1; class OCC { def foo = 1 }; object OCO { def foo = 1 } } | ||
object OO { def foo = 1; class OOC { def foo = 1 }; object OOO { def foo = 1 } } | ||
} | ||
@exclude class C { | ||
def foo = 1 | ||
class CC { def foo = 1; class CCC { def foo = 1 }; object CCO { def foo = 1 } } | ||
object CO { def foo = 1; class COC { def foo = 1 }; object COO { def foo = 1 } } | ||
} | ||
} | ||
class PrefixC { | ||
@exclude object O { | ||
def foo = 1 | ||
class OC { def foo = 1; class OCC { def foo = 1 }; object OCO { def foo = 1 } } | ||
object OO { def foo = 1; class OOC { def foo = 1 }; object OOO { def foo = 1 } } | ||
} | ||
@exclude class C { | ||
def foo = 1 | ||
class CC { def foo = 1; class CCC { def foo = 1 }; object CCO { def foo = 1 } } | ||
object CO { def foo = 1; class COC { def foo = 1 }; object COO { def foo = 1 } } | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
functional-tests/src/test/changes-in-experimental-objects-are-ok/v1/exclude.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,5 @@ | ||
package mima.annotation | ||
|
||
import scala.annotation.StaticAnnotation | ||
|
||
class exclude extends StaticAnnotation |
34 changes: 34 additions & 0 deletions
34
functional-tests/src/test/changes-in-experimental-objects-are-ok/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,34 @@ | ||
package mima | ||
package pkg2 | ||
|
||
import mima.annotation.exclude | ||
|
||
@exclude object O { | ||
class OC { class OCC; object OCO } | ||
object OO { class OOC; object OOO } | ||
} | ||
@exclude class C { | ||
class CC { class CCC; object CCO } | ||
object CO { class COC; object COO } | ||
} | ||
|
||
object PrefixO { | ||
@exclude object O { | ||
class OC { class OCC; object OCO } | ||
object OO { class OOC; object OOO } | ||
} | ||
@exclude class C { | ||
class CC { class CCC; object CCO } | ||
object CO { class COC; object COO } | ||
} | ||
} | ||
class PrefixC { | ||
@exclude object O { | ||
class OC { class OCC; object OCO } | ||
object OO { class OOC; object OOO } | ||
} | ||
@exclude class C { | ||
class CC { class CCC; object CCO } | ||
object CO { class COC; object COO } | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
functional-tests/src/test/changes-in-experimental-objects-are-ok/v2/exclude.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,5 @@ | ||
package mima.annotation | ||
|
||
import scala.annotation.StaticAnnotation | ||
|
||
class exclude extends StaticAnnotation |