mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Use TypeInfo::indexArray to get the bounds of the array instead of duplicating its logic incorrectly. Fixes <rdar://problem/16916422>. Swift SVN r18115
19 lines
368 B
Swift
19 lines
368 B
Swift
// RUN: %target-run-simple-swift | FileCheck %s
|
|
|
|
// Test interop of pure Swift objects as ObjC objects accessed through AnyObject.
|
|
|
|
import Foundation
|
|
|
|
class FullyNative {
|
|
deinit { println("dead") }
|
|
}
|
|
|
|
autoreleasepool {
|
|
let c: AnyObject = FullyNative() as AnyObject
|
|
|
|
// CHECK: {{.*}}11FullyNative (has 0 children)
|
|
println(c.description!)
|
|
}
|
|
// CHECK-NEXT: dead
|
|
|