String Array Initialization Problem

Hi Admin,

I wonder why the initialization for array with string type has problem, it has no problem with other type?
Attach image shows my problem explanation.

Thank You.

Curious. what platform, Java? it does sound like a bug.

Thanks, logged as bugs://74955

Oke so this isn’t actually a bug. In your base class there’s a “getString” method that’s treated as a property String[index: Integer]: String which it sees there because it’s higher in scope. In this case it would be best to use the full type name, “Swift.String”.

bugs://74955 got closed with status fixed.

Do you mean declaration like this
var someString = **swift.String

I have tried this but it has no String type in swift but other type it has, you could see from my attached image. But anyway I know there is an alternative declaration for that as shown in the attached picture as well.

Besides, may I know how can I use “insert” method for array type? Below picture shows my problem.


Appreciate your help! Thanks!

i believe it’s java.lang.String.

Thanks, logged as 74956: Silver: Provider better fallback when sewing up a type that’s hidden by a property.

bugs://74956 got closed with status fixed.

Logged as bugs://i62984.

bugs://i62984 was closed as fixed.

bugs://i62985 was closed as fixed.

Logged as bugs://i62985.