Skip to content

Commit dcfecec

Browse files
committed
Disable test
The error is propagated through parsing the `sizeof` expression and makes this bogus. This can be revisited when the dynamicType error is removed in a future swift.
1 parent 515bce2 commit dcfecec

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

test/expr/expressions.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -892,8 +892,6 @@ func se0101<P: Pse0101>(x: Cse0101<P>) {
892892
_ = alignof(Cse0101<P>.T.self) // expected-error {{'alignof' is unavailable: use MemoryLayout<T>.alignment instead.}} {{7-15=MemoryLayout<}} {{27-33=>.alignment}} {{none}}
893893
_ = strideof(P.Type.self) // expected-error {{'strideof' is unavailable: use MemoryLayout<T>.stride instead.}} {{7-16=MemoryLayout<}} {{22-28=>.stride}} {{none}}
894894
_ = sizeof(type(of: x)) // expected-error {{'sizeof' is unavailable: use MemoryLayout<T>.size instead.}} {{7-26=MemoryLayout<Cse0101<P>>.size}} {{none}}/
895-
_ = sizeof(x.dynamicType) // expected-error {{'sizeof' is unavailable: use MemoryLayout<T>.size instead.}} {{7-28=MemoryLayout<Cse0101<P>>.size}} {{none}}
896-
// expected-error@-1 {{'.dynamicType' is deprecated. Use 'type(of: ...)' instead}}
897895

898896
_ = sizeofValue(x) // expected-error {{'sizeofValue' is unavailable: use MemoryLayout<T>.size instead.}} {{7-21=MemoryLayout<Cse0101<P>>.size}} {{none}}
899897
_ = alignofValue(x.val) // expected-error {{'alignofValue' is unavailable: use MemoryLayout<T>.alignment instead.}} {{7-26=MemoryLayout<P>.alignment}} {{none}}

0 commit comments

Comments
 (0)