                     }
                     static let i = 1
                     let h = C.i
-                }
-            """),
+                    func f() -> Int { ↓C.i + h }
+                }
+            """),
+            Example("""
+                    struct S {
+                        static let i = 1
+                        static func f() -> Int { ↓S.i }
+                        func g() -> Any { ↓S.self }
+                    }
+                    """),
             Example("""
                 struct S {
                     struct T {

                }
            """),
            Example("""
                struct T {
                    static let i = 0
                }
                struct S {
                    static let i = 0
                }
                extension T {
                    static let j = S.i + Self.i
                }
            """),
            Example("""
                struct S {
                    struct T {

                    static let j = Self.T.R.i + Self.R.j
                    let h = Self.T.R.i + Self.R.j
                }
            """, excludeFromDocumentation: true),
            Example("""
                class C {
                    static let s = 2
