Files
kotlin-fork/compiler/testData/diagnostics/tests/j+k/exceptionMessage.kt
T

22 lines
452 B
Kotlin
Vendored

// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
// JAVAC_EXPECTED_FILE
// FILE: VcsException.java
import org.jetbrains.annotations.NotNull;
public class VcsException extends Exception {
@Override
@NotNull
public String getMessage() {
return "";
}
}
// FILE: main.kt
fun foo(e: VcsException) {
e.message.contains("")
"" in e.message
}
public operator fun CharSequence.contains(other: CharSequence): Boolean = true