[FE 1.0] Make "Unit conversions" accessible experimental feature
This commit is contained in:
@@ -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<!>)
|
||||
}
|
||||
Reference in New Issue
Block a user