Supported propagation of mutability in parameter position.

#KT-2776 in progress
This commit is contained in:
Evgeny Gerashchenko
2012-11-22 15:02:57 +04:00
parent a937d6be91
commit 795b3bfbe0
10 changed files with 152 additions and 20 deletions
@@ -0,0 +1,18 @@
package test;
import org.jetbrains.annotations.NotNull;
import jet.runtime.typeinfo.KotlinSignature;
import org.jetbrains.jet.jvm.compiler.annotation.ExpectLoadError;
import java.util.*;
public interface InheritMutability {
public interface Super {
@KotlinSignature("fun foo(p: MutableList<String>)")
void foo(List<String> p);
}
public interface Sub extends Super {
void foo(List<String> p);
}
}