mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
expression but ignoring its value. This is the right canonical way to do this. NFC, just testsuite changes. Swift SVN r28638
10 lines
194 B
Swift
10 lines
194 B
Swift
// RUN: %target-parse-verify-swift
|
|
|
|
@objc class HasStaticProperties {
|
|
class var staticVar1: Int { return 4 }
|
|
}
|
|
|
|
func testStaticProperty(classObj: AnyObject.Type) {
|
|
_ = classObj.staticVar1
|
|
}
|