KT-6044 J2K: Convert numeric float literals to 0.2f instead of 0.2.toFloat() + more fixes related to literals and type transformations

#KT-6044 Fixed
This commit is contained in:
Valentin Kipyatkov
2015-03-27 17:43:30 +03:00
parent 5454f7053f
commit 39f94d7d45
22 changed files with 291 additions and 135 deletions
@@ -1,9 +1,8 @@
// ERROR: An integer literal does not conform to the expected type kotlin.Double
class A {
deprecated("")
volatile var field1 = 0
transient var field2 = 1
strictfp var field3: Double = 2
strictfp var field3 = 2.0
}