mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
alternative signature applies for names
mapped in standard library (and differs from auto transformed Java signature) e.g.Collections.copy(MutableList, List)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package test;
|
||||
|
||||
import java.lang.UnsupportedOperationException;
|
||||
import java.util.*;
|
||||
import jet.runtime.typeinfo.KotlinSignature;
|
||||
|
||||
public class MethodWithMappedClasses {
|
||||
@KotlinSignature("fun <T> copy(dest : MutableList<in T>, src : List<out T>)")
|
||||
public <T> void copy(List<? super T> dest, List<? extends T> src) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user