File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -665,16 +665,16 @@ func castingUnavailableClass(o : AnyObject) {
665
665
// expected-note@-2 {{add 'if #available' version check}}
666
666
}
667
667
668
- protocol Createable {
668
+ protocol Creatable {
669
669
init ( )
670
670
}
671
671
672
672
@available ( OSX, introduced= 10.51 )
673
- class ClassAvailableOn10_51_Createable : Createable {
673
+ class ClassAvailableOn10_51_Creatable : Creatable {
674
674
required init ( ) { }
675
675
}
676
676
677
- func create< T : Createable > ( ) -> T {
677
+ func create< T : Creatable > ( ) -> T {
678
678
return T ( )
679
679
}
680
680
@@ -683,13 +683,13 @@ class ClassWithGenericTypeParameter<T> { }
683
683
class ClassWithTwoGenericTypeParameter < T, S> { }
684
684
685
685
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}}
687
687
// expected-note@-1 {{add @available attribute to enclosing global function}}
688
688
// expected-note@-2 {{add 'if #available' version check}}
689
689
create ( )
690
690
691
691
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}}
693
693
// expected-note@-1 {{add @available attribute to enclosing global function}}
694
694
// expected-note@-2 {{add 'if #available' version check}}
695
695
You can’t perform that action at this time.
0 commit comments