[Test] Integrate AbstractCompileTimeConstantEvaluatorTest to AbstractDiagnosticTest

^KT-47898
This commit is contained in:
Dmitriy Novozhilov
2021-07-28 17:13:17 +03:00
parent c401582770
commit 046730c62c
103 changed files with 2823 additions and 510 deletions
@@ -0,0 +1,14 @@
// WITH_STDLIB
package test
// val prop1: 513105426295.toLong()
<!DEBUG_INFO_CONSTANT_VALUE("513105426295.toLong()")!>val prop1: Int = <!CONSTANT_EXPECTED_TYPE_MISMATCH!>0x7777777777<!><!>
// val prop2: 513105426295.toLong()
<!DEBUG_INFO_CONSTANT_VALUE("513105426295.toLong()")!>val prop2: Long = 0x7777777777<!>
// val prop3: 513105426295.toLong()
<!DEBUG_INFO_CONSTANT_VALUE("513105426295.toLong()")!>val prop3 = 0x7777777777<!>
// val prop4: 10
<!DEBUG_INFO_CONSTANT_VALUE("10")!>const val prop4 = '\n'.code<!>