Skip to content

Commit 7dcd168

Browse files
committed
Merge pull request #1428 from practicalswift/typo-fixes-20160224b
[gardening] Fix "eable"-typos: "resolveable" → "resolvable", "createable" → "creatable"
2 parents 2f32455 + ce6afbb commit 7dcd168

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/Sema/availability_versions.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -665,16 +665,16 @@ func castingUnavailableClass(o : AnyObject) {
665665
// expected-note@-2 {{add 'if #available' version check}}
666666
}
667667

668-
protocol Createable {
668+
protocol Creatable {
669669
init()
670670
}
671671

672672
@available(OSX, introduced=10.51)
673-
class ClassAvailableOn10_51_Createable : Createable {
673+
class ClassAvailableOn10_51_Creatable : Creatable {
674674
required init() {}
675675
}
676676

677-
func create<T : Createable>() -> T {
677+
func create<T : Creatable>() -> T {
678678
return T()
679679
}
680680

@@ -683,13 +683,13 @@ class ClassWithGenericTypeParameter<T> { }
683683
class ClassWithTwoGenericTypeParameter<T, S> { }
684684

685685
func classViaTypeParameter() {
686-
let _ : ClassAvailableOn10_51_Createable = // expected-error {{'ClassAvailableOn10_51_Createable' is only available on OS X 10.51 or newer}}
686+
let _ : ClassAvailableOn10_51_Creatable = // expected-error {{'ClassAvailableOn10_51_Creatable' is only available on OS X 10.51 or newer}}
687687
// expected-note@-1 {{add @available attribute to enclosing global function}}
688688
// expected-note@-2 {{add 'if #available' version check}}
689689
create()
690690

691691
let _ = create() as
692-
ClassAvailableOn10_51_Createable // expected-error {{'ClassAvailableOn10_51_Createable' is only available on OS X 10.51 or newer}}
692+
ClassAvailableOn10_51_Creatable // expected-error {{'ClassAvailableOn10_51_Creatable' is only available on OS X 10.51 or newer}}
693693
// expected-note@-1 {{add @available attribute to enclosing global function}}
694694
// expected-note@-2 {{add 'if #available' version check}}
695695

0 commit comments

Comments
 (0)