mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Replace String.UnicodeScalarView's user conversion to String with a "string" property
Swift SVN r19691
This commit is contained in:
@@ -125,8 +125,7 @@ extension String {
|
||||
return GeneratorType(_core.generate())
|
||||
}
|
||||
|
||||
@conversion public
|
||||
func __conversion() -> String {
|
||||
public var string: String {
|
||||
return String(_core)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user