There seem to be a bug in TypeRefLocalityAttributeChecker that causes an error whenever a function type is specified as local along with its argument types:
fun `local lambda with local arguments is allowed`(f: @Borrowed (<!INVALID_LOCALITY_TYPE_TARGET!>@Borrowed Any<!>) -> Unit) {
// ...
}
If @Borrowed is only put on the type argument or on the function type this error does not occur
There seem to be a bug in
TypeRefLocalityAttributeCheckerthat causes an error whenever a function type is specified as local along with its argument types:If
@Borrowedis only put on the type argument or on the function type this error does not occur