Effective visibility: local is now considered private, TYPE_DEPENDS_ON_LOCAL_CLASS diagnostics removed as repeated #KT-9542 Fixed #KT-9526 Fixed
This commit is contained in:
+2
-2
@@ -3,13 +3,13 @@ fun <T> run(f: () -> T): T {
|
||||
}
|
||||
|
||||
// invalid, depends on local class
|
||||
fun <!FUNCTION_RETURN_TYPE_DEPENDS_ON_LOCAL_CLASS!>foo<!>() = run {
|
||||
fun <!EXPOSED_FUNCTION_RETURN_TYPE!>foo<!>() = run {
|
||||
class A
|
||||
A()
|
||||
}
|
||||
|
||||
// invalid, depends on local class
|
||||
fun <!FUNCTION_RETURN_TYPE_DEPENDS_ON_LOCAL_CLASS!>gav<!>() = {
|
||||
fun <!EXPOSED_FUNCTION_RETURN_TYPE!>gav<!>() = {
|
||||
class B
|
||||
B()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user