Change allConstants test
Currently, FIR compilation of `const val b: Byte = 50 + 50` shows an error, but old compiler doesn't (it shows only warning). Since this is an incremental test, it should not be affected by compiler errors, but should only test for .kt usage without recompilation. #KT-54991 In Progress
This commit is contained in:
committed by
Space Team
parent
a0fa438735
commit
090a58ccc4
@@ -0,0 +1 @@
|
||||
-XXLanguage:-ApproximateIntegerLiteralTypesInReceiverPosition -XXLanguage:-ProhibitSimplificationOfNonTrivialConstBooleanExpressions
|
||||
@@ -0,0 +1,94 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/test/ConstKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/const.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
|
||||
================ Step #2 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/test/ConstKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/const.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
|
||||
================ Step #3 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/test/ConstKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/const.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
|
||||
================ Step #4 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/test/ConstKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/const.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
|
||||
================ Step #5 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/test/ConstKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/const.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
|
||||
================ Step #6 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/test/ConstKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/const.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
|
||||
================ Step #7 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/test/ConstKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/const.kt
|
||||
End of files
|
||||
After build round. Marked as dirty by Kotlin:
|
||||
src/usage.kt
|
||||
Exit code: ADDITIONAL_PASS_REQUIRED
|
||||
------------------------------------------
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/test/Usage.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/usage.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
@@ -0,0 +1,8 @@
|
||||
package test
|
||||
|
||||
const val i: Int = 2000000
|
||||
const val l: Long = 2000000000000L
|
||||
const val f: Float = 3.14f
|
||||
const val d: Double = 3.14
|
||||
const val bb: Boolean = true
|
||||
const val str: String = ":)"
|
||||
@@ -0,0 +1,8 @@
|
||||
package test
|
||||
|
||||
const val i: Int = 1000000 + 1000000
|
||||
const val l: Long = 2000000000000L
|
||||
const val f: Float = 3.14f
|
||||
const val d: Double = 3.14
|
||||
const val bb: Boolean = true
|
||||
const val str: String = ":)"
|
||||
@@ -0,0 +1,8 @@
|
||||
package test
|
||||
|
||||
const val i: Int = 1000000 + 1000000
|
||||
const val l: Long = 1000000000000L + 1000000000000L
|
||||
const val f: Float = 3.14f
|
||||
const val d: Double = 3.14
|
||||
const val bb: Boolean = true
|
||||
const val str: String = ":)"
|
||||
@@ -0,0 +1,8 @@
|
||||
package test
|
||||
|
||||
const val i: Int = 1000000 + 1000000
|
||||
const val l: Long = 1000000000000L + 1000000000000L
|
||||
const val f: Float = 0.0f + 3.14f
|
||||
const val d: Double = 3.14
|
||||
const val bb: Boolean = true
|
||||
const val str: String = ":)"
|
||||
@@ -0,0 +1,8 @@
|
||||
package test
|
||||
|
||||
const val i: Int = 1000000 + 1000000
|
||||
const val l: Long = 1000000000000L + 1000000000000L
|
||||
const val f: Float = 0.0f + 3.14f
|
||||
const val d: Double = 0.0 + 3.14
|
||||
const val bb: Boolean = true
|
||||
const val str: String = ":)"
|
||||
@@ -0,0 +1,9 @@
|
||||
package test
|
||||
|
||||
const val i: Int = 1000000 + 1000000
|
||||
const val l: Long = 1000000000000L + 1000000000000L
|
||||
const val f: Float = 0.0f + 3.14f
|
||||
const val d: Double = 0.0 + 3.14
|
||||
const val bb: Boolean = !false
|
||||
const val str: String = ":)"
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
package test
|
||||
|
||||
const val i: Int = 1000000 + 1000000
|
||||
const val l: Long = 1000000000000L + 1000000000000L
|
||||
const val f: Float = 0.0f + 3.14f
|
||||
const val d: Double = 0.0 + 3.14
|
||||
const val bb: Boolean = !false
|
||||
const val str: String = ":" + ")"
|
||||
@@ -0,0 +1,8 @@
|
||||
package test
|
||||
|
||||
const val i: Int = 0
|
||||
const val l: Long = 0
|
||||
const val f: Float = 0.0f
|
||||
const val d: Double = 0.0
|
||||
const val bb: Boolean = false
|
||||
const val str: String = ""
|
||||
@@ -0,0 +1,4 @@
|
||||
package test
|
||||
|
||||
@Deprecated("$i $l $f $d $bb $str")
|
||||
class Usage
|
||||
Reference in New Issue
Block a user