Kotlin static methods and variables : <p>I want to be able to save a class instance to a public static variable but I can't figure out how to do this in Kotlin.</p>

<pre><code>class Foo {

    public static Foo instance;
    public Foo() {
        instance = this;
    }

}
</code></pre>
