[FE 1.0] Make "Unit conversions" accessible experimental feature

This commit is contained in:
Victor Petukhov
2022-05-16 11:07:52 +02:00
parent 88d35067e3
commit bbf52e8b90
22 changed files with 82 additions and 16 deletions
@@ -0,0 +1,15 @@
fun interface Run {
fun run()
}
fun handle(run: Run) {
//...
}
val x = {
"STRING"
}
fun test() {
handle(<!UNSUPPORTED_FEATURE("The feature "unit conversions on arbitrary expressions" is experimental and should be enabled explicitly")!>x<!>)
}