You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/Parse/type_expr.swift
-3Lines changed: 0 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,6 @@ func unqualifiedType() {
55
55
56
56
_ = Foo // expected-error{{expected member name or constructor call after type name}} expected-note{{add arguments}} {{10-10=()}} expected-note{{use '.self'}} {{10-10=.self}}
57
57
_ =Foo.dynamicType // expected-error {{type 'Foo' has no member 'dynamicType'}}
58
-
// expected-error@-1 {{'.dynamicType' is deprecated. Use 'type(of: ...)' instead}} {{7-7=type(of: }} {{10-22=)}}
59
58
60
59
_ = Bad // expected-error{{expected member name or constructor call after type name}}
61
60
// expected-note@-1{{use '.self' to reference the type object}}{{10-10=.self}}
@@ -73,7 +72,6 @@ func qualifiedType() {
73
72
74
73
_ =Foo.Bar // expected-error{{expected member name or constructor call after type name}} expected-note{{add arguments}} {{14-14=()}} expected-note{{use '.self'}} {{14-14=.self}}
75
74
_ =Foo.Bar.dynamicType // expected-error {{type 'Foo.Bar' has no member 'dynamicType'}}
76
-
// expected-error@-1 {{'.dynamicType' is deprecated. Use 'type(of: ...)' instead}} {{7-7=type(of: }} {{14-26=)}}
77
75
}
78
76
79
77
// We allow '.Type' in expr context
@@ -112,7 +110,6 @@ func genQualifiedType() {
112
110
// expected-note@-1{{add arguments after the type to construct a value of the type}}
113
111
// expected-note@-2{{use '.self' to reference the type object}}
114
112
_ =Gen<Foo>.Bar.dynamicType // expected-error {{type 'Gen<Foo>.Bar' has no member 'dynamicType'}}
115
-
// expected-error@-1 {{'.dynamicType' is deprecated. Use 'type(of: ...)' instead}} {{7-7=type(of: }} {{19-31=)}}
0 commit comments