This project is read-only.

Static members is used in structural type comparison

Topics: Language Specification
Aug 30, 2013 at 11:28 AM
The following code has no error in Playground:
interface A {

class B {
    static x;

var a : A;
var b : B;
a = b;
but B.x is a static property which shouldn't participate in structural comparison.
Sep 6, 2013 at 7:48 PM
Good catch, fortunately this is working correctly in the latest bits in the develop branch. The assignment now generates an error since b lacks an instance member x.