struct ST0 { K x; T y; } struct ST1 { ST0 x; T y; } struct ST2 { ST1 x; T y; } library L { ST2 st2; static const ST0 SST0 = {1, [2,3]}; static const ST1 SST1 = {SST0, [4,5]}; static const ST2 ST2 = {SST1, 100}; function getSt2() : ST2 { return this.st2; } static function getStaticSt2() : ST2 { return L.ST2; } } contract C { L l; function st2() : ST2 { return this.l.st2; } static function staticSt2() : ST2 { return L.getStaticSt2(); } public function unlock(ST2 st2) { require(st2 == this.st2()); require(st2 == C.staticSt2()); require(true); } }