+2
-2
@@ -16,10 +16,10 @@
|
|||||||
|
|
||||||
package org.jetbrains.kotlin.jps.build
|
package org.jetbrains.kotlin.jps.build
|
||||||
|
|
||||||
import org.jetbrains.jps.incremental.ModuleBuildTarget
|
|
||||||
import org.jetbrains.jps.incremental.CompileContext
|
import org.jetbrains.jps.incremental.CompileContext
|
||||||
|
import org.jetbrains.jps.incremental.ModuleBuildTarget
|
||||||
|
|
||||||
public trait KotlinJpsCompilerArgumentsProvider {
|
public interface KotlinJpsCompilerArgumentsProvider {
|
||||||
public fun getExtraArguments(moduleBuildTarget: ModuleBuildTarget, context: CompileContext): List<String>
|
public fun getExtraArguments(moduleBuildTarget: ModuleBuildTarget, context: CompileContext): List<String>
|
||||||
public fun getClasspath(moduleBuildTarget: ModuleBuildTarget, context: CompileContext): List<String>
|
public fun getClasspath(moduleBuildTarget: ModuleBuildTarget, context: CompileContext): List<String>
|
||||||
}
|
}
|
||||||
@@ -35,7 +35,7 @@ public class SimpleKotlinJpsBuildTest : AbstractKotlinJpsBuildTestCase() {
|
|||||||
"""
|
"""
|
||||||
package m1;
|
package m1;
|
||||||
|
|
||||||
trait K {
|
interface K {
|
||||||
}
|
}
|
||||||
""")
|
""")
|
||||||
createFile("m1/J.java",
|
createFile("m1/J.java",
|
||||||
@@ -53,7 +53,7 @@ public class SimpleKotlinJpsBuildTest : AbstractKotlinJpsBuildTestCase() {
|
|||||||
import m1.J;
|
import m1.J;
|
||||||
import m1.K;
|
import m1.K;
|
||||||
|
|
||||||
trait M2: J {
|
interface M2: J {
|
||||||
override fun bar(): K
|
override fun bar(): K
|
||||||
}
|
}
|
||||||
""")
|
""")
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package module
|
package module
|
||||||
|
|
||||||
public trait A {
|
public interface A {
|
||||||
fun oldFun(): Int = 1
|
fun oldFun(): Int = 1
|
||||||
fun newFun(): Int = 42
|
fun newFun(): Int = 42
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
package module
|
package module
|
||||||
|
|
||||||
public trait A {
|
public interface A {
|
||||||
fun oldFun(): Int = 1
|
fun oldFun(): Int = 1
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
trait Trait {
|
interface Trait {
|
||||||
companion object {
|
companion object {
|
||||||
// Old and new constant values are different, but their hashes are the same
|
// Old and new constant values are different, but their hashes are the same
|
||||||
val CONST = "BF"
|
val CONST = "BF"
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
trait Trait {
|
interface Trait {
|
||||||
companion object {
|
companion object {
|
||||||
// Old and new constant values are different, but their hashes are the same
|
// Old and new constant values are different, but their hashes are the same
|
||||||
val CONST = "Ae"
|
val CONST = "Ae"
|
||||||
|
|||||||
Reference in New Issue
Block a user