Skip to content

Commit 956b04f

Browse files
committed
XFAIL test/1_stdlib/Runtime.swift in optimized modes.
The optimizer is incorrectly folding dynamicTypes on Anys that change type: var x: Any = 1 x.dynamicType x = "two" x.dynamicType
1 parent 4abd79d commit 956b04f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/1_stdlib/Runtime.swift

+6
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77

88
// XFAIL: linux
99

10+
// rdar://problem/23545577 - optimizer incorrectly folds
11+
// 'var x: Any; x.dynamicType' when 'x' is reassigned to a value of different
12+
// type
13+
// XFAIL: swift_test_mode_optimize
14+
// XFAIL: swift_test_mode_optimize_unchecked
15+
1016
import Swift
1117
import StdlibUnittest
1218
import Foundation

0 commit comments

Comments
 (0)