Files
kotlin-fork/compiler/testData/diagnostics/tests/exposed/local.kt
T
Stanislav Erokhin 298a075381 Minor. removed functions which declared in Standard.kt from diagnostic testdata.
Removed declaration for functions: TODO, run, with, apply, let.
2016-01-25 19:13:31 +03:00

18 lines
324 B
Kotlin
Vendored

// invalid, depends on local class
fun <!EXPOSED_FUNCTION_RETURN_TYPE!>foo<!>() = run {
class A
A()
}
// invalid, depends on local class
fun <!EXPOSED_FUNCTION_RETURN_TYPE!>gav<!>() = {
class B
B()
}
abstract class My
// valid, object literal here is effectively My
fun bar() = run {
object: My() {}
}