mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
21 lines
371 B
Swift
21 lines
371 B
Swift
// RUN: %target-run-simple-swift | %FileCheck %s
|
|
// REQUIRES: executable_test
|
|
|
|
func test() {
|
|
var d1 = Dictionary<String, Int>()
|
|
var d2 = Dictionary<String, Int>()
|
|
var d1_alias = d1
|
|
// Dictionary is no longer a class type
|
|
// if d1 !== d2 {
|
|
print("good")
|
|
// }
|
|
// if d1 === d1_alias {
|
|
print("also good")
|
|
// }
|
|
}
|
|
|
|
test()
|
|
|
|
// CHECK: good
|
|
// CHECK: also good
|