             classScoped("var foo: Int {\n return getValueFromDisk() \n} \n}"),
             classScoped("var foo: String {\n return \"get\" \n} \n}"),
             "protocol Foo {\n var foo: Int { get }\n",
-            "protocol Foo {\n var foo: Int { get set }\n"
+            "protocol Foo {\n var foo: Int { get set }\n",
+            "class Foo {\n" +
+            "  var foo: Int {\n" +
+            "    struct Bar {\n" +
+            "      var bar: Int {\n" +
+            "        get { return 1 }\n" +
+            "        set { _ = newValue }\n" +
+            "      }\n" +
+            "    }\n" +
+            "    return Bar().bar\n" +
+            "  }\n" +
+            "}\n"
         ],
         triggeringExamples: [
             classScoped("var foo: Int {\n ↓get {\n return 20 \n} \n} \n}"),

            )
        }
    }
}

    return "class Foo {\n  \(value)\n}\n"
}

public struct ImplicitGetterRule: Rule, ConfigurationProviderRule {
    public var configuration = SeverityConfiguration(.Warning)

    public init() {}
