class A inherits List pass class X shared var a = List() var b as List = X.a def main is shared assert .a.count == 0 assert X().b.count == 0