mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
14 lines
392 B
Kotlin
Vendored
14 lines
392 B
Kotlin
Vendored
// FILE: Test.java
|
|
public class Test {
|
|
public static int i1 = Integer.MAX_VALUE;
|
|
public static final int i2 = Integer.MAX_VALUE;
|
|
public final int i3 = Integer.MAX_VALUE;
|
|
public int i4 = Integer.MAX_VALUE;
|
|
}
|
|
|
|
|
|
// FILE: A.kt
|
|
val a1: Int = Test.i1 + 1
|
|
val a2: Int = <!INTEGER_OVERFLOW!>Test.i2 + 1<!>
|
|
val a3: Int = <!INTEGER_OVERFLOW!>Test().i3 + 1<!>
|
|
val a4: Int = Test().i4 + 1 |