Replace String.UnicodeScalarView's user conversion to String with a "string" property

Swift SVN r19691
This commit is contained in:
Doug Gregor
2014-07-08 20:01:50 +00:00
parent f6645eb39a
commit 973caddc24
3 changed files with 12 additions and 8 deletions

View File

@@ -125,8 +125,7 @@ extension String {
return GeneratorType(_core.generate())
}
@conversion public
func __conversion() -> String {
public var string: String {
return String(_core)
}