Effects: annotate functions in stdlib with contracts

build.xml was also changed to incorporate contracts in
mock-runtime-for-tests.jar, because it is using Standard.kt, which, in
turn, has contract-annotated functions.

==========
Introduction of EffectSystem: 17/18
This commit is contained in:
Dmitry Savvinov
2017-10-02 12:07:20 +03:00
parent 4434db4d69
commit fb03656e99
6 changed files with 112 additions and 15 deletions
@@ -36,7 +36,9 @@ val copySources by task<Copy> {
.include("kotlin/collections/TypeAliases.kt",
"kotlin/jvm/JvmVersion.kt",
"kotlin/util/Standard.kt",
"kotlin/internal/Annotations.kt")
"kotlin/internal/Annotations.kt",
"kotlin/internal/contracts/ContractBuilder.kt",
"kotlin/internal/contracts/Effect.kt")
into(File(buildDir, "src"))
}