mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
14 lines
393 B
Java
14 lines
393 B
Java
package test;
|
|
|
|
import java.util.*;
|
|
|
|
import jet.runtime.typeinfo.KotlinSignature;
|
|
import org.jetbrains.jet.jvm.compiler.annotation.ExpectLoadError;
|
|
|
|
public class NotVarargReplacedWithVararg {
|
|
@ExpectLoadError("Parameter in method signature is not vararg, but in alternative signature it is vararg")
|
|
@KotlinSignature("fun foo(vararg s : String)")
|
|
public void foo(String s) {
|
|
}
|
|
}
|