KT-3553 Problem with propagation for extension functions
#KT-3553 fixed
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
package test;
|
||||
|
||||
import org.jetbrains.jet.jvm.compiler.annotation.ExpectLoadError;
|
||||
|
||||
public interface Sub extends Super1, Super2 {
|
||||
@ExpectLoadError("Incompatible super methods: some are extension functions, some are not")
|
||||
void foo(String p);
|
||||
|
||||
@ExpectLoadError("Incompatible super methods: some are extension functions, some are not|Incompatible super methods: some have vararg parameter, some have not")
|
||||
void bar(String... p);
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
package test
|
||||
|
||||
public trait Super1 {
|
||||
public fun String.foo()
|
||||
public fun Array<String>.bar()
|
||||
}
|
||||
|
||||
public trait Super2 {
|
||||
public fun foo(p: String)
|
||||
public fun bar(vararg p: String)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user