Unify script file extensions to "kts" so that IDEA, compiler and tests agree when to parse as SCRIPT.
Include kt* files into formatter test generation, to test scripting formatting
This commit is contained in:
committed by
Andrey Breslav
parent
4ba423ee16
commit
98c54f39bb
@@ -0,0 +1,11 @@
|
||||
val z = 30
|
||||
val x: Int
|
||||
|
||||
if (true) {
|
||||
fun foo() = z + 20
|
||||
x = foo()
|
||||
}
|
||||
|
||||
x
|
||||
|
||||
// expected: rv: 50
|
||||
Reference in New Issue
Block a user