mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
12 lines
326 B
Kotlin
Vendored
12 lines
326 B
Kotlin
Vendored
// FILE: Test.java
|
|
public class Test {
|
|
public static final String FOO = "test";
|
|
}
|
|
|
|
// FILE: test.kt
|
|
fun ff() {
|
|
val a = Test.FOO
|
|
val b = <!NO_COMPANION_OBJECT!>Test<!><!UNEXPECTED_SAFE_CALL!>?.<!>FOO
|
|
System.out.println(a + b)
|
|
<!NO_COMPANION_OBJECT!>System<!><!UNEXPECTED_SAFE_CALL!>?.<!>out.println(a + b)
|
|
} |